Documentation ¶
Index ¶
- func GetFullMockMECTData(source map[string][]byte, systemAccStorage map[string][]byte) (map[string]*MockMECTData, error)
- func GetTokenBalance(tokenIdentifier []byte, nonce uint64, source map[string][]byte) (*big.Int, error)
- func GetTokenData(tokenIdentifier []byte, nonce uint64, source map[string][]byte, ...) (*mect.MECToken, error)
- func GetTokenKeys(source map[string][]byte) [][]byte
- func GetTokenRoles(tokenName []byte, source map[string][]byte) ([][]byte, error)
- func MakeMECTUserMetadataBytes(frozen bool) []byte
- func SetLastNonce(tokenIdentifier []byte, lastNonce uint64, destination map[string][]byte) error
- func SetTokenBalance(tokenIdentifier []byte, nonce uint64, balance *big.Int, ...) error
- func SetTokenData(tokenIdentifier []byte, nonce uint64, tokenData *mect.MECToken, ...) error
- func SetTokenRoles(tokenIdentifier []byte, roles [][]byte, destination map[string][]byte) error
- func SetTokenRolesAsStrings(tokenIdentifier []byte, rolesAsStrings []string, destination map[string][]byte) error
- func WriteBaikalMECTToStorage(mectData []*mj.MECTData, destination map[string][]byte) error
- func WriteMockMECTToStorage(mectData map[string]*MockMECTData, destination map[string][]byte) error
- type MockMECTData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFullMockMECTData ¶
func GetFullMockMECTData(source map[string][]byte, systemAccStorage map[string][]byte) (map[string]*MockMECTData, error)
GetFullMockMECTData returns the information about all the MECT tokens held by the account.
func GetTokenBalance ¶
func GetTokenBalance(tokenIdentifier []byte, nonce uint64, source map[string][]byte) (*big.Int, error)
GetTokenBalance returns the MECT balance of the account, specified by the token key.
func GetTokenData ¶
func GetTokenData(tokenIdentifier []byte, nonce uint64, source map[string][]byte, systemAccStorage map[string][]byte) (*mect.MECToken, error)
GetTokenData gets the MECT information related to a token from the storage of the account.
func GetTokenKeys ¶
GetTokenKeys returns the storage keys of all the MECT tokens owned by the account.
func GetTokenRoles ¶
GetTokenRoles returns the roles of the account for the specified tokenName.
func SetLastNonce ¶
SetLastNonce writes the last nonce of a specified MECT into the storage.
func SetTokenBalance ¶
func SetTokenBalance(tokenIdentifier []byte, nonce uint64, balance *big.Int, destination map[string][]byte) error
SetTokenBalance sets the MECT balance of the account, specified by the token key.
func SetTokenData ¶
func SetTokenRoles ¶
SetTokenRoles sets the specified roles to the account, corresponding to the given tokenIdentifier.
func SetTokenRolesAsStrings ¶
func SetTokenRolesAsStrings(tokenIdentifier []byte, rolesAsStrings []string, destination map[string][]byte) error
SetTokenRolesAsStrings sets the specified roles to the account, corresponding to the given tokenIdentifier.
func WriteMockMECTToStorage ¶
func WriteMockMECTToStorage(mectData map[string]*MockMECTData, destination map[string][]byte) error