Documentation ¶
Index ¶
- func ExecuteFile(ctx context.Context, filename string, simBvns int, client *client.Client) error
- func InterpUseSession(s *Session, I interface{ ... })
- type Abort
- type Engine
- type Keyish
- type NetEngine
- func (e NetEngine) GetAccount(accountUrl *URL) (protocol.Account, error)
- func (e NetEngine) GetDirectory(account *URL) ([]*URL, error)
- func (e NetEngine) GetTransaction(txid [32]byte) (*protocol.Transaction, error)
- func (e NetEngine) Submit(envelope *protocol.Envelope) (*protocol.TransactionStatus, error)
- func (e NetEngine) WaitFor(hash [32]byte, delivered bool) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
- type Numish
- type Output
- type Session
- func (s *Session) Abort(value interface{})
- func (s *Session) Abortf(format string, args ...interface{})
- func (s *Session) AcmeAmount(v float64) *big.Int
- func (s *Session) Amount(v float64, precision uint64) *big.Int
- func (s *Session) Assert(condition bool, format string, args ...interface{})
- func (s *Session) Dump(v interface{})
- func (s *Session) Faucet(account Urlish) *submittedTxn
- func (s *Session) GenerateKey(values ...interface{}) ed25519.PrivateKey
- func (s *Session) Get(query interface{}, subquery ...interface{}) interface{}
- func (s *Session) GetAccount(query Urlish) protocol.Account
- func (s *Session) GetAccountAs(query Urlish, target interface{})
- func (s *Session) GetAs(u interface{}, query interface{}, subquery ...interface{})
- func (s *Session) GetDirectory(query Urlish) []*URL
- func (s *Session) KeyEntry() bldKeyEntry
- func (s *Session) LiteAddress(keyOrEntry interface{}, args ...interface{}) *URL
- func (s *Session) Print(v interface{})
- func (s *Session) SetStartTime(time time.Time)
- func (s *Session) Show(v interface{})
- func (s *Session) Transaction(principal Urlish) bldTxn
- func (s *Session) TryGetAccount(query Urlish) (protocol.Account, bool)
- func (s *Session) TryGetAccountAs(query Urlish, target interface{}) bool
- func (s *Session) TryGetDirectory(query Urlish) ([]*URL, bool)
- func (s *Session) UseNetwork(client *client.Client)
- func (s *Session) UseSimulator(bvnCount int)
- func (s *Session) WaitForSubmitted() []completedFlow
- type SimEngine
- func (s SimEngine) GetAccount(url *URL) (protocol.Account, error)
- func (s SimEngine) GetDirectory(account *URL) ([]*URL, error)
- func (s SimEngine) GetTransaction(hash [32]byte) (*protocol.Transaction, error)
- func (s SimEngine) Submit(envelope *protocol.Envelope) (*protocol.TransactionStatus, error)
- func (s SimEngine) WaitFor(hash [32]byte, delivered bool) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
- type URL
- type Urlish
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteFile ¶
Types ¶
type Engine ¶
type Engine interface { GetAccount(*URL) (protocol.Account, error) GetDirectory(*URL) ([]*url.URL, error) GetTransaction([32]byte) (*protocol.Transaction, error) Submit(*protocol.Envelope) (*protocol.TransactionStatus, error) WaitFor(txn [32]byte, delivered bool) ([]*protocol.TransactionStatus, []*protocol.Transaction, error) }
type Keyish ¶
type Keyish = interface{}
Keyish indicates that the parameter must be convertable to a key.
type NetEngine ¶
func (NetEngine) GetAccount ¶
func (NetEngine) GetTransaction ¶
func (e NetEngine) GetTransaction(txid [32]byte) (*protocol.Transaction, error)
func (NetEngine) WaitFor ¶
func (e NetEngine) WaitFor(hash [32]byte, delivered bool) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
type Numish ¶
type Numish = interface{}
Numish indicates that the parameter must be convertable to a number.
type Session ¶
type Session struct { Filename string Output func(...Output) Engine Engine // contains filtered or unexported fields }
func (*Session) GenerateKey ¶
func (s *Session) GenerateKey(values ...interface{}) ed25519.PrivateKey
func (*Session) GetAccountAs ¶
func (*Session) GetAs ¶
func (s *Session) GetAs(u interface{}, query interface{}, subquery ...interface{})
func (*Session) GetDirectory ¶
func (*Session) LiteAddress ¶
func (*Session) SetStartTime ¶
func (*Session) Transaction ¶
func (*Session) TryGetAccount ¶
func (*Session) TryGetAccountAs ¶
func (*Session) UseNetwork ¶
func (*Session) UseSimulator ¶
func (*Session) WaitForSubmitted ¶
func (s *Session) WaitForSubmitted() []completedFlow
type SimEngine ¶
func (SimEngine) GetTransaction ¶
func (s SimEngine) GetTransaction(hash [32]byte) (*protocol.Transaction, error)
func (SimEngine) WaitFor ¶
func (s SimEngine) WaitFor(hash [32]byte, delivered bool) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
Click to show internal directories.
Click to hide internal directories.