ledger

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

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

type Agent struct {
	*agent.Agent
	CanisterId principal.Principal
}

Agent is a client for the "ledger" canister.

func NewAgent

func NewAgent(canisterId principal.Principal, config agent.Config) (*Agent, error)

NewAgent creates a new agent 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) Icrc1BalanceOf

func (a Agent) Icrc1BalanceOf(arg0 Account) (*Tokens, error)

Icrc1BalanceOf calls the "icrc1_balance_of" method on the "ledger" canister.

func (Agent) Icrc1Decimals

func (a Agent) Icrc1Decimals() (*uint8, error)

Icrc1Decimals calls the "icrc1_decimals" method on the "ledger" canister.

func (Agent) Icrc1Fee

func (a Agent) Icrc1Fee() (*Tokens, error)

Icrc1Fee calls the "icrc1_fee" 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

func (a Agent) Icrc1MintingAccount() (**Account, error)

Icrc1MintingAccount calls the "icrc1_minting_account" method on the "ledger" canister.

func (Agent) Icrc1Name

func (a Agent) Icrc1Name() (*string, error)

Icrc1Name calls the "icrc1_name" 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

func (a Agent) Icrc1Symbol() (*string, error)

Icrc1Symbol calls the "icrc1_symbol" method on the "ledger" canister.

func (Agent) Icrc1TotalSupply

func (a Agent) Icrc1TotalSupply() (*Tokens, error)

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) 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.

func (Agent) Icrc3SupportedBlockTypes

func (a Agent) Icrc3SupportedBlockTypes() (*[]struct {
	BlockType string `ic:"block_type" json:"block_type"`
	Url       string `ic:"url" json:"url"`
}, error)

Icrc3SupportedBlockTypes calls the "icrc3_supported_block_types" method on the "ledger" canister.

type Allowance

type Allowance struct {
	Allowance idl.Nat    `ic:"allowance" json:"allowance"`
	ExpiresAt *Timestamp `ic:"expires_at,omitempty" json:"expires_at,omitempty"`
}

type AllowanceArgs

type AllowanceArgs struct {
	Account Account `ic:"account" json:"account"`
	Spender Account `ic:"spender" json:"spender"`
}

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"`
	TemporarilyUnavailable *idl.Null `ic:"TemporarilyUnavailable,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 Block

type Block = Value

type BlockIndex

type BlockIndex = idl.Nat

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 ChangeFeeCollector struct {
	Unset *idl.Null `ic:"Unset,variant"`
	SetTo *Account  `ic:"SetTo,variant"`
}

type DataCertificate

type DataCertificate struct {
	Certificate *[]byte `ic:"certificate,omitempty" json:"certificate,omitempty"`
	HashTree    []byte  `ic:"hash_tree" json:"hash_tree"`
}

type Duration

type Duration = uint64

type FeatureFlags

type FeatureFlags struct {
	Icrc2 bool `ic:"icrc2" json:"icrc2"`
}

type GetArchivesArgs

type GetArchivesArgs struct {
	From *principal.Principal `ic:"from,omitempty" json:"from,omitempty"`
}

type GetArchivesResult

type GetArchivesResult = []struct {
	CanisterId principal.Principal `ic:"canister_id" json:"canister_id"`
	Start      idl.Nat             `ic:"start" json:"start"`
	End        idl.Nat             `ic:"end" json:"end"`
}

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 GetTransactionsRequest struct {
	Start  TxIndex `ic:"start" json:"start"`
	Length idl.Nat `ic:"length" json:"length"`
}

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 HttpRequest struct {
	Url     string `ic:"url" json:"url"`
	Method  string `ic:"method" json:"method"`
	Body    []byte `ic:"body" json:"body"`
	Headers []struct {
		Field0 string `ic:"0" json:"0"`
		Field1 string `ic:"1" json:"1"`
	} `ic:"headers" json:"headers"`
}

type HttpResponse

type HttpResponse struct {
	Body    []byte `ic:"body" json:"body"`
	Headers []struct {
		Field0 string `ic:"0" json:"0"`
		Field1 string `ic:"1" json:"1"`
	} `ic:"headers" json:"headers"`
	StatusCode uint16 `ic:"status_code" json:"status_code"`
}

type ICRC3DataCertificate

type ICRC3DataCertificate struct {
	Certificate []byte `ic:"certificate" json:"certificate"`
	HashTree    []byte `ic:"hash_tree" json:"hash_tree"`
}

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 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 Map

type Map = []struct {
	Field0 string `ic:"0" json:"0"`
	Field1 Value  `ic:"1" json:"1"`
}

type MetadataValue

type MetadataValue struct {
	Nat  *idl.Nat `ic:"Nat,variant"`
	Int  *idl.Int `ic:"Int,variant"`
	Text *string  `ic:"Text,variant"`
	Blob *[]byte  `ic:"Blob,variant"`
}

type Mint

type Mint struct {
	To            Account    `ic:"to" json:"to"`
	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"`
}

type QueryArchiveFn

type QueryArchiveFn struct {
}

type QueryBlockArchiveFn

type QueryBlockArchiveFn struct {
}

type StandardRecord

type StandardRecord struct {
	Url  string `ic:"url" json:"url"`
	Name string `ic:"name" json:"name"`
}

type Subaccount

type Subaccount = []byte

type Timestamp

type Timestamp = uint64

type Tokens

type Tokens = idl.Nat

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"`
	TemporarilyUnavailable *idl.Null `ic:"TemporarilyUnavailable,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"`
	TemporarilyUnavailable *idl.Null `ic:"TemporarilyUnavailable,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 TxIndex

type TxIndex = idl.Nat

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"`
	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"`
	ChangeArchiveOptions         *ChangeArchiveOptions `ic:"change_archive_options,omitempty" json:"change_archive_options,omitempty"`
}

type Value

type Value struct {
	Blob  *[]byte  `ic:"Blob,variant"`
	Text  *string  `ic:"Text,variant"`
	Nat   *idl.Nat `ic:"Nat,variant"`
	Nat64 *uint64  `ic:"Nat64,variant"`
	Int   *idl.Int `ic:"Int,variant"`
	Array *[]Value `ic:"Array,variant"`
	Map   *Map     `ic:"Map,variant"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL