ic

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 ic provides a client for the "ic" 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 Agent

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

Agent is a client for the "ic" canister.

func NewAgent

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

NewAgent creates a new agent for the "ic" canister.

func (Agent) BitcoinGetBalance

func (a Agent) BitcoinGetBalance(arg0 BitcoinGetBalanceArgs) (*BitcoinGetBalanceResult, error)

BitcoinGetBalance calls the "bitcoin_get_balance" method on the "ic" canister.

func (Agent) BitcoinGetBalanceCall added in v0.4.3

func (a Agent) BitcoinGetBalanceCall(arg0 BitcoinGetBalanceArgs) (*agent.Call, error)

BitcoinGetBalanceCall creates an indirect representation of the "bitcoin_get_balance" method on the "ic" canister.

func (Agent) BitcoinGetBalanceQuery

func (a Agent) BitcoinGetBalanceQuery(arg0 BitcoinGetBalanceQueryArgs) (*BitcoinGetBalanceQueryResult, error)

BitcoinGetBalanceQuery calls the "bitcoin_get_balance_query" method on the "ic" canister.

func (Agent) BitcoinGetBalanceQueryQuery added in v0.4.3

func (a Agent) BitcoinGetBalanceQueryQuery(arg0 BitcoinGetBalanceQueryArgs) (*agent.Query, error)

BitcoinGetBalanceQueryQuery creates an indirect representation of the "bitcoin_get_balance_query" method on the "ic" canister.

func (Agent) BitcoinGetCurrentFeePercentiles

func (a Agent) BitcoinGetCurrentFeePercentiles(arg0 BitcoinGetCurrentFeePercentilesArgs) (*BitcoinGetCurrentFeePercentilesResult, error)

BitcoinGetCurrentFeePercentiles calls the "bitcoin_get_current_fee_percentiles" method on the "ic" canister.

func (Agent) BitcoinGetCurrentFeePercentilesCall added in v0.4.3

func (a Agent) BitcoinGetCurrentFeePercentilesCall(arg0 BitcoinGetCurrentFeePercentilesArgs) (*agent.Call, error)

BitcoinGetCurrentFeePercentilesCall creates an indirect representation of the "bitcoin_get_current_fee_percentiles" method on the "ic" canister.

func (Agent) BitcoinGetUtxos

func (a Agent) BitcoinGetUtxos(arg0 BitcoinGetUtxosArgs) (*BitcoinGetUtxosResult, error)

BitcoinGetUtxos calls the "bitcoin_get_utxos" method on the "ic" canister.

func (Agent) BitcoinGetUtxosCall added in v0.4.3

func (a Agent) BitcoinGetUtxosCall(arg0 BitcoinGetUtxosArgs) (*agent.Call, error)

BitcoinGetUtxosCall creates an indirect representation of the "bitcoin_get_utxos" method on the "ic" canister.

func (Agent) BitcoinGetUtxosQuery

func (a Agent) BitcoinGetUtxosQuery(arg0 BitcoinGetUtxosQueryArgs) (*BitcoinGetUtxosQueryResult, error)

BitcoinGetUtxosQuery calls the "bitcoin_get_utxos_query" method on the "ic" canister.

func (Agent) BitcoinGetUtxosQueryQuery added in v0.4.3

func (a Agent) BitcoinGetUtxosQueryQuery(arg0 BitcoinGetUtxosQueryArgs) (*agent.Query, error)

BitcoinGetUtxosQueryQuery creates an indirect representation of the "bitcoin_get_utxos_query" method on the "ic" canister.

func (Agent) BitcoinSendTransaction

func (a Agent) BitcoinSendTransaction(arg0 BitcoinSendTransactionArgs) error

BitcoinSendTransaction calls the "bitcoin_send_transaction" method on the "ic" canister.

func (Agent) BitcoinSendTransactionCall added in v0.4.3

