common

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 18 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountType_name = map[int32]string{
		0: "UNKNOWN",
		1: "PRIMARY",
		2: "REMOTE_SEND_GIFT_CARD",
		3: "SWAP",
		4: "ASSOCIATED_TOKEN_ACCOUNT",
		5: "POOL",
	}
	AccountType_value = map[string]int32{
		"UNKNOWN":                  0,
		"PRIMARY":                  1,
		"REMOTE_SEND_GIFT_CARD":    2,
		"SWAP":                     3,
		"ASSOCIATED_TOKEN_ACCOUNT": 4,
		"POOL":                     5,
	}
)

Enum value maps for AccountType.

View Source
var (
	Interval_name = map[int32]string{
		0: "RAW",
		1: "SECOND",
		2: "MINUTE",
		3: "HOUR",
		4: "DAY",
		5: "WEEK",
	}
	Interval_value = map[string]int32{
		"RAW":    0,
		"SECOND": 1,
		"MINUTE": 2,
		"HOUR":   3,
		"DAY":    4,
		"WEEK":   5,
	}
)

Enum value maps for Interval.

View Source
var (
	Response_Result_name = map[int32]string{
		0: "OK",
		1: "ERROR",
	}
	Response_Result_value = map[string]int32{
		"OK":    0,
		"ERROR": 1,
	}
)

Enum value maps for Response_Result.

View Source
var File_common_v1_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountType

type AccountType int32

AccountType associates a type to an account, which infers how an account is used within the OCP ecosystem.

const (
	AccountType_UNKNOWN                  AccountType = 0
	AccountType_PRIMARY                  AccountType = 1
	AccountType_REMOTE_SEND_GIFT_CARD    AccountType = 2
	AccountType_SWAP                     AccountType = 3
	AccountType_ASSOCIATED_TOKEN_ACCOUNT AccountType = 4
	AccountType_POOL                     AccountType = 5
)

func (AccountType) Descriptor

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

