helloworldv1

package
v0.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package helloworldv1

Index

Constants

View Source
const (
	BudgetChildSOL      graph.Lamports = sgo.LAMPORTS_PER_SOL >> 5
	BudgetChildTxFeeSOL graph.Lamports = sgo.LAMPORTS_PER_SOL >> 6
)
View Source
const (
	KeyFlagEchoRequest  uint8 = 1
	KeyFlagEchoResponse uint8 = 2
	KeyFlagWallet       uint8 = 3
	KeyFlagTxLatency    uint8 = 4
)

Variables

View Source
var (
	MintUSDC = sgo.MustPublicKeyFromBase58("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v")
	MintSOL  = sgo.WrappedSol
)

Functions

func Create

func Create(ctx context.Context, cancel context.CancelCauseFunc, parentKey sgo.PrivateKey, config *Configuration) brain.Brain

Create creates a helloworld bot.

func DoEchoRequest

func DoEchoRequest(payload string) catmsg.FixedPair

func DoWallet

func DoWallet(key sgo.PrivateKey) catmsg.FixedPair

Types

type Configuration

type Configuration struct {
	BotImage string
}

type Latency

type Latency struct {
	N     uint64
	P50Us uint64
	P99Us uint64
}

func (*Latency) Parse

func (l *Latency) Parse(value []byte) (int, error)

Source Files

  • eval.go
  • helloworldv1.go
  • instance.go
  • message.go
  • state.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL