oasis

package
v0.0.1-gowrapper-dev Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_Oasis_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EscrowMessage

type EscrowMessage struct {
	GasPrice  uint64 `protobuf:"varint,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	GasAmount string `protobuf:"bytes,2,opt,name=gas_amount,json=gasAmount,proto3" json:"gas_amount,omitempty"`
	Nonce     uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Account   string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
	Amount    string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	Context   string `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*EscrowMessage) Descriptor deprecated

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

Deprecated: Use EscrowMessage.ProtoReflect.Descriptor instead.

func (*EscrowMessage) GetAccount

func (x *EscrowMessage) GetAccount() string

func (*EscrowMessage) GetAmount

func (x *EscrowMessage) GetAmount() string

func (*EscrowMessage) GetContext

func (x *EscrowMessage) GetContext() string

func (*EscrowMessage) GetGasAmount

func (x *EscrowMessage) GetGasAmount() string

func (*EscrowMessage) GetGasPrice

func (x *EscrowMessage) GetGasPrice() uint64

func (*EscrowMessage) GetNonce

func (x *EscrowMessage) GetNonce() uint64

func (*EscrowMessage) ProtoMessage

func (*EscrowMessage) ProtoMessage()

func (*EscrowMessage) ProtoReflect

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

func (*EscrowMessage) Reset

func (x *EscrowMessage) Reset()

func (*EscrowMessage) String

func (x *EscrowMessage) String() string

type ReclaimEscrowMessage

type ReclaimEscrowMessage struct {
	GasPrice  uint64 `protobuf:"varint,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	GasAmount string `protobuf:"bytes,2,opt,name=gas_amount,json=gasAmount,proto3" json:"gas_amount,omitempty"`
	Nonce     uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Account   string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
	Shares    string `protobuf:"bytes,5,opt,name=shares,proto3" json:"shares,omitempty"`
	Context   string `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*ReclaimEscrowMessage) Descriptor deprecated

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

Deprecated: Use ReclaimEscrowMessage.ProtoReflect.Descriptor instead.

func (*ReclaimEscrowMessage) GetAccount

func (x *ReclaimEscrowMessage) GetAccount() string

func (*ReclaimEscrowMessage) GetContext

func (x *ReclaimEscrowMessage) GetContext() string

func (*ReclaimEscrowMessage) GetGasAmount

func (x *ReclaimEscrowMessage) GetGasAmount() string

func (*ReclaimEscrowMessage) GetGasPrice

func (x *ReclaimEscrowMessage) GetGasPrice() uint64

func (*ReclaimEscrowMessage) GetNonce

func (x *ReclaimEscrowMessage) GetNonce() uint64

func (*ReclaimEscrowMessage) GetShares

func (x *ReclaimEscrowMessage) GetShares() string

func (*ReclaimEscrowMessage) ProtoMessage

func (*ReclaimEscrowMessage) ProtoMessage()

func (*ReclaimEscrowMessage) ProtoReflect

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

func (*ReclaimEscrowMessage) Reset

func (x *ReclaimEscrowMessage) Reset()

func (*ReclaimEscrowMessage) String

func (x *ReclaimEscrowMessage) String() string

type SigningInput

type SigningInput struct {

	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Transfer payload
	//
	// Types that are valid to be assigned to Message:
	//
	//	*SigningInput_Transfer
	//	*SigningInput_Escrow
	//	*SigningInput_ReclaimEscrow
	Message isSigningInput_Message `protobuf_oneof:"message"`
	// 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) GetEscrow

func (x *SigningInput) GetEscrow() *EscrowMessage

func (*SigningInput) GetMessage

func (x *SigningInput) GetMessage() isSigningInput_Message

func (*SigningInput) GetPrivateKey

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

func (*SigningInput) GetReclaimEscrow

func (x *SigningInput) GetReclaimEscrow() *ReclaimEscrowMessage

func (*SigningInput) GetTransfer

func (x *SigningInput) GetTransfer() *TransferMessage

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 SigningInput_Escrow

type SigningInput_Escrow struct {
	Escrow *EscrowMessage `protobuf:"bytes,3,opt,name=escrow,proto3,oneof"`
}

type SigningInput_ReclaimEscrow

type SigningInput_ReclaimEscrow struct {
	ReclaimEscrow *ReclaimEscrowMessage `protobuf:"bytes,4,opt,name=reclaimEscrow,proto3,oneof"`
}

type SigningInput_Transfer

type SigningInput_Transfer struct {
	Transfer *TransferMessage `protobuf:"bytes,2,opt,name=transfer,proto3,oneof"`
}

type SigningOutput

type SigningOutput struct {

	// Signed and encoded transaction bytes.
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// error code, 0 is ok, other codes will be treated as errors
	Error common.SigningError `protobuf:"varint,2,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// error code description
	ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,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) GetEncoded

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

func (*SigningOutput) GetError

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

func (*SigningOutput) GetErrorMessage

func (x *SigningOutput) GetErrorMessage() string

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 TransferMessage

type TransferMessage struct {

	// destination address
	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	// Gas price
	GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// Amount values strings prefixed by zero. e.g. "\u000010000000"
	GasAmount string `protobuf:"bytes,3,opt,name=gas_amount,json=gasAmount,proto3" json:"gas_amount,omitempty"`
	// Amount values strings prefixed by zero
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// Nonce (should be larger than in the last transaction of the account)
	Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Context, see https://docs.oasis.dev/oasis-core/common-functionality/crypto#domain-separation
	Context string `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

Transfer

func (*TransferMessage) Descriptor deprecated

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

Deprecated: Use TransferMessage.ProtoReflect.Descriptor instead.

func (*TransferMessage) GetAmount

func (x *TransferMessage) GetAmount() string

func (*TransferMessage) GetContext

func (x *TransferMessage) GetContext() string

func (*TransferMessage) GetGasAmount

func (x *TransferMessage) GetGasAmount() string

func (*TransferMessage) GetGasPrice

func (x *TransferMessage) GetGasPrice() uint64

func (*TransferMessage) GetNonce

func (x *TransferMessage) GetNonce() uint64

func (*TransferMessage) GetTo

func (x *TransferMessage) GetTo() string

func (*TransferMessage) ProtoMessage

func (*TransferMessage) ProtoMessage()

func (*TransferMessage) ProtoReflect

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

func (*TransferMessage) Reset

func (x *TransferMessage) Reset()

func (*TransferMessage) String

func (x *TransferMessage) String() string

Jump to

Keyboard shortcuts

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