internetcomputer

package
v0.0.1-gowrapper-test Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_InternetComputer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SigningInput

type SigningInput struct {
	PrivateKey  []byte       `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// contains filtered or unexported fields
}

Input data necessary to create a signed transaction.

func (*SigningInput) Descriptor deprecated

func (*SigningInput) Descriptor() ([]byte, []int)

Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.

func (*SigningInput) GetPrivateKey

func (x *SigningInput) GetPrivateKey() []byte

func (*SigningInput) GetTransaction

func (x *SigningInput) GetTransaction() *Transaction

func (*SigningInput) ProtoMessage

func (*SigningInput) ProtoMessage()

func (*SigningInput) ProtoReflect

func (x *SigningInput) ProtoReflect() protoreflect.Message

func (*SigningInput) Reset

func (x *SigningInput) Reset()

func (*SigningInput) String

func (x *SigningInput) String() string

type SigningOutput

type SigningOutput struct {

	// Signed and encoded transaction bytes.
	// NOTE: Before sending to the Rosetta node, this value should be hex-encoded before using with the JSON structure.
	SignedTransaction []byte              `protobuf:"bytes,1,opt,name=signed_transaction,json=signedTransaction,proto3" json:"signed_transaction,omitempty"`
	Error             common.SigningError `protobuf:"varint,2,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	ErrorMessage      string              `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Transaction signing output.

func (*SigningOutput) Descriptor deprecated

func (*SigningOutput) Descriptor() ([]byte, []int)

Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.

func (*SigningOutput) GetError

func (x *SigningOutput) GetError() common.SigningError

func (*SigningOutput) GetErrorMessage

func (x *SigningOutput) GetErrorMessage() string

func (*SigningOutput) GetSignedTransaction

func (x *SigningOutput) GetSignedTransaction() []byte

func (*SigningOutput) ProtoMessage

func (*SigningOutput) ProtoMessage()

func (*SigningOutput) ProtoReflect

func (x *SigningOutput) ProtoReflect() protoreflect.Message

func (*SigningOutput) Reset

func (x *SigningOutput) Reset()

func (*SigningOutput) String

func (x *SigningOutput) String() string

type Transaction

type Transaction struct {

	// Payload transfer
	//
	// Types that are valid to be assigned to TransactionOneof:
	//
	//	*Transaction_Transfer_
	TransactionOneof isTransaction_TransactionOneof `protobuf_oneof:"transaction_oneof"`
	// contains filtered or unexported fields
}

Internet Computer Transactions

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetTransactionOneof

func (x *Transaction) GetTransactionOneof() isTransaction_TransactionOneof

func (*Transaction) GetTransfer

func (x *Transaction) GetTransfer() *Transaction_Transfer

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type Transaction_Transfer

type Transaction_Transfer struct {
	ToAccountIdentifier   string `protobuf:"bytes,1,opt,name=to_account_identifier,json=toAccountIdentifier,proto3" json:"to_account_identifier,omitempty"`
	Amount                uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Memo                  uint64 `protobuf:"varint,3,opt,name=memo,proto3" json:"memo,omitempty"`
	CurrentTimestampNanos uint64 `` /* 127-byte string literal not displayed */
	PermittedDrift        uint64 `protobuf:"varint,5,opt,name=permitted_drift,json=permittedDrift,proto3" json:"permitted_drift,omitempty"`
	// contains filtered or unexported fields
}

ICP ledger transfer arguments

func (*Transaction_Transfer) Descriptor deprecated

func (*Transaction_Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transaction_Transfer.ProtoReflect.Descriptor instead.

func (*Transaction_Transfer) GetAmount

func (x *Transaction_Transfer) GetAmount() uint64

func (*Transaction_Transfer) GetCurrentTimestampNanos

func (x *Transaction_Transfer) GetCurrentTimestampNanos() uint64

func (*Transaction_Transfer) GetMemo

func (x *Transaction_Transfer) GetMemo() uint64

func (*Transaction_Transfer) GetPermittedDrift

func (x *Transaction_Transfer) GetPermittedDrift() uint64

func (*Transaction_Transfer) GetToAccountIdentifier

func (x *Transaction_Transfer) GetToAccountIdentifier() string

func (*Transaction_Transfer) ProtoMessage

func (*Transaction_Transfer) ProtoMessage()

func (*Transaction_Transfer) ProtoReflect

func (x *Transaction_Transfer) ProtoReflect() protoreflect.Message

func (*Transaction_Transfer) Reset

func (x *Transaction_Transfer) Reset()

func (*Transaction_Transfer) String

func (x *Transaction_Transfer) String() string

type Transaction_Transfer_

type Transaction_Transfer_ struct {
	Transfer *Transaction_Transfer `protobuf:"bytes,1,opt,name=transfer,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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