Documentation ¶
Index ¶
- Variables
- func CreditCredits(t testing.TB, db database.Updater, account *url.URL, amount uint64)
- func CreditTokens(t testing.TB, db database.Updater, account *url.URL, amount *big.Int)
- func GetAccount[T protocol.Account](t testing.TB, db database.Viewer, account *url.URL) T
- func MakeAccount(t testing.TB, db database.Updater, account ...protocol.Account)
- func MakeIdentity(t testing.TB, db database.Updater, u *url.URL, pubKeys ...[]byte)
- func MakeKeyBook(t testing.TB, db database.Updater, u *url.URL, pubKeys ...[]byte)
- func MakeKeyPage(t testing.TB, db database.Updater, book *url.URL, pubKeys ...[]byte)
- func MakeLiteTokenAccount(t testing.TB, db database.Updater, pubKey []byte, token *url.URL) *url.URL
- func MustBuild(t testing.TB, b interface{ ... }) *chain.Delivery
- func PutAccount(t testing.TB, db database.Updater, account protocol.Account)
- func TryMakeAccount(t testing.TB, db database.Updater, account ...protocol.Account) error
- func Txn(id *url.TxID) *condTxn
- func Update(t testing.TB, db database.Updater, fn func(batch *database.Batch))
- func UpdateAccount[T protocol.Account](t testing.TB, db database.Updater, account *url.URL, fn func(T))
- func View(t testing.TB, db database.Viewer, fn func(batch *database.Batch))
- type Condition
- type Sim
- func (s *Sim) GetStatus(txid *url.TxID) *protocol.TransactionStatus
- func (s *Sim) Step()
- func (s *Sim) StepN(n int)
- func (s *Sim) StepUntil(conditions ...Condition)
- func (s *Sim) Submit(delivery *chain.Delivery) *protocol.TransactionStatus
- func (s *Sim) SubmitSuccessfully(delivery *chain.Delivery) *protocol.TransactionStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var GenesisTime = time.Date(2022, 7, 1, 0, 0, 0, 0, time.UTC)
Functions ¶
func CreditCredits ¶
func CreditTokens ¶
func GetAccount ¶
func MakeAccount ¶
MakeAccount writes the account's main state, adds a directory entry to the parent, and inherits the parent's authority if non is specified.
func MakeIdentity ¶
func MakeKeyBook ¶
func MakeKeyPage ¶
func MakeLiteTokenAccount ¶
func PutAccount ¶
PutAccount writes the account's main state.
func TryMakeAccount ¶
TryMakeAccount writes the account's main state, adds a directory entry to the parent, and inherits the parent's authority if non is specified.
func UpdateAccount ¶
Types ¶
type Sim ¶
func NewSim ¶
func NewSim(t testing.TB, database simulator.OpenDatabaseFunc, init *accumulated.NetworkInit, snapshot simulator.SnapshotFunc) *Sim
func (*Sim) SubmitSuccessfully ¶
func (s *Sim) SubmitSuccessfully(delivery *chain.Delivery) *protocol.TransactionStatus
Click to show internal directories.
Click to hide internal directories.