zilliqa

package
v0.0.2-gowrapper-mobile Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_Zilliqa_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SigningInput

type SigningInput struct {

	// Transaction version
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Nonce
	Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Recipient's address.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// GasPrice (256-bit number)
	GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// GasLimit
	GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,6,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// The payload transaction
	Transaction *Transaction `protobuf:"bytes,7,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) GetGasLimit

func (x *SigningInput) GetGasLimit() uint64

func (*SigningInput) GetGasPrice

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

func (*SigningInput) GetNonce

func (x *SigningInput) GetNonce() uint64

func (*SigningInput) GetPrivateKey

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

func (*SigningInput) GetTo

func (x *SigningInput) GetTo() string

func (*SigningInput) GetTransaction

func (x *SigningInput) GetTransaction() *Transaction

func (*SigningInput) GetVersion

func (x *SigningInput) GetVersion() uint32

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 signature bytes.
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// JSON transaction with signature
	Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

Result containing the signed and encoded transaction.

func (*SigningOutput) Descriptor deprecated

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

Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.

func (*SigningOutput) GetJson

func (x *SigningOutput) GetJson() string

func (*SigningOutput) GetSignature

func (x *SigningOutput) GetSignature() []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 {

	// Types that are valid to be assigned to MessageOneof:
	//
	//	*Transaction_Transfer_
	//	*Transaction_RawTransaction
	MessageOneof isTransaction_MessageOneof `protobuf_oneof:"message_oneof"`
	// contains filtered or unexported fields
}

Generic transaction

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetMessageOneof

func (x *Transaction) GetMessageOneof() isTransaction_MessageOneof

func (*Transaction) GetRawTransaction

func (x *Transaction) GetRawTransaction() *Transaction_Raw

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_Raw

type Transaction_Raw struct {

	// Amount to send (uint256, serialized big endian)
	Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Smart contract code
	Code []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// String-ified JSON object specifying the transition parameter
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Generic contract call

func (*Transaction_Raw) Descriptor deprecated

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

Deprecated: Use Transaction_Raw.ProtoReflect.Descriptor instead.

func (*Transaction_Raw) GetAmount

func (x *Transaction_Raw) GetAmount() []byte

func (*Transaction_Raw) GetCode

func (x *Transaction_Raw) GetCode() []byte

func (*Transaction_Raw) GetData

func (x *Transaction_Raw) GetData() []byte

func (*Transaction_Raw) ProtoMessage

func (*Transaction_Raw) ProtoMessage()

func (*Transaction_Raw) ProtoReflect

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

func (*Transaction_Raw) Reset

func (x *Transaction_Raw) Reset()

func (*Transaction_Raw) String

func (x *Transaction_Raw) String() string

type Transaction_RawTransaction

type Transaction_RawTransaction struct {
	RawTransaction *Transaction_Raw `protobuf:"bytes,2,opt,name=raw_transaction,json=rawTransaction,proto3,oneof"`
}

type Transaction_Transfer

type Transaction_Transfer struct {

	// Amount to send (uint256, serialized big endian)
	Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Transfer transaction

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() []byte

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