func (a Agent) BitcoinSendTransactionCall(arg0 BitcoinSendTransactionArgs) (*agent.Call, error)

BitcoinSendTransactionCall creates an indirect representation of the "bitcoin_send_transaction" method on the "ic" canister.

func (Agent) CanisterInfo

func (a Agent) CanisterInfo(arg0 CanisterInfoArgs) (*CanisterInfoResult, error)

CanisterInfo calls the "canister_info" method on the "ic" canister.

func (Agent) CanisterInfoCall added in v0.4.3

func (a Agent) CanisterInfoCall(arg0 CanisterInfoArgs) (*agent.Call, error)

CanisterInfoCall creates an indirect representation of the "canister_info" method on the "ic" canister.

func (Agent) CanisterStatus

func (a Agent) CanisterStatus(arg0 CanisterStatusArgs) (*CanisterStatusResult, error)

CanisterStatus calls the "canister_status" method on the "ic" canister.

func (Agent) CanisterStatusCall added in v0.4.3

func (a Agent) CanisterStatusCall(arg0 CanisterStatusArgs) (*agent.Call, error)

CanisterStatusCall creates an indirect representation of the "canister_status" method on the "ic" canister.

func (Agent) ClearChunkStore

func (a Agent) ClearChunkStore(arg0 ClearChunkStoreArgs) error

ClearChunkStore calls the "clear_chunk_store" method on the "ic" canister.

func (Agent) ClearChunkStoreCall added in v0.4.3

func (a Agent) ClearChunkStoreCall(arg0 ClearChunkStoreArgs) (*agent.Call, error)

ClearChunkStoreCall creates an indirect representation of the "clear_chunk_store" method on the "ic" canister.

func (Agent) CreateCanister

func (a Agent) CreateCanister(arg0 CreateCanisterArgs) (*CreateCanisterResult, error)

CreateCanister calls the "create_canister" method on the "ic" canister.

func (Agent) CreateCanisterCall added in v0.4.3

func (a Agent) CreateCanisterCall(arg0 CreateCanisterArgs) (*agent.Call, error)

CreateCanisterCall creates an indirect representation of the "create_canister" method on the "ic" canister.

func (Agent) DeleteCanister

func (a Agent) DeleteCanister(arg0 DeleteCanisterArgs) error

DeleteCanister calls the "delete_canister" method on the "ic" canister.

func (Agent) DeleteCanisterCall added in v0.4.3

func (a Agent) DeleteCanisterCall(arg0 DeleteCanisterArgs) (*agent.Call, error)

DeleteCanisterCall creates an indirect representation of the "delete_canister" method on the "ic" canister.

func (Agent) DepositCycles

func (a Agent) DepositCycles(arg0 DepositCyclesArgs) error

DepositCycles calls the "deposit_cycles" method on the "ic" canister.

func (Agent) DepositCyclesCall added in v0.4.3

func (a Agent) DepositCyclesCall(arg0 DepositCyclesArgs) (*agent.Call, error)

DepositCyclesCall creates an indirect representation of the "deposit_cycles" method on the "ic" canister.

func (Agent) EcdsaPublicKey

func (a Agent) EcdsaPublicKey(arg0 EcdsaPublicKeyArgs) (*EcdsaPublicKeyResult, error)

EcdsaPublicKey calls the "ecdsa_public_key" method on the "ic" canister.

func (Agent) EcdsaPublicKeyCall added in v0.4.3

func (a Agent) EcdsaPublicKeyCall(arg0 EcdsaPublicKeyArgs) (*agent.Call, error)

EcdsaPublicKeyCall creates an indirect representation of the "ecdsa_public_key" method on the "ic" canister.

func (Agent) HttpRequest

func (a Agent) HttpRequest(arg0 HttpRequestArgs) (*HttpRequestResult, error)

HttpRequest calls the "http_request" method on the "ic" canister.

func (Agent) HttpRequestCall added in v0.4.3

