Documentation
¶
Index ¶
- func GetFullMockDCTData(source map[string][]byte, systemAccStorage map[string][]byte) (map[string]*MockDCTData, error)
- func GetTokenBalance(tokenIdentifier []byte, nonce uint64, source map[string][]byte) (*big.Int, error)
- func GetTokenData(tokenIdentifier []byte, nonce uint64, source map[string][]byte, ...) (*dct.DCToken, error)
- func GetTokenRoles(tokenName []byte, source map[string][]byte) ([][]byte, error)
- func MakeDCTUserMetadataBytes(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 *dct.DCToken, ...) error
- func SetTokenRoles(tokenIdentifier []byte, roles [][]byte, destination map[string][]byte) error
- func SetTokenRolesAsStrings(tokenIdentifier []byte, rolesAsStrings []string, destination map[string][]byte) error
- func WriteScenariosDCTToStorage(dctData []*scenmodel.DCTData, destination map[string][]byte) error
- type MockDCTData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFullMockDCTData ¶
func GetFullMockDCTData(source map[string][]byte, systemAccStorage map[string][]byte) (map[string]*MockDCTData, error)
GetFullMockDCTData returns the information about all the DCT tokens held by the account.
func GetTokenBalance ¶
func GetTokenBalance(tokenIdentifier []byte, nonce uint64, source map[string][]byte) (*big.Int, error)
GetTokenBalance returns the DCT 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) (*dct.DCToken, error)
GetTokenData gets the DCT information related to a token from the storage of the account.
func GetTokenRoles ¶
GetTokenRoles returns the roles of the account for the specified tokenName.
func MakeDCTUserMetadataBytes ¶
MakeDCTUserMetadataBytes creates metadata byte slice
func SetLastNonce ¶
SetLastNonce writes the last nonce of a specified DCT into the storage.
func SetTokenBalance ¶
func SetTokenBalance(tokenIdentifier []byte, nonce uint64, balance *big.Int, destination map[string][]byte) error
SetTokenBalance sets the DCT balance of the account, specified by the token key.
func SetTokenData ¶
func SetTokenData(tokenIdentifier []byte, nonce uint64, tokenData *dct.DCToken, destination map[string][]byte) error
SetTokenData sets the token data
func SetTokenRoles ¶
SetTokenRoles sets the specified roles to the account, corresponding to the given tokenIdentifier.