Documentation
¶
Overview ¶
Package cmc provides a client for the "cmc" canister. Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go.
Index ¶
- type AccountIdentifier
- type Agent
- func (a Agent) CreateCanister(arg0 CreateCanisterArg) (*CreateCanisterResult, error)
- func (a Agent) GetBuildMetadata() (*string, error)
- func (a Agent) GetIcpXdrConversionRate() (*IcpXdrConversionRateResponse, error)
- func (a Agent) GetPrincipalsAuthorizedToCreateCanistersToSubnets() (*PrincipalsAuthorizedToCreateCanistersToSubnetsResponse, error)
- func (a Agent) GetSubnetTypesToSubnets() (*SubnetTypesToSubnetsResponse, error)
- func (a Agent) NotifyCreateCanister(arg0 NotifyCreateCanisterArg) (*NotifyCreateCanisterResult, error)
- func (a Agent) NotifyMintCycles(arg0 NotifyMintCyclesArg) (*NotifyMintCyclesResult, error)
- func (a Agent) NotifyTopUp(arg0 NotifyTopUpArg) (*NotifyTopUpResult, error)
- type BlockIndex
- type CanisterSettings
- type CreateCanisterArg
- type CreateCanisterError
- type CreateCanisterResult
- type Cycles
- type CyclesCanisterInitPayload
- type ExchangeRateCanister
- type IcpXdrConversionRate
- type IcpXdrConversionRateResponse
- type LogVisibility
- type Memo
- type NotifyCreateCanisterArg
- type NotifyCreateCanisterResult
- type NotifyError
- type NotifyMintCyclesArg
- type NotifyMintCyclesResult
- type NotifyMintCyclesSuccess
- type NotifyTopUpArg
- type NotifyTopUpResult
- type PrincipalsAuthorizedToCreateCanistersToSubnetsResponse
- type Subaccount
- type SubnetFilter
- type SubnetSelection
- type SubnetTypesToSubnetsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountIdentifier ¶
type AccountIdentifier = string
type Agent ¶
Agent is a client for the "cmc" canister.
func (Agent) CreateCanister ¶ added in v0.3.4
func (a Agent) CreateCanister(arg0 CreateCanisterArg) (*CreateCanisterResult, error)
CreateCanister calls the "create_canister" method on the "cmc" canister.
func (Agent) GetBuildMetadata ¶ added in v0.3.4
GetBuildMetadata calls the "get_build_metadata" method on the "cmc" canister.
func (Agent) GetIcpXdrConversionRate ¶
func (a Agent) GetIcpXdrConversionRate() (*IcpXdrConversionRateResponse, error)
GetIcpXdrConversionRate calls the "get_icp_xdr_conversion_rate" method on the "cmc" canister.
func (Agent) GetPrincipalsAuthorizedToCreateCanistersToSubnets ¶ added in v0.3.4
func (a Agent) GetPrincipalsAuthorizedToCreateCanistersToSubnets() (*PrincipalsAuthorizedToCreateCanistersToSubnetsResponse, error)
GetPrincipalsAuthorizedToCreateCanistersToSubnets calls the "get_principals_authorized_to_create_canisters_to_subnets" method on the "cmc" canister.
func (Agent) GetSubnetTypesToSubnets ¶
func (a Agent) GetSubnetTypesToSubnets() (*SubnetTypesToSubnetsResponse, error)
GetSubnetTypesToSubnets calls the "get_subnet_types_to_subnets" method on the "cmc" canister.
func (Agent) NotifyCreateCanister ¶
func (a Agent) NotifyCreateCanister(arg0 NotifyCreateCanisterArg) (*NotifyCreateCanisterResult, error)
NotifyCreateCanister calls the "notify_create_canister" method on the "cmc" canister.
func (Agent) NotifyMintCycles ¶ added in v0.3.4
func (a Agent) NotifyMintCycles(arg0 NotifyMintCyclesArg) (*NotifyMintCyclesResult, error)
NotifyMintCycles calls the "notify_mint_cycles" method on the "cmc" canister.
func (Agent) NotifyTopUp ¶
func (a Agent) NotifyTopUp(arg0 NotifyTopUpArg) (*NotifyTopUpResult, error)
NotifyTopUp calls the "notify_top_up" method on the "cmc" canister.
type BlockIndex ¶
type BlockIndex = uint64
type CanisterSettings ¶ added in v0.3.4
type CanisterSettings struct { Controller *principal.Principal `ic:"controller,omitempty" json:"controller,omitempty"` Controllers *[]principal.Principal `ic:"controllers,omitempty" json:"controllers,omitempty"` ComputeAllocation *idl.Nat `ic:"compute_allocation,omitempty" json:"compute_allocation,omitempty"` MemoryAllocation *idl.Nat `ic:"memory_allocation,omitempty" json:"memory_allocation,omitempty"` FreezingThreshold *idl.Nat `ic:"freezing_threshold,omitempty" json:"freezing_threshold,omitempty"` ReservedCyclesLimit *idl.Nat `ic:"reserved_cycles_limit,omitempty" json:"reserved_cycles_limit,omitempty"` LogVisibility *LogVisibility `ic:"log_visibility,omitempty" json:"log_visibility,omitempty"` WasmMemoryLimit *idl.Nat `ic:"wasm_memory_limit,omitempty" json:"wasm_memory_limit,omitempty"` }
type CreateCanisterArg ¶ added in v0.3.4
type CreateCanisterArg struct { Settings *CanisterSettings `ic:"settings,omitempty" json:"settings,omitempty"` SubnetType *string `ic:"subnet_type,omitempty" json:"subnet_type,omitempty"` SubnetSelection *SubnetSelection `ic:"subnet_selection,omitempty" json:"subnet_selection,omitempty"` }
type CreateCanisterError ¶ added in v0.3.4
type CreateCanisterError struct { Refunded *struct { RefundAmount idl.Nat `ic:"refund_amount" json:"refund_amount"` CreateError string `ic:"create_error" json:"create_error"` } `ic:"Refunded,variant"` RefundFailed *struct { CreateError string `ic:"create_error" json:"create_error"` RefundError string `ic:"refund_error" json:"refund_error"` } `ic:"RefundFailed,variant"` }
type CreateCanisterResult ¶ added in v0.3.4
type CreateCanisterResult struct { Ok *principal.Principal `ic:"Ok,variant"` Err *CreateCanisterError `ic:"Err,variant"` }
type CyclesCanisterInitPayload ¶
type CyclesCanisterInitPayload struct { LedgerCanisterId *principal.Principal `ic:"ledger_canister_id,omitempty" json:"ledger_canister_id,omitempty"` GovernanceCanisterId *principal.Principal `ic:"governance_canister_id,omitempty" json:"governance_canister_id,omitempty"` MintingAccountId *AccountIdentifier `ic:"minting_account_id,omitempty" json:"minting_account_id,omitempty"` LastPurgedNotification *uint64 `ic:"last_purged_notification,omitempty" json:"last_purged_notification,omitempty"` ExchangeRateCanister *ExchangeRateCanister `ic:"exchange_rate_canister,omitempty" json:"exchange_rate_canister,omitempty"` CyclesLedgerCanisterId *principal.Principal `ic:"cycles_ledger_canister_id,omitempty" json:"cycles_ledger_canister_id,omitempty"` }
type ExchangeRateCanister ¶
type IcpXdrConversionRate ¶
type IcpXdrConversionRateResponse ¶
type IcpXdrConversionRateResponse struct { Data IcpXdrConversionRate `ic:"data" json:"data"` HashTree []byte `ic:"hash_tree" json:"hash_tree"` Certificate []byte `ic:"certificate" json:"certificate"` }
type LogVisibility ¶ added in v0.3.4
type NotifyCreateCanisterArg ¶
type NotifyCreateCanisterArg struct { BlockIndex BlockIndex `ic:"block_index" json:"block_index"` Controller principal.Principal `ic:"controller" json:"controller"` SubnetType *string `ic:"subnet_type,omitempty" json:"subnet_type,omitempty"` SubnetSelection *SubnetSelection `ic:"subnet_selection,omitempty" json:"subnet_selection,omitempty"` Settings *CanisterSettings `ic:"settings,omitempty" json:"settings,omitempty"` }
type NotifyCreateCanisterResult ¶
type NotifyCreateCanisterResult struct { Ok *principal.Principal `ic:"Ok,variant"` Err *NotifyError `ic:"Err,variant"` }
type NotifyError ¶
type NotifyError struct { Refunded *struct { Reason string `ic:"reason" json:"reason"` BlockIndex *BlockIndex `ic:"block_index,omitempty" json:"block_index,omitempty"` } `ic:"Refunded,variant"` Processing *idl.Null `ic:"Processing,variant"` TransactionTooOld *BlockIndex `ic:"TransactionTooOld,variant"` InvalidTransaction *string `ic:"InvalidTransaction,variant"` Other *struct { ErrorCode uint64 `ic:"error_code" json:"error_code"` ErrorMessage string `ic:"error_message" json:"error_message"` } `ic:"Other,variant"` }
type NotifyMintCyclesArg ¶ added in v0.3.4
type NotifyMintCyclesArg struct { BlockIndex BlockIndex `ic:"block_index" json:"block_index"` ToSubaccount Subaccount `ic:"to_subaccount" json:"to_subaccount"` DepositMemo Memo `ic:"deposit_memo" json:"deposit_memo"` }
type NotifyMintCyclesResult ¶ added in v0.3.4
type NotifyMintCyclesResult struct { Ok *NotifyMintCyclesSuccess `ic:"Ok,variant"` Err *NotifyError `ic:"Err,variant"` }
type NotifyMintCyclesSuccess ¶ added in v0.3.4
type NotifyTopUpArg ¶
type NotifyTopUpArg struct { BlockIndex BlockIndex `ic:"block_index" json:"block_index"` CanisterId principal.Principal `ic:"canister_id" json:"canister_id"` }
type NotifyTopUpResult ¶
type NotifyTopUpResult struct { Ok *Cycles `ic:"Ok,variant"` Err *NotifyError `ic:"Err,variant"` }
type PrincipalsAuthorizedToCreateCanistersToSubnetsResponse ¶ added in v0.3.4
type Subaccount ¶ added in v0.3.4
type Subaccount = *[]byte
type SubnetFilter ¶ added in v0.3.4
type SubnetFilter struct {
SubnetType *string `ic:"subnet_type,omitempty" json:"subnet_type,omitempty"`
}
type SubnetSelection ¶ added in v0.3.4
type SubnetSelection struct { Subnet *struct { Subnet principal.Principal `ic:"subnet" json:"subnet"` } `ic:"Subnet,variant"` Filter *SubnetFilter `ic:"Filter,variant"` }