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) GetIcpXdrConversionRate() (*IcpXdrConversionRateResponse, error)
- func (a Agent) GetSubnetTypesToSubnets() (*SubnetTypesToSubnetsResponse, error)
- func (a Agent) NotifyCreateCanister(arg0 NotifyCreateCanisterArg) (*NotifyCreateCanisterResult, error)
- func (a Agent) NotifyTopUp(arg0 NotifyTopUpArg) (*NotifyTopUpResult, error)
- type BlockIndex
- type Cycles
- type CyclesCanisterInitPayload
- type ExchangeRateCanister
- type IcpXdrConversionRate
- type IcpXdrConversionRateResponse
- type NotifyCreateCanisterArg
- type NotifyCreateCanisterResult
- type NotifyError
- type NotifyTopUpArg
- type NotifyTopUpResult
- type SubnetTypesToSubnetsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountIdentifier ¶
type AccountIdentifier = struct {
Bytes []byte `ic:"bytes"`
}
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is a client for 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) 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) 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 CyclesCanisterInitPayload ¶
type CyclesCanisterInitPayload = struct {
LedgerCanisterId *principal.Principal `ic:"ledger_canister_id,omitempty"`
GovernanceCanisterId *principal.Principal `ic:"governance_canister_id,omitempty"`
MintingAccountId *AccountIdentifier `ic:"minting_account_id,omitempty"`
LastPurgedNotification *uint64 `ic:"last_purged_notification,omitempty"`
ExchangeRateCanister *ExchangeRateCanister `ic:"exchange_rate_canister,omitempty"`
}
type ExchangeRateCanister ¶
type IcpXdrConversionRate ¶
type IcpXdrConversionRateResponse ¶
type IcpXdrConversionRateResponse = struct {
Data IcpXdrConversionRate `ic:"data"`
HashTree []byte `ic:"hash_tree"`
Certificate []byte `ic:"certificate"`
}
type NotifyCreateCanisterArg ¶
type NotifyCreateCanisterArg = struct {
BlockIndex BlockIndex `ic:"block_index"`
Controller principal.Principal `ic:"controller"`
SubnetType *string `ic:"subnet_type,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"`
BlockIndex *BlockIndex `ic:"block_index,omitempty"`
} `ic:"Refunded,variant"`
Processing *struct{} `ic:"Processing,variant"`
TransactionTooOld *BlockIndex `ic:"TransactionTooOld,variant"`
InvalidTransaction *string `ic:"InvalidTransaction,variant"`
Other *struct {
ErrorCode uint64 `ic:"error_code"`
ErrorMessage string `ic:"error_message"`
} `ic:"Other,variant"`
}
type NotifyTopUpArg ¶
type NotifyTopUpArg = struct {
BlockIndex BlockIndex `ic:"block_index"`
CanisterId principal.Principal `ic:"canister_id"`
}
type NotifyTopUpResult ¶
type NotifyTopUpResult = struct {
Ok *Cycles `ic:"Ok,variant"`
Err *NotifyError `ic:"Err,variant"`
}
type SubnetTypesToSubnetsResponse ¶
type SubnetTypesToSubnetsResponse = struct {
Data []struct {
// contains filtered or unexported fields
} `ic:"data"`
}
Click to show internal directories.
Click to hide internal directories.