Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { Transfer( ctx context.Context, acc terra.Account, recipient cosmostypes.AccAddress, amount cosmostypes.Int, ) (cosmostypes.TxResponse, error) TransferFrom( ctx context.Context, acc terra.Account, owner cosmostypes.AccAddress, recipient cosmostypes.AccAddress, amount cosmostypes.Int, ) (cosmostypes.TxResponse, error) Burn( ctx context.Context, acc terra.Account, amount cosmostypes.Int, ) (cosmostypes.TxResponse, error) BurnFrom( ctx context.Context, acc terra.Account, owner cosmostypes.AccAddress, amount cosmostypes.Int, ) (cosmostypes.TxResponse, error) Send( ctx context.Context, acc terra.Account, contract cosmostypes.AccAddress, amount cosmostypes.Int, hook interface{}, ) (cosmostypes.TxResponse, error) SendFrom( ctx context.Context, acc terra.Account, owner cosmostypes.AccAddress, contract cosmostypes.AccAddress, amount cosmostypes.Int, hook interface{}, ) (cosmostypes.TxResponse, error) Mint( ctx context.Context, acc terra.Account, recipient cosmostypes.AccAddress, amount cosmostypes.Int, ) (cosmostypes.TxResponse, error) IncreaseAllowance( ctx context.Context, acc terra.Account, spender cosmostypes.AccAddress, amount cosmostypes.Int, expires interface{}, ) (cosmostypes.TxResponse, error) DecreaseAllowance( ctx context.Context, acc terra.Account, spender cosmostypes.AccAddress, amount cosmostypes.Int, expires interface{}, ) (cosmostypes.TxResponse, error) }
type ExecutorMsg ¶
type ExecutorMsg interface { TransferMsg( acc terra.Account, recipient cosmostypes.AccAddress, amount cosmostypes.Int, ) ([]cosmostypes.Msg, error) TransferFromMsg( acc terra.Account, owner cosmostypes.AccAddress, recipient cosmostypes.AccAddress, amount cosmostypes.Int, ) ([]cosmostypes.Msg, error) BurnMsg( acc terra.Account, amount cosmostypes.Int, ) ([]cosmostypes.Msg, error) BurnFromMsg( acc terra.Account, owner cosmostypes.AccAddress, amount cosmostypes.Int, ) ([]cosmostypes.Msg, error) SendMsg( acc terra.Account, contract cosmostypes.AccAddress, amount cosmostypes.Int, hook interface{}, ) ([]cosmostypes.Msg, error) SendFromMsg( acc terra.Account, owner cosmostypes.AccAddress, contract cosmostypes.AccAddress, amount cosmostypes.Int, hook interface{}, ) ([]cosmostypes.Msg, error) MintMsg( acc terra.Account, recipient cosmostypes.AccAddress, amount cosmostypes.Int, ) ([]cosmostypes.Msg, error) IncreaseAllowanceMsg( acc terra.Account, spender cosmostypes.AccAddress, amount cosmostypes.Int, expires interface{}, ) ([]cosmostypes.Msg, error) DecreaseAllowanceMsg( acc terra.Account, spender cosmostypes.AccAddress, amount cosmostypes.Int, expires interface{}, ) ([]cosmostypes.Msg, error) }
type GetAllowanceResponse ¶
type GetAllowanceResponse struct { Allowance cosmostypes.Int `json:"allowance"` Expires map[string]interface{} `json:"expires"` }
type GetMinterResponse ¶
type GetMinterResponse struct { Cap *cosmostypes.Int `json:"cap"` Minter cosmostypes.AccAddress `json:"minter"` }
type GetTokenBalanceResponse ¶
type GetTokenBalanceResponse struct { Height uint64 `json:"height"` Balance cosmostypes.Int `json:"balance"` }
type GetTokenInfoResponse ¶
type GetTokenInfoResponse struct { Decimals int8 `json:"decimals"` Name string `json:"name"` Symbol string `json:"symbol"` TotalSupply cosmostypes.Int `json:"total_supply"` }
type Querier ¶
type Querier interface { GetBalance(ctx context.Context, owner cosmostypes.AccAddress) (GetTokenBalanceResponse, error) GetTokenInfo(ctx context.Context) (GetTokenInfoResponse, error) GetMinter(ctx context.Context) (GetMinterResponse, error) GetAllowance(ctx context.Context, owner cosmostypes.AccAddress, spender cosmostypes.AccAddress) (GetAllowanceResponse, error) GetAllAllowances(ctx context.Context, owner cosmostypes.AccAddress, startAfter *cosmostypes.AccAddress, limit *uint32) ([]GetAllowanceResponse, error) GetAllAccounts(ctx context.Context, startAfter *cosmostypes.AccAddress, limit *uint32) ([]cosmostypes.AccAddress, error) }
type Token ¶
type Token interface { Name() string Symbol() string bind.BaseContract Executor ExecutorMsg Querier }
func NewTokenContract ¶
func NewTokenContract(ctx context.Context, addr cosmostypes.AccAddress, client terra.Client) (Token, error)
Click to show internal directories.
Click to hide internal directories.