Documentation ¶
Index ¶
- type BurnPrm
- type Client
- func (c *Client) BalanceOf(id user.ID) (*big.Int, error)
- func (c *Client) Burn(ctx context.Context, p BurnPrm) error
- func (c *Client) Decimals() (uint32, error)
- func (c *Client) Lock(ctx context.Context, p LockPrm) error
- func (c *Client) Mint(ctx context.Context, p MintPrm) error
- func (c *Client) TransferX(ctx context.Context, p TransferPrm) error
- type LockPrm
- type MintPrm
- type Option
- type TransferPrm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurnPrm ¶
type BurnPrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
BurnPrm groups parameters of Burn operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper over StaticClient which makes calls with the names and arguments of the FrostFS Balance contract.
Working client must be created via constructor New. Using the Client that has been created with new(Client) expression (or just declaring a Client variable) is unsafe and can lead to panic.
func NewFromMorph ¶
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...Option) (*Client, error)
NewFromMorph returns the wrapper instance from the raw morph client.
func (*Client) BalanceOf ¶
BalanceOf receives the amount of funds in the client's account through the Balance contract call, and returns it.
func (*Client) Decimals ¶
Decimals decimal precision of currency transactions through the Balance contract call, and returns it.
type LockPrm ¶
type LockPrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
LockPrm groups parameters of Lock operation.
func (*LockPrm) SetDueEpoch ¶
SetDueEpoch sets end of the lock.
type MintPrm ¶
type MintPrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
MintPrm groups parameters of Mint operation.
type Option ¶
type Option func(*opts)
Option allows to set an optional parameter of Wrapper.
func AsAlphabet ¶
func AsAlphabet() Option
AsAlphabet returns option to sign main TX of notary requests with client's private key.
Considered to be used by IR nodes only.
type TransferPrm ¶
TransferPrm groups parameters of TransferX method.