Documentation ¶
Index ¶
- func PrivUserFromSecret(secret string) *types.PrivUser
- func PrivUserWithLegalEntityFromSecret(secret string, e *types.LegalEntity, perms types.Perm) *types.PrivUser
- func RandAccount(e *types.LegalEntity) *types.Account
- func RandAccounts(num int, e *types.LegalEntity) []*types.Account
- func RandCH() *types.LegalEntity
- func RandCustodian(creatorAddr []byte) *types.LegalEntity
- func RandEntity(t byte, permissions types.Perm) *types.LegalEntity
- func RandGCM(creatorAddr []byte) *types.LegalEntity
- func RandICM(creatorAddr []byte) *types.LegalEntity
- func RandUsers(num int) []*types.PrivUser
- func RandUsersWithLegalEntity(num int, e *types.LegalEntity, perms types.Perm) []*types.PrivUser
- func RandWallet(currency types.Currency, minBalanceMul, maxBalanceMul int64) types.Wallet
- func RandWallets(num int, minBalanceMul, maxBalanceMul int64) []types.Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivUserFromSecret ¶
PrivUserFromSecret generates a new PrivUser from a secret
func PrivUserWithLegalEntityFromSecret ¶
func PrivUserWithLegalEntityFromSecret(secret string, e *types.LegalEntity, perms types.Perm) *types.PrivUser
PrivUserWithLegalEntityFromSecret generates a PrivUser from a secret and populate the inner User with LegalEntity's address and the given permissions.
func RandAccount ¶
func RandAccount(e *types.LegalEntity) *types.Account
RandAccount generate an Account for a given LegalEntity if not nil.
func RandAccounts ¶
func RandAccounts(num int, e *types.LegalEntity) []*types.Account
RandAccounts generates num random accounts for the given LegalEntity.
func RandCustodian ¶
func RandCustodian(creatorAddr []byte) *types.LegalEntity
RandCustodian creates a new Custodian
func RandEntity ¶
func RandEntity(t byte, permissions types.Perm) *types.LegalEntity
RandEntity generates a LegalEntity
func RandUsersWithLegalEntity ¶
RandUsersWithLegalEntity generates num random PrivUsers and attach them a LegalEntity
func RandWallet ¶
RandWallet creates a new Wallet with a random Balance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.