Documentation
¶
Overview ¶
Package ledger provides a client for the "ledger" 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) Archives() (*[]ArchiveInfo, error)
- func (a Agent) GetBlocks(arg0 GetBlocksArgs) (*GetBlocksResponse, error)
- func (a Agent) GetDataCertificate() (*DataCertificate, error)
- func (a Agent) GetTransactions(arg0 GetTransactionsRequest) (*GetTransactionsResponse, error)
- func (a Agent) Icrc10SupportedStandards() (..., error)
- func (a Agent) Icrc1BalanceOf(arg0 Account) (*Tokens, error)
- func (a Agent) Icrc1Decimals() (*uint8, error)
- func (a Agent) Icrc1Fee() (*Tokens, error)
- func (a Agent) Icrc1Metadata() (..., error)
- func (a Agent) Icrc1MintingAccount() (**Account, error)
- func (a Agent) Icrc1Name() (*string, error)
- func (a Agent) Icrc1SupportedStandards() (*[]StandardRecord, error)
- func (a Agent) Icrc1Symbol() (*string, error)
- func (a Agent) Icrc1TotalSupply() (*Tokens, error)
- func (a Agent) Icrc1Transfer(arg0 TransferArg) (*TransferResult, error)
- func (a Agent) Icrc21CanisterCallConsentMessage(arg0 Icrc21ConsentMessageRequest) (*Icrc21ConsentMessageResponse, error)
- func (a Agent) Icrc2Allowance(arg0 AllowanceArgs) (*Allowance, error)
- func (a Agent) Icrc2Approve(arg0 ApproveArgs) (*ApproveResult, error)
- func (a Agent) Icrc2TransferFrom(arg0 TransferFromArgs) (*TransferFromResult, error)
- func (a Agent) Icrc3GetArchives(arg0 GetArchivesArgs) (*GetArchivesResult, error)
- func (a Agent) Icrc3GetBlocks(arg0 []GetBlocksArgs) (*GetBlocksResult, error)
- func (a Agent) Icrc3GetTipCertificate() (**ICRC3DataCertificate, error)
- func (a Agent) Icrc3SupportedBlockTypes() (..., error)
- type Allowance
- type AllowanceArgs
- type Approve
- type ApproveArgs
- type ApproveError
- type ApproveResult
- type ArchiveInfo
- type Block
- type BlockIndex
- type BlockRange
- type Burn
- type ChangeArchiveOptions
- type ChangeFeeCollector
- type DataCertificate
- type Duration
- type FeatureFlags
- type GetArchivesArgs
- type GetArchivesResult
- type GetBlocksArgs
- type GetBlocksResponse
- type GetBlocksResult
- type GetTransactionsRequest
- type GetTransactionsResponse
- type HttpRequest
- type HttpResponse
- type ICRC3DataCertificate
- type ICRC3Value
- type Icrc21ConsentInfo
- type Icrc21ConsentMessage
- type Icrc21ConsentMessageMetadata
- type Icrc21ConsentMessageRequest
- type Icrc21ConsentMessageResponse
- type Icrc21ConsentMessageSpec
- type Icrc21Error
- type Icrc21ErrorInfo
- type InitArgs
- type LedgerArg
- type Map
- type MetadataValue
- type Mint
- type QueryArchiveFn
- type QueryBlockArchiveFn
- type StandardRecord
- type Subaccount
- type Timestamp
- type Tokens
- type Transaction
- type TransactionRange
- type Transfer
- type TransferArg
- type TransferError
- type TransferFromArgs
- type TransferFromError
- type TransferFromResult
- type TransferResult
- type TxIndex
- type UpgradeArgs
- 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 "ledger" canister.
func (Agent) Archives ¶
func (a Agent) Archives() (*[]ArchiveInfo, error)
Archives calls the "archives" method on the "ledger" canister.
func (Agent) GetBlocks ¶
func (a Agent) GetBlocks(arg0 GetBlocksArgs) (*GetBlocksResponse, error)
GetBlocks calls the "get_blocks" method on the "ledger" canister.
func (Agent) GetDataCertificate ¶
func (a Agent) GetDataCertificate() (*DataCertificate, error)
GetDataCertificate calls the "get_data_certificate" method on the "ledger" canister.
func (Agent) GetTransactions ¶
func (a Agent) GetTransactions(arg0 GetTransactionsRequest) (*GetTransactionsResponse, error)
GetTransactions calls the "get_transactions" method on the "ledger" canister.
func (Agent) Icrc10SupportedStandards ¶ added in v0.5.0
func (a Agent) Icrc10SupportedStandards() (*[]struct { Name string `ic:"name" json:"name"` Url string `ic:"url" json:"url"` }, error)
Icrc10SupportedStandards calls the "icrc10_supported_standards" method on the "ledger" canister.
func (Agent) Icrc1BalanceOf ¶
Icrc1BalanceOf calls the "icrc1_balance_of" method on the "ledger" canister.
func (Agent) Icrc1Decimals ¶
Icrc1Decimals calls the "icrc1_decimals" method on the "ledger" canister.
func (Agent) Icrc1Metadata ¶
func (a Agent) Icrc1Metadata() (*[]struct { Field0 string `ic:"0" json:"0"` Field1 MetadataValue `ic:"1" json:"1"` }, error)
Icrc1Metadata calls the "icrc1_metadata" method on the "ledger" canister.
func (Agent) Icrc1MintingAccount ¶
Icrc1MintingAccount calls the "icrc1_minting_account" method on the "ledger" canister.
func (Agent) Icrc1SupportedStandards ¶
func (a Agent) Icrc1SupportedStandards() (*[]StandardRecord, error)
Icrc1SupportedStandards calls the "icrc1_supported_standards" method on the "ledger" canister.
func (Agent) Icrc1Symbol ¶
Icrc1Symbol calls the "icrc1_symbol" method on the "ledger" canister.
func (Agent) Icrc1TotalSupply ¶
Icrc1TotalSupply calls the "icrc1_total_supply" method on the "ledger" canister.
func (Agent) Icrc1Transfer ¶
func (a Agent) Icrc1Transfer(arg0 TransferArg) (*TransferResult, error)
Icrc1Transfer calls the "icrc1_transfer" method on the "ledger" canister.
func (Agent) Icrc21CanisterCallConsentMessage ¶ added in v0.5.0
func (a Agent) Icrc21CanisterCallConsentMessage(arg0 Icrc21ConsentMessageRequest) (*Icrc21ConsentMessageResponse, error)
Icrc21CanisterCallConsentMessage calls the "icrc21_canister_call_consent_message" method on the "ledger" canister.
func (Agent) Icrc2Allowance ¶
func (a Agent) Icrc2Allowance(arg0 AllowanceArgs) (*Allowance, error)
Icrc2Allowance calls the "icrc2_allowance" method on the "ledger" canister.
func (Agent) Icrc2Approve ¶
func (a Agent) Icrc2Approve(arg0 ApproveArgs) (*ApproveResult, error)
Icrc2Approve calls the "icrc2_approve" method on the "ledger" canister.
func (Agent) Icrc2TransferFrom ¶
func (a Agent) Icrc2TransferFrom(arg0 TransferFromArgs) (*TransferFromResult, error)
Icrc2TransferFrom calls the "icrc2_transfer_from" method on the "ledger" canister.
func (Agent) Icrc3GetArchives ¶
func (a Agent) Icrc3GetArchives(arg0 GetArchivesArgs) (*GetArchivesResult, error)
Icrc3GetArchives calls the "icrc3_get_archives" method on the "ledger" canister.
func (Agent) Icrc3GetBlocks ¶ added in v0.4.3
func (a Agent) Icrc3GetBlocks(arg0 []GetBlocksArgs) (*GetBlocksResult, error)
Icrc3GetBlocks calls the "icrc3_get_blocks" method on the "ledger" canister.
func (Agent) Icrc3GetTipCertificate ¶
func (a Agent) Icrc3GetTipCertificate() (**ICRC3DataCertificate, error)
Icrc3GetTipCertificate calls the "icrc3_get_tip_certificate" method on the "ledger" canister.
type AllowanceArgs ¶
type Approve ¶
type Approve struct { Fee *idl.Nat `ic:"fee,omitempty" json:"fee,omitempty"` From Account `ic:"from" json:"from"` Memo *[]byte `ic:"memo,omitempty" json:"memo,omitempty"` CreatedAtTime *Timestamp `ic:"created_at_time,omitempty" json:"created_at_time,omitempty"` Amount idl.Nat `ic:"amount" json:"amount"` ExpectedAllowance *idl.Nat `ic:"expected_allowance,omitempty" json:"expected_allowance,omitempty"` ExpiresAt *Timestamp `ic:"expires_at,omitempty" json:"expires_at,omitempty"` Spender Account `ic:"spender" json:"spender"` }
type ApproveArgs ¶
type ApproveArgs struct { Fee *idl.Nat `ic:"fee,omitempty" json:"fee,omitempty"` Memo *[]byte `ic:"memo,omitempty" json:"memo,omitempty"` FromSubaccount *[]byte `ic:"from_subaccount,omitempty" json:"from_subaccount,omitempty"` CreatedAtTime *Timestamp `ic:"created_at_time,omitempty" json:"created_at_time,omitempty"` Amount idl.Nat `ic:"amount" json:"amount"` ExpectedAllowance *idl.Nat `ic:"expected_allowance,omitempty" json:"expected_allowance,omitempty"` ExpiresAt *Timestamp `ic:"expires_at,omitempty" json:"expires_at,omitempty"` Spender Account `ic:"spender" json:"spender"` }
type ApproveError ¶
type ApproveError struct { GenericError *struct { Message string `ic:"message" json:"message"` ErrorCode idl.Nat `ic:"error_code" json:"error_code"` } `ic:"GenericError,variant"` Duplicate *struct { DuplicateOf BlockIndex `ic:"duplicate_of" json:"duplicate_of"` } `ic:"Duplicate,variant"` BadFee *struct { ExpectedFee idl.Nat `ic:"expected_fee" json:"expected_fee"` } `ic:"BadFee,variant"` AllowanceChanged *struct { CurrentAllowance idl.Nat `ic:"current_allowance" json:"current_allowance"` } `ic:"AllowanceChanged,variant"` CreatedInFuture *struct { LedgerTime Timestamp `ic:"ledger_time" json:"ledger_time"` } `ic:"CreatedInFuture,variant"` TooOld *idl.Null `ic:"TooOld,variant"` Expired *struct { LedgerTime Timestamp `ic:"ledger_time" json:"ledger_time"` } `ic:"Expired,variant"` InsufficientFunds *struct { Balance idl.Nat `ic:"balance" json:"balance"` } `ic:"InsufficientFunds,variant"` }
type ApproveResult ¶
type ApproveResult struct { Ok *BlockIndex `ic:"Ok,variant"` Err *ApproveError `ic:"Err,variant"` }
type ArchiveInfo ¶
type ArchiveInfo struct { CanisterId principal.Principal `ic:"canister_id" json:"canister_id"` BlockRangeStart BlockIndex `ic:"block_range_start" json:"block_range_start"` BlockRangeEnd BlockIndex `ic:"block_range_end" json:"block_range_end"` }
type BlockIndex ¶
type BlockRange ¶
type BlockRange struct {
Blocks []Block `ic:"blocks" json:"blocks"`
}
type Burn ¶
type Burn struct { From Account `ic:"from" json:"from"` Memo *[]byte `ic:"memo,omitempty" json:"memo,omitempty"` CreatedAtTime *Timestamp `ic:"created_at_time,omitempty" json:"created_at_time,omitempty"` Amount idl.Nat `ic:"amount" json:"amount"` Spender *Account `ic:"spender,omitempty" json:"spender,omitempty"` }
type ChangeArchiveOptions ¶ added in v0.4.3
type ChangeArchiveOptions struct { NumBlocksToArchive *uint64 `ic:"num_blocks_to_archive,omitempty" json:"num_blocks_to_archive,omitempty"` MaxTransactionsPerResponse *uint64 `ic:"max_transactions_per_response,omitempty" json:"max_transactions_per_response,omitempty"` TriggerThreshold *uint64 `ic:"trigger_threshold,omitempty" json:"trigger_threshold,omitempty"` MaxMessageSizeBytes *uint64 `ic:"max_message_size_bytes,omitempty" json:"max_message_size_bytes,omitempty"` CyclesForArchiveCreation *uint64 `ic:"cycles_for_archive_creation,omitempty" json:"cycles_for_archive_creation,omitempty"` NodeMaxMemorySizeBytes *uint64 `ic:"node_max_memory_size_bytes,omitempty" json:"node_max_memory_size_bytes,omitempty"` ControllerId *principal.Principal `ic:"controller_id,omitempty" json:"controller_id,omitempty"` MoreControllerIds *[]principal.Principal `ic:"more_controller_ids,omitempty" json:"more_controller_ids,omitempty"` }
type ChangeFeeCollector ¶
type DataCertificate ¶
type FeatureFlags ¶
type FeatureFlags struct {
Icrc2 bool `ic:"icrc2" json:"icrc2"`
}
type GetArchivesArgs ¶
type GetArchivesResult ¶
type GetBlocksArgs ¶
type GetBlocksArgs struct { Start BlockIndex `ic:"start" json:"start"` Length idl.Nat `ic:"length" json:"length"` }
type GetBlocksResponse ¶
type GetBlocksResponse struct { FirstIndex BlockIndex `ic:"first_index" json:"first_index"` ChainLength uint64 `ic:"chain_length" json:"chain_length"` Certificate *[]byte `ic:"certificate,omitempty" json:"certificate,omitempty"` Blocks []Block `ic:"blocks" json:"blocks"` ArchivedBlocks []struct { Start BlockIndex `ic:"start" json:"start"` Length idl.Nat `ic:"length" json:"length"` Callback QueryBlockArchiveFn `ic:"callback" json:"callback"` } `ic:"archived_blocks" json:"archived_blocks"` }
type GetBlocksResult ¶ added in v0.4.3
type GetBlocksResult struct { LogLength idl.Nat `ic:"log_length" json:"log_length"` Blocks []struct { Id idl.Nat `ic:"id" json:"id"` Block ICRC3Value `ic:"block" json:"block"` } `ic:"blocks" json:"blocks"` ArchivedBlocks []struct { Args []GetBlocksArgs `ic:"args" json:"args"` Callback struct { } `ic:"callback" json:"callback"` } `ic:"archived_blocks" json:"archived_blocks"` }
type GetTransactionsRequest ¶
type GetTransactionsResponse ¶
type GetTransactionsResponse struct { LogLength idl.Nat `ic:"log_length" json:"log_length"` Transactions []Transaction `ic:"transactions" json:"transactions"` FirstIndex TxIndex `ic:"first_index" json:"first_index"` ArchivedTransactions []struct { Start TxIndex `ic:"start" json:"start"` Length idl.Nat `ic:"length" json:"length"` Callback QueryArchiveFn `ic:"callback" json:"callback"` } `ic:"archived_transactions" json:"archived_transactions"` }
type HttpRequest ¶
type HttpResponse ¶
type ICRC3DataCertificate ¶
type ICRC3Value ¶ added in v0.4.3
type ICRC3Value struct { Blob *[]byte `ic:"Blob,variant"` Text *string `ic:"Text,variant"` Nat *idl.Nat `ic:"Nat,variant"` Int *idl.Int `ic:"Int,variant"` Array *[]ICRC3Value `ic:"Array,variant"` Map *[]struct { Field0 string `ic:"0" json:"0"` Field1 ICRC3Value `ic:"1" json:"1"` } `ic:"Map,variant"` }
type Icrc21ConsentInfo ¶ added in v0.5.0
type Icrc21ConsentInfo struct { ConsentMessage Icrc21ConsentMessage `ic:"consent_message" json:"consent_message"` Metadata Icrc21ConsentMessageMetadata `ic:"metadata" json:"metadata"` }
type Icrc21ConsentMessage ¶ added in v0.5.0
type Icrc21ConsentMessageMetadata ¶ added in v0.5.0
type Icrc21ConsentMessageRequest ¶ added in v0.5.0
type Icrc21ConsentMessageRequest struct { Method string `ic:"method" json:"method"` Arg []byte `ic:"arg" json:"arg"` UserPreferences Icrc21ConsentMessageSpec `ic:"user_preferences" json:"user_preferences"` }
type Icrc21ConsentMessageResponse ¶ added in v0.5.0
type Icrc21ConsentMessageResponse struct { Ok *Icrc21ConsentInfo `ic:"Ok,variant"` Err *Icrc21Error `ic:"Err,variant"` }
type Icrc21ConsentMessageSpec ¶ added in v0.5.0
type Icrc21ConsentMessageSpec struct { Metadata Icrc21ConsentMessageMetadata `ic:"metadata" json:"metadata"` DeviceSpec *struct { GenericDisplay *idl.Null `ic:"GenericDisplay,variant"` LineDisplay *struct { CharactersPerLine uint16 `ic:"characters_per_line" json:"characters_per_line"` LinesPerPage uint16 `ic:"lines_per_page" json:"lines_per_page"` } `ic:"LineDisplay,variant"` } `ic:"device_spec,omitempty" json:"device_spec,omitempty"` }
type Icrc21Error ¶ added in v0.5.0
type Icrc21Error struct { UnsupportedCanisterCall *Icrc21ErrorInfo `ic:"UnsupportedCanisterCall,variant"` InsufficientPayment *Icrc21ErrorInfo `ic:"InsufficientPayment,variant"` GenericError *struct { ErrorCode idl.Nat `ic:"error_code" json:"error_code"` Description string `ic:"description" json:"description"` } `ic:"GenericError,variant"` }
type Icrc21ErrorInfo ¶ added in v0.5.0
type Icrc21ErrorInfo struct {
Description string `ic:"description" json:"description"`
}
type InitArgs ¶
type InitArgs struct { MintingAccount Account `ic:"minting_account" json:"minting_account"` FeeCollectorAccount *Account `ic:"fee_collector_account,omitempty" json:"fee_collector_account,omitempty"` TransferFee idl.Nat `ic:"transfer_fee" json:"transfer_fee"` Decimals *uint8 `ic:"decimals,omitempty" json:"decimals,omitempty"` MaxMemoLength *uint16 `ic:"max_memo_length,omitempty" json:"max_memo_length,omitempty"` TokenSymbol string `ic:"token_symbol" json:"token_symbol"` TokenName string `ic:"token_name" json:"token_name"` Metadata []struct { Field0 string `ic:"0" json:"0"` Field1 MetadataValue `ic:"1" json:"1"` } `ic:"metadata" json:"metadata"` InitialBalances []struct { Field0 Account `ic:"0" json:"0"` Field1 idl.Nat `ic:"1" json:"1"` } `ic:"initial_balances" json:"initial_balances"` FeatureFlags *FeatureFlags `ic:"feature_flags,omitempty" json:"feature_flags,omitempty"` MaximumNumberOfAccounts *uint64 `ic:"maximum_number_of_accounts,omitempty" json:"maximum_number_of_accounts,omitempty"` AccountsOverflowTrimQuantity *uint64 `ic:"accounts_overflow_trim_quantity,omitempty" json:"accounts_overflow_trim_quantity,omitempty"` ArchiveOptions struct { NumBlocksToArchive uint64 `ic:"num_blocks_to_archive" json:"num_blocks_to_archive"` MaxTransactionsPerResponse *uint64 `ic:"max_transactions_per_response,omitempty" json:"max_transactions_per_response,omitempty"` TriggerThreshold uint64 `ic:"trigger_threshold" json:"trigger_threshold"` MaxMessageSizeBytes *uint64 `ic:"max_message_size_bytes,omitempty" json:"max_message_size_bytes,omitempty"` CyclesForArchiveCreation *uint64 `ic:"cycles_for_archive_creation,omitempty" json:"cycles_for_archive_creation,omitempty"` NodeMaxMemorySizeBytes *uint64 `ic:"node_max_memory_size_bytes,omitempty" json:"node_max_memory_size_bytes,omitempty"` ControllerId principal.Principal `ic:"controller_id" json:"controller_id"` MoreControllerIds *[]principal.Principal `ic:"more_controller_ids,omitempty" json:"more_controller_ids,omitempty"` } `ic:"archive_options" json:"archive_options"` }
type LedgerArg ¶
type LedgerArg struct { Init *InitArgs `ic:"Init,variant"` Upgrade **UpgradeArgs `ic:"Upgrade,variant"` }
type MetadataValue ¶
type QueryArchiveFn ¶
type QueryArchiveFn struct { }
type QueryBlockArchiveFn ¶
type QueryBlockArchiveFn struct { }
type StandardRecord ¶
type Subaccount ¶
type Subaccount = []byte
type Transaction ¶
type Transaction struct { Burn *Burn `ic:"burn,omitempty" json:"burn,omitempty"` Kind string `ic:"kind" json:"kind"` Mint *Mint `ic:"mint,omitempty" json:"mint,omitempty"` Approve *Approve `ic:"approve,omitempty" json:"approve,omitempty"` Timestamp Timestamp `ic:"timestamp" json:"timestamp"` Transfer *Transfer `ic:"transfer,omitempty" json:"transfer,omitempty"` }
type TransactionRange ¶
type TransactionRange struct {
Transactions []Transaction `ic:"transactions" json:"transactions"`
}
type Transfer ¶
type Transfer struct { To Account `ic:"to" json:"to"` Fee *idl.Nat `ic:"fee,omitempty" json:"fee,omitempty"` From Account `ic:"from" json:"from"` Memo *[]byte `ic:"memo,omitempty" json:"memo,omitempty"` CreatedAtTime *Timestamp `ic:"created_at_time,omitempty" json:"created_at_time,omitempty"` Amount idl.Nat `ic:"amount" json:"amount"` Spender *Account `ic:"spender,omitempty" json:"spender,omitempty"` }
type TransferArg ¶
type TransferArg struct { FromSubaccount *Subaccount `ic:"from_subaccount,omitempty" json:"from_subaccount,omitempty"` To Account `ic:"to" json:"to"` Amount Tokens `ic:"amount" json:"amount"` Fee *Tokens `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 Tokens `ic:"expected_fee" json:"expected_fee"` } `ic:"BadFee,variant"` BadBurn *struct { MinBurnAmount Tokens `ic:"min_burn_amount" json:"min_burn_amount"` } `ic:"BadBurn,variant"` InsufficientFunds *struct { Balance Tokens `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 BlockIndex `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"` }
type TransferFromArgs ¶
type TransferFromArgs struct { SpenderSubaccount *Subaccount `ic:"spender_subaccount,omitempty" json:"spender_subaccount,omitempty"` From Account `ic:"from" json:"from"` To Account `ic:"to" json:"to"` Amount Tokens `ic:"amount" json:"amount"` Fee *Tokens `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 TransferFromError ¶
type TransferFromError struct { BadFee *struct { ExpectedFee Tokens `ic:"expected_fee" json:"expected_fee"` } `ic:"BadFee,variant"` BadBurn *struct { MinBurnAmount Tokens `ic:"min_burn_amount" json:"min_burn_amount"` } `ic:"BadBurn,variant"` InsufficientFunds *struct { Balance Tokens `ic:"balance" json:"balance"` } `ic:"InsufficientFunds,variant"` InsufficientAllowance *struct { Allowance Tokens `ic:"allowance" json:"allowance"` } `ic:"InsufficientAllowance,variant"` TooOld *idl.Null `ic:"TooOld,variant"` CreatedInFuture *struct { LedgerTime Timestamp `ic:"ledger_time" json:"ledger_time"` } `ic:"CreatedInFuture,variant"` Duplicate *struct { DuplicateOf BlockIndex `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"` }
type TransferFromResult ¶
type TransferFromResult struct { Ok *BlockIndex `ic:"Ok,variant"` Err *TransferFromError `ic:"Err,variant"` }
type TransferResult ¶
type TransferResult struct { Ok *BlockIndex `ic:"Ok,variant"` Err *TransferError `ic:"Err,variant"` }
type UpgradeArgs ¶
type UpgradeArgs struct { Metadata *[]struct { Field0 string `ic:"0" json:"0"` Field1 MetadataValue `ic:"1" json:"1"` } `ic:"metadata,omitempty" json:"metadata,omitempty"` TokenSymbol *string `ic:"token_symbol,omitempty" json:"token_symbol,omitempty"` TokenName *string `ic:"token_name,omitempty" json:"token_name,omitempty"` TransferFee *idl.Nat `ic:"transfer_fee,omitempty" json:"transfer_fee,omitempty"` ChangeFeeCollector *ChangeFeeCollector `ic:"change_fee_collector,omitempty" json:"change_fee_collector,omitempty"` MaxMemoLength *uint16 `ic:"max_memo_length,omitempty" json:"max_memo_length,omitempty"` FeatureFlags *FeatureFlags `ic:"feature_flags,omitempty" json:"feature_flags,omitempty"` AccountsOverflowTrimQuantity *uint64 `ic:"accounts_overflow_trim_quantity,omitempty" json:"accounts_overflow_trim_quantity,omitempty"` ChangeArchiveOptions *ChangeArchiveOptions `ic:"change_archive_options,omitempty" json:"change_archive_options,omitempty"` }