Documentation ¶
Overview ¶
Package icrc1 provides a client for the "icrc1" canister. Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go.
Index ¶
- type Account
- type Agent
- func (a Agent) Icrc1BalanceOf(arg0 Account) (*idl.Nat, error)
- func (a Agent) Icrc1Decimals() (*uint8, error)
- func (a Agent) Icrc1Fee() (*idl.Nat, error)
- func (a Agent) Icrc1Metadata() (..., error)
- func (a Agent) Icrc1MintingAccount() (**Account, error)
- func (a Agent) Icrc1Name() (*string, error)
- func (a Agent) Icrc1SupportedStandards() (..., error)
- func (a Agent) Icrc1Symbol() (*string, error)
- func (a Agent) Icrc1TotalSupply() (*idl.Nat, error)
- func (a Agent) Icrc1Transfer(arg0 TransferArgs) (..., error)
- type Duration
- type Subaccount
- type Timestamp
- type TransferArgs
- type TransferError
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Owner principal.Principal `ic:"owner" json:"owner"` Subaccount *Subaccount `ic:"subaccount,omitempty" json:"subaccount,omitempty"` }
type Agent ¶
Agent is a client for the "icrc1" canister.
func (Agent) Icrc1BalanceOf ¶
Icrc1BalanceOf calls the "icrc1_balance_of" method on the "icrc1" canister.
func (Agent) Icrc1Decimals ¶
Icrc1Decimals calls the "icrc1_decimals" method on the "icrc1" canister.
func (Agent) Icrc1Metadata ¶
func (a Agent) Icrc1Metadata() (*[]struct { Field0 string `ic:"0" json:"0"` Field1 Value `ic:"1" json:"1"` }, error)
Icrc1Metadata calls the "icrc1_metadata" method on the "icrc1" canister.
func (Agent) Icrc1MintingAccount ¶
Icrc1MintingAccount calls the "icrc1_minting_account" method on the "icrc1" canister.
func (Agent) Icrc1SupportedStandards ¶
func (a Agent) Icrc1SupportedStandards() (*[]struct { Name string `ic:"name" json:"name"` Url string `ic:"url" json:"url"` }, error)
Icrc1SupportedStandards calls the "icrc1_supported_standards" method on the "icrc1" canister.
func (Agent) Icrc1Symbol ¶
Icrc1Symbol calls the "icrc1_symbol" method on the "icrc1" canister.
func (Agent) Icrc1TotalSupply ¶
Icrc1TotalSupply calls the "icrc1_total_supply" method on the "icrc1" canister.
func (Agent) Icrc1Transfer ¶
func (a Agent) Icrc1Transfer(arg0 TransferArgs) (*struct { Ok *idl.Nat `ic:"Ok,variant"` Err *TransferError `ic:"Err,variant"` }, error)
Icrc1Transfer calls the "icrc1_transfer" method on the "icrc1" canister.
type Subaccount ¶
type Subaccount = []byte
type TransferArgs ¶
type TransferArgs struct { FromSubaccount *Subaccount `ic:"from_subaccount,omitempty" json:"from_subaccount,omitempty"` To Account `ic:"to" json:"to"` Amount idl.Nat `ic:"amount" json:"amount"` Fee *idl.Nat `ic:"fee,omitempty" json:"fee,omitempty"` Memo *[]byte `ic:"memo,omitempty" json:"memo,omitempty"` CreatedAtTime *Timestamp `ic:"created_at_time,omitempty" json:"created_at_time,omitempty"` }
type TransferError ¶
type TransferError struct { BadFee *struct { ExpectedFee idl.Nat `ic:"expected_fee" json:"expected_fee"` } `ic:"BadFee,variant"` BadBurn *struct { MinBurnAmount idl.Nat `ic:"min_burn_amount" json:"min_burn_amount"` } `ic:"BadBurn,variant"` InsufficientFunds *struct { Balance idl.Nat `ic:"balance" json:"balance"` } `ic:"InsufficientFunds,variant"` TooOld *idl.Null `ic:"TooOld,variant"` CreatedInFuture *struct { LedgerTime Timestamp `ic:"ledger_time" json:"ledger_time"` } `ic:"CreatedInFuture,variant"` Duplicate *struct { DuplicateOf idl.Nat `ic:"duplicate_of" json:"duplicate_of"` } `ic:"Duplicate,variant"` GenericError *struct { ErrorCode idl.Nat `ic:"error_code" json:"error_code"` Message string `ic:"message" json:"message"` } `ic:"GenericError,variant"` }