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"` Subaccount *Subaccount `ic:"subaccount,omitempty"` }
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
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:"field0"` field1 Value `ic:"field1"` }, 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"` Url string `ic:"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 TransferError ¶
type TransferError = struct { BadFee *struct { ExpectedFee idl.Nat `ic:"expected_fee"` } `ic:"BadFee,variant"` BadBurn *struct { MinBurnAmount idl.Nat `ic:"min_burn_amount"` } `ic:"BadBurn,variant"` InsufficientFunds *struct { Balance idl.Nat `ic:"balance"` } `ic:"InsufficientFunds,variant"` TooOld *struct{} `ic:"TooOld,variant"` CreatedInFuture *struct { LedgerTime Timestamp `ic:"ledger_time"` } `ic:"CreatedInFuture,variant"` Duplicate *struct { DuplicateOf idl.Nat `ic:"duplicate_of"` } `ic:"Duplicate,variant"` GenericError *struct { ErrorCode idl.Nat `ic:"error_code"` Message string `ic:"message"` } `ic:"GenericError,variant"` }