Documentation ¶
Index ¶
- 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 MakeIdentityWithCredits(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{ ... }) *messaging.Envelope
- func MustBuildDeliveryV1(t testing.TB, b interface{ ... }) *chain.Delivery
- func MustGet0[T any](t testing.TB, fn func() (T, error)) T
- func MustGet1[T, A1 any](t testing.TB, fn func(A1) (T, error), a1 A1) T
- func PutAccount(t testing.TB, db database.Updater, account protocol.Account)
- func TryMakeAccount(t testing.TB, db database.Updater, account ...protocol.Account) error
- 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))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 MakeIdentityWithCredits ¶ added in v1.1.0
func MakeKeyBook ¶
func MakeKeyPage ¶
func MakeLiteTokenAccount ¶
func MustBuildDeliveryV1 ¶ added in v1.2.0
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.