func (a Agent) HttpRequestCall(arg0 HttpRequestArgs) (*agent.Call, error)

HttpRequestCall creates an indirect representation of the "http_request" method on the "ic" canister.

func (Agent) InstallChunkedCode

func (a Agent) InstallChunkedCode(arg0 InstallChunkedCodeArgs) error

InstallChunkedCode calls the "install_chunked_code" method on the "ic" canister.

func (Agent) InstallChunkedCodeCall added in v0.4.3

func (a Agent) InstallChunkedCodeCall(arg0 InstallChunkedCodeArgs) (*agent.Call, error)

InstallChunkedCodeCall creates an indirect representation of the "install_chunked_code" method on the "ic" canister.

func (Agent) InstallCode

func (a Agent) InstallCode(arg0 InstallCodeArgs) error

InstallCode calls the "install_code" method on the "ic" canister.

func (Agent) InstallCodeCall added in v0.4.3

func (a Agent) InstallCodeCall(arg0 InstallCodeArgs) (*agent.Call, error)

InstallCodeCall creates an indirect representation of the "install_code" method on the "ic" canister.

func (Agent) NodeMetricsHistory

func (a Agent) NodeMetricsHistory(arg0 NodeMetricsHistoryArgs) (*NodeMetricsHistoryResult, error)

NodeMetricsHistory calls the "node_metrics_history" method on the "ic" canister.

func (Agent) NodeMetricsHistoryCall added in v0.4.3

func (a Agent) NodeMetricsHistoryCall(arg0 NodeMetricsHistoryArgs) (*agent.Call, error)

NodeMetricsHistoryCall creates an indirect representation of the "node_metrics_history" method on the "ic" canister.

func (Agent) ProvisionalCreateCanisterWithCycles

func (a Agent) ProvisionalCreateCanisterWithCycles(arg0 ProvisionalCreateCanisterWithCyclesArgs) (*ProvisionalCreateCanisterWithCyclesResult, error)

ProvisionalCreateCanisterWithCycles calls the "provisional_create_canister_with_cycles" method on the "ic" canister.

func (Agent) ProvisionalCreateCanisterWithCyclesCall added in v0.4.3

func (a Agent) ProvisionalCreateCanisterWithCyclesCall(arg0 ProvisionalCreateCanisterWithCyclesArgs) (*agent.Call, error)

ProvisionalCreateCanisterWithCyclesCall creates an indirect representation of the "provisional_create_canister_with_cycles" method on the "ic" canister.

func (Agent) ProvisionalTopUpCanister

func (a Agent) ProvisionalTopUpCanister(arg0 ProvisionalTopUpCanisterArgs) error

ProvisionalTopUpCanister calls the "provisional_top_up_canister" method on the "ic" canister.

func (Agent) ProvisionalTopUpCanisterCall added in v0.4.3

func (a Agent) ProvisionalTopUpCanisterCall(arg0 ProvisionalTopUpCanisterArgs) (*agent.Call, error)

ProvisionalTopUpCanisterCall creates an indirect representation of the "provisional_top_up_canister" method on the "ic" canister.

func (Agent) RawRand

func (a Agent) RawRand() (*RawRandResult, error)

RawRand calls the "raw_rand" method on the "ic" canister.

func (Agent) RawRandCall added in v0.4.3

func (a Agent) RawRandCall() (*agent.Call, error)

RawRandCall creates an indirect representation of the "raw_rand" method on the "ic" canister.

func (Agent) SignWithEcdsa

func (a Agent) SignWithEcdsa(arg0 SignWithEcdsaArgs) (*SignWithEcdsaResult, error)

SignWithEcdsa calls the "sign_with_ecdsa" method on the "ic" canister.

func (Agent) SignWithEcdsaCall added in v0.4.3

func (a Agent) SignWithEcdsaCall(arg0 SignWithEcdsaArgs) (*agent.Call, error)

SignWithEcdsaCall creates an indirect representation of the "sign_with_ecdsa" method on the "ic" canister.