func (AccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type

type Blockhash

type Blockhash struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Blockhash is a raw binary Solana blockchash

func (*Blockhash) Descriptor deprecated

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

Deprecated: Use Blockhash.ProtoReflect.Descriptor instead.

func (*Blockhash) GetValue

func (x *Blockhash) GetValue() []byte

func (*Blockhash) ProtoMessage

func (*Blockhash) ProtoMessage()

func (*Blockhash) ProtoReflect

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

func (*Blockhash) Reset

func (x *Blockhash) Reset()

func (*Blockhash) String

func (x *Blockhash) String() string

func (*Blockhash) Validate

func (m *Blockhash) Validate() error

Validate checks the field values on Blockhash with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BlockhashValidationError

type BlockhashValidationError struct {
	// contains filtered or unexported fields
}

BlockhashValidationError is the validation error returned by Blockhash.Validate if the designated constraints aren't met.

func (BlockhashValidationError) Cause

func (e BlockhashValidationError) Cause() error

Cause function returns cause value.

func (BlockhashValidationError) Error

func (e BlockhashValidationError) Error() string

Error satisfies the builtin error interface

func (BlockhashValidationError) ErrorName

func (e BlockhashValidationError) ErrorName() string

ErrorName returns error name.

func (BlockhashValidationError) Field

func (e BlockhashValidationError) Field() string

Field function returns field value.

func (BlockhashValidationError) Key

Key function returns key value.

func (BlockhashValidationError) Reason

func (e BlockhashValidationError) Reason() string

Reason function returns reason value.

type ClientPong

type ClientPong struct {

	// Timestamp the Pong was sent on the stream, for server to get a sense
	// of potential network latency
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientPong) Descriptor deprecated

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

Deprecated: Use ClientPong.ProtoReflect.Descriptor instead.

func (*ClientPong) GetTimestamp

func (x *ClientPong) GetTimestamp() *timestamppb.Timestamp

func (*ClientPong) ProtoMessage

func (*ClientPong) ProtoMessage()

func (*ClientPong) ProtoReflect

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

func (*ClientPong) Reset

func (x *ClientPong) Reset()

func (*ClientPong) String

func (x *ClientPong) String() string

func (*ClientPong) Validate

func (m *ClientPong) Validate() error

Validate checks the field values on ClientPong with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ClientPongValidationError

type ClientPongValidationError struct {
	// contains filtered or unexported fields
}

ClientPongValidationError is the validation error returned by ClientPong.Validate if the designated constraints aren't met.

func (ClientPongValidationError) Cause

func (e ClientPongValidationError) Cause() error

Cause function returns cause value.

func (ClientPongValidationError) Error

Error satisfies the builtin error interface

func (ClientPongValidationError) ErrorName

func (e ClientPongValidationError) ErrorName() string

ErrorName returns error name.

func (ClientPongValidationError) Field

Field function returns field value.

func (ClientPongValidationError) Key

Key function returns key value.

func (ClientPongValidationError) Reason

func (e ClientPongValidationError) Reason() string

Reason function returns reason value.

type Hash

type Hash struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Hash is a raw binary 32 byte hash value

func (*Hash) Descriptor deprecated

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

Deprecated: Use Hash.ProtoReflect.Descriptor instead.

func (*Hash) GetValue

func (x *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) ProtoReflect

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

func (*Hash) Reset

func (x *Hash) Reset()

func (*Hash) String

func (x *Hash) String() string

func (*Hash) Validate

func (m *Hash) Validate() error

Validate checks the field values on Hash with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HashValidationError

type HashValidationError struct {
	// contains filtered or unexported fields
}

HashValidationError is the validation error returned by Hash.Validate if the designated constraints aren't met.

func (HashValidationError) Cause

func (e HashValidationError) Cause() error

Cause function returns cause value.

func (HashValidationError) Error

func (e HashValidationError) Error() string

Error satisfies the builtin error interface

func (HashValidationError) ErrorName

func (e HashValidationError) ErrorName() string

ErrorName returns error name.

func (HashValidationError) Field

func (e HashValidationError) Field() string

Field function returns field value.

func (HashValidationError) Key

func (e HashValidationError) Key() bool

Key function returns key value.

func (HashValidationError) Reason

func (e HashValidationError) Reason() string

Reason function returns reason value.

type IntentId

type IntentId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

IntentId is a client-side generated ID that maps to an intent to perform actions on the blockchain fulfilled by the OCP sequencer.

func (*IntentId) Descriptor deprecated

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

Deprecated: Use IntentId.ProtoReflect.Descriptor instead.

func (*IntentId) GetValue

func (x *IntentId) GetValue() []byte

func (*IntentId) ProtoMessage

func (*IntentId) ProtoMessage()

func (*IntentId) ProtoReflect

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

func (*IntentId) Reset

func (x *IntentId) Reset()

func (*IntentId) String

func (x *IntentId) String() string

func (*IntentId) Validate

func (m *IntentId) Validate() error

Validate checks the field values on IntentId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type IntentIdValidationError

type IntentIdValidationError struct {
	// contains filtered or unexported fields
}

IntentIdValidationError is the validation error returned by IntentId.Validate if the designated constraints aren't met.

func (IntentIdValidationError) Cause

func (e IntentIdValidationError) Cause() error

Cause function returns cause value.

func (IntentIdValidationError) Error

func (e IntentIdValidationError) Error() string

Error satisfies the builtin error interface

func (IntentIdValidationError) ErrorName

func (e IntentIdValidationError) ErrorName() string

ErrorName returns error name.

func (IntentIdValidationError) Field

func (e IntentIdValidationError) Field() string

Field function returns field value.

func (IntentIdValidationError) Key

func (e IntentIdValidationError) Key() bool

Key function returns key value.

func (IntentIdValidationError) Reason

func (e IntentIdValidationError) Reason() string

Reason function returns reason value.

type Interval added in v0.8.0

type Interval int32
const (
	Interval_RAW    Interval = 0
	Interval_SECOND Interval = 1
	Interval_MINUTE Interval = 2
	Interval_HOUR   Interval = 3
	Interval_DAY    Interval = 4
	Interval_WEEK   Interval = 5
)

func (Interval) Descriptor added in v0.8.0

func (Interval) Descriptor() protoreflect.EnumDescriptor

func (Interval) Enum added in v0.8.0

func (x Interval) Enum() *Interval

func (Interval) EnumDescriptor deprecated added in v0.8.0

func (Interval) EnumDescriptor() ([]byte, []int)

Deprecated: Use Interval.Descriptor instead.

func (Interval) Number added in v0.8.0

func (x Interval) Number() protoreflect.EnumNumber

func (Interval) String added in v0.8.0

func (x Interval) String() string

func (Interval) Type added in v0.8.0

type Request

type Request struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Method  string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Body    []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

Request is a generic wrapper for gRPC requests

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() []byte

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetService

func (x *Request) GetService() string

func (*Request) GetVersion

func (x *Request) GetVersion() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RequestValidationError

type RequestValidationError struct {
	// contains filtered or unexported fields
}

RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.

func (RequestValidationError) Cause

func (e RequestValidationError) Cause() error

Cause function returns cause value.

func (RequestValidationError) Error

func (e RequestValidationError) Error() string

Error satisfies the builtin error interface

func (RequestValidationError) ErrorName

func (e RequestValidationError) ErrorName() string

ErrorName returns error name.

func (RequestValidationError) Field

func (e RequestValidationError) Field() string

Field function returns field value.

func (RequestValidationError) Key

func (e RequestValidationError) Key() bool

Key function returns key value.

func (RequestValidationError) Reason

func (e RequestValidationError) Reason() string

Reason function returns reason value.

type Response

type Response struct {
	Result  Response_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.common.v1.Response_Result" json:"result,omitempty"`
	Body    []byte          `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	Message string          `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Response is a generic wrapper for gRPC responses

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() []byte

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetResult

func (x *Response) GetResult() Response_Result

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) Validate

func (m *Response) Validate() error

Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ResponseValidationError

type ResponseValidationError struct {
	// contains filtered or unexported fields
}

ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.

func (ResponseValidationError) Cause

func (e ResponseValidationError) Cause() error

Cause function returns cause value.

func (ResponseValidationError) Error

func (e ResponseValidationError) Error() string

Error satisfies the builtin error interface

func (ResponseValidationError) ErrorName

func (e ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ResponseValidationError) Field

func (e ResponseValidationError) Field() string

Field function returns field value.

func (ResponseValidationError) Key

func (e ResponseValidationError) Key() bool

Key function returns key value.

func (ResponseValidationError) Reason

func (e ResponseValidationError) Reason() string

Reason function returns reason value.

type Response_Result

type Response_Result int32
const (
	Response_OK    Response_Result = 0
	Response_ERROR Response_Result = 1
)

func (Response_Result) Descriptor

func (Response_Result) Enum

func (x Response_Result) Enum() *Response_Result

func (Response_Result) EnumDescriptor deprecated

func (Response_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use Response_Result.Descriptor instead.

func (Response_Result) Number

func (Response_Result) String

func (x Response_Result) String() string

func (Response_Result) Type

type ServerPing

type ServerPing struct {

	// Timestamp the ping was sent on the stream, for client to get a sense
	// of potential network latency
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The delay server will apply before sending the next ping
	PingDelay *durationpb.Duration `protobuf:"bytes,2,opt,name=ping_delay,json=pingDelay,proto3" json:"ping_delay,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerPing) Descriptor deprecated

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

Deprecated: Use ServerPing.ProtoReflect.Descriptor instead.

func (*ServerPing) GetPingDelay

func (x *ServerPing) GetPingDelay() *durationpb.Duration

func (*ServerPing) GetTimestamp

func (x *ServerPing) GetTimestamp() *timestamppb.Timestamp

func (*ServerPing) ProtoMessage

func (*ServerPing) ProtoMessage()

func (*ServerPing) ProtoReflect

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

func (*ServerPing) Reset

func (x *ServerPing) Reset()

func (*ServerPing) String

func (x *ServerPing) String() string

func (*ServerPing) Validate

func (m *ServerPing) Validate() error

Validate checks the field values on ServerPing with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ServerPingValidationError

type ServerPingValidationError struct {
	// contains filtered or unexported fields
}

ServerPingValidationError is the validation error returned by ServerPing.Validate if the designated constraints aren't met.

func (ServerPingValidationError) Cause

func (e ServerPingValidationError) Cause() error

Cause function returns cause value.

func (ServerPingValidationError) Error

Error satisfies the builtin error interface

func (ServerPingValidationError) ErrorName

func (e ServerPingValidationError) ErrorName() string

ErrorName returns error name.

func (ServerPingValidationError) Field

Field function returns field value.

func (ServerPingValidationError) Key

Key function returns key value.

func (ServerPingValidationError) Reason

func (e ServerPingValidationError) Reason() string

Reason function returns reason value.

type Signature

type Signature struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Signature is a raw binary Ed25519 signature

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetValue

func (x *Signature) GetValue() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

func (*Signature) Validate

func (m *Signature) Validate() error

Validate checks the field values on Signature with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SignatureValidationError

type SignatureValidationError struct {
	// contains filtered or unexported fields
}

SignatureValidationError is the validation error returned by Signature.Validate if the designated constraints aren't met.

func (SignatureValidationError) Cause

func (e SignatureValidationError) Cause() error

Cause function returns cause value.

func (SignatureValidationError) Error

func (e SignatureValidationError) Error() string

Error satisfies the builtin error interface

func (SignatureValidationError) ErrorName

func (e SignatureValidationError) ErrorName() string

ErrorName returns error name.

func (SignatureValidationError) Field

func (e SignatureValidationError) Field() string

Field function returns field value.

func (SignatureValidationError) Key

Key function returns key value.

func (SignatureValidationError) Reason

func (e SignatureValidationError) Reason() string

Reason function returns reason value.

type SolanaAccountId

type SolanaAccountId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

SolanaAccountId is a raw binary Ed25519 public key for a Solana account

func (*SolanaAccountId) Descriptor deprecated

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

Deprecated: Use SolanaAccountId.ProtoReflect.Descriptor instead.

func (*SolanaAccountId) GetValue

func (x *SolanaAccountId) GetValue() []byte

func (*SolanaAccountId) ProtoMessage

func (*SolanaAccountId) ProtoMessage()

func (*SolanaAccountId) ProtoReflect

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

func (*SolanaAccountId) Reset

func (x *SolanaAccountId) Reset()

func (*SolanaAccountId) String

func (x *SolanaAccountId) String() string

func (*SolanaAccountId) Validate

func (m *SolanaAccountId) Validate() error

Validate checks the field values on SolanaAccountId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SolanaAccountIdValidationError

type SolanaAccountIdValidationError struct {
	// contains filtered or unexported fields
}

SolanaAccountIdValidationError is the validation error returned by SolanaAccountId.Validate if the designated constraints aren't met.

func (SolanaAccountIdValidationError) Cause

Cause function returns cause value.

func (SolanaAccountIdValidationError) Error

Error satisfies the builtin error interface

func (SolanaAccountIdValidationError) ErrorName

func (e SolanaAccountIdValidationError) ErrorName() string

ErrorName returns error name.

func (SolanaAccountIdValidationError) Field

Field function returns field value.

func (SolanaAccountIdValidationError) Key

Key function returns key value.

func (SolanaAccountIdValidationError) Reason

Reason function returns reason value.

type SolanaAddressLookupTable

type SolanaAddressLookupTable struct {
	Address *SolanaAccountId   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Entries []*SolanaAccountId `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

A Solana address lookup table used in versioned transactions

func (*SolanaAddressLookupTable) Descriptor deprecated

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

Deprecated: Use SolanaAddressLookupTable.ProtoReflect.Descriptor instead.

func (*SolanaAddressLookupTable) GetAddress

func (x *SolanaAddressLookupTable) GetAddress() *SolanaAccountId

func (*SolanaAddressLookupTable) GetEntries

func (x *SolanaAddressLookupTable) GetEntries() []*SolanaAccountId

func (*SolanaAddressLookupTable) ProtoMessage

func (*SolanaAddressLookupTable) ProtoMessage()

func (*SolanaAddressLookupTable) ProtoReflect

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

func (*SolanaAddressLookupTable) Reset

func (x *SolanaAddressLookupTable) Reset()

func (*SolanaAddressLookupTable) String

func (x *SolanaAddressLookupTable) String() string

func (*SolanaAddressLookupTable) Validate

func (m *SolanaAddressLookupTable) Validate() error

Validate checks the field values on SolanaAddressLookupTable with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SolanaAddressLookupTableValidationError

type SolanaAddressLookupTableValidationError struct {
	// contains filtered or unexported fields
}

SolanaAddressLookupTableValidationError is the validation error returned by SolanaAddressLookupTable.Validate if the designated constraints aren't met.

func (SolanaAddressLookupTableValidationError) Cause

Cause function returns cause value.

func (SolanaAddressLookupTableValidationError) Error

Error satisfies the builtin error interface

func (SolanaAddressLookupTableValidationError) ErrorName

ErrorName returns error name.

func (SolanaAddressLookupTableValidationError) Field

Field function returns field value.

func (SolanaAddressLookupTableValidationError) Key

Key function returns key value.

func (SolanaAddressLookupTableValidationError) Reason

Reason function returns reason value.

type SwapId

type SwapId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

SwapId is a client-side generated ID that maps to a swap.

func (*SwapId) Descriptor deprecated

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

Deprecated: Use SwapId.ProtoReflect.Descriptor instead.

func (*SwapId) GetValue

func (x *SwapId) GetValue() []byte

func (*SwapId) ProtoMessage

func (*SwapId) ProtoMessage()

func (*SwapId) ProtoReflect

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

func (*SwapId) Reset

func (x *SwapId) Reset()

func (*SwapId) String

func (x *SwapId) String() string

func (*SwapId) Validate

func (m *SwapId) Validate() error

Validate checks the field values on SwapId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SwapIdValidationError

type SwapIdValidationError struct {
	// contains filtered or unexported fields
}

SwapIdValidationError is the validation error returned by SwapId.Validate if the designated constraints aren't met.

func (SwapIdValidationError) Cause

func (e SwapIdValidationError) Cause() error

Cause function returns cause value.

func (SwapIdValidationError) Error

func (e SwapIdValidationError) Error() string

Error satisfies the builtin error interface

func (SwapIdValidationError) ErrorName

func (e SwapIdValidationError) ErrorName() string

ErrorName returns error name.

func (SwapIdValidationError) Field

func (e SwapIdValidationError) Field() string

Field function returns field value.

func (SwapIdValidationError) Key

func (e SwapIdValidationError) Key() bool

Key function returns key value.

func (SwapIdValidationError) Reason

func (e SwapIdValidationError) Reason() string

Reason function returns reason value.

type Transaction

type Transaction struct {

	// Maximum size taken from: https://github.com/solana-labs/solana/blob/39b3ac6a8d29e14faa1de73d8b46d390ad41797b/sdk/src/packet.rs#L9-L13
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Transaction is a raw binary Solana transaction

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetValue

func (x *Transaction) GetValue() []byte

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

func (*Transaction) Validate

func (m *Transaction) Validate() error

Validate checks the field values on Transaction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type TransactionValidationError

type TransactionValidationError struct {
	// contains filtered or unexported fields
}

TransactionValidationError is the validation error returned by Transaction.Validate if the designated constraints aren't met.

func (TransactionValidationError) Cause

Cause function returns cause value.

func (TransactionValidationError) Error

Error satisfies the builtin error interface

func (TransactionValidationError) ErrorName

func (e TransactionValidationError) ErrorName() string

ErrorName returns error name.

func (TransactionValidationError) Field

Field function returns field value.

func (TransactionValidationError) Key

Key function returns key value.

func (TransactionValidationError) Reason

Reason function returns reason value.

type UUID

type UUID struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

UUID is a 16 byte UUID value

func (*UUID) Descriptor deprecated

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue

func (x *UUID) GetValue() []byte

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

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

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

func (*UUID) Validate

func (m *UUID) Validate() error

Validate checks the field values on UUID with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UUIDValidationError

type UUIDValidationError struct {
	// contains filtered or unexported fields
}

UUIDValidationError is the validation error returned by UUID.Validate if the designated constraints aren't met.

func (UUIDValidationError) Cause

func (e UUIDValidationError) Cause() error

Cause function returns cause value.

func (UUIDValidationError) Error

func (e UUIDValidationError) Error() string

Error satisfies the builtin error interface

func (UUIDValidationError) ErrorName

func (e UUIDValidationError) ErrorName() string

ErrorName returns error name.

func (UUIDValidationError) Field

func (e UUIDValidationError) Field() string

Field function returns field value.

func (UUIDValidationError) Key

func (e UUIDValidationError) Key() bool

Key function returns key value.

func (UUIDValidationError) Reason

func (e UUIDValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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