cmc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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

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 NewAgent

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

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

type Cycles = idl.Nat

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 ExchangeRateCanister = struct {
	Set   *principal.Principal `ic:"Set,variant"`
	Unset *struct{}            `ic:"Unset,variant"`
}

type IcpXdrConversionRate

type IcpXdrConversionRate = struct {
	TimestampSeconds   uint64 `ic:"timestamp_seconds"`
	XdrPermyriadPerIcp uint64 `ic:"xdr_permyriad_per_icp"`
}

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"`
}

Jump to

Keyboard shortcuts

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