func (Agent) StartCanister

func (a Agent) StartCanister(arg0 StartCanisterArgs) error

StartCanister calls the "start_canister" method on the "ic" canister.

func (Agent) StartCanisterCall added in v0.4.3

func (a Agent) StartCanisterCall(arg0 StartCanisterArgs) (*agent.Call, error)

StartCanisterCall creates an indirect representation of the "start_canister" method on the "ic" canister.

func (Agent) StopCanister

func (a Agent) StopCanister(arg0 StopCanisterArgs) error

StopCanister calls the "stop_canister" method on the "ic" canister.

func (Agent) StopCanisterCall added in v0.4.3

func (a Agent) StopCanisterCall(arg0 StopCanisterArgs) (*agent.Call, error)

StopCanisterCall creates an indirect representation of the "stop_canister" method on the "ic" canister.

func (Agent) StoredChunks

func (a Agent) StoredChunks(arg0 StoredChunksArgs) (*StoredChunksResult, error)

StoredChunks calls the "stored_chunks" method on the "ic" canister.

func (Agent) StoredChunksCall added in v0.4.3

func (a Agent) StoredChunksCall(arg0 StoredChunksArgs) (*agent.Call, error)

StoredChunksCall creates an indirect representation of the "stored_chunks" method on the "ic" canister.

func (Agent) UninstallCode

func (a Agent) UninstallCode(arg0 UninstallCodeArgs) error

UninstallCode calls the "uninstall_code" method on the "ic" canister.

func (Agent) UninstallCodeCall added in v0.4.3

func (a Agent) UninstallCodeCall(arg0 UninstallCodeArgs) (*agent.Call, error)

UninstallCodeCall creates an indirect representation of the "uninstall_code" method on the "ic" canister.

func (Agent) UpdateSettings

func (a Agent) UpdateSettings(arg0 UpdateSettingsArgs) error

UpdateSettings calls the "update_settings" method on the "ic" canister.

func (Agent) UpdateSettingsCall added in v0.4.3

func (a Agent) UpdateSettingsCall(arg0 UpdateSettingsArgs) (*agent.Call, error)

UpdateSettingsCall creates an indirect representation of the "update_settings" method on the "ic" canister.

func (Agent) UploadChunk

func (a Agent) UploadChunk(arg0 UploadChunkArgs) (*UploadChunkResult, error)

UploadChunk calls the "upload_chunk" method on the "ic" canister.

func (Agent) UploadChunkCall added in v0.4.3

func (a Agent) UploadChunkCall(arg0 UploadChunkArgs) (*agent.Call, error)

UploadChunkCall creates an indirect representation of the "upload_chunk" method on the "ic" canister.

type BitcoinAddress

type BitcoinAddress = string

type BitcoinGetBalanceArgs

type BitcoinGetBalanceArgs struct {
	Address          BitcoinAddress `ic:"address" json:"address"`
	Network          BitcoinNetwork `ic:"network" json:"network"`
	MinConfirmations *uint32        `ic:"min_confirmations,omitempty" json:"min_confirmations,omitempty"`
}

type BitcoinGetBalanceQueryArgs

type BitcoinGetBalanceQueryArgs struct {
	Address          BitcoinAddress `ic:"address" json:"address"`
	Network          BitcoinNetwork `ic:"network" json:"network"`
	MinConfirmations *uint32        `ic:"min_confirmations,omitempty" json:"min_confirmations,omitempty"`
}

type BitcoinGetBalanceQueryResult

type BitcoinGetBalanceQueryResult = Satoshi

type BitcoinGetBalanceResult

type BitcoinGetBalanceResult = Satoshi

type BitcoinGetCurrentFeePercentilesArgs

type BitcoinGetCurrentFeePercentilesArgs struct {
	Network BitcoinNetwork `ic:"network" json:"network"`
}

type BitcoinGetCurrentFeePercentilesResult

type BitcoinGetCurrentFeePercentilesResult = []MillisatoshiPerByte

type BitcoinGetUtxosArgs

type BitcoinGetUtxosArgs struct {
	Address BitcoinAddress `ic:"address" json:"address"`
	Network BitcoinNetwork `ic:"network" json:"network"`
	Filter  *struct {
		MinConfirmations *uint32 `ic:"min_confirmations,variant"`
		Page             *[]byte `ic:"page,variant"`
	} `ic:"filter,omitempty" json:"filter,omitempty"`
}

type BitcoinGetUtxosQueryArgs

type BitcoinGetUtxosQueryArgs struct {
	Address BitcoinAddress `ic:"address" json:"address"`
	Network BitcoinNetwork `ic:"network" json:"network"`
	Filter  *struct {
		MinConfirmations *uint32 `ic:"min_confirmations,variant"`
		Page             *[]byte `ic:"page,variant"`
	} `ic:"filter,omitempty" json:"filter,omitempty"`
}

type BitcoinGetUtxosQueryResult

type BitcoinGetUtxosQueryResult struct {
	Utxos        []Utxo    `ic:"utxos" json:"utxos"`
	TipBlockHash BlockHash `ic:"tip_block_hash" json:"tip_block_hash"`
	TipHeight    uint32    `ic:"tip_height" json:"tip_height"`
	NextPage     *[]byte   `ic:"next_page,omitempty" json:"next_page,omitempty"`
}

type BitcoinGetUtxosResult

type BitcoinGetUtxosResult struct {
	Utxos        []Utxo    `ic:"utxos" json:"utxos"`
	TipBlockHash BlockHash `ic:"tip_block_hash" json:"tip_block_hash"`
	TipHeight    uint32    `ic:"tip_height" json:"tip_height"`
	NextPage     *[]byte   `ic:"next_page,omitempty" json:"next_page,omitempty"`
}

type BitcoinNetwork

type BitcoinNetwork struct {
	Mainnet *idl.Null `ic:"mainnet,variant"`
	Testnet *idl.Null `ic:"testnet,variant"`
}

type BitcoinSendTransactionArgs

type BitcoinSendTransactionArgs struct {
	Transaction []byte         `ic:"transaction" json:"transaction"`
	Network     BitcoinNetwork `ic:"network" json:"network"`
}

type BlockHash

type BlockHash = []byte

type CanisterId

type CanisterId = principal.Principal

type CanisterInfoArgs

type CanisterInfoArgs struct {
	CanisterId          CanisterId `ic:"canister_id" json:"canister_id"`
	NumRequestedChanges *uint64    `ic:"num_requested_changes,omitempty" json:"num_requested_changes,omitempty"`
}

type CanisterInfoResult

type CanisterInfoResult struct {
	TotalNumChanges uint64                `ic:"total_num_changes" json:"total_num_changes"`
	RecentChanges   []Change              `ic:"recent_changes" json:"recent_changes"`
	ModuleHash      *[]byte               `ic:"module_hash,omitempty" json:"module_hash,omitempty"`
	Controllers     []principal.Principal `ic:"controllers" json:"controllers"`
}

type CanisterInstallMode

type CanisterInstallMode struct {
	Install   *idl.Null `ic:"install,variant"`
	Reinstall *idl.Null `ic:"reinstall,variant"`
	Upgrade   **struct {
		SkipPreUpgrade        *bool `ic:"skip_pre_upgrade,omitempty" json:"skip_pre_upgrade,omitempty"`
		WasmMemoryPersistence *struct {
			Keep    *idl.Null `ic:"keep,variant"`
			Replace *idl.Null `ic:"replace,variant"`
		} `ic:"wasm_memory_persistence,omitempty" json:"wasm_memory_persistence,omitempty"`
	} `ic:"upgrade,variant"`
}

type CanisterSettings

type CanisterSettings struct {
	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"`
}

type CanisterStatusArgs

type CanisterStatusArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type CanisterStatusResult

type CanisterStatusResult struct {
	Status struct {
		Running  *idl.Null `ic:"running,variant"`
		Stopping *idl.Null `ic:"stopping,variant"`
		Stopped  *idl.Null `ic:"stopped,variant"`
	} `ic:"status" json:"status"`
	Settings               DefiniteCanisterSettings `ic:"settings" json:"settings"`
	ModuleHash             *[]byte                  `ic:"module_hash,omitempty" json:"module_hash,omitempty"`
	MemorySize             idl.Nat                  `ic:"memory_size" json:"memory_size"`
	Cycles                 idl.Nat                  `ic:"cycles" json:"cycles"`
	ReservedCycles         idl.Nat                  `ic:"reserved_cycles" json:"reserved_cycles"`
	IdleCyclesBurnedPerDay idl.Nat                  `ic:"idle_cycles_burned_per_day" json:"idle_cycles_burned_per_day"`
	QueryStats             struct {
		NumCallsTotal             idl.Nat `ic:"num_calls_total" json:"num_calls_total"`
		NumInstructionsTotal      idl.Nat `ic:"num_instructions_total" json:"num_instructions_total"`
		RequestPayloadBytesTotal  idl.Nat `ic:"request_payload_bytes_total" json:"request_payload_bytes_total"`
		ResponsePayloadBytesTotal idl.Nat `ic:"response_payload_bytes_total" json:"response_payload_bytes_total"`
	} `ic:"query_stats" json:"query_stats"`
}

type Change

type Change struct {
	TimestampNanos  uint64        `ic:"timestamp_nanos" json:"timestamp_nanos"`
	CanisterVersion uint64        `ic:"canister_version" json:"canister_version"`
	Origin          ChangeOrigin  `ic:"origin" json:"origin"`
	Details         ChangeDetails `ic:"details" json:"details"`
}

type ChangeDetails

type ChangeDetails struct {
	Creation *struct {
		Controllers []principal.Principal `ic:"controllers" json:"controllers"`
	} `ic:"creation,variant"`
	CodeUninstall  *idl.Null `ic:"code_uninstall,variant"`
	CodeDeployment *struct {
		Mode struct {
			Install   *idl.Null `ic:"install,variant"`
			Reinstall *idl.Null `ic:"reinstall,variant"`
			Upgrade   *idl.Null `ic:"upgrade,variant"`
		} `ic:"mode" json:"mode"`
		ModuleHash []byte `ic:"module_hash" json:"module_hash"`
	} `ic:"code_deployment,variant"`
	ControllersChange *struct {
		Controllers []principal.Principal `ic:"controllers" json:"controllers"`
	} `ic:"controllers_change,variant"`
}

type ChangeOrigin

type ChangeOrigin struct {
	FromUser *struct {
		UserId principal.Principal `ic:"user_id" json:"user_id"`
	} `ic:"from_user,variant"`
	FromCanister *struct {
		CanisterId      principal.Principal `ic:"canister_id" json:"canister_id"`
		CanisterVersion *uint64             `ic:"canister_version,omitempty" json:"canister_version,omitempty"`
	} `ic:"from_canister,variant"`
}

type ChunkHash

type ChunkHash struct {
	Hash []byte `ic:"hash" json:"hash"`
}

type ClearChunkStoreArgs

type ClearChunkStoreArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type CreateCanisterArgs

type CreateCanisterArgs struct {
	Settings              *CanisterSettings `ic:"settings,omitempty" json:"settings,omitempty"`
	SenderCanisterVersion *uint64           `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"`
}

type CreateCanisterResult

type CreateCanisterResult struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type DefiniteCanisterSettings

type DefiniteCanisterSettings struct {
	Controllers         []principal.Principal `ic:"controllers" json:"controllers"`
	ComputeAllocation   idl.Nat               `ic:"compute_allocation" json:"compute_allocation"`
	MemoryAllocation    idl.Nat               `ic:"memory_allocation" json:"memory_allocation"`
	FreezingThreshold   idl.Nat               `ic:"freezing_threshold" json:"freezing_threshold"`
	ReservedCyclesLimit idl.Nat               `ic:"reserved_cycles_limit" json:"reserved_cycles_limit"`
}

type DeleteCanisterArgs

type DeleteCanisterArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type DepositCyclesArgs

type DepositCyclesArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type EcdsaCurve

type EcdsaCurve struct {
	Secp256k1 *idl.Null `ic:"secp256k1,variant"`
}

type EcdsaPublicKeyArgs

type EcdsaPublicKeyArgs struct {
	CanisterId     *CanisterId `ic:"canister_id,omitempty" json:"canister_id,omitempty"`
	DerivationPath [][]byte    `ic:"derivation_path" json:"derivation_path"`
	KeyId          struct {
		Curve EcdsaCurve `ic:"curve" json:"curve"`
		Name  string     `ic:"name" json:"name"`
	} `ic:"key_id" json:"key_id"`
}

type EcdsaPublicKeyResult

type EcdsaPublicKeyResult struct {
	PublicKey []byte `ic:"public_key" json:"public_key"`
	ChainCode []byte `ic:"chain_code" json:"chain_code"`
}

type HttpHeader

type HttpHeader struct {
	Name  string `ic:"name" json:"name"`
	Value string `ic:"value" json:"value"`
}

type HttpRequestArgs

type HttpRequestArgs struct {
	Url              string  `ic:"url" json:"url"`
	MaxResponseBytes *uint64 `ic:"max_response_bytes,omitempty" json:"max_response_bytes,omitempty"`
	Method           struct {
		Get  *idl.Null `ic:"get,variant"`
		Head *idl.Null `ic:"head,variant"`
		Post *idl.Null `ic:"post,variant"`
	} `ic:"method" json:"method"`
	Headers   []HttpHeader `ic:"headers" json:"headers"`
	Body      *[]byte      `ic:"body,omitempty" json:"body,omitempty"`
	Transform *struct {
		Function struct {
		} `ic:"function" json:"function"`
		Context []byte `ic:"context" json:"context"`
	} `ic:"transform,omitempty" json:"transform,omitempty"`
}

type HttpRequestResult

type HttpRequestResult struct {
	Status  idl.Nat      `ic:"status" json:"status"`
	Headers []HttpHeader `ic:"headers" json:"headers"`
	Body    []byte       `ic:"body" json:"body"`
}

type InstallChunkedCodeArgs

type InstallChunkedCodeArgs struct {
	Mode                  CanisterInstallMode `ic:"mode" json:"mode"`
	TargetCanister        CanisterId          `ic:"target_canister" json:"target_canister"`
	StoreCanister         *CanisterId         `ic:"store_canister,omitempty" json:"store_canister,omitempty"`
	ChunkHashesList       []ChunkHash         `ic:"chunk_hashes_list" json:"chunk_hashes_list"`
	WasmModuleHash        []byte              `ic:"wasm_module_hash" json:"wasm_module_hash"`
	Arg                   []byte              `ic:"arg" json:"arg"`
	SenderCanisterVersion *uint64             `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"`
}

type InstallCodeArgs

type InstallCodeArgs struct {
	Mode                  CanisterInstallMode `ic:"mode" json:"mode"`
	CanisterId            CanisterId          `ic:"canister_id" json:"canister_id"`
	WasmModule            WasmModule          `ic:"wasm_module" json:"wasm_module"`
	Arg                   []byte              `ic:"arg" json:"arg"`
	SenderCanisterVersion *uint64             `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"`
}

type MillisatoshiPerByte

type MillisatoshiPerByte = uint64

type NodeMetrics

type NodeMetrics struct {
	NodeId                principal.Principal `ic:"node_id" json:"node_id"`
	NumBlocksTotal        uint64              `ic:"num_blocks_total" json:"num_blocks_total"`
	NumBlockFailuresTotal uint64              `ic:"num_block_failures_total" json:"num_block_failures_total"`
}

type NodeMetricsHistoryArgs

type NodeMetricsHistoryArgs struct {
	SubnetId              principal.Principal `ic:"subnet_id" json:"subnet_id"`
	StartAtTimestampNanos uint64              `ic:"start_at_timestamp_nanos" json:"start_at_timestamp_nanos"`
}

type NodeMetricsHistoryResult

type NodeMetricsHistoryResult = []struct {
	TimestampNanos uint64        `ic:"timestamp_nanos" json:"timestamp_nanos"`
	NodeMetrics    []NodeMetrics `ic:"node_metrics" json:"node_metrics"`
}

type Outpoint

type Outpoint struct {
	Txid []byte `ic:"txid" json:"txid"`
	Vout uint32 `ic:"vout" json:"vout"`
}

type ProvisionalCreateCanisterWithCyclesArgs

type ProvisionalCreateCanisterWithCyclesArgs struct {
	Amount                *idl.Nat          `ic:"amount,omitempty" json:"amount,omitempty"`
	Settings              *CanisterSettings `ic:"settings,omitempty" json:"settings,omitempty"`
	SpecifiedId           *CanisterId       `ic:"specified_id,omitempty" json:"specified_id,omitempty"`
	SenderCanisterVersion *uint64           `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"`
}

type ProvisionalCreateCanisterWithCyclesResult

type ProvisionalCreateCanisterWithCyclesResult struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type ProvisionalTopUpCanisterArgs

type ProvisionalTopUpCanisterArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
	Amount     idl.Nat    `ic:"amount" json:"amount"`
}

type RawRandResult

type RawRandResult = []byte

type Satoshi

type Satoshi = uint64

type SignWithEcdsaArgs

type SignWithEcdsaArgs struct {
	MessageHash    []byte   `ic:"message_hash" json:"message_hash"`
	DerivationPath [][]byte `ic:"derivation_path" json:"derivation_path"`
	KeyId          struct {
		Curve EcdsaCurve `ic:"curve" json:"curve"`
		Name  string     `ic:"name" json:"name"`
	} `ic:"key_id" json:"key_id"`
}

type SignWithEcdsaResult

type SignWithEcdsaResult struct {
	Signature []byte `ic:"signature" json:"signature"`
}

type StartCanisterArgs

type StartCanisterArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type StopCanisterArgs

type StopCanisterArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type StoredChunksArgs

type StoredChunksArgs struct {
	CanisterId CanisterId `ic:"canister_id" json:"canister_id"`
}

type StoredChunksResult

type StoredChunksResult = []ChunkHash

type UninstallCodeArgs

type UninstallCodeArgs struct {
	CanisterId            CanisterId `ic:"canister_id" json:"canister_id"`
	SenderCanisterVersion *uint64    `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"`
}

type UpdateSettingsArgs

type UpdateSettingsArgs struct {
	CanisterId            principal.Principal `ic:"canister_id" json:"canister_id"`
	Settings              CanisterSettings    `ic:"settings" json:"settings"`
	SenderCanisterVersion *uint64             `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"`
}

type UploadChunkArgs

type UploadChunkArgs struct {
	CanisterId principal.Principal `ic:"canister_id" json:"canister_id"`
	Chunk      []byte              `ic:"chunk" json:"chunk"`
}

type UploadChunkResult

type UploadChunkResult = ChunkHash

type Utxo

type Utxo struct {
	Outpoint Outpoint `ic:"outpoint" json:"outpoint"`
	Value    Satoshi  `ic:"value" json:"value"`
	Height   uint32   `ic:"height" json:"height"`
}

type WasmModule

type WasmModule = []byte

Jump to

Keyboard shortcuts

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