Documentation
¶
Index ¶
- Variables
- func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetFeePayment() *FeePaymentAction
- func (x *Action) GetId() uint32
- func (x *Action) GetNoPrivacyTransfer() *NoPrivacyTransferAction
- func (x *Action) GetNoPrivacyWithdraw() *NoPrivacyWithdrawAction
- func (x *Action) GetOpenAccount() *OpenAccountAction
- func (m *Action) GetType() isAction_Type
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- func (m *Action) Validate() error
- type ActionValidationError
- type Action_FeePayment
- type Action_NoPrivacyTransfer
- type Action_NoPrivacyWithdraw
- type Action_OpenAccount
- type AirdropRequest
- func (*AirdropRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AirdropRequest) GetAirdropType() AirdropType
- func (x *AirdropRequest) GetOwner() *v1.SolanaAccountId
- func (x *AirdropRequest) GetSignature() *v1.Signature
- func (*AirdropRequest) ProtoMessage()
- func (x *AirdropRequest) ProtoReflect() protoreflect.Message
- func (x *AirdropRequest) Reset()
- func (x *AirdropRequest) String() string
- func (m *AirdropRequest) Validate() error
- type AirdropRequestValidationError
- func (e AirdropRequestValidationError) Cause() error
- func (e AirdropRequestValidationError) Error() string
- func (e AirdropRequestValidationError) ErrorName() string
- func (e AirdropRequestValidationError) Field() string
- func (e AirdropRequestValidationError) Key() bool
- func (e AirdropRequestValidationError) Reason() string
- type AirdropResponse
- func (*AirdropResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AirdropResponse) GetExchangeData() *ExchangeData
- func (x *AirdropResponse) GetResult() AirdropResponse_Result
- func (*AirdropResponse) ProtoMessage()
- func (x *AirdropResponse) ProtoReflect() protoreflect.Message
- func (x *AirdropResponse) Reset()
- func (x *AirdropResponse) String() string
- func (m *AirdropResponse) Validate() error
- type AirdropResponseValidationError
- func (e AirdropResponseValidationError) Cause() error
- func (e AirdropResponseValidationError) Error() string
- func (e AirdropResponseValidationError) ErrorName() string
- func (e AirdropResponseValidationError) Field() string
- func (e AirdropResponseValidationError) Key() bool
- func (e AirdropResponseValidationError) Reason() string
- type AirdropResponse_Result
- func (AirdropResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x AirdropResponse_Result) Enum() *AirdropResponse_Result
- func (AirdropResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x AirdropResponse_Result) Number() protoreflect.EnumNumber
- func (x AirdropResponse_Result) String() string
- func (AirdropResponse_Result) Type() protoreflect.EnumType
- type AirdropType
- func (AirdropType) Descriptor() protoreflect.EnumDescriptor
- func (x AirdropType) Enum() *AirdropType
- func (AirdropType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AirdropType) Number() protoreflect.EnumNumber
- func (x AirdropType) String() string
- func (AirdropType) Type() protoreflect.EnumType
- type CanWithdrawToAccountRequest
- func (*CanWithdrawToAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CanWithdrawToAccountRequest) GetAccount() *v1.SolanaAccountId
- func (x *CanWithdrawToAccountRequest) GetMint() *v1.SolanaAccountId
- func (*CanWithdrawToAccountRequest) ProtoMessage()
- func (x *CanWithdrawToAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CanWithdrawToAccountRequest) Reset()
- func (x *CanWithdrawToAccountRequest) String() string
- func (m *CanWithdrawToAccountRequest) Validate() error
- type CanWithdrawToAccountRequestValidationError
- func (e CanWithdrawToAccountRequestValidationError) Cause() error
- func (e CanWithdrawToAccountRequestValidationError) Error() string
- func (e CanWithdrawToAccountRequestValidationError) ErrorName() string
- func (e CanWithdrawToAccountRequestValidationError) Field() string
- func (e CanWithdrawToAccountRequestValidationError) Key() bool
- func (e CanWithdrawToAccountRequestValidationError) Reason() string
- type CanWithdrawToAccountResponse
- func (*CanWithdrawToAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CanWithdrawToAccountResponse) GetAccountType() CanWithdrawToAccountResponse_AccountType
- func (x *CanWithdrawToAccountResponse) GetFeeAmount() *ExchangeDataWithoutRate
- func (x *CanWithdrawToAccountResponse) GetIsValidPaymentDestination() bool
- func (x *CanWithdrawToAccountResponse) GetRequiresInitialization() bool
- func (*CanWithdrawToAccountResponse) ProtoMessage()
- func (x *CanWithdrawToAccountResponse) ProtoReflect() protoreflect.Message
- func (x *CanWithdrawToAccountResponse) Reset()
- func (x *CanWithdrawToAccountResponse) String() string
- func (m *CanWithdrawToAccountResponse) Validate() error
- type CanWithdrawToAccountResponseValidationError
- func (e CanWithdrawToAccountResponseValidationError) Cause() error
- func (e CanWithdrawToAccountResponseValidationError) Error() string
- func (e CanWithdrawToAccountResponseValidationError) ErrorName() string
- func (e CanWithdrawToAccountResponseValidationError) Field() string
- func (e CanWithdrawToAccountResponseValidationError) Key() bool
- func (e CanWithdrawToAccountResponseValidationError) Reason() string
- type CanWithdrawToAccountResponse_AccountType
- func (CanWithdrawToAccountResponse_AccountType) Descriptor() protoreflect.EnumDescriptor
- func (x CanWithdrawToAccountResponse_AccountType) Enum() *CanWithdrawToAccountResponse_AccountType
- func (CanWithdrawToAccountResponse_AccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CanWithdrawToAccountResponse_AccountType) Number() protoreflect.EnumNumber
- func (x CanWithdrawToAccountResponse_AccountType) String() string
- func (CanWithdrawToAccountResponse_AccountType) Type() protoreflect.EnumType
- type DeniedErrorDetails
- func (*DeniedErrorDetails) Descriptor() ([]byte, []int)deprecated
- func (x *DeniedErrorDetails) GetCode() DeniedErrorDetails_Code
- func (x *DeniedErrorDetails) GetReason() string
- func (*DeniedErrorDetails) ProtoMessage()
- func (x *DeniedErrorDetails) ProtoReflect() protoreflect.Message
- func (x *DeniedErrorDetails) Reset()
- func (x *DeniedErrorDetails) String() string
- func (m *DeniedErrorDetails) Validate() error
- type DeniedErrorDetailsValidationError
- func (e DeniedErrorDetailsValidationError) Cause() error
- func (e DeniedErrorDetailsValidationError) Error() string
- func (e DeniedErrorDetailsValidationError) ErrorName() string
- func (e DeniedErrorDetailsValidationError) Field() string
- func (e DeniedErrorDetailsValidationError) Key() bool
- func (e DeniedErrorDetailsValidationError) Reason() string
- type DeniedErrorDetails_Code
- func (DeniedErrorDetails_Code) Descriptor() protoreflect.EnumDescriptor
- func (x DeniedErrorDetails_Code) Enum() *DeniedErrorDetails_Code
- func (DeniedErrorDetails_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeniedErrorDetails_Code) Number() protoreflect.EnumNumber
- func (x DeniedErrorDetails_Code) String() string
- func (DeniedErrorDetails_Code) Type() protoreflect.EnumType
- type ErrorDetails
- func (*ErrorDetails) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorDetails) GetDenied() *DeniedErrorDetails
- func (x *ErrorDetails) GetInvalidSignature() *InvalidSignatureErrorDetails
- func (x *ErrorDetails) GetReasonString() *ReasonStringErrorDetails
- func (m *ErrorDetails) GetType() isErrorDetails_Type
- func (*ErrorDetails) ProtoMessage()
- func (x *ErrorDetails) ProtoReflect() protoreflect.Message
- func (x *ErrorDetails) Reset()
- func (x *ErrorDetails) String() string
- func (m *ErrorDetails) Validate() error
- type ErrorDetailsValidationError
- func (e ErrorDetailsValidationError) Cause() error
- func (e ErrorDetailsValidationError) Error() string
- func (e ErrorDetailsValidationError) ErrorName() string
- func (e ErrorDetailsValidationError) Field() string
- func (e ErrorDetailsValidationError) Key() bool
- func (e ErrorDetailsValidationError) Reason() string
- type ErrorDetails_Denied
- type ErrorDetails_InvalidSignature
- type ErrorDetails_ReasonString
- type ExchangeData
- func (*ExchangeData) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeData) GetCurrency() string
- func (x *ExchangeData) GetExchangeRate() float64
- func (x *ExchangeData) GetMint() *v1.SolanaAccountId
- func (x *ExchangeData) GetNativeAmount() float64
- func (x *ExchangeData) GetQuarks() uint64
- func (*ExchangeData) ProtoMessage()
- func (x *ExchangeData) ProtoReflect() protoreflect.Message
- func (x *ExchangeData) Reset()
- func (x *ExchangeData) String() string
- func (m *ExchangeData) Validate() error
- type ExchangeDataValidationError
- func (e ExchangeDataValidationError) Cause() error
- func (e ExchangeDataValidationError) Error() string
- func (e ExchangeDataValidationError) ErrorName() string
- func (e ExchangeDataValidationError) Field() string
- func (e ExchangeDataValidationError) Key() bool
- func (e ExchangeDataValidationError) Reason() string
- type ExchangeDataWithoutRate
- func (*ExchangeDataWithoutRate) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeDataWithoutRate) GetCurrency() string
- func (x *ExchangeDataWithoutRate) GetNativeAmount() float64
- func (*ExchangeDataWithoutRate) ProtoMessage()
- func (x *ExchangeDataWithoutRate) ProtoReflect() protoreflect.Message
- func (x *ExchangeDataWithoutRate) Reset()
- func (x *ExchangeDataWithoutRate) String() string
- func (m *ExchangeDataWithoutRate) Validate() error
- type ExchangeDataWithoutRateValidationError
- func (e ExchangeDataWithoutRateValidationError) Cause() error
- func (e ExchangeDataWithoutRateValidationError) Error() string
- func (e ExchangeDataWithoutRateValidationError) ErrorName() string
- func (e ExchangeDataWithoutRateValidationError) Field() string
- func (e ExchangeDataWithoutRateValidationError) Key() bool
- func (e ExchangeDataWithoutRateValidationError) Reason() string
- type FeePaymentAction
- func (*FeePaymentAction) Descriptor() ([]byte, []int)deprecated
- func (x *FeePaymentAction) GetAmount() uint64
- func (x *FeePaymentAction) GetAuthority() *v1.SolanaAccountId
- func (x *FeePaymentAction) GetMint() *v1.SolanaAccountId
- func (x *FeePaymentAction) GetSource() *v1.SolanaAccountId
- func (x *FeePaymentAction) GetType() FeePaymentAction_FeeType
- func (*FeePaymentAction) ProtoMessage()
- func (x *FeePaymentAction) ProtoReflect() protoreflect.Message
- func (x *FeePaymentAction) Reset()
- func (x *FeePaymentAction) String() string
- func (m *FeePaymentAction) Validate() error
- type FeePaymentActionValidationError
- func (e FeePaymentActionValidationError) Cause() error
- func (e FeePaymentActionValidationError) Error() string
- func (e FeePaymentActionValidationError) ErrorName() string
- func (e FeePaymentActionValidationError) Field() string
- func (e FeePaymentActionValidationError) Key() bool
- func (e FeePaymentActionValidationError) Reason() string
- type FeePaymentAction_FeeType
- func (FeePaymentAction_FeeType) Descriptor() protoreflect.EnumDescriptor
- func (x FeePaymentAction_FeeType) Enum() *FeePaymentAction_FeeType
- func (FeePaymentAction_FeeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FeePaymentAction_FeeType) Number() protoreflect.EnumNumber
- func (x FeePaymentAction_FeeType) String() string
- func (FeePaymentAction_FeeType) Type() protoreflect.EnumType
- type FeePaymentServerParameter
- func (*FeePaymentServerParameter) Descriptor() ([]byte, []int)deprecated
- func (x *FeePaymentServerParameter) GetDestination() *v1.SolanaAccountId
- func (*FeePaymentServerParameter) ProtoMessage()
- func (x *FeePaymentServerParameter) ProtoReflect() protoreflect.Message
- func (x *FeePaymentServerParameter) Reset()
- func (x *FeePaymentServerParameter) String() string
- func (m *FeePaymentServerParameter) Validate() error
- type FeePaymentServerParameterValidationError
- func (e FeePaymentServerParameterValidationError) Cause() error
- func (e FeePaymentServerParameterValidationError) Error() string
- func (e FeePaymentServerParameterValidationError) ErrorName() string
- func (e FeePaymentServerParameterValidationError) Field() string
- func (e FeePaymentServerParameterValidationError) Key() bool
- func (e FeePaymentServerParameterValidationError) Reason() string
- type FundingSource
- func (FundingSource) Descriptor() protoreflect.EnumDescriptor
- func (x FundingSource) Enum() *FundingSource
- func (FundingSource) EnumDescriptor() ([]byte, []int)deprecated
- func (x FundingSource) Number() protoreflect.EnumNumber
- func (x FundingSource) String() string
- func (FundingSource) Type() protoreflect.EnumType
- type GetIntentMetadataRequest
- func (*GetIntentMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIntentMetadataRequest) GetIntentId() *v1.IntentId
- func (x *GetIntentMetadataRequest) GetOwner() *v1.SolanaAccountId
- func (x *GetIntentMetadataRequest) GetSignature() *v1.Signature
- func (*GetIntentMetadataRequest) ProtoMessage()
- func (x *GetIntentMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *GetIntentMetadataRequest) Reset()
- func (x *GetIntentMetadataRequest) String() string
- func (m *GetIntentMetadataRequest) Validate() error
- type GetIntentMetadataRequestValidationError
- func (e GetIntentMetadataRequestValidationError) Cause() error
- func (e GetIntentMetadataRequestValidationError) Error() string
- func (e GetIntentMetadataRequestValidationError) ErrorName() string
- func (e GetIntentMetadataRequestValidationError) Field() string
- func (e GetIntentMetadataRequestValidationError) Key() bool
- func (e GetIntentMetadataRequestValidationError) Reason() string
- type GetIntentMetadataResponse
- func (*GetIntentMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIntentMetadataResponse) GetMetadata() *Metadata
- func (x *GetIntentMetadataResponse) GetResult() GetIntentMetadataResponse_Result
- func (*GetIntentMetadataResponse) ProtoMessage()
- func (x *GetIntentMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetIntentMetadataResponse) Reset()
- func (x *GetIntentMetadataResponse) String() string
- func (m *GetIntentMetadataResponse) Validate() error
- type GetIntentMetadataResponseValidationError
- func (e GetIntentMetadataResponseValidationError) Cause() error
- func (e GetIntentMetadataResponseValidationError) Error() string
- func (e GetIntentMetadataResponseValidationError) ErrorName() string
- func (e GetIntentMetadataResponseValidationError) Field() string
- func (e GetIntentMetadataResponseValidationError) Key() bool
- func (e GetIntentMetadataResponseValidationError) Reason() string
- type GetIntentMetadataResponse_Result
- func (GetIntentMetadataResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetIntentMetadataResponse_Result) Enum() *GetIntentMetadataResponse_Result
- func (GetIntentMetadataResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetIntentMetadataResponse_Result) Number() protoreflect.EnumNumber
- func (x GetIntentMetadataResponse_Result) String() string
- func (GetIntentMetadataResponse_Result) Type() protoreflect.EnumType
- type GetLimitsRequest
- func (*GetLimitsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLimitsRequest) GetConsumedSince() *timestamppb.Timestamp
- func (x *GetLimitsRequest) GetOwner() *v1.SolanaAccountId
- func (x *GetLimitsRequest) GetSignature() *v1.Signature
- func (*GetLimitsRequest) ProtoMessage()
- func (x *GetLimitsRequest) ProtoReflect() protoreflect.Message
- func (x *GetLimitsRequest) Reset()
- func (x *GetLimitsRequest) String() string
- func (m *GetLimitsRequest) Validate() error
- type GetLimitsRequestValidationError
- func (e GetLimitsRequestValidationError) Cause() error
- func (e GetLimitsRequestValidationError) Error() string
- func (e GetLimitsRequestValidationError) ErrorName() string
- func (e GetLimitsRequestValidationError) Field() string
- func (e GetLimitsRequestValidationError) Key() bool
- func (e GetLimitsRequestValidationError) Reason() string
- type GetLimitsResponse
- func (*GetLimitsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLimitsResponse) GetResult() GetLimitsResponse_Result
- func (x *GetLimitsResponse) GetSendLimitsByCurrency() map[string]*SendLimit
- func (x *GetLimitsResponse) GetUsdTransacted() float64
- func (*GetLimitsResponse) ProtoMessage()
- func (x *GetLimitsResponse) ProtoReflect() protoreflect.Message
- func (x *GetLimitsResponse) Reset()
- func (x *GetLimitsResponse) String() string
- func (m *GetLimitsResponse) Validate() error
- type GetLimitsResponseValidationError
- func (e GetLimitsResponseValidationError) Cause() error
- func (e GetLimitsResponseValidationError) Error() string
- func (e GetLimitsResponseValidationError) ErrorName() string
- func (e GetLimitsResponseValidationError) Field() string
- func (e GetLimitsResponseValidationError) Key() bool
- func (e GetLimitsResponseValidationError) Reason() string
- type GetLimitsResponse_Result
- func (GetLimitsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetLimitsResponse_Result) Enum() *GetLimitsResponse_Result
- func (GetLimitsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetLimitsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetLimitsResponse_Result) String() string
- func (GetLimitsResponse_Result) Type() protoreflect.EnumType
- type GetPendingSwapsRequest
- func (*GetPendingSwapsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPendingSwapsRequest) GetOwner() *v1.SolanaAccountId
- func (x *GetPendingSwapsRequest) GetSignature() *v1.Signature
- func (*GetPendingSwapsRequest) ProtoMessage()
- func (x *GetPendingSwapsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPendingSwapsRequest) Reset()
- func (x *GetPendingSwapsRequest) String() string
- func (m *GetPendingSwapsRequest) Validate() error
- type GetPendingSwapsRequestValidationError
- func (e GetPendingSwapsRequestValidationError) Cause() error
- func (e GetPendingSwapsRequestValidationError) Error() string
- func (e GetPendingSwapsRequestValidationError) ErrorName() string
- func (e GetPendingSwapsRequestValidationError) Field() string
- func (e GetPendingSwapsRequestValidationError) Key() bool
- func (e GetPendingSwapsRequestValidationError) Reason() string
- type GetPendingSwapsResponse
- func (*GetPendingSwapsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPendingSwapsResponse) GetResult() GetPendingSwapsResponse_Result
- func (x *GetPendingSwapsResponse) GetSwaps() []*SwapMetadata
- func (*GetPendingSwapsResponse) ProtoMessage()
- func (x *GetPendingSwapsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPendingSwapsResponse) Reset()
- func (x *GetPendingSwapsResponse) String() string
- func (m *GetPendingSwapsResponse) Validate() error
- type GetPendingSwapsResponseValidationError
- func (e GetPendingSwapsResponseValidationError) Cause() error
- func (e GetPendingSwapsResponseValidationError) Error() string
- func (e GetPendingSwapsResponseValidationError) ErrorName() string
- func (e GetPendingSwapsResponseValidationError) Field() string
- func (e GetPendingSwapsResponseValidationError) Key() bool
- func (e GetPendingSwapsResponseValidationError) Reason() string
- type GetPendingSwapsResponse_Result
- func (GetPendingSwapsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetPendingSwapsResponse_Result) Enum() *GetPendingSwapsResponse_Result
- func (GetPendingSwapsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetPendingSwapsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetPendingSwapsResponse_Result) String() string
- func (GetPendingSwapsResponse_Result) Type() protoreflect.EnumType
- type GetSwapRequest
- func (*GetSwapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSwapRequest) GetId() *v1.SwapId
- func (x *GetSwapRequest) GetOwner() *v1.SolanaAccountId
- func (x *GetSwapRequest) GetSignature() *v1.Signature
- func (*GetSwapRequest) ProtoMessage()
- func (x *GetSwapRequest) ProtoReflect() protoreflect.Message
- func (x *GetSwapRequest) Reset()
- func (x *GetSwapRequest) String() string
- func (m *GetSwapRequest) Validate() error
- type GetSwapRequestValidationError
- func (e GetSwapRequestValidationError) Cause() error
- func (e GetSwapRequestValidationError) Error() string
- func (e GetSwapRequestValidationError) ErrorName() string
- func (e GetSwapRequestValidationError) Field() string
- func (e GetSwapRequestValidationError) Key() bool
- func (e GetSwapRequestValidationError) Reason() string
- type GetSwapResponse
- func (*GetSwapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSwapResponse) GetResult() GetSwapResponse_Result
- func (x *GetSwapResponse) GetSwap() *SwapMetadata
- func (*GetSwapResponse) ProtoMessage()
- func (x *GetSwapResponse) ProtoReflect() protoreflect.Message
- func (x *GetSwapResponse) Reset()
- func (x *GetSwapResponse) String() string
- func (m *GetSwapResponse) Validate() error
- type GetSwapResponseValidationError
- func (e GetSwapResponseValidationError) Cause() error
- func (e GetSwapResponseValidationError) Error() string
- func (e GetSwapResponseValidationError) ErrorName() string
- func (e GetSwapResponseValidationError) Field() string
- func (e GetSwapResponseValidationError) Key() bool
- func (e GetSwapResponseValidationError) Reason() string
- type GetSwapResponse_Result
- func (GetSwapResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetSwapResponse_Result) Enum() *GetSwapResponse_Result
- func (GetSwapResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetSwapResponse_Result) Number() protoreflect.EnumNumber
- func (x GetSwapResponse_Result) String() string
- func (GetSwapResponse_Result) Type() protoreflect.EnumType
- type InvalidSignatureErrorDetails
- func (*InvalidSignatureErrorDetails) Descriptor() ([]byte, []int)deprecated
- func (x *InvalidSignatureErrorDetails) GetActionId() uint32
- func (m *InvalidSignatureErrorDetails) GetExpectedBlob() isInvalidSignatureErrorDetails_ExpectedBlob
- func (x *InvalidSignatureErrorDetails) GetExpectedTransaction() *v1.Transaction
- func (x *InvalidSignatureErrorDetails) GetExpectedVixnHash() *v1.Hash
- func (x *InvalidSignatureErrorDetails) GetProvidedSignature() *v1.Signature
- func (*InvalidSignatureErrorDetails) ProtoMessage()
- func (x *InvalidSignatureErrorDetails) ProtoReflect() protoreflect.Message
- func (x *InvalidSignatureErrorDetails) Reset()
- func (x *InvalidSignatureErrorDetails) String() string
- func (m *InvalidSignatureErrorDetails) Validate() error
- type InvalidSignatureErrorDetailsValidationError
- func (e InvalidSignatureErrorDetailsValidationError) Cause() error
- func (e InvalidSignatureErrorDetailsValidationError) Error() string
- func (e InvalidSignatureErrorDetailsValidationError) ErrorName() string
- func (e InvalidSignatureErrorDetailsValidationError) Field() string
- func (e InvalidSignatureErrorDetailsValidationError) Key() bool
- func (e InvalidSignatureErrorDetailsValidationError) Reason() string
- type InvalidSignatureErrorDetails_ExpectedTransaction
- type InvalidSignatureErrorDetails_ExpectedVixnHash
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetOpenAccounts() *OpenAccountsMetadata
- func (x *Metadata) GetPublicDistribution() *PublicDistributionMetadata
- func (x *Metadata) GetReceivePaymentsPublicly() *ReceivePaymentsPubliclyMetadata
- func (x *Metadata) GetSendPublicPayment() *SendPublicPaymentMetadata
- func (m *Metadata) GetType() isMetadata_Type
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (m *Metadata) Validate() error
- type MetadataValidationError
- type Metadata_OpenAccounts
- type Metadata_PublicDistribution
- type Metadata_ReceivePaymentsPublicly
- type Metadata_SendPublicPayment
- type NoPrivacyTransferAction
- func (*NoPrivacyTransferAction) Descriptor() ([]byte, []int)deprecated
- func (x *NoPrivacyTransferAction) GetAmount() uint64
- func (x *NoPrivacyTransferAction) GetAuthority() *v1.SolanaAccountId
- func (x *NoPrivacyTransferAction) GetDestination() *v1.SolanaAccountId
- func (x *NoPrivacyTransferAction) GetMint() *v1.SolanaAccountId
- func (x *NoPrivacyTransferAction) GetSource() *v1.SolanaAccountId
- func (*NoPrivacyTransferAction) ProtoMessage()
- func (x *NoPrivacyTransferAction) ProtoReflect() protoreflect.Message
- func (x *NoPrivacyTransferAction) Reset()
- func (x *NoPrivacyTransferAction) String() string
- func (m *NoPrivacyTransferAction) Validate() error
- type NoPrivacyTransferActionValidationError
- func (e NoPrivacyTransferActionValidationError) Cause() error
- func (e NoPrivacyTransferActionValidationError) Error() string
- func (e NoPrivacyTransferActionValidationError) ErrorName() string
- func (e NoPrivacyTransferActionValidationError) Field() string
- func (e NoPrivacyTransferActionValidationError) Key() bool
- func (e NoPrivacyTransferActionValidationError) Reason() string
- type NoPrivacyTransferServerParameter
- func (*NoPrivacyTransferServerParameter) Descriptor() ([]byte, []int)deprecated
- func (*NoPrivacyTransferServerParameter) ProtoMessage()
- func (x *NoPrivacyTransferServerParameter) ProtoReflect() protoreflect.Message
- func (x *NoPrivacyTransferServerParameter) Reset()
- func (x *NoPrivacyTransferServerParameter) String() string
- func (m *NoPrivacyTransferServerParameter) Validate() error
- type NoPrivacyTransferServerParameterValidationError
- func (e NoPrivacyTransferServerParameterValidationError) Cause() error
- func (e NoPrivacyTransferServerParameterValidationError) Error() string
- func (e NoPrivacyTransferServerParameterValidationError) ErrorName() string
- func (e NoPrivacyTransferServerParameterValidationError) Field() string
- func (e NoPrivacyTransferServerParameterValidationError) Key() bool
- func (e NoPrivacyTransferServerParameterValidationError) Reason() string
- type NoPrivacyWithdrawAction
- func (*NoPrivacyWithdrawAction) Descriptor() ([]byte, []int)deprecated
- func (x *NoPrivacyWithdrawAction) GetAmount() uint64
- func (x *NoPrivacyWithdrawAction) GetAuthority() *v1.SolanaAccountId
- func (x *NoPrivacyWithdrawAction) GetDestination() *v1.SolanaAccountId
- func (x *NoPrivacyWithdrawAction) GetIsAutoReturn() bool
- func (x *NoPrivacyWithdrawAction) GetMint() *v1.SolanaAccountId
- func (x *NoPrivacyWithdrawAction) GetShouldClose() bool
- func (x *NoPrivacyWithdrawAction) GetSource() *v1.SolanaAccountId
- func (*NoPrivacyWithdrawAction) ProtoMessage()
- func (x *NoPrivacyWithdrawAction) ProtoReflect() protoreflect.Message
- func (x *NoPrivacyWithdrawAction) Reset()
- func (x *NoPrivacyWithdrawAction) String() string
- func (m *NoPrivacyWithdrawAction) Validate() error
- type NoPrivacyWithdrawActionValidationError
- func (e NoPrivacyWithdrawActionValidationError) Cause() error
- func (e NoPrivacyWithdrawActionValidationError) Error() string
- func (e NoPrivacyWithdrawActionValidationError) ErrorName() string
- func (e NoPrivacyWithdrawActionValidationError) Field() string
- func (e NoPrivacyWithdrawActionValidationError) Key() bool
- func (e NoPrivacyWithdrawActionValidationError) Reason() string
- type NoPrivacyWithdrawServerParameter
- func (*NoPrivacyWithdrawServerParameter) Descriptor() ([]byte, []int)deprecated
- func (*NoPrivacyWithdrawServerParameter) ProtoMessage()
- func (x *NoPrivacyWithdrawServerParameter) ProtoReflect() protoreflect.Message
- func (x *NoPrivacyWithdrawServerParameter) Reset()
- func (x *NoPrivacyWithdrawServerParameter) String() string
- func (m *NoPrivacyWithdrawServerParameter) Validate() error
- type NoPrivacyWithdrawServerParameterValidationError
- func (e NoPrivacyWithdrawServerParameterValidationError) Cause() error
- func (e NoPrivacyWithdrawServerParameterValidationError) Error() string
- func (e NoPrivacyWithdrawServerParameterValidationError) ErrorName() string
- func (e NoPrivacyWithdrawServerParameterValidationError) Field() string
- func (e NoPrivacyWithdrawServerParameterValidationError) Key() bool
- func (e NoPrivacyWithdrawServerParameterValidationError) Reason() string
- type NoncedTransactionMetadata
- func (*NoncedTransactionMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *NoncedTransactionMetadata) GetBlockhash() *v1.Blockhash
- func (x *NoncedTransactionMetadata) GetNonce() *v1.SolanaAccountId
- func (*NoncedTransactionMetadata) ProtoMessage()
- func (x *NoncedTransactionMetadata) ProtoReflect() protoreflect.Message
- func (x *NoncedTransactionMetadata) Reset()
- func (x *NoncedTransactionMetadata) String() string
- func (m *NoncedTransactionMetadata) Validate() error
- type NoncedTransactionMetadataValidationError
- func (e NoncedTransactionMetadataValidationError) Cause() error
- func (e NoncedTransactionMetadataValidationError) Error() string
- func (e NoncedTransactionMetadataValidationError) ErrorName() string
- func (e NoncedTransactionMetadataValidationError) Field() string
- func (e NoncedTransactionMetadataValidationError) Key() bool
- func (e NoncedTransactionMetadataValidationError) Reason() string
- type OpenAccountAction
- func (*OpenAccountAction) Descriptor() ([]byte, []int)deprecated
- func (x *OpenAccountAction) GetAccountType() v1.AccountType
- func (x *OpenAccountAction) GetAuthority() *v1.SolanaAccountId
- func (x *OpenAccountAction) GetAuthoritySignature() *v1.Signature
- func (x *OpenAccountAction) GetIndex() uint64
- func (x *OpenAccountAction) GetMint() *v1.SolanaAccountId
- func (x *OpenAccountAction) GetOwner() *v1.SolanaAccountId
- func (x *OpenAccountAction) GetToken() *v1.SolanaAccountId
- func (*OpenAccountAction) ProtoMessage()
- func (x *OpenAccountAction) ProtoReflect() protoreflect.Message
- func (x *OpenAccountAction) Reset()
- func (x *OpenAccountAction) String() string
- func (m *OpenAccountAction) Validate() error
- type OpenAccountActionValidationError
- func (e OpenAccountActionValidationError) Cause() error
- func (e OpenAccountActionValidationError) Error() string
- func (e OpenAccountActionValidationError) ErrorName() string
- func (e OpenAccountActionValidationError) Field() string
- func (e OpenAccountActionValidationError) Key() bool
- func (e OpenAccountActionValidationError) Reason() string
- type OpenAccountServerParameter
- func (*OpenAccountServerParameter) Descriptor() ([]byte, []int)deprecated
- func (*OpenAccountServerParameter) ProtoMessage()
- func (x *OpenAccountServerParameter) ProtoReflect() protoreflect.Message
- func (x *OpenAccountServerParameter) Reset()
- func (x *OpenAccountServerParameter) String() string
- func (m *OpenAccountServerParameter) Validate() error
- type OpenAccountServerParameterValidationError
- func (e OpenAccountServerParameterValidationError) Cause() error
- func (e OpenAccountServerParameterValidationError) Error() string
- func (e OpenAccountServerParameterValidationError) ErrorName() string
- func (e OpenAccountServerParameterValidationError) Field() string
- func (e OpenAccountServerParameterValidationError) Key() bool
- func (e OpenAccountServerParameterValidationError) Reason() string
- type OpenAccountsMetadata
- func (*OpenAccountsMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *OpenAccountsMetadata) GetAccountSet() OpenAccountsMetadata_AccountSet
- func (x *OpenAccountsMetadata) GetMint() *v1.SolanaAccountId
- func (*OpenAccountsMetadata) ProtoMessage()
- func (x *OpenAccountsMetadata) ProtoReflect() protoreflect.Message
- func (x *OpenAccountsMetadata) Reset()
- func (x *OpenAccountsMetadata) String() string
- func (m *OpenAccountsMetadata) Validate() error
- type OpenAccountsMetadataValidationError
- func (e OpenAccountsMetadataValidationError) Cause() error
- func (e OpenAccountsMetadataValidationError) Error() string
- func (e OpenAccountsMetadataValidationError) ErrorName() string
- func (e OpenAccountsMetadataValidationError) Field() string
- func (e OpenAccountsMetadataValidationError) Key() bool
- func (e OpenAccountsMetadataValidationError) Reason() string
- type OpenAccountsMetadata_AccountSet
- func (OpenAccountsMetadata_AccountSet) Descriptor() protoreflect.EnumDescriptor
- func (x OpenAccountsMetadata_AccountSet) Enum() *OpenAccountsMetadata_AccountSet
- func (OpenAccountsMetadata_AccountSet) EnumDescriptor() ([]byte, []int)deprecated
- func (x OpenAccountsMetadata_AccountSet) Number() protoreflect.EnumNumber
- func (x OpenAccountsMetadata_AccountSet) String() string
- func (OpenAccountsMetadata_AccountSet) Type() protoreflect.EnumType
- type PublicDistributionMetadata
- func (*PublicDistributionMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *PublicDistributionMetadata) GetDistributions() []*PublicDistributionMetadata_Distribution
- func (x *PublicDistributionMetadata) GetMint() *v1.SolanaAccountId
- func (x *PublicDistributionMetadata) GetSource() *v1.SolanaAccountId
- func (*PublicDistributionMetadata) ProtoMessage()
- func (x *PublicDistributionMetadata) ProtoReflect() protoreflect.Message
- func (x *PublicDistributionMetadata) Reset()
- func (x *PublicDistributionMetadata) String() string
- func (m *PublicDistributionMetadata) Validate() error
- type PublicDistributionMetadataValidationError
- func (e PublicDistributionMetadataValidationError) Cause() error
- func (e PublicDistributionMetadataValidationError) Error() string
- func (e PublicDistributionMetadataValidationError) ErrorName() string
- func (e PublicDistributionMetadataValidationError) Field() string
- func (e PublicDistributionMetadataValidationError) Key() bool
- func (e PublicDistributionMetadataValidationError) Reason() string
- type PublicDistributionMetadata_Distribution
- func (*PublicDistributionMetadata_Distribution) Descriptor() ([]byte, []int)deprecated
- func (x *PublicDistributionMetadata_Distribution) GetDestination() *v1.SolanaAccountId
- func (x *PublicDistributionMetadata_Distribution) GetQuarks() uint64
- func (*PublicDistributionMetadata_Distribution) ProtoMessage()
- func (x *PublicDistributionMetadata_Distribution) ProtoReflect() protoreflect.Message
- func (x *PublicDistributionMetadata_Distribution) Reset()
- func (x *PublicDistributionMetadata_Distribution) String() string
- func (m *PublicDistributionMetadata_Distribution) Validate() error
- type PublicDistributionMetadata_DistributionValidationError
- func (e PublicDistributionMetadata_DistributionValidationError) Cause() error
- func (e PublicDistributionMetadata_DistributionValidationError) Error() string
- func (e PublicDistributionMetadata_DistributionValidationError) ErrorName() string
- func (e PublicDistributionMetadata_DistributionValidationError) Field() string
- func (e PublicDistributionMetadata_DistributionValidationError) Key() bool
- func (e PublicDistributionMetadata_DistributionValidationError) Reason() string
- type ReasonStringErrorDetails
- func (*ReasonStringErrorDetails) Descriptor() ([]byte, []int)deprecated
- func (x *ReasonStringErrorDetails) GetReason() string
- func (*ReasonStringErrorDetails) ProtoMessage()
- func (x *ReasonStringErrorDetails) ProtoReflect() protoreflect.Message
- func (x *ReasonStringErrorDetails) Reset()
- func (x *ReasonStringErrorDetails) String() string
- func (m *ReasonStringErrorDetails) Validate() error
- type ReasonStringErrorDetailsValidationError
- func (e ReasonStringErrorDetailsValidationError) Cause() error
- func (e ReasonStringErrorDetailsValidationError) Error() string
- func (e ReasonStringErrorDetailsValidationError) ErrorName() string
- func (e ReasonStringErrorDetailsValidationError) Field() string
- func (e ReasonStringErrorDetailsValidationError) Key() bool
- func (e ReasonStringErrorDetailsValidationError) Reason() string
- type ReceivePaymentsPubliclyMetadata
- func (*ReceivePaymentsPubliclyMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ReceivePaymentsPubliclyMetadata) GetExchangeData() *ExchangeData
- func (x *ReceivePaymentsPubliclyMetadata) GetIsRemoteSend() bool
- func (x *ReceivePaymentsPubliclyMetadata) GetMint() *v1.SolanaAccountId
- func (x *ReceivePaymentsPubliclyMetadata) GetQuarks() uint64
- func (x *ReceivePaymentsPubliclyMetadata) GetSource() *v1.SolanaAccountId
- func (*ReceivePaymentsPubliclyMetadata) ProtoMessage()
- func (x *ReceivePaymentsPubliclyMetadata) ProtoReflect() protoreflect.Message
- func (x *ReceivePaymentsPubliclyMetadata) Reset()
- func (x *ReceivePaymentsPubliclyMetadata) String() string
- func (m *ReceivePaymentsPubliclyMetadata) Validate() error
- type ReceivePaymentsPubliclyMetadataValidationError
- func (e ReceivePaymentsPubliclyMetadataValidationError) Cause() error
- func (e ReceivePaymentsPubliclyMetadataValidationError) Error() string
- func (e ReceivePaymentsPubliclyMetadataValidationError) ErrorName() string
- func (e ReceivePaymentsPubliclyMetadataValidationError) Field() string
- func (e ReceivePaymentsPubliclyMetadataValidationError) Key() bool
- func (e ReceivePaymentsPubliclyMetadataValidationError) Reason() string
- type SendLimit
- func (*SendLimit) Descriptor() ([]byte, []int)deprecated
- func (x *SendLimit) GetMaxPerDay() float32
- func (x *SendLimit) GetMaxPerTransaction() float32
- func (x *SendLimit) GetNextTransaction() float32
- func (*SendLimit) ProtoMessage()
- func (x *SendLimit) ProtoReflect() protoreflect.Message
- func (x *SendLimit) Reset()
- func (x *SendLimit) String() string
- func (m *SendLimit) Validate() error
- type SendLimitValidationError
- type SendPublicPaymentMetadata
- func (*SendPublicPaymentMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *SendPublicPaymentMetadata) GetDestination() *v1.SolanaAccountId
- func (x *SendPublicPaymentMetadata) GetDestinationOwner() *v1.SolanaAccountId
- func (x *SendPublicPaymentMetadata) GetExchangeData() *ExchangeData
- func (x *SendPublicPaymentMetadata) GetIsRemoteSend() bool
- func (x *SendPublicPaymentMetadata) GetIsWithdrawal() bool
- func (x *SendPublicPaymentMetadata) GetMint() *v1.SolanaAccountId
- func (x *SendPublicPaymentMetadata) GetSource() *v1.SolanaAccountId
- func (*SendPublicPaymentMetadata) ProtoMessage()
- func (x *SendPublicPaymentMetadata) ProtoReflect() protoreflect.Message
- func (x *SendPublicPaymentMetadata) Reset()
- func (x *SendPublicPaymentMetadata) String() string
- func (m *SendPublicPaymentMetadata) Validate() error
- type SendPublicPaymentMetadataValidationError
- func (e SendPublicPaymentMetadataValidationError) Cause() error
- func (e SendPublicPaymentMetadataValidationError) Error() string
- func (e SendPublicPaymentMetadataValidationError) ErrorName() string
- func (e SendPublicPaymentMetadataValidationError) Field() string
- func (e SendPublicPaymentMetadataValidationError) Key() bool
- func (e SendPublicPaymentMetadataValidationError) Reason() string
- type ServerParameter
- func (*ServerParameter) Descriptor() ([]byte, []int)deprecated
- func (x *ServerParameter) GetActionId() uint32
- func (x *ServerParameter) GetFeePayment() *FeePaymentServerParameter
- func (x *ServerParameter) GetNoPrivacyTransfer() *NoPrivacyTransferServerParameter
- func (x *ServerParameter) GetNoPrivacyWithdraw() *NoPrivacyWithdrawServerParameter
- func (x *ServerParameter) GetNonces() []*NoncedTransactionMetadata
- func (x *ServerParameter) GetOpenAccount() *OpenAccountServerParameter
- func (m *ServerParameter) GetType() isServerParameter_Type
- func (*ServerParameter) ProtoMessage()
- func (x *ServerParameter) ProtoReflect() protoreflect.Message
- func (x *ServerParameter) Reset()
- func (x *ServerParameter) String() string
- func (m *ServerParameter) Validate() error
- type ServerParameterValidationError
- func (e ServerParameterValidationError) Cause() error
- func (e ServerParameterValidationError) Error() string
- func (e ServerParameterValidationError) ErrorName() string
- func (e ServerParameterValidationError) Field() string
- func (e ServerParameterValidationError) Key() bool
- func (e ServerParameterValidationError) Reason() string
- type ServerParameter_FeePayment
- type ServerParameter_NoPrivacyTransfer
- type ServerParameter_NoPrivacyWithdraw
- type ServerParameter_OpenAccount
- type StartSwapRequest
- func (*StartSwapRequest) Descriptor() ([]byte, []int)deprecated
- func (m *StartSwapRequest) GetRequest() isStartSwapRequest_Request
- func (x *StartSwapRequest) GetStart() *StartSwapRequest_Start
- func (x *StartSwapRequest) GetSubmitSignature() *StartSwapRequest_SubmitSignature
- func (*StartSwapRequest) ProtoMessage()
- func (x *StartSwapRequest) ProtoReflect() protoreflect.Message
- func (x *StartSwapRequest) Reset()
- func (x *StartSwapRequest) String() string
- func (m *StartSwapRequest) Validate() error
- type StartSwapRequestValidationError
- func (e StartSwapRequestValidationError) Cause() error
- func (e StartSwapRequestValidationError) Error() string
- func (e StartSwapRequestValidationError) ErrorName() string
- func (e StartSwapRequestValidationError) Field() string
- func (e StartSwapRequestValidationError) Key() bool
- func (e StartSwapRequestValidationError) Reason() string
- type StartSwapRequest_Start
- func (*StartSwapRequest_Start) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapRequest_Start) GetCurrencyCreator() *StartSwapRequest_Start_CurrencyCreator
- func (m *StartSwapRequest_Start) GetKind() isStartSwapRequest_Start_Kind
- func (x *StartSwapRequest_Start) GetOwner() *v1.SolanaAccountId
- func (x *StartSwapRequest_Start) GetSignature() *v1.Signature
- func (*StartSwapRequest_Start) ProtoMessage()
- func (x *StartSwapRequest_Start) ProtoReflect() protoreflect.Message
- func (x *StartSwapRequest_Start) Reset()
- func (x *StartSwapRequest_Start) String() string
- func (m *StartSwapRequest_Start) Validate() error
- type StartSwapRequest_StartValidationError
- func (e StartSwapRequest_StartValidationError) Cause() error
- func (e StartSwapRequest_StartValidationError) Error() string
- func (e StartSwapRequest_StartValidationError) ErrorName() string
- func (e StartSwapRequest_StartValidationError) Field() string
- func (e StartSwapRequest_StartValidationError) Key() bool
- func (e StartSwapRequest_StartValidationError) Reason() string
- type StartSwapRequest_Start_
- type StartSwapRequest_Start_CurrencyCreator
- func (*StartSwapRequest_Start_CurrencyCreator) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapRequest_Start_CurrencyCreator) GetAmount() uint64
- func (x *StartSwapRequest_Start_CurrencyCreator) GetFromMint() *v1.SolanaAccountId
- func (x *StartSwapRequest_Start_CurrencyCreator) GetFundingId() string
- func (x *StartSwapRequest_Start_CurrencyCreator) GetFundingSource() FundingSource
- func (x *StartSwapRequest_Start_CurrencyCreator) GetId() *v1.SwapId
- func (x *StartSwapRequest_Start_CurrencyCreator) GetToMint() *v1.SolanaAccountId
- func (*StartSwapRequest_Start_CurrencyCreator) ProtoMessage()
- func (x *StartSwapRequest_Start_CurrencyCreator) ProtoReflect() protoreflect.Message
- func (x *StartSwapRequest_Start_CurrencyCreator) Reset()
- func (x *StartSwapRequest_Start_CurrencyCreator) String() string
- func (m *StartSwapRequest_Start_CurrencyCreator) Validate() error
- type StartSwapRequest_Start_CurrencyCreatorValidationError
- func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Cause() error
- func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Error() string
- func (e StartSwapRequest_Start_CurrencyCreatorValidationError) ErrorName() string
- func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Field() string
- func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Key() bool
- func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Reason() string
- type StartSwapRequest_Start_CurrencyCreator_
- type StartSwapRequest_SubmitSignature
- func (*StartSwapRequest_SubmitSignature) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapRequest_SubmitSignature) GetSignature() *v1.Signature
- func (*StartSwapRequest_SubmitSignature) ProtoMessage()
- func (x *StartSwapRequest_SubmitSignature) ProtoReflect() protoreflect.Message
- func (x *StartSwapRequest_SubmitSignature) Reset()
- func (x *StartSwapRequest_SubmitSignature) String() string
- func (m *StartSwapRequest_SubmitSignature) Validate() error
- type StartSwapRequest_SubmitSignatureValidationError
- func (e StartSwapRequest_SubmitSignatureValidationError) Cause() error
- func (e StartSwapRequest_SubmitSignatureValidationError) Error() string
- func (e StartSwapRequest_SubmitSignatureValidationError) ErrorName() string
- func (e StartSwapRequest_SubmitSignatureValidationError) Field() string
- func (e StartSwapRequest_SubmitSignatureValidationError) Key() bool
- func (e StartSwapRequest_SubmitSignatureValidationError) Reason() string
- type StartSwapRequest_SubmitSignature_
- type StartSwapResponse
- func (*StartSwapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapResponse) GetError() *StartSwapResponse_Error
- func (m *StartSwapResponse) GetResponse() isStartSwapResponse_Response
- func (x *StartSwapResponse) GetServerParameters() *StartSwapResponse_ServerParameters
- func (x *StartSwapResponse) GetSuccess() *StartSwapResponse_Success
- func (*StartSwapResponse) ProtoMessage()
- func (x *StartSwapResponse) ProtoReflect() protoreflect.Message
- func (x *StartSwapResponse) Reset()
- func (x *StartSwapResponse) String() string
- func (m *StartSwapResponse) Validate() error
- type StartSwapResponseValidationError
- func (e StartSwapResponseValidationError) Cause() error
- func (e StartSwapResponseValidationError) Error() string
- func (e StartSwapResponseValidationError) ErrorName() string
- func (e StartSwapResponseValidationError) Field() string
- func (e StartSwapResponseValidationError) Key() bool
- func (e StartSwapResponseValidationError) Reason() string
- type StartSwapResponse_Error
- func (*StartSwapResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapResponse_Error) GetCode() StartSwapResponse_Error_Code
- func (x *StartSwapResponse_Error) GetErrorDetails() []*ErrorDetails
- func (*StartSwapResponse_Error) ProtoMessage()
- func (x *StartSwapResponse_Error) ProtoReflect() protoreflect.Message
- func (x *StartSwapResponse_Error) Reset()
- func (x *StartSwapResponse_Error) String() string
- func (m *StartSwapResponse_Error) Validate() error
- type StartSwapResponse_ErrorValidationError
- func (e StartSwapResponse_ErrorValidationError) Cause() error
- func (e StartSwapResponse_ErrorValidationError) Error() string
- func (e StartSwapResponse_ErrorValidationError) ErrorName() string
- func (e StartSwapResponse_ErrorValidationError) Field() string
- func (e StartSwapResponse_ErrorValidationError) Key() bool
- func (e StartSwapResponse_ErrorValidationError) Reason() string
- type StartSwapResponse_Error_
- type StartSwapResponse_Error_Code
- func (StartSwapResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
- func (x StartSwapResponse_Error_Code) Enum() *StartSwapResponse_Error_Code
- func (StartSwapResponse_Error_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x StartSwapResponse_Error_Code) Number() protoreflect.EnumNumber
- func (x StartSwapResponse_Error_Code) String() string
- func (StartSwapResponse_Error_Code) Type() protoreflect.EnumType
- type StartSwapResponse_ServerParameters
- func (*StartSwapResponse_ServerParameters) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapResponse_ServerParameters) GetCurrencyCreator() *StartSwapResponse_ServerParameters_CurrencyCreator
- func (m *StartSwapResponse_ServerParameters) GetKind() isStartSwapResponse_ServerParameters_Kind
- func (*StartSwapResponse_ServerParameters) ProtoMessage()
- func (x *StartSwapResponse_ServerParameters) ProtoReflect() protoreflect.Message
- func (x *StartSwapResponse_ServerParameters) Reset()
- func (x *StartSwapResponse_ServerParameters) String() string
- func (m *StartSwapResponse_ServerParameters) Validate() error
- type StartSwapResponse_ServerParametersValidationError
- func (e StartSwapResponse_ServerParametersValidationError) Cause() error
- func (e StartSwapResponse_ServerParametersValidationError) Error() string
- func (e StartSwapResponse_ServerParametersValidationError) ErrorName() string
- func (e StartSwapResponse_ServerParametersValidationError) Field() string
- func (e StartSwapResponse_ServerParametersValidationError) Key() bool
- func (e StartSwapResponse_ServerParametersValidationError) Reason() string
- type StartSwapResponse_ServerParameters_
- type StartSwapResponse_ServerParameters_CurrencyCreator
- func (*StartSwapResponse_ServerParameters_CurrencyCreator) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash() *v1.Blockhash
- func (x *StartSwapResponse_ServerParameters_CurrencyCreator) GetNonce() *v1.SolanaAccountId
- func (*StartSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage()
- func (x *StartSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect() protoreflect.Message
- func (x *StartSwapResponse_ServerParameters_CurrencyCreator) Reset()
- func (x *StartSwapResponse_ServerParameters_CurrencyCreator) String() string
- func (m *StartSwapResponse_ServerParameters_CurrencyCreator) Validate() error
- type StartSwapResponse_ServerParameters_CurrencyCreatorValidationError
- func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Cause() error
- func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Error() string
- func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) ErrorName() string
- func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Field() string
- func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Key() bool
- func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Reason() string
- type StartSwapResponse_ServerParameters_CurrencyCreator_
- type StartSwapResponse_Success
- func (*StartSwapResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *StartSwapResponse_Success) GetCode() StartSwapResponse_Success_Code
- func (*StartSwapResponse_Success) ProtoMessage()
- func (x *StartSwapResponse_Success) ProtoReflect() protoreflect.Message
- func (x *StartSwapResponse_Success) Reset()
- func (x *StartSwapResponse_Success) String() string
- func (m *StartSwapResponse_Success) Validate() error
- type StartSwapResponse_SuccessValidationError
- func (e StartSwapResponse_SuccessValidationError) Cause() error
- func (e StartSwapResponse_SuccessValidationError) Error() string
- func (e StartSwapResponse_SuccessValidationError) ErrorName() string
- func (e StartSwapResponse_SuccessValidationError) Field() string
- func (e StartSwapResponse_SuccessValidationError) Key() bool
- func (e StartSwapResponse_SuccessValidationError) Reason() string
- type StartSwapResponse_Success_
- type StartSwapResponse_Success_Code
- func (StartSwapResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
- func (x StartSwapResponse_Success_Code) Enum() *StartSwapResponse_Success_Code
- func (StartSwapResponse_Success_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x StartSwapResponse_Success_Code) Number() protoreflect.EnumNumber
- func (x StartSwapResponse_Success_Code) String() string
- func (StartSwapResponse_Success_Code) Type() protoreflect.EnumType
- type SubmitIntentRequest
- func (*SubmitIntentRequest) Descriptor() ([]byte, []int)deprecated
- func (m *SubmitIntentRequest) GetRequest() isSubmitIntentRequest_Request
- func (x *SubmitIntentRequest) GetSubmitActions() *SubmitIntentRequest_SubmitActions
- func (x *SubmitIntentRequest) GetSubmitSignatures() *SubmitIntentRequest_SubmitSignatures
- func (*SubmitIntentRequest) ProtoMessage()
- func (x *SubmitIntentRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentRequest) Reset()
- func (x *SubmitIntentRequest) String() string
- func (m *SubmitIntentRequest) Validate() error
- type SubmitIntentRequestValidationError
- func (e SubmitIntentRequestValidationError) Cause() error
- func (e SubmitIntentRequestValidationError) Error() string
- func (e SubmitIntentRequestValidationError) ErrorName() string
- func (e SubmitIntentRequestValidationError) Field() string
- func (e SubmitIntentRequestValidationError) Key() bool
- func (e SubmitIntentRequestValidationError) Reason() string
- type SubmitIntentRequest_SubmitActions
- func (*SubmitIntentRequest_SubmitActions) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitIntentRequest_SubmitActions) GetActions() []*Action
- func (x *SubmitIntentRequest_SubmitActions) GetId() *v1.IntentId
- func (x *SubmitIntentRequest_SubmitActions) GetMetadata() *Metadata
- func (x *SubmitIntentRequest_SubmitActions) GetOwner() *v1.SolanaAccountId
- func (x *SubmitIntentRequest_SubmitActions) GetSignature() *v1.Signature
- func (*SubmitIntentRequest_SubmitActions) ProtoMessage()
- func (x *SubmitIntentRequest_SubmitActions) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentRequest_SubmitActions) Reset()
- func (x *SubmitIntentRequest_SubmitActions) String() string
- func (m *SubmitIntentRequest_SubmitActions) Validate() error
- type SubmitIntentRequest_SubmitActionsValidationError
- func (e SubmitIntentRequest_SubmitActionsValidationError) Cause() error
- func (e SubmitIntentRequest_SubmitActionsValidationError) Error() string
- func (e SubmitIntentRequest_SubmitActionsValidationError) ErrorName() string
- func (e SubmitIntentRequest_SubmitActionsValidationError) Field() string
- func (e SubmitIntentRequest_SubmitActionsValidationError) Key() bool
- func (e SubmitIntentRequest_SubmitActionsValidationError) Reason() string
- type SubmitIntentRequest_SubmitActions_
- type SubmitIntentRequest_SubmitSignatures
- func (*SubmitIntentRequest_SubmitSignatures) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitIntentRequest_SubmitSignatures) GetSignatures() []*v1.Signature
- func (*SubmitIntentRequest_SubmitSignatures) ProtoMessage()
- func (x *SubmitIntentRequest_SubmitSignatures) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentRequest_SubmitSignatures) Reset()
- func (x *SubmitIntentRequest_SubmitSignatures) String() string
- func (m *SubmitIntentRequest_SubmitSignatures) Validate() error
- type SubmitIntentRequest_SubmitSignaturesValidationError
- func (e SubmitIntentRequest_SubmitSignaturesValidationError) Cause() error
- func (e SubmitIntentRequest_SubmitSignaturesValidationError) Error() string
- func (e SubmitIntentRequest_SubmitSignaturesValidationError) ErrorName() string
- func (e SubmitIntentRequest_SubmitSignaturesValidationError) Field() string
- func (e SubmitIntentRequest_SubmitSignaturesValidationError) Key() bool
- func (e SubmitIntentRequest_SubmitSignaturesValidationError) Reason() string
- type SubmitIntentRequest_SubmitSignatures_
- type SubmitIntentResponse
- func (*SubmitIntentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitIntentResponse) GetError() *SubmitIntentResponse_Error
- func (m *SubmitIntentResponse) GetResponse() isSubmitIntentResponse_Response
- func (x *SubmitIntentResponse) GetServerParameters() *SubmitIntentResponse_ServerParameters
- func (x *SubmitIntentResponse) GetSuccess() *SubmitIntentResponse_Success
- func (*SubmitIntentResponse) ProtoMessage()
- func (x *SubmitIntentResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentResponse) Reset()
- func (x *SubmitIntentResponse) String() string
- func (m *SubmitIntentResponse) Validate() error
- type SubmitIntentResponseValidationError
- func (e SubmitIntentResponseValidationError) Cause() error
- func (e SubmitIntentResponseValidationError) Error() string
- func (e SubmitIntentResponseValidationError) ErrorName() string
- func (e SubmitIntentResponseValidationError) Field() string
- func (e SubmitIntentResponseValidationError) Key() bool
- func (e SubmitIntentResponseValidationError) Reason() string
- type SubmitIntentResponse_Error
- func (*SubmitIntentResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitIntentResponse_Error) GetCode() SubmitIntentResponse_Error_Code
- func (x *SubmitIntentResponse_Error) GetErrorDetails() []*ErrorDetails
- func (*SubmitIntentResponse_Error) ProtoMessage()
- func (x *SubmitIntentResponse_Error) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentResponse_Error) Reset()
- func (x *SubmitIntentResponse_Error) String() string
- func (m *SubmitIntentResponse_Error) Validate() error
- type SubmitIntentResponse_ErrorValidationError
- func (e SubmitIntentResponse_ErrorValidationError) Cause() error
- func (e SubmitIntentResponse_ErrorValidationError) Error() string
- func (e SubmitIntentResponse_ErrorValidationError) ErrorName() string
- func (e SubmitIntentResponse_ErrorValidationError) Field() string
- func (e SubmitIntentResponse_ErrorValidationError) Key() bool
- func (e SubmitIntentResponse_ErrorValidationError) Reason() string
- type SubmitIntentResponse_Error_
- type SubmitIntentResponse_Error_Code
- func (SubmitIntentResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
- func (x SubmitIntentResponse_Error_Code) Enum() *SubmitIntentResponse_Error_Code
- func (SubmitIntentResponse_Error_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubmitIntentResponse_Error_Code) Number() protoreflect.EnumNumber
- func (x SubmitIntentResponse_Error_Code) String() string
- func (SubmitIntentResponse_Error_Code) Type() protoreflect.EnumType
- type SubmitIntentResponse_ServerParameters
- func (*SubmitIntentResponse_ServerParameters) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitIntentResponse_ServerParameters) GetServerParameters() []*ServerParameter
- func (*SubmitIntentResponse_ServerParameters) ProtoMessage()
- func (x *SubmitIntentResponse_ServerParameters) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentResponse_ServerParameters) Reset()
- func (x *SubmitIntentResponse_ServerParameters) String() string
- func (m *SubmitIntentResponse_ServerParameters) Validate() error
- type SubmitIntentResponse_ServerParametersValidationError
- func (e SubmitIntentResponse_ServerParametersValidationError) Cause() error
- func (e SubmitIntentResponse_ServerParametersValidationError) Error() string
- func (e SubmitIntentResponse_ServerParametersValidationError) ErrorName() string
- func (e SubmitIntentResponse_ServerParametersValidationError) Field() string
- func (e SubmitIntentResponse_ServerParametersValidationError) Key() bool
- func (e SubmitIntentResponse_ServerParametersValidationError) Reason() string
- type SubmitIntentResponse_ServerParameters_
- type SubmitIntentResponse_Success
- func (*SubmitIntentResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitIntentResponse_Success) GetCode() SubmitIntentResponse_Success_Code
- func (*SubmitIntentResponse_Success) ProtoMessage()
- func (x *SubmitIntentResponse_Success) ProtoReflect() protoreflect.Message
- func (x *SubmitIntentResponse_Success) Reset()
- func (x *SubmitIntentResponse_Success) String() string
- func (m *SubmitIntentResponse_Success) Validate() error
- type SubmitIntentResponse_SuccessValidationError
- func (e SubmitIntentResponse_SuccessValidationError) Cause() error
- func (e SubmitIntentResponse_SuccessValidationError) Error() string
- func (e SubmitIntentResponse_SuccessValidationError) ErrorName() string
- func (e SubmitIntentResponse_SuccessValidationError) Field() string
- func (e SubmitIntentResponse_SuccessValidationError) Key() bool
- func (e SubmitIntentResponse_SuccessValidationError) Reason() string
- type SubmitIntentResponse_Success_
- type SubmitIntentResponse_Success_Code
- func (SubmitIntentResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
- func (x SubmitIntentResponse_Success_Code) Enum() *SubmitIntentResponse_Success_Code
- func (SubmitIntentResponse_Success_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubmitIntentResponse_Success_Code) Number() protoreflect.EnumNumber
- func (x SubmitIntentResponse_Success_Code) String() string
- func (SubmitIntentResponse_Success_Code) Type() protoreflect.EnumType
- type SwapMetadata
- func (*SwapMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *SwapMetadata) GetSignature() *v1.Signature
- func (x *SwapMetadata) GetState() SwapMetadata_State
- func (x *SwapMetadata) GetVerifiedMetadata() *VerifiedSwapMetadata
- func (*SwapMetadata) ProtoMessage()
- func (x *SwapMetadata) ProtoReflect() protoreflect.Message
- func (x *SwapMetadata) Reset()
- func (x *SwapMetadata) String() string
- func (m *SwapMetadata) Validate() error
- type SwapMetadataValidationError
- func (e SwapMetadataValidationError) Cause() error
- func (e SwapMetadataValidationError) Error() string
- func (e SwapMetadataValidationError) ErrorName() string
- func (e SwapMetadataValidationError) Field() string
- func (e SwapMetadataValidationError) Key() bool
- func (e SwapMetadataValidationError) Reason() string
- type SwapMetadata_State
- func (SwapMetadata_State) Descriptor() protoreflect.EnumDescriptor
- func (x SwapMetadata_State) Enum() *SwapMetadata_State
- func (SwapMetadata_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x SwapMetadata_State) Number() protoreflect.EnumNumber
- func (x SwapMetadata_State) String() string
- func (SwapMetadata_State) Type() protoreflect.EnumType
- type SwapRequest
- func (*SwapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwapRequest) GetInitiate() *SwapRequest_Initiate
- func (m *SwapRequest) GetRequest() isSwapRequest_Request
- func (x *SwapRequest) GetSubmitSignatures() *SwapRequest_SubmitSignatures
- func (*SwapRequest) ProtoMessage()
- func (x *SwapRequest) ProtoReflect() protoreflect.Message
- func (x *SwapRequest) Reset()
- func (x *SwapRequest) String() string
- func (m *SwapRequest) Validate() error
- type SwapRequestValidationError
- func (e SwapRequestValidationError) Cause() error
- func (e SwapRequestValidationError) Error() string
- func (e SwapRequestValidationError) ErrorName() string
- func (e SwapRequestValidationError) Field() string
- func (e SwapRequestValidationError) Key() bool
- func (e SwapRequestValidationError) Reason() string
- type SwapRequest_Initiate
- func (*SwapRequest_Initiate) Descriptor() ([]byte, []int)deprecated
- func (m *SwapRequest_Initiate) GetKind() isSwapRequest_Initiate_Kind
- func (x *SwapRequest_Initiate) GetStateful() *SwapRequest_Initiate_Stateful
- func (x *SwapRequest_Initiate) GetStateless() *SwapRequest_Initiate_Stateless
- func (*SwapRequest_Initiate) ProtoMessage()
- func (x *SwapRequest_Initiate) ProtoReflect() protoreflect.Message
- func (x *SwapRequest_Initiate) Reset()
- func (x *SwapRequest_Initiate) String() string
- func (m *SwapRequest_Initiate) Validate() error
- type SwapRequest_InitiateValidationError
- func (e SwapRequest_InitiateValidationError) Cause() error
- func (e SwapRequest_InitiateValidationError) Error() string
- func (e SwapRequest_InitiateValidationError) ErrorName() string
- func (e SwapRequest_InitiateValidationError) Field() string
- func (e SwapRequest_InitiateValidationError) Key() bool
- func (e SwapRequest_InitiateValidationError) Reason() string
- type SwapRequest_Initiate_
- type SwapRequest_Initiate_Stateful
- func (*SwapRequest_Initiate_Stateful) Descriptor() ([]byte, []int)deprecated
- func (x *SwapRequest_Initiate_Stateful) GetOwner() *v1.SolanaAccountId
- func (x *SwapRequest_Initiate_Stateful) GetSignature() *v1.Signature
- func (x *SwapRequest_Initiate_Stateful) GetSwapAuthority() *v1.SolanaAccountId
- func (x *SwapRequest_Initiate_Stateful) GetSwapId() *v1.SwapId
- func (*SwapRequest_Initiate_Stateful) ProtoMessage()
- func (x *SwapRequest_Initiate_Stateful) ProtoReflect() protoreflect.Message
- func (x *SwapRequest_Initiate_Stateful) Reset()
- func (x *SwapRequest_Initiate_Stateful) String() string
- func (m *SwapRequest_Initiate_Stateful) Validate() error
- type SwapRequest_Initiate_StatefulValidationError
- func (e SwapRequest_Initiate_StatefulValidationError) Cause() error
- func (e SwapRequest_Initiate_StatefulValidationError) Error() string
- func (e SwapRequest_Initiate_StatefulValidationError) ErrorName() string
- func (e SwapRequest_Initiate_StatefulValidationError) Field() string
- func (e SwapRequest_Initiate_StatefulValidationError) Key() bool
- func (e SwapRequest_Initiate_StatefulValidationError) Reason() string
- type SwapRequest_Initiate_Stateful_
- type SwapRequest_Initiate_Stateless
- func (*SwapRequest_Initiate_Stateless) Descriptor() ([]byte, []int)deprecated
- func (x *SwapRequest_Initiate_Stateless) GetAmount() uint64
- func (x *SwapRequest_Initiate_Stateless) GetFromMint() *v1.SolanaAccountId
- func (x *SwapRequest_Initiate_Stateless) GetOwner() *v1.SolanaAccountId
- func (x *SwapRequest_Initiate_Stateless) GetSignature() *v1.Signature
- func (x *SwapRequest_Initiate_Stateless) GetSwapAuthority() *v1.SolanaAccountId
- func (x *SwapRequest_Initiate_Stateless) GetToMint() *v1.SolanaAccountId
- func (x *SwapRequest_Initiate_Stateless) GetWaitForBlockchainStatus() bool
- func (*SwapRequest_Initiate_Stateless) ProtoMessage()
- func (x *SwapRequest_Initiate_Stateless) ProtoReflect() protoreflect.Message
- func (x *SwapRequest_Initiate_Stateless) Reset()
- func (x *SwapRequest_Initiate_Stateless) String() string
- func (m *SwapRequest_Initiate_Stateless) Validate() error
- type SwapRequest_Initiate_StatelessValidationError
- func (e SwapRequest_Initiate_StatelessValidationError) Cause() error
- func (e SwapRequest_Initiate_StatelessValidationError) Error() string
- func (e SwapRequest_Initiate_StatelessValidationError) ErrorName() string
- func (e SwapRequest_Initiate_StatelessValidationError) Field() string
- func (e SwapRequest_Initiate_StatelessValidationError) Key() bool
- func (e SwapRequest_Initiate_StatelessValidationError) Reason() string
- type SwapRequest_Initiate_Stateless_
- type SwapRequest_SubmitSignatures
- func (*SwapRequest_SubmitSignatures) Descriptor() ([]byte, []int)deprecated
- func (x *SwapRequest_SubmitSignatures) GetSignatures() []*v1.Signature
- func (*SwapRequest_SubmitSignatures) ProtoMessage()
- func (x *SwapRequest_SubmitSignatures) ProtoReflect() protoreflect.Message
- func (x *SwapRequest_SubmitSignatures) Reset()
- func (x *SwapRequest_SubmitSignatures) String() string
- func (m *SwapRequest_SubmitSignatures) Validate() error
- type SwapRequest_SubmitSignaturesValidationError
- func (e SwapRequest_SubmitSignaturesValidationError) Cause() error
- func (e SwapRequest_SubmitSignaturesValidationError) Error() string
- func (e SwapRequest_SubmitSignaturesValidationError) ErrorName() string
- func (e SwapRequest_SubmitSignaturesValidationError) Field() string
- func (e SwapRequest_SubmitSignaturesValidationError) Key() bool
- func (e SwapRequest_SubmitSignaturesValidationError) Reason() string
- type SwapRequest_SubmitSignatures_
- type SwapResponse
- func (*SwapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse) GetError() *SwapResponse_Error
- func (m *SwapResponse) GetResponse() isSwapResponse_Response
- func (x *SwapResponse) GetServerParameters() *SwapResponse_ServerParameters
- func (x *SwapResponse) GetSuccess() *SwapResponse_Success
- func (*SwapResponse) ProtoMessage()
- func (x *SwapResponse) ProtoReflect() protoreflect.Message
- func (x *SwapResponse) Reset()
- func (x *SwapResponse) String() string
- func (m *SwapResponse) Validate() error
- type SwapResponseValidationError
- func (e SwapResponseValidationError) Cause() error
- func (e SwapResponseValidationError) Error() string
- func (e SwapResponseValidationError) ErrorName() string
- func (e SwapResponseValidationError) Field() string
- func (e SwapResponseValidationError) Key() bool
- func (e SwapResponseValidationError) Reason() string
- type SwapResponse_Error
- func (*SwapResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse_Error) GetCode() SwapResponse_Error_Code
- func (x *SwapResponse_Error) GetErrorDetails() []*ErrorDetails
- func (*SwapResponse_Error) ProtoMessage()
- func (x *SwapResponse_Error) ProtoReflect() protoreflect.Message
- func (x *SwapResponse_Error) Reset()
- func (x *SwapResponse_Error) String() string
- func (m *SwapResponse_Error) Validate() error
- type SwapResponse_ErrorValidationError
- func (e SwapResponse_ErrorValidationError) Cause() error
- func (e SwapResponse_ErrorValidationError) Error() string
- func (e SwapResponse_ErrorValidationError) ErrorName() string
- func (e SwapResponse_ErrorValidationError) Field() string
- func (e SwapResponse_ErrorValidationError) Key() bool
- func (e SwapResponse_ErrorValidationError) Reason() string
- type SwapResponse_Error_
- type SwapResponse_Error_Code
- func (SwapResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
- func (x SwapResponse_Error_Code) Enum() *SwapResponse_Error_Code
- func (SwapResponse_Error_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x SwapResponse_Error_Code) Number() protoreflect.EnumNumber
- func (x SwapResponse_Error_Code) String() string
- func (SwapResponse_Error_Code) Type() protoreflect.EnumType
- type SwapResponse_ServerParameters
- func (*SwapResponse_ServerParameters) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse_ServerParameters) GetCurrencyCreatorStateful() *SwapResponse_ServerParameters_CurrencyCreatorStateful
- func (x *SwapResponse_ServerParameters) GetCurrencyCreatorStateless() *SwapResponse_ServerParameters_CurrencyCreatorStateless
- func (m *SwapResponse_ServerParameters) GetKind() isSwapResponse_ServerParameters_Kind
- func (*SwapResponse_ServerParameters) ProtoMessage()
- func (x *SwapResponse_ServerParameters) ProtoReflect() protoreflect.Message
- func (x *SwapResponse_ServerParameters) Reset()
- func (x *SwapResponse_ServerParameters) String() string
- func (m *SwapResponse_ServerParameters) Validate() error
- type SwapResponse_ServerParametersValidationError
- func (e SwapResponse_ServerParametersValidationError) Cause() error
- func (e SwapResponse_ServerParametersValidationError) Error() string
- func (e SwapResponse_ServerParametersValidationError) ErrorName() string
- func (e SwapResponse_ServerParametersValidationError) Field() string
- func (e SwapResponse_ServerParametersValidationError) Key() bool
- func (e SwapResponse_ServerParametersValidationError) Reason() string
- type SwapResponse_ServerParameters_
- type SwapResponse_ServerParameters_CurrencyCreatorStateful
- func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetAlts() []*v1.SolanaAddressLookupTable
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetComputeUnitLimit() uint32
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetComputeUnitPrice() uint64
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoValue() string
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoryAccount() *v1.SolanaAccountId
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoryIndex() uint32
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetPayer() *v1.SolanaAccountId
- func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) ProtoMessage()
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) ProtoReflect() protoreflect.Message
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) Reset()
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) String() string
- func (m *SwapResponse_ServerParameters_CurrencyCreatorStateful) Validate() error
- type SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Cause() error
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Error() string
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) ErrorName() string
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Field() string
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Key() bool
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Reason() string
- type SwapResponse_ServerParameters_CurrencyCreatorStateful_
- type SwapResponse_ServerParameters_CurrencyCreatorStateless
- func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetAlts() []*v1.SolanaAddressLookupTable
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetComputeUnitLimit() uint32
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetComputeUnitPrice() uint64
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoValue() string
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoryAccount() *v1.SolanaAccountId
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoryIndex() uint32
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetPayer() *v1.SolanaAccountId
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetRecentBlockhash() *v1.Blockhash
- func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) ProtoMessage()
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) ProtoReflect() protoreflect.Message
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) Reset()
- func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) String() string
- func (m *SwapResponse_ServerParameters_CurrencyCreatorStateless) Validate() error
- type SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Cause() error
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Error() string
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) ErrorName() string
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Field() string
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Key() bool
- func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Reason() string
- type SwapResponse_ServerParameters_CurrencyCreatorStateless_
- type SwapResponse_Success
- func (*SwapResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *SwapResponse_Success) GetCode() SwapResponse_Success_Code
- func (*SwapResponse_Success) ProtoMessage()
- func (x *SwapResponse_Success) ProtoReflect() protoreflect.Message
- func (x *SwapResponse_Success) Reset()
- func (x *SwapResponse_Success) String() string
- func (m *SwapResponse_Success) Validate() error
- type SwapResponse_SuccessValidationError
- func (e SwapResponse_SuccessValidationError) Cause() error
- func (e SwapResponse_SuccessValidationError) Error() string
- func (e SwapResponse_SuccessValidationError) ErrorName() string
- func (e SwapResponse_SuccessValidationError) Field() string
- func (e SwapResponse_SuccessValidationError) Key() bool
- func (e SwapResponse_SuccessValidationError) Reason() string
- type SwapResponse_Success_
- type SwapResponse_Success_Code
- func (SwapResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
- func (x SwapResponse_Success_Code) Enum() *SwapResponse_Success_Code
- func (SwapResponse_Success_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x SwapResponse_Success_Code) Number() protoreflect.EnumNumber
- func (x SwapResponse_Success_Code) String() string
- func (SwapResponse_Success_Code) Type() protoreflect.EnumType
- type TransactionClient
- type TransactionServer
- type Transaction_StartSwapClient
- type Transaction_StartSwapServer
- type Transaction_SubmitIntentClient
- type Transaction_SubmitIntentServer
- type Transaction_SwapClient
- type Transaction_SwapServer
- type UnimplementedTransactionServer
- func (UnimplementedTransactionServer) Airdrop(context.Context, *AirdropRequest) (*AirdropResponse, error)
- func (UnimplementedTransactionServer) CanWithdrawToAccount(context.Context, *CanWithdrawToAccountRequest) (*CanWithdrawToAccountResponse, error)
- func (UnimplementedTransactionServer) GetIntentMetadata(context.Context, *GetIntentMetadataRequest) (*GetIntentMetadataResponse, error)
- func (UnimplementedTransactionServer) GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error)
- func (UnimplementedTransactionServer) GetPendingSwaps(context.Context, *GetPendingSwapsRequest) (*GetPendingSwapsResponse, error)
- func (UnimplementedTransactionServer) GetSwap(context.Context, *GetSwapRequest) (*GetSwapResponse, error)
- func (UnimplementedTransactionServer) StartSwap(Transaction_StartSwapServer) error
- func (UnimplementedTransactionServer) SubmitIntent(Transaction_SubmitIntentServer) error
- func (UnimplementedTransactionServer) Swap(Transaction_SwapServer) error
- func (UnimplementedTransactionServer) VoidGiftCard(context.Context, *VoidGiftCardRequest) (*VoidGiftCardResponse, error)
- type UnsafeTransactionServer
- type VerifiedCurrencyCreatorSwapMetadata
- func (*VerifiedCurrencyCreatorSwapMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *VerifiedCurrencyCreatorSwapMetadata) GetClientParameters() *StartSwapRequest_Start_CurrencyCreator
- func (x *VerifiedCurrencyCreatorSwapMetadata) GetServerParameters() *StartSwapResponse_ServerParameters_CurrencyCreator
- func (*VerifiedCurrencyCreatorSwapMetadata) ProtoMessage()
- func (x *VerifiedCurrencyCreatorSwapMetadata) ProtoReflect() protoreflect.Message
- func (x *VerifiedCurrencyCreatorSwapMetadata) Reset()
- func (x *VerifiedCurrencyCreatorSwapMetadata) String() string
- func (m *VerifiedCurrencyCreatorSwapMetadata) Validate() error
- type VerifiedCurrencyCreatorSwapMetadataValidationError
- func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Cause() error
- func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Error() string
- func (e VerifiedCurrencyCreatorSwapMetadataValidationError) ErrorName() string
- func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Field() string
- func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Key() bool
- func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Reason() string
- type VerifiedSwapMetadata
- func (*VerifiedSwapMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *VerifiedSwapMetadata) GetCurrencyCreator() *VerifiedCurrencyCreatorSwapMetadata
- func (m *VerifiedSwapMetadata) GetKind() isVerifiedSwapMetadata_Kind
- func (*VerifiedSwapMetadata) ProtoMessage()
- func (x *VerifiedSwapMetadata) ProtoReflect() protoreflect.Message
- func (x *VerifiedSwapMetadata) Reset()
- func (x *VerifiedSwapMetadata) String() string
- func (m *VerifiedSwapMetadata) Validate() error
- type VerifiedSwapMetadataValidationError
- func (e VerifiedSwapMetadataValidationError) Cause() error
- func (e VerifiedSwapMetadataValidationError) Error() string
- func (e VerifiedSwapMetadataValidationError) ErrorName() string
- func (e VerifiedSwapMetadataValidationError) Field() string
- func (e VerifiedSwapMetadataValidationError) Key() bool
- func (e VerifiedSwapMetadataValidationError) Reason() string
- type VerifiedSwapMetadata_CurrencyCreator
- type VoidGiftCardRequest
- func (*VoidGiftCardRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VoidGiftCardRequest) GetGiftCardVault() *v1.SolanaAccountId
- func (x *VoidGiftCardRequest) GetOwner() *v1.SolanaAccountId
- func (x *VoidGiftCardRequest) GetSignature() *v1.Signature
- func (*VoidGiftCardRequest) ProtoMessage()
- func (x *VoidGiftCardRequest) ProtoReflect() protoreflect.Message
- func (x *VoidGiftCardRequest) Reset()
- func (x *VoidGiftCardRequest) String() string
- func (m *VoidGiftCardRequest) Validate() error
- type VoidGiftCardRequestValidationError
- func (e VoidGiftCardRequestValidationError) Cause() error
- func (e VoidGiftCardRequestValidationError) Error() string
- func (e VoidGiftCardRequestValidationError) ErrorName() string
- func (e VoidGiftCardRequestValidationError) Field() string
- func (e VoidGiftCardRequestValidationError) Key() bool
- func (e VoidGiftCardRequestValidationError) Reason() string
- type VoidGiftCardResponse
- func (*VoidGiftCardResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VoidGiftCardResponse) GetResult() VoidGiftCardResponse_Result
- func (*VoidGiftCardResponse) ProtoMessage()
- func (x *VoidGiftCardResponse) ProtoReflect() protoreflect.Message
- func (x *VoidGiftCardResponse) Reset()
- func (x *VoidGiftCardResponse) String() string
- func (m *VoidGiftCardResponse) Validate() error
- type VoidGiftCardResponseValidationError
- func (e VoidGiftCardResponseValidationError) Cause() error
- func (e VoidGiftCardResponseValidationError) Error() string
- func (e VoidGiftCardResponseValidationError) ErrorName() string
- func (e VoidGiftCardResponseValidationError) Field() string
- func (e VoidGiftCardResponseValidationError) Key() bool
- func (e VoidGiftCardResponseValidationError) Reason() string
- type VoidGiftCardResponse_Result
- func (VoidGiftCardResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x VoidGiftCardResponse_Result) Enum() *VoidGiftCardResponse_Result
- func (VoidGiftCardResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x VoidGiftCardResponse_Result) Number() protoreflect.EnumNumber
- func (x VoidGiftCardResponse_Result) String() string
- func (VoidGiftCardResponse_Result) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( AirdropType_name = map[int32]string{ 0: "UNKNOWN", 1: "ONBOARDING_BONUS", 2: "WELCOME_BONUS", } AirdropType_value = map[string]int32{ "UNKNOWN": 0, "ONBOARDING_BONUS": 1, "WELCOME_BONUS": 2, } )
Enum value maps for AirdropType.
var ( FundingSource_name = map[int32]string{ 0: "FUNDING_SOURCE_UNKNOWN", 1: "FUNDING_SOURCE_SUBMIT_INTENT", } FundingSource_value = map[string]int32{ "FUNDING_SOURCE_UNKNOWN": 0, "FUNDING_SOURCE_SUBMIT_INTENT": 1, } )
Enum value maps for FundingSource.
var ( SubmitIntentResponse_Success_Code_name = map[int32]string{ 0: "OK", } SubmitIntentResponse_Success_Code_value = map[string]int32{ "OK": 0, } )
Enum value maps for SubmitIntentResponse_Success_Code.
var ( SubmitIntentResponse_Error_Code_name = map[int32]string{ 0: "DENIED", 1: "INVALID_INTENT", 2: "SIGNATURE_ERROR", 3: "STALE_STATE", } SubmitIntentResponse_Error_Code_value = map[string]int32{ "DENIED": 0, "INVALID_INTENT": 1, "SIGNATURE_ERROR": 2, "STALE_STATE": 3, } )
Enum value maps for SubmitIntentResponse_Error_Code.
var ( GetIntentMetadataResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetIntentMetadataResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetIntentMetadataResponse_Result.
var ( GetLimitsResponse_Result_name = map[int32]string{ 0: "OK", } GetLimitsResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for GetLimitsResponse_Result.
var ( CanWithdrawToAccountResponse_AccountType_name = map[int32]string{ 0: "Unknown", 1: "TokenAccount", 2: "OwnerAccount", } CanWithdrawToAccountResponse_AccountType_value = map[string]int32{ "Unknown": 0, "TokenAccount": 1, "OwnerAccount": 2, } )
Enum value maps for CanWithdrawToAccountResponse_AccountType.
var ( AirdropResponse_Result_name = map[int32]string{ 0: "OK", 1: "UNAVAILABLE", 2: "ALREADY_CLAIMED", } AirdropResponse_Result_value = map[string]int32{ "OK": 0, "UNAVAILABLE": 1, "ALREADY_CLAIMED": 2, } )
Enum value maps for AirdropResponse_Result.
var ( VoidGiftCardResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", 2: "CLAIMED_BY_OTHER_USER", 3: "NOT_FOUND", } VoidGiftCardResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, "CLAIMED_BY_OTHER_USER": 2, "NOT_FOUND": 3, } )
Enum value maps for VoidGiftCardResponse_Result.
var ( StartSwapResponse_Success_Code_name = map[int32]string{ 0: "OK", } StartSwapResponse_Success_Code_value = map[string]int32{ "OK": 0, } )
Enum value maps for StartSwapResponse_Success_Code.
var ( StartSwapResponse_Error_Code_name = map[int32]string{ 0: "DENIED", 1: "SIGNATURE_ERROR", 2: "INVALID_SWAP", } StartSwapResponse_Error_Code_value = map[string]int32{ "DENIED": 0, "SIGNATURE_ERROR": 1, "INVALID_SWAP": 2, } )
Enum value maps for StartSwapResponse_Error_Code.
var ( GetSwapResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", 2: "DENIED", } GetSwapResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, "DENIED": 2, } )
Enum value maps for GetSwapResponse_Result.
var ( GetPendingSwapsResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetPendingSwapsResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetPendingSwapsResponse_Result.
var ( SwapResponse_Success_Code_name = map[int32]string{ 0: "SWAP_SUBMITTED", 1: "SWAP_FINALIZED", } SwapResponse_Success_Code_value = map[string]int32{ "SWAP_SUBMITTED": 0, "SWAP_FINALIZED": 1, } )
Enum value maps for SwapResponse_Success_Code.
var ( SwapResponse_Error_Code_name = map[int32]string{ 0: "DENIED", 1: "SIGNATURE_ERROR", 2: "INVALID_SWAP", 3: "SWAP_FAILED", } SwapResponse_Error_Code_value = map[string]int32{ "DENIED": 0, "SIGNATURE_ERROR": 1, "INVALID_SWAP": 2, "SWAP_FAILED": 3, } )
Enum value maps for SwapResponse_Error_Code.
var ( OpenAccountsMetadata_AccountSet_name = map[int32]string{ 0: "USER", 1: "POOL", } OpenAccountsMetadata_AccountSet_value = map[string]int32{ "USER": 0, "POOL": 1, } )
Enum value maps for OpenAccountsMetadata_AccountSet.
var ( FeePaymentAction_FeeType_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATE_ON_SEND_WITHDRAWAL", } FeePaymentAction_FeeType_value = map[string]int32{ "UNKNOWN": 0, "CREATE_ON_SEND_WITHDRAWAL": 1, } )
Enum value maps for FeePaymentAction_FeeType.
var ( DeniedErrorDetails_Code_name = map[int32]string{ 0: "UNSPECIFIED", } DeniedErrorDetails_Code_value = map[string]int32{ "UNSPECIFIED": 0, } )
Enum value maps for DeniedErrorDetails_Code.
var ( SwapMetadata_State_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATED", 2: "FUNDING", 3: "FUNDED", 4: "SUBMITTING", 5: "FINALIZED", 6: "FAILED", 7: "CANCELLING", 8: "CANCELLED", } SwapMetadata_State_value = map[string]int32{ "UNKNOWN": 0, "CREATED": 1, "FUNDING": 2, "FUNDED": 3, "SUBMITTING": 4, "FINALIZED": 5, "FAILED": 6, "CANCELLING": 7, "CANCELLED": 8, } )
Enum value maps for SwapMetadata_State.
var File_transaction_v1_transaction_service_proto protoreflect.FileDescriptor
var Transaction_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ocp.transaction.v1.Transaction", HandlerType: (*TransactionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetIntentMetadata", Handler: _Transaction_GetIntentMetadata_Handler, }, { MethodName: "GetLimits", Handler: _Transaction_GetLimits_Handler, }, { MethodName: "CanWithdrawToAccount", Handler: _Transaction_CanWithdrawToAccount_Handler, }, { MethodName: "Airdrop", Handler: _Transaction_Airdrop_Handler, }, { MethodName: "VoidGiftCard", Handler: _Transaction_VoidGiftCard_Handler, }, { MethodName: "GetSwap", Handler: _Transaction_GetSwap_Handler, }, { MethodName: "GetPendingSwaps", Handler: _Transaction_GetPendingSwaps_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubmitIntent", Handler: _Transaction_SubmitIntent_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "StartSwap", Handler: _Transaction_StartSwap_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Swap", Handler: _Transaction_Swap_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "transaction/v1/transaction_service.proto", }
Transaction_ServiceDesc is the grpc.ServiceDesc for Transaction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransactionServer ¶
func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
Types ¶
type Action ¶
type Action struct {
// The ID of this action, which is unique within an intent. It must match
// the index of the action's location in the SubmitAction's actions field.
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// The type of action to perform.
//
// Types that are assignable to Type:
//
// *Action_OpenAccount
// *Action_NoPrivacyTransfer
// *Action_NoPrivacyWithdraw
// *Action_FeePayment
Type isAction_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
Action is a well-defined, ordered and small set of transactions or virtual instructions for a unit of work that the client wants to perform on the blockchain. Clients provide parameters known to them in the action.
func (*Action) Descriptor
deprecated
func (*Action) GetFeePayment ¶
func (x *Action) GetFeePayment() *FeePaymentAction
func (*Action) GetNoPrivacyTransfer ¶
func (x *Action) GetNoPrivacyTransfer() *NoPrivacyTransferAction
func (*Action) GetNoPrivacyWithdraw ¶
func (x *Action) GetNoPrivacyWithdraw() *NoPrivacyWithdrawAction
func (*Action) GetOpenAccount ¶
func (x *Action) GetOpenAccount() *OpenAccountAction
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type ActionValidationError ¶
type ActionValidationError struct {
// contains filtered or unexported fields
}
ActionValidationError is the validation error returned by Action.Validate if the designated constraints aren't met.
func (ActionValidationError) Cause ¶
func (e ActionValidationError) Cause() error
Cause function returns cause value.
func (ActionValidationError) Error ¶
func (e ActionValidationError) Error() string
Error satisfies the builtin error interface
func (ActionValidationError) ErrorName ¶
func (e ActionValidationError) ErrorName() string
ErrorName returns error name.
func (ActionValidationError) Field ¶
func (e ActionValidationError) Field() string
Field function returns field value.
func (ActionValidationError) Key ¶
func (e ActionValidationError) Key() bool
Key function returns key value.
func (ActionValidationError) Reason ¶
func (e ActionValidationError) Reason() string
Reason function returns reason value.
type Action_FeePayment ¶
type Action_FeePayment struct {
FeePayment *FeePaymentAction `protobuf:"bytes,5,opt,name=fee_payment,json=feePayment,proto3,oneof"`
}
type Action_NoPrivacyTransfer ¶
type Action_NoPrivacyTransfer struct {
NoPrivacyTransfer *NoPrivacyTransferAction `protobuf:"bytes,3,opt,name=no_privacy_transfer,json=noPrivacyTransfer,proto3,oneof"`
}
type Action_NoPrivacyWithdraw ¶
type Action_NoPrivacyWithdraw struct {
NoPrivacyWithdraw *NoPrivacyWithdrawAction `protobuf:"bytes,4,opt,name=no_privacy_withdraw,json=noPrivacyWithdraw,proto3,oneof"`
}
type Action_OpenAccount ¶
type Action_OpenAccount struct {
OpenAccount *OpenAccountAction `protobuf:"bytes,2,opt,name=open_account,json=openAccount,proto3,oneof"`
}
type AirdropRequest ¶
type AirdropRequest struct {
// The type of airdrop to claim
AirdropType AirdropType `` /* 131-byte string literal not displayed */
// The owner account to airdrop core mint tokens to
Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// The signature is of serialize(AirdropRequest) without this field set
// using the private key of the owner account. This provides an authentication
// mechanism to the RPC.
Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*AirdropRequest) Descriptor
deprecated
func (*AirdropRequest) Descriptor() ([]byte, []int)
Deprecated: Use AirdropRequest.ProtoReflect.Descriptor instead.
func (*AirdropRequest) GetAirdropType ¶
func (x *AirdropRequest) GetAirdropType() AirdropType
func (*AirdropRequest) GetOwner ¶
func (x *AirdropRequest) GetOwner() *v1.SolanaAccountId
func (*AirdropRequest) GetSignature ¶
func (x *AirdropRequest) GetSignature() *v1.Signature
func (*AirdropRequest) ProtoMessage ¶
func (*AirdropRequest) ProtoMessage()
func (*AirdropRequest) ProtoReflect ¶
func (x *AirdropRequest) ProtoReflect() protoreflect.Message
func (*AirdropRequest) Reset ¶
func (x *AirdropRequest) Reset()
func (*AirdropRequest) String ¶
func (x *AirdropRequest) String() string
func (*AirdropRequest) Validate ¶
func (m *AirdropRequest) Validate() error
Validate checks the field values on AirdropRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AirdropRequestValidationError ¶
type AirdropRequestValidationError struct {
// contains filtered or unexported fields
}
AirdropRequestValidationError is the validation error returned by AirdropRequest.Validate if the designated constraints aren't met.
func (AirdropRequestValidationError) Cause ¶
func (e AirdropRequestValidationError) Cause() error
Cause function returns cause value.
func (AirdropRequestValidationError) Error ¶
func (e AirdropRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AirdropRequestValidationError) ErrorName ¶
func (e AirdropRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AirdropRequestValidationError) Field ¶
func (e AirdropRequestValidationError) Field() string
Field function returns field value.
func (AirdropRequestValidationError) Key ¶
func (e AirdropRequestValidationError) Key() bool
Key function returns key value.
func (AirdropRequestValidationError) Reason ¶
func (e AirdropRequestValidationError) Reason() string
Reason function returns reason value.
type AirdropResponse ¶
type AirdropResponse struct {
Result AirdropResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.transaction.v1.AirdropResponse_Result" json:"result,omitempty"`
// Exchange data for the amount of core mint tokens airdropped when successful
ExchangeData *ExchangeData `protobuf:"bytes,2,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,omitempty"`
// contains filtered or unexported fields
}
func (*AirdropResponse) Descriptor
deprecated
func (*AirdropResponse) Descriptor() ([]byte, []int)
Deprecated: Use AirdropResponse.ProtoReflect.Descriptor instead.
func (*AirdropResponse) GetExchangeData ¶
func (x *AirdropResponse) GetExchangeData() *ExchangeData
func (*AirdropResponse) GetResult ¶
func (x *AirdropResponse) GetResult() AirdropResponse_Result
func (*AirdropResponse) ProtoMessage ¶
func (*AirdropResponse) ProtoMessage()
func (*AirdropResponse) ProtoReflect ¶
func (x *AirdropResponse) ProtoReflect() protoreflect.Message
func (*AirdropResponse) Reset ¶
func (x *AirdropResponse) Reset()
func (*AirdropResponse) String ¶
func (x *AirdropResponse) String() string
func (*AirdropResponse) Validate ¶
func (m *AirdropResponse) Validate() error
Validate checks the field values on AirdropResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AirdropResponseValidationError ¶
type AirdropResponseValidationError struct {
// contains filtered or unexported fields
}
AirdropResponseValidationError is the validation error returned by AirdropResponse.Validate if the designated constraints aren't met.
func (AirdropResponseValidationError) Cause ¶
func (e AirdropResponseValidationError) Cause() error
Cause function returns cause value.
func (AirdropResponseValidationError) Error ¶
func (e AirdropResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AirdropResponseValidationError) ErrorName ¶
func (e AirdropResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AirdropResponseValidationError) Field ¶
func (e AirdropResponseValidationError) Field() string
Field function returns field value.
func (AirdropResponseValidationError) Key ¶
func (e AirdropResponseValidationError) Key() bool
Key function returns key value.
func (AirdropResponseValidationError) Reason ¶
func (e AirdropResponseValidationError) Reason() string
Reason function returns reason value.
type AirdropResponse_Result ¶
type AirdropResponse_Result int32
const ( AirdropResponse_OK AirdropResponse_Result = 0 // Airdrops are unavailable AirdropResponse_UNAVAILABLE AirdropResponse_Result = 1 // The airdrop has already been claimed by the owner AirdropResponse_ALREADY_CLAIMED AirdropResponse_Result = 2 )
func (AirdropResponse_Result) Descriptor ¶
func (AirdropResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (AirdropResponse_Result) Enum ¶
func (x AirdropResponse_Result) Enum() *AirdropResponse_Result
func (AirdropResponse_Result) EnumDescriptor
deprecated
func (AirdropResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use AirdropResponse_Result.Descriptor instead.
func (AirdropResponse_Result) Number ¶
func (x AirdropResponse_Result) Number() protoreflect.EnumNumber
func (AirdropResponse_Result) String ¶
func (x AirdropResponse_Result) String() string
func (AirdropResponse_Result) Type ¶
func (AirdropResponse_Result) Type() protoreflect.EnumType
type AirdropType ¶
type AirdropType int32
const ( AirdropType_UNKNOWN AirdropType = 0 // Reward for onboarding another user AirdropType_ONBOARDING_BONUS AirdropType = 1 // Airdrop for getting a user started with first crypto balance AirdropType_WELCOME_BONUS AirdropType = 2 )
func (AirdropType) Descriptor ¶
func (AirdropType) Descriptor() protoreflect.EnumDescriptor
func (AirdropType) Enum ¶
func (x AirdropType) Enum() *AirdropType
func (AirdropType) EnumDescriptor
deprecated
func (AirdropType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AirdropType.Descriptor instead.
func (AirdropType) Number ¶
func (x AirdropType) Number() protoreflect.EnumNumber
func (AirdropType) String ¶
func (x AirdropType) String() string
func (AirdropType) Type ¶
func (AirdropType) Type() protoreflect.EnumType
type CanWithdrawToAccountRequest ¶
type CanWithdrawToAccountRequest struct {
// The destination account attempted to be withdrawn to. Can be an owner or
// token account.
Account *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
// The mint that the withdraw will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
func (*CanWithdrawToAccountRequest) Descriptor
deprecated
func (*CanWithdrawToAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CanWithdrawToAccountRequest.ProtoReflect.Descriptor instead.
func (*CanWithdrawToAccountRequest) GetAccount ¶
func (x *CanWithdrawToAccountRequest) GetAccount() *v1.SolanaAccountId
func (*CanWithdrawToAccountRequest) GetMint ¶
func (x *CanWithdrawToAccountRequest) GetMint() *v1.SolanaAccountId
func (*CanWithdrawToAccountRequest) ProtoMessage ¶
func (*CanWithdrawToAccountRequest) ProtoMessage()
func (*CanWithdrawToAccountRequest) ProtoReflect ¶
func (x *CanWithdrawToAccountRequest) ProtoReflect() protoreflect.Message
func (*CanWithdrawToAccountRequest) Reset ¶
func (x *CanWithdrawToAccountRequest) Reset()
func (*CanWithdrawToAccountRequest) String ¶
func (x *CanWithdrawToAccountRequest) String() string
func (*CanWithdrawToAccountRequest) Validate ¶
func (m *CanWithdrawToAccountRequest) Validate() error
Validate checks the field values on CanWithdrawToAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CanWithdrawToAccountRequestValidationError ¶
type CanWithdrawToAccountRequestValidationError struct {
// contains filtered or unexported fields
}
CanWithdrawToAccountRequestValidationError is the validation error returned by CanWithdrawToAccountRequest.Validate if the designated constraints aren't met.
func (CanWithdrawToAccountRequestValidationError) Cause ¶
func (e CanWithdrawToAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (CanWithdrawToAccountRequestValidationError) Error ¶
func (e CanWithdrawToAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CanWithdrawToAccountRequestValidationError) ErrorName ¶
func (e CanWithdrawToAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CanWithdrawToAccountRequestValidationError) Field ¶
func (e CanWithdrawToAccountRequestValidationError) Field() string
Field function returns field value.
func (CanWithdrawToAccountRequestValidationError) Key ¶
func (e CanWithdrawToAccountRequestValidationError) Key() bool
Key function returns key value.
func (CanWithdrawToAccountRequestValidationError) Reason ¶
func (e CanWithdrawToAccountRequestValidationError) Reason() string
Reason function returns reason value.
type CanWithdrawToAccountResponse ¶
type CanWithdrawToAccountResponse struct {
// Server-controlled flag to indicate if the account can be withdrawn to.
// There are several reasons server may deny it, including:
// - Wrong type of Code account
// - Unsupported external account type (eg. token account but of the wrong mint)
//
// This is guaranteed to be false when account_type = Unknown.
IsValidPaymentDestination bool `` /* 141-byte string literal not displayed */
// Metadata so the client knows how to withdraw to the account. Server cannot
// provide precalculated addresses in this response to maintain non-custodial
// status.
AccountType CanWithdrawToAccountResponse_AccountType `` /* 160-byte string literal not displayed */
// ATA requires initialization before the withdrawal can occur. Server may not
// subsidize the account creation, so a fee may be required.
RequiresInitialization bool `` /* 128-byte string literal not displayed */
// The CREATE_ON_SEND_WITHDRAWAL fee, in USD, that must be paid in order to
// submit a withdrawal to subsidize the creation of the account at time of
// send. The user must explicitly agree to this fee amount before submitting
// the intent.
//
// This can be set when requires_initialization = true if server decides to
// not subsidize the token account creation.
//
// Note: The fee is always paid in the target mint.
FeeAmount *ExchangeDataWithoutRate `protobuf:"bytes,4,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
// contains filtered or unexported fields
}
func (*CanWithdrawToAccountResponse) Descriptor
deprecated
func (*CanWithdrawToAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use CanWithdrawToAccountResponse.ProtoReflect.Descriptor instead.
func (*CanWithdrawToAccountResponse) GetAccountType ¶
func (x *CanWithdrawToAccountResponse) GetAccountType() CanWithdrawToAccountResponse_AccountType
func (*CanWithdrawToAccountResponse) GetFeeAmount ¶
func (x *CanWithdrawToAccountResponse) GetFeeAmount() *ExchangeDataWithoutRate
func (*CanWithdrawToAccountResponse) GetIsValidPaymentDestination ¶
func (x *CanWithdrawToAccountResponse) GetIsValidPaymentDestination() bool
func (*CanWithdrawToAccountResponse) GetRequiresInitialization ¶
func (x *CanWithdrawToAccountResponse) GetRequiresInitialization() bool
func (*CanWithdrawToAccountResponse) ProtoMessage ¶
func (*CanWithdrawToAccountResponse) ProtoMessage()
func (*CanWithdrawToAccountResponse) ProtoReflect ¶
func (x *CanWithdrawToAccountResponse) ProtoReflect() protoreflect.Message
func (*CanWithdrawToAccountResponse) Reset ¶
func (x *CanWithdrawToAccountResponse) Reset()
func (*CanWithdrawToAccountResponse) String ¶
func (x *CanWithdrawToAccountResponse) String() string
func (*CanWithdrawToAccountResponse) Validate ¶
func (m *CanWithdrawToAccountResponse) Validate() error
Validate checks the field values on CanWithdrawToAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CanWithdrawToAccountResponseValidationError ¶
type CanWithdrawToAccountResponseValidationError struct {
// contains filtered or unexported fields
}
CanWithdrawToAccountResponseValidationError is the validation error returned by CanWithdrawToAccountResponse.Validate if the designated constraints aren't met.
func (CanWithdrawToAccountResponseValidationError) Cause ¶
func (e CanWithdrawToAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (CanWithdrawToAccountResponseValidationError) Error ¶
func (e CanWithdrawToAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CanWithdrawToAccountResponseValidationError) ErrorName ¶
func (e CanWithdrawToAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CanWithdrawToAccountResponseValidationError) Field ¶
func (e CanWithdrawToAccountResponseValidationError) Field() string
Field function returns field value.
func (CanWithdrawToAccountResponseValidationError) Key ¶
func (e CanWithdrawToAccountResponseValidationError) Key() bool
Key function returns key value.
func (CanWithdrawToAccountResponseValidationError) Reason ¶
func (e CanWithdrawToAccountResponseValidationError) Reason() string
Reason function returns reason value.
type CanWithdrawToAccountResponse_AccountType ¶
type CanWithdrawToAccountResponse_AccountType int32
const ( CanWithdrawToAccountResponse_Unknown CanWithdrawToAccountResponse_AccountType = 0 // Server cannot determine CanWithdrawToAccountResponse_TokenAccount CanWithdrawToAccountResponse_AccountType = 1 // Client uses the address as is in SubmitIntent CanWithdrawToAccountResponse_OwnerAccount CanWithdrawToAccountResponse_AccountType = 2 // Client locally derives the ATA to use in SubmitIntent )
func (CanWithdrawToAccountResponse_AccountType) Descriptor ¶
func (CanWithdrawToAccountResponse_AccountType) Descriptor() protoreflect.EnumDescriptor
func (CanWithdrawToAccountResponse_AccountType) EnumDescriptor
deprecated
func (CanWithdrawToAccountResponse_AccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CanWithdrawToAccountResponse_AccountType.Descriptor instead.
func (CanWithdrawToAccountResponse_AccountType) Number ¶
func (x CanWithdrawToAccountResponse_AccountType) Number() protoreflect.EnumNumber
func (CanWithdrawToAccountResponse_AccountType) String ¶
func (x CanWithdrawToAccountResponse_AccountType) String() string
func (CanWithdrawToAccountResponse_AccountType) Type ¶
func (CanWithdrawToAccountResponse_AccountType) Type() protoreflect.EnumType
type DeniedErrorDetails ¶
type DeniedErrorDetails struct {
Code DeniedErrorDetails_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.DeniedErrorDetails_Code" json:"code,omitempty"`
// Human readable string indicating the failure.
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*DeniedErrorDetails) Descriptor
deprecated
func (*DeniedErrorDetails) Descriptor() ([]byte, []int)
Deprecated: Use DeniedErrorDetails.ProtoReflect.Descriptor instead.
func (*DeniedErrorDetails) GetCode ¶
func (x *DeniedErrorDetails) GetCode() DeniedErrorDetails_Code
func (*DeniedErrorDetails) GetReason ¶
func (x *DeniedErrorDetails) GetReason() string
func (*DeniedErrorDetails) ProtoMessage ¶
func (*DeniedErrorDetails) ProtoMessage()
func (*DeniedErrorDetails) ProtoReflect ¶
func (x *DeniedErrorDetails) ProtoReflect() protoreflect.Message
func (*DeniedErrorDetails) Reset ¶
func (x *DeniedErrorDetails) Reset()
func (*DeniedErrorDetails) String ¶
func (x *DeniedErrorDetails) String() string
func (*DeniedErrorDetails) Validate ¶
func (m *DeniedErrorDetails) Validate() error
Validate checks the field values on DeniedErrorDetails with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeniedErrorDetailsValidationError ¶
type DeniedErrorDetailsValidationError struct {
// contains filtered or unexported fields
}
DeniedErrorDetailsValidationError is the validation error returned by DeniedErrorDetails.Validate if the designated constraints aren't met.
func (DeniedErrorDetailsValidationError) Cause ¶
func (e DeniedErrorDetailsValidationError) Cause() error
Cause function returns cause value.
func (DeniedErrorDetailsValidationError) Error ¶
func (e DeniedErrorDetailsValidationError) Error() string
Error satisfies the builtin error interface
func (DeniedErrorDetailsValidationError) ErrorName ¶
func (e DeniedErrorDetailsValidationError) ErrorName() string
ErrorName returns error name.
func (DeniedErrorDetailsValidationError) Field ¶
func (e DeniedErrorDetailsValidationError) Field() string
Field function returns field value.
func (DeniedErrorDetailsValidationError) Key ¶
func (e DeniedErrorDetailsValidationError) Key() bool
Key function returns key value.
func (DeniedErrorDetailsValidationError) Reason ¶
func (e DeniedErrorDetailsValidationError) Reason() string
Reason function returns reason value.
type DeniedErrorDetails_Code ¶
type DeniedErrorDetails_Code int32
const ( // Reason code not yet defined DeniedErrorDetails_UNSPECIFIED DeniedErrorDetails_Code = 0 )
func (DeniedErrorDetails_Code) Descriptor ¶
func (DeniedErrorDetails_Code) Descriptor() protoreflect.EnumDescriptor
func (DeniedErrorDetails_Code) Enum ¶
func (x DeniedErrorDetails_Code) Enum() *DeniedErrorDetails_Code
func (DeniedErrorDetails_Code) EnumDescriptor
deprecated
func (DeniedErrorDetails_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeniedErrorDetails_Code.Descriptor instead.
func (DeniedErrorDetails_Code) Number ¶
func (x DeniedErrorDetails_Code) Number() protoreflect.EnumNumber
func (DeniedErrorDetails_Code) String ¶
func (x DeniedErrorDetails_Code) String() string
func (DeniedErrorDetails_Code) Type ¶
func (DeniedErrorDetails_Code) Type() protoreflect.EnumType
type ErrorDetails ¶
type ErrorDetails struct {
// Types that are assignable to Type:
//
// *ErrorDetails_ReasonString
// *ErrorDetails_InvalidSignature
// *ErrorDetails_Denied
Type isErrorDetails_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
func (*ErrorDetails) Descriptor
deprecated
func (*ErrorDetails) Descriptor() ([]byte, []int)
Deprecated: Use ErrorDetails.ProtoReflect.Descriptor instead.
func (*ErrorDetails) GetDenied ¶
func (x *ErrorDetails) GetDenied() *DeniedErrorDetails
func (*ErrorDetails) GetInvalidSignature ¶
func (x *ErrorDetails) GetInvalidSignature() *InvalidSignatureErrorDetails
func (*ErrorDetails) GetReasonString ¶
func (x *ErrorDetails) GetReasonString() *ReasonStringErrorDetails
func (*ErrorDetails) GetType ¶
func (m *ErrorDetails) GetType() isErrorDetails_Type
func (*ErrorDetails) ProtoMessage ¶
func (*ErrorDetails) ProtoMessage()
func (*ErrorDetails) ProtoReflect ¶
func (x *ErrorDetails) ProtoReflect() protoreflect.Message
func (*ErrorDetails) Reset ¶
func (x *ErrorDetails) Reset()
func (*ErrorDetails) String ¶
func (x *ErrorDetails) String() string
func (*ErrorDetails) Validate ¶
func (m *ErrorDetails) Validate() error
Validate checks the field values on ErrorDetails with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ErrorDetailsValidationError ¶
type ErrorDetailsValidationError struct {
// contains filtered or unexported fields
}
ErrorDetailsValidationError is the validation error returned by ErrorDetails.Validate if the designated constraints aren't met.
func (ErrorDetailsValidationError) Cause ¶
func (e ErrorDetailsValidationError) Cause() error
Cause function returns cause value.
func (ErrorDetailsValidationError) Error ¶
func (e ErrorDetailsValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorDetailsValidationError) ErrorName ¶
func (e ErrorDetailsValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorDetailsValidationError) Field ¶
func (e ErrorDetailsValidationError) Field() string
Field function returns field value.
func (ErrorDetailsValidationError) Key ¶
func (e ErrorDetailsValidationError) Key() bool
Key function returns key value.
func (ErrorDetailsValidationError) Reason ¶
func (e ErrorDetailsValidationError) Reason() string
Reason function returns reason value.
type ErrorDetails_Denied ¶
type ErrorDetails_Denied struct {
Denied *DeniedErrorDetails `protobuf:"bytes,3,opt,name=denied,proto3,oneof"`
}
type ErrorDetails_InvalidSignature ¶
type ErrorDetails_InvalidSignature struct {
InvalidSignature *InvalidSignatureErrorDetails `protobuf:"bytes,2,opt,name=invalid_signature,json=invalidSignature,proto3,oneof"`
}
type ErrorDetails_ReasonString ¶
type ErrorDetails_ReasonString struct {
ReasonString *ReasonStringErrorDetails `protobuf:"bytes,1,opt,name=reason_string,json=reasonString,proto3,oneof"`
}
type ExchangeData ¶
type ExchangeData struct {
// ISO 4217 alpha-3 currency code.
Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
// The agreed upon exchange rate. This might not be the same as the
// actual exchange rate at the time of intent or fund transfer.
ExchangeRate float64 `protobuf:"fixed64,2,opt,name=exchange_rate,json=exchangeRate,proto3" json:"exchange_rate,omitempty"`
// The agreed upon transfer amount in the currency the payment was made
// in.
NativeAmount float64 `protobuf:"fixed64,3,opt,name=native_amount,json=nativeAmount,proto3" json:"native_amount,omitempty"`
// The exact amount of quarks to send. This will be used as the source of
// truth for validating transaction transfer amounts.
Quarks uint64 `protobuf:"varint,4,opt,name=quarks,proto3" json:"quarks,omitempty"`
// The crypto mint that is being operated against for the exchange.
Mint *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
ExchangeData defines an amount of crypto with currency exchange data
func (*ExchangeData) Descriptor
deprecated
func (*ExchangeData) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeData.ProtoReflect.Descriptor instead.
func (*ExchangeData) GetCurrency ¶
func (x *ExchangeData) GetCurrency() string
func (*ExchangeData) GetExchangeRate ¶
func (x *ExchangeData) GetExchangeRate() float64
func (*ExchangeData) GetMint ¶
func (x *ExchangeData) GetMint() *v1.SolanaAccountId
func (*ExchangeData) GetNativeAmount ¶
func (x *ExchangeData) GetNativeAmount() float64
func (*ExchangeData) GetQuarks ¶
func (x *ExchangeData) GetQuarks() uint64
func (*ExchangeData) ProtoMessage ¶
func (*ExchangeData) ProtoMessage()
func (*ExchangeData) ProtoReflect ¶
func (x *ExchangeData) ProtoReflect() protoreflect.Message
func (*ExchangeData) Reset ¶
func (x *ExchangeData) Reset()
func (*ExchangeData) String ¶
func (x *ExchangeData) String() string
func (*ExchangeData) Validate ¶
func (m *ExchangeData) Validate() error
Validate checks the field values on ExchangeData with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ExchangeDataValidationError ¶
type ExchangeDataValidationError struct {
// contains filtered or unexported fields
}
ExchangeDataValidationError is the validation error returned by ExchangeData.Validate if the designated constraints aren't met.
func (ExchangeDataValidationError) Cause ¶
func (e ExchangeDataValidationError) Cause() error
Cause function returns cause value.
func (ExchangeDataValidationError) Error ¶
func (e ExchangeDataValidationError) Error() string
Error satisfies the builtin error interface
func (ExchangeDataValidationError) ErrorName ¶
func (e ExchangeDataValidationError) ErrorName() string
ErrorName returns error name.
func (ExchangeDataValidationError) Field ¶
func (e ExchangeDataValidationError) Field() string
Field function returns field value.
func (ExchangeDataValidationError) Key ¶
func (e ExchangeDataValidationError) Key() bool
Key function returns key value.
func (ExchangeDataValidationError) Reason ¶
func (e ExchangeDataValidationError) Reason() string
Reason function returns reason value.
type ExchangeDataWithoutRate ¶
type ExchangeDataWithoutRate struct {
// ISO 4217 alpha-3 currency code.
Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
// The agreed upon transfer amount in the currency the payment was made
// in.
NativeAmount float64 `protobuf:"fixed64,2,opt,name=native_amount,json=nativeAmount,proto3" json:"native_amount,omitempty"`
// contains filtered or unexported fields
}
func (*ExchangeDataWithoutRate) Descriptor
deprecated
func (*ExchangeDataWithoutRate) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeDataWithoutRate.ProtoReflect.Descriptor instead.
func (*ExchangeDataWithoutRate) GetCurrency ¶
func (x *ExchangeDataWithoutRate) GetCurrency() string
func (*ExchangeDataWithoutRate) GetNativeAmount ¶
func (x *ExchangeDataWithoutRate) GetNativeAmount() float64
func (*ExchangeDataWithoutRate) ProtoMessage ¶
func (*ExchangeDataWithoutRate) ProtoMessage()
func (*ExchangeDataWithoutRate) ProtoReflect ¶
func (x *ExchangeDataWithoutRate) ProtoReflect() protoreflect.Message
func (*ExchangeDataWithoutRate) Reset ¶
func (x *ExchangeDataWithoutRate) Reset()
func (*ExchangeDataWithoutRate) String ¶
func (x *ExchangeDataWithoutRate) String() string
func (*ExchangeDataWithoutRate) Validate ¶
func (m *ExchangeDataWithoutRate) Validate() error
Validate checks the field values on ExchangeDataWithoutRate with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ExchangeDataWithoutRateValidationError ¶
type ExchangeDataWithoutRateValidationError struct {
// contains filtered or unexported fields
}
ExchangeDataWithoutRateValidationError is the validation error returned by ExchangeDataWithoutRate.Validate if the designated constraints aren't met.
func (ExchangeDataWithoutRateValidationError) Cause ¶
func (e ExchangeDataWithoutRateValidationError) Cause() error
Cause function returns cause value.
func (ExchangeDataWithoutRateValidationError) Error ¶
func (e ExchangeDataWithoutRateValidationError) Error() string
Error satisfies the builtin error interface
func (ExchangeDataWithoutRateValidationError) ErrorName ¶
func (e ExchangeDataWithoutRateValidationError) ErrorName() string
ErrorName returns error name.
func (ExchangeDataWithoutRateValidationError) Field ¶
func (e ExchangeDataWithoutRateValidationError) Field() string
Field function returns field value.
func (ExchangeDataWithoutRateValidationError) Key ¶
func (e ExchangeDataWithoutRateValidationError) Key() bool
Key function returns key value.
func (ExchangeDataWithoutRateValidationError) Reason ¶
func (e ExchangeDataWithoutRateValidationError) Reason() string
Reason function returns reason value.
type FeePaymentAction ¶
type FeePaymentAction struct {
// The type of fee being operated on
Type FeePaymentAction_FeeType `protobuf:"varint,1,opt,name=type,proto3,enum=ocp.transaction.v1.FeePaymentAction_FeeType" json:"type,omitempty"`
// The public key of the private key that has authority over source
Authority *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
// The source account where funds are transferred from
Source *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
// The quark amount to transfer
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
// The mint that this action will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Compact message signature required
func (*FeePaymentAction) Descriptor
deprecated
func (*FeePaymentAction) Descriptor() ([]byte, []int)
Deprecated: Use FeePaymentAction.ProtoReflect.Descriptor instead.
func (*FeePaymentAction) GetAmount ¶
func (x *FeePaymentAction) GetAmount() uint64
func (*FeePaymentAction) GetAuthority ¶
func (x *FeePaymentAction) GetAuthority() *v1.SolanaAccountId
func (*FeePaymentAction) GetMint ¶
func (x *FeePaymentAction) GetMint() *v1.SolanaAccountId
func (*FeePaymentAction) GetSource ¶
func (x *FeePaymentAction) GetSource() *v1.SolanaAccountId
func (*FeePaymentAction) GetType ¶
func (x *FeePaymentAction) GetType() FeePaymentAction_FeeType
func (*FeePaymentAction) ProtoMessage ¶
func (*FeePaymentAction) ProtoMessage()
func (*FeePaymentAction) ProtoReflect ¶
func (x *FeePaymentAction) ProtoReflect() protoreflect.Message
func (*FeePaymentAction) Reset ¶
func (x *FeePaymentAction) Reset()
func (*FeePaymentAction) String ¶
func (x *FeePaymentAction) String() string
func (*FeePaymentAction) Validate ¶
func (m *FeePaymentAction) Validate() error
Validate checks the field values on FeePaymentAction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FeePaymentActionValidationError ¶
type FeePaymentActionValidationError struct {
// contains filtered or unexported fields
}
FeePaymentActionValidationError is the validation error returned by FeePaymentAction.Validate if the designated constraints aren't met.
func (FeePaymentActionValidationError) Cause ¶
func (e FeePaymentActionValidationError) Cause() error
Cause function returns cause value.
func (FeePaymentActionValidationError) Error ¶
func (e FeePaymentActionValidationError) Error() string
Error satisfies the builtin error interface
func (FeePaymentActionValidationError) ErrorName ¶
func (e FeePaymentActionValidationError) ErrorName() string
ErrorName returns error name.
func (FeePaymentActionValidationError) Field ¶
func (e FeePaymentActionValidationError) Field() string
Field function returns field value.
func (FeePaymentActionValidationError) Key ¶
func (e FeePaymentActionValidationError) Key() bool
Key function returns key value.
func (FeePaymentActionValidationError) Reason ¶
func (e FeePaymentActionValidationError) Reason() string
Reason function returns reason value.
type FeePaymentAction_FeeType ¶
type FeePaymentAction_FeeType int32
const ( FeePaymentAction_UNKNOWN FeePaymentAction_FeeType = 0 FeePaymentAction_CREATE_ON_SEND_WITHDRAWAL FeePaymentAction_FeeType = 1 // Server-defined fee for creating an external ATA on withdrawals on send )
func (FeePaymentAction_FeeType) Descriptor ¶
func (FeePaymentAction_FeeType) Descriptor() protoreflect.EnumDescriptor
func (FeePaymentAction_FeeType) Enum ¶
func (x FeePaymentAction_FeeType) Enum() *FeePaymentAction_FeeType
func (FeePaymentAction_FeeType) EnumDescriptor
deprecated
func (FeePaymentAction_FeeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FeePaymentAction_FeeType.Descriptor instead.
func (FeePaymentAction_FeeType) Number ¶
func (x FeePaymentAction_FeeType) Number() protoreflect.EnumNumber
func (FeePaymentAction_FeeType) String ¶
func (x FeePaymentAction_FeeType) String() string
func (FeePaymentAction_FeeType) Type ¶
func (FeePaymentAction_FeeType) Type() protoreflect.EnumType
type FeePaymentServerParameter ¶
type FeePaymentServerParameter struct {
// The destination account where OCP fee payments should be sent. This will
// only be set when the corresponding FeePaymentAction.Type:
// - CREATE_ON_SEND_WITHDRAWAL
Destination *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
// contains filtered or unexported fields
}
func (*FeePaymentServerParameter) Descriptor
deprecated
func (*FeePaymentServerParameter) Descriptor() ([]byte, []int)
Deprecated: Use FeePaymentServerParameter.ProtoReflect.Descriptor instead.
func (*FeePaymentServerParameter) GetDestination ¶
func (x *FeePaymentServerParameter) GetDestination() *v1.SolanaAccountId
func (*FeePaymentServerParameter) ProtoMessage ¶
func (*FeePaymentServerParameter) ProtoMessage()
func (*FeePaymentServerParameter) ProtoReflect ¶
func (x *FeePaymentServerParameter) ProtoReflect() protoreflect.Message
func (*FeePaymentServerParameter) Reset ¶
func (x *FeePaymentServerParameter) Reset()
func (*FeePaymentServerParameter) String ¶
func (x *FeePaymentServerParameter) String() string
func (*FeePaymentServerParameter) Validate ¶
func (m *FeePaymentServerParameter) Validate() error
Validate checks the field values on FeePaymentServerParameter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FeePaymentServerParameterValidationError ¶
type FeePaymentServerParameterValidationError struct {
// contains filtered or unexported fields
}
FeePaymentServerParameterValidationError is the validation error returned by FeePaymentServerParameter.Validate if the designated constraints aren't met.
func (FeePaymentServerParameterValidationError) Cause ¶
func (e FeePaymentServerParameterValidationError) Cause() error
Cause function returns cause value.
func (FeePaymentServerParameterValidationError) Error ¶
func (e FeePaymentServerParameterValidationError) Error() string
Error satisfies the builtin error interface
func (FeePaymentServerParameterValidationError) ErrorName ¶
func (e FeePaymentServerParameterValidationError) ErrorName() string
ErrorName returns error name.
func (FeePaymentServerParameterValidationError) Field ¶
func (e FeePaymentServerParameterValidationError) Field() string
Field function returns field value.
func (FeePaymentServerParameterValidationError) Key ¶
func (e FeePaymentServerParameterValidationError) Key() bool
Key function returns key value.
func (FeePaymentServerParameterValidationError) Reason ¶
func (e FeePaymentServerParameterValidationError) Reason() string
Reason function returns reason value.
type FundingSource ¶
type FundingSource int32
const ( FundingSource_FUNDING_SOURCE_UNKNOWN FundingSource = 0 FundingSource_FUNDING_SOURCE_SUBMIT_INTENT FundingSource = 1 )
func (FundingSource) Descriptor ¶
func (FundingSource) Descriptor() protoreflect.EnumDescriptor
func (FundingSource) Enum ¶
func (x FundingSource) Enum() *FundingSource
func (FundingSource) EnumDescriptor
deprecated
func (FundingSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use FundingSource.Descriptor instead.
func (FundingSource) Number ¶
func (x FundingSource) Number() protoreflect.EnumNumber
func (FundingSource) String ¶
func (x FundingSource) String() string
func (FundingSource) Type ¶
func (FundingSource) Type() protoreflect.EnumType
type GetIntentMetadataRequest ¶
type GetIntentMetadataRequest struct {
// The intent ID to query
IntentId *v1.IntentId `protobuf:"bytes,1,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"`
// The verified owner account public key when not signing with the rendezvous
// key. Only owner accounts involved in the intent can access the metadata.
Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// The signature is of serialize(GetIntentStatusRequest) without this field set
// using the private key of the rendezvous or owner account. This provides an
// authentication mechanism to the RPC.
Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*GetIntentMetadataRequest) Descriptor
deprecated
func (*GetIntentMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIntentMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetIntentMetadataRequest) GetIntentId ¶
func (x *GetIntentMetadataRequest) GetIntentId() *v1.IntentId
func (*GetIntentMetadataRequest) GetOwner ¶
func (x *GetIntentMetadataRequest) GetOwner() *v1.SolanaAccountId
func (*GetIntentMetadataRequest) GetSignature ¶
func (x *GetIntentMetadataRequest) GetSignature() *v1.Signature
func (*GetIntentMetadataRequest) ProtoMessage ¶
func (*GetIntentMetadataRequest) ProtoMessage()
func (*GetIntentMetadataRequest) ProtoReflect ¶
func (x *GetIntentMetadataRequest) ProtoReflect() protoreflect.Message
func (*GetIntentMetadataRequest) Reset ¶
func (x *GetIntentMetadataRequest) Reset()
func (*GetIntentMetadataRequest) String ¶
func (x *GetIntentMetadataRequest) String() string
func (*GetIntentMetadataRequest) Validate ¶
func (m *GetIntentMetadataRequest) Validate() error
Validate checks the field values on GetIntentMetadataRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetIntentMetadataRequestValidationError ¶
type GetIntentMetadataRequestValidationError struct {
// contains filtered or unexported fields
}
GetIntentMetadataRequestValidationError is the validation error returned by GetIntentMetadataRequest.Validate if the designated constraints aren't met.
func (GetIntentMetadataRequestValidationError) Cause ¶
func (e GetIntentMetadataRequestValidationError) Cause() error
Cause function returns cause value.
func (GetIntentMetadataRequestValidationError) Error ¶
func (e GetIntentMetadataRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetIntentMetadataRequestValidationError) ErrorName ¶
func (e GetIntentMetadataRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetIntentMetadataRequestValidationError) Field ¶
func (e GetIntentMetadataRequestValidationError) Field() string
Field function returns field value.
func (GetIntentMetadataRequestValidationError) Key ¶
func (e GetIntentMetadataRequestValidationError) Key() bool
Key function returns key value.
func (GetIntentMetadataRequestValidationError) Reason ¶
func (e GetIntentMetadataRequestValidationError) Reason() string
Reason function returns reason value.
type GetIntentMetadataResponse ¶
type GetIntentMetadataResponse struct {
Result GetIntentMetadataResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.transaction.v1.GetIntentMetadataResponse_Result" json:"result,omitempty"`
Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*GetIntentMetadataResponse) Descriptor
deprecated
func (*GetIntentMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIntentMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetIntentMetadataResponse) GetMetadata ¶
func (x *GetIntentMetadataResponse) GetMetadata() *Metadata
func (*GetIntentMetadataResponse) GetResult ¶
func (x *GetIntentMetadataResponse) GetResult() GetIntentMetadataResponse_Result
func (*GetIntentMetadataResponse) ProtoMessage ¶
func (*GetIntentMetadataResponse) ProtoMessage()
func (*GetIntentMetadataResponse) ProtoReflect ¶
func (x *GetIntentMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetIntentMetadataResponse) Reset ¶
func (x *GetIntentMetadataResponse) Reset()
func (*GetIntentMetadataResponse) String ¶
func (x *GetIntentMetadataResponse) String() string
func (*GetIntentMetadataResponse) Validate ¶
func (m *GetIntentMetadataResponse) Validate() error
Validate checks the field values on GetIntentMetadataResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetIntentMetadataResponseValidationError ¶
type GetIntentMetadataResponseValidationError struct {
// contains filtered or unexported fields
}
GetIntentMetadataResponseValidationError is the validation error returned by GetIntentMetadataResponse.Validate if the designated constraints aren't met.
func (GetIntentMetadataResponseValidationError) Cause ¶
func (e GetIntentMetadataResponseValidationError) Cause() error
Cause function returns cause value.
func (GetIntentMetadataResponseValidationError) Error ¶
func (e GetIntentMetadataResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetIntentMetadataResponseValidationError) ErrorName ¶
func (e GetIntentMetadataResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetIntentMetadataResponseValidationError) Field ¶
func (e GetIntentMetadataResponseValidationError) Field() string
Field function returns field value.
func (GetIntentMetadataResponseValidationError) Key ¶
func (e GetIntentMetadataResponseValidationError) Key() bool
Key function returns key value.
func (GetIntentMetadataResponseValidationError) Reason ¶
func (e GetIntentMetadataResponseValidationError) Reason() string
Reason function returns reason value.
type GetIntentMetadataResponse_Result ¶
type GetIntentMetadataResponse_Result int32
const ( GetIntentMetadataResponse_OK GetIntentMetadataResponse_Result = 0 GetIntentMetadataResponse_NOT_FOUND GetIntentMetadataResponse_Result = 1 )
func (GetIntentMetadataResponse_Result) Descriptor ¶
func (GetIntentMetadataResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetIntentMetadataResponse_Result) Enum ¶
func (x GetIntentMetadataResponse_Result) Enum() *GetIntentMetadataResponse_Result
func (GetIntentMetadataResponse_Result) EnumDescriptor
deprecated
func (GetIntentMetadataResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetIntentMetadataResponse_Result.Descriptor instead.
func (GetIntentMetadataResponse_Result) Number ¶
func (x GetIntentMetadataResponse_Result) Number() protoreflect.EnumNumber
func (GetIntentMetadataResponse_Result) String ¶
func (x GetIntentMetadataResponse_Result) String() string
func (GetIntentMetadataResponse_Result) Type ¶
func (GetIntentMetadataResponse_Result) Type() protoreflect.EnumType
type GetLimitsRequest ¶
type GetLimitsRequest struct {
// The owner account whose limits will be calculated. Any other owner accounts
// linked with the same identity of the owner will also be applied.
Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The signature is of serialize(GetLimitsRequest) without this field set
// using the private key of the owner account. This provides an authentication
// mechanism to the RPC.
Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// All transactions starting at this time will be incorporated into the consumed
// limit calculation. Clients should set this to the start of the current day in
// the client's current time zone (because server has no knowledge of this atm).
ConsumedSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=consumed_since,json=consumedSince,proto3" json:"consumed_since,omitempty"`
// contains filtered or unexported fields
}
func (*GetLimitsRequest) Descriptor
deprecated
func (*GetLimitsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLimitsRequest.ProtoReflect.Descriptor instead.
func (*GetLimitsRequest) GetConsumedSince ¶
func (x *GetLimitsRequest) GetConsumedSince() *timestamppb.Timestamp
func (*GetLimitsRequest) GetOwner ¶
func (x *GetLimitsRequest) GetOwner() *v1.SolanaAccountId
func (*GetLimitsRequest) GetSignature ¶
func (x *GetLimitsRequest) GetSignature() *v1.Signature
func (*GetLimitsRequest) ProtoMessage ¶
func (*GetLimitsRequest) ProtoMessage()
func (*GetLimitsRequest) ProtoReflect ¶
func (x *GetLimitsRequest) ProtoReflect() protoreflect.Message
func (*GetLimitsRequest) Reset ¶
func (x *GetLimitsRequest) Reset()
func (*GetLimitsRequest) String ¶
func (x *GetLimitsRequest) String() string
func (*GetLimitsRequest) Validate ¶
func (m *GetLimitsRequest) Validate() error
Validate checks the field values on GetLimitsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetLimitsRequestValidationError ¶
type GetLimitsRequestValidationError struct {
// contains filtered or unexported fields
}
GetLimitsRequestValidationError is the validation error returned by GetLimitsRequest.Validate if the designated constraints aren't met.
func (GetLimitsRequestValidationError) Cause ¶
func (e GetLimitsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetLimitsRequestValidationError) Error ¶
func (e GetLimitsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetLimitsRequestValidationError) ErrorName ¶
func (e GetLimitsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetLimitsRequestValidationError) Field ¶
func (e GetLimitsRequestValidationError) Field() string
Field function returns field value.
func (GetLimitsRequestValidationError) Key ¶
func (e GetLimitsRequestValidationError) Key() bool
Key function returns key value.
func (GetLimitsRequestValidationError) Reason ¶
func (e GetLimitsRequestValidationError) Reason() string
Reason function returns reason value.
type GetLimitsResponse ¶
type GetLimitsResponse struct {
Result GetLimitsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.transaction.v1.GetLimitsResponse_Result" json:"result,omitempty"`
// Send limits keyed by currency
SendLimitsByCurrency map[string]*SendLimit `` /* 213-byte string literal not displayed */
// The amount of USD transacted since the consumption timestamp
UsdTransacted float64 `protobuf:"fixed64,3,opt,name=usd_transacted,json=usdTransacted,proto3" json:"usd_transacted,omitempty"`
// contains filtered or unexported fields
}
func (*GetLimitsResponse) Descriptor
deprecated
func (*GetLimitsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLimitsResponse.ProtoReflect.Descriptor instead.
func (*GetLimitsResponse) GetResult ¶
func (x *GetLimitsResponse) GetResult() GetLimitsResponse_Result
func (*GetLimitsResponse) GetSendLimitsByCurrency ¶
func (x *GetLimitsResponse) GetSendLimitsByCurrency() map[string]*SendLimit
func (*GetLimitsResponse) GetUsdTransacted ¶
func (x *GetLimitsResponse) GetUsdTransacted() float64
func (*GetLimitsResponse) ProtoMessage ¶
func (*GetLimitsResponse) ProtoMessage()
func (*GetLimitsResponse) ProtoReflect ¶
func (x *GetLimitsResponse) ProtoReflect() protoreflect.Message
func (*GetLimitsResponse) Reset ¶
func (x *GetLimitsResponse) Reset()
func (*GetLimitsResponse) String ¶
func (x *GetLimitsResponse) String() string
func (*GetLimitsResponse) Validate ¶
func (m *GetLimitsResponse) Validate() error
Validate checks the field values on GetLimitsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetLimitsResponseValidationError ¶
type GetLimitsResponseValidationError struct {
// contains filtered or unexported fields
}
GetLimitsResponseValidationError is the validation error returned by GetLimitsResponse.Validate if the designated constraints aren't met.
func (GetLimitsResponseValidationError) Cause ¶
func (e GetLimitsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetLimitsResponseValidationError) Error ¶
func (e GetLimitsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetLimitsResponseValidationError) ErrorName ¶
func (e GetLimitsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetLimitsResponseValidationError) Field ¶
func (e GetLimitsResponseValidationError) Field() string
Field function returns field value.
func (GetLimitsResponseValidationError) Key ¶
func (e GetLimitsResponseValidationError) Key() bool
Key function returns key value.
func (GetLimitsResponseValidationError) Reason ¶
func (e GetLimitsResponseValidationError) Reason() string
Reason function returns reason value.
type GetLimitsResponse_Result ¶
type GetLimitsResponse_Result int32
const (
GetLimitsResponse_OK GetLimitsResponse_Result = 0
)
func (GetLimitsResponse_Result) Descriptor ¶
func (GetLimitsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetLimitsResponse_Result) Enum ¶
func (x GetLimitsResponse_Result) Enum() *GetLimitsResponse_Result
func (GetLimitsResponse_Result) EnumDescriptor
deprecated
func (GetLimitsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetLimitsResponse_Result.Descriptor instead.
func (GetLimitsResponse_Result) Number ¶
func (x GetLimitsResponse_Result) Number() protoreflect.EnumNumber
func (GetLimitsResponse_Result) String ¶
func (x GetLimitsResponse_Result) String() string
func (GetLimitsResponse_Result) Type ¶
func (GetLimitsResponse_Result) Type() protoreflect.EnumType
type GetPendingSwapsRequest ¶
type GetPendingSwapsRequest struct {
Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The signature is of serialize(GetPendingSwapsRequest) without this field set
// using the private key of the owner account. This provides an authentication
// mechanism to the RPC.
Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*GetPendingSwapsRequest) Descriptor
deprecated
func (*GetPendingSwapsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPendingSwapsRequest.ProtoReflect.Descriptor instead.
func (*GetPendingSwapsRequest) GetOwner ¶
func (x *GetPendingSwapsRequest) GetOwner() *v1.SolanaAccountId
func (*GetPendingSwapsRequest) GetSignature ¶
func (x *GetPendingSwapsRequest) GetSignature() *v1.Signature
func (*GetPendingSwapsRequest) ProtoMessage ¶
func (*GetPendingSwapsRequest) ProtoMessage()
func (*GetPendingSwapsRequest) ProtoReflect ¶
func (x *GetPendingSwapsRequest) ProtoReflect() protoreflect.Message
func (*GetPendingSwapsRequest) Reset ¶
func (x *GetPendingSwapsRequest) Reset()
func (*GetPendingSwapsRequest) String ¶
func (x *GetPendingSwapsRequest) String() string
func (*GetPendingSwapsRequest) Validate ¶
func (m *GetPendingSwapsRequest) Validate() error
Validate checks the field values on GetPendingSwapsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetPendingSwapsRequestValidationError ¶
type GetPendingSwapsRequestValidationError struct {
// contains filtered or unexported fields
}
GetPendingSwapsRequestValidationError is the validation error returned by GetPendingSwapsRequest.Validate if the designated constraints aren't met.
func (GetPendingSwapsRequestValidationError) Cause ¶
func (e GetPendingSwapsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPendingSwapsRequestValidationError) Error ¶
func (e GetPendingSwapsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPendingSwapsRequestValidationError) ErrorName ¶
func (e GetPendingSwapsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPendingSwapsRequestValidationError) Field ¶
func (e GetPendingSwapsRequestValidationError) Field() string
Field function returns field value.
func (GetPendingSwapsRequestValidationError) Key ¶
func (e GetPendingSwapsRequestValidationError) Key() bool
Key function returns key value.
func (GetPendingSwapsRequestValidationError) Reason ¶
func (e GetPendingSwapsRequestValidationError) Reason() string
Reason function returns reason value.
type GetPendingSwapsResponse ¶
type GetPendingSwapsResponse struct {
Result GetPendingSwapsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.transaction.v1.GetPendingSwapsResponse_Result" json:"result,omitempty"`
Swaps []*SwapMetadata `protobuf:"bytes,2,rep,name=swaps,proto3" json:"swaps,omitempty"`
// contains filtered or unexported fields
}
func (*GetPendingSwapsResponse) Descriptor
deprecated
func (*GetPendingSwapsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPendingSwapsResponse.ProtoReflect.Descriptor instead.
func (*GetPendingSwapsResponse) GetResult ¶
func (x *GetPendingSwapsResponse) GetResult() GetPendingSwapsResponse_Result
func (*GetPendingSwapsResponse) GetSwaps ¶
func (x *GetPendingSwapsResponse) GetSwaps() []*SwapMetadata
func (*GetPendingSwapsResponse) ProtoMessage ¶
func (*GetPendingSwapsResponse) ProtoMessage()
func (*GetPendingSwapsResponse) ProtoReflect ¶
func (x *GetPendingSwapsResponse) ProtoReflect() protoreflect.Message
func (*GetPendingSwapsResponse) Reset ¶
func (x *GetPendingSwapsResponse) Reset()
func (*GetPendingSwapsResponse) String ¶
func (x *GetPendingSwapsResponse) String() string
func (*GetPendingSwapsResponse) Validate ¶
func (m *GetPendingSwapsResponse) Validate() error
Validate checks the field values on GetPendingSwapsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetPendingSwapsResponseValidationError ¶
type GetPendingSwapsResponseValidationError struct {
// contains filtered or unexported fields
}
GetPendingSwapsResponseValidationError is the validation error returned by GetPendingSwapsResponse.Validate if the designated constraints aren't met.
func (GetPendingSwapsResponseValidationError) Cause ¶
func (e GetPendingSwapsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPendingSwapsResponseValidationError) Error ¶
func (e GetPendingSwapsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPendingSwapsResponseValidationError) ErrorName ¶
func (e GetPendingSwapsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPendingSwapsResponseValidationError) Field ¶
func (e GetPendingSwapsResponseValidationError) Field() string
Field function returns field value.
func (GetPendingSwapsResponseValidationError) Key ¶
func (e GetPendingSwapsResponseValidationError) Key() bool
Key function returns key value.
func (GetPendingSwapsResponseValidationError) Reason ¶
func (e GetPendingSwapsResponseValidationError) Reason() string
Reason function returns reason value.
type GetPendingSwapsResponse_Result ¶
type GetPendingSwapsResponse_Result int32
const ( GetPendingSwapsResponse_OK GetPendingSwapsResponse_Result = 0 GetPendingSwapsResponse_NOT_FOUND GetPendingSwapsResponse_Result = 1 )
func (GetPendingSwapsResponse_Result) Descriptor ¶
func (GetPendingSwapsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetPendingSwapsResponse_Result) Enum ¶
func (x GetPendingSwapsResponse_Result) Enum() *GetPendingSwapsResponse_Result
func (GetPendingSwapsResponse_Result) EnumDescriptor
deprecated
func (GetPendingSwapsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetPendingSwapsResponse_Result.Descriptor instead.
func (GetPendingSwapsResponse_Result) Number ¶
func (x GetPendingSwapsResponse_Result) Number() protoreflect.EnumNumber
func (GetPendingSwapsResponse_Result) String ¶
func (x GetPendingSwapsResponse_Result) String() string
func (GetPendingSwapsResponse_Result) Type ¶
func (GetPendingSwapsResponse_Result) Type() protoreflect.EnumType
type GetSwapRequest ¶
type GetSwapRequest struct {
Id *v1.SwapId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// The signature is of serialize(GetSwapRequest) without this field set using the
// private key of the owner account. This provides an authentication mechanism
// to the RPC.
Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*GetSwapRequest) Descriptor
deprecated
func (*GetSwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSwapRequest.ProtoReflect.Descriptor instead.
func (*GetSwapRequest) GetId ¶
func (x *GetSwapRequest) GetId() *v1.SwapId
func (*GetSwapRequest) GetOwner ¶
func (x *GetSwapRequest) GetOwner() *v1.SolanaAccountId
func (*GetSwapRequest) GetSignature ¶
func (x *GetSwapRequest) GetSignature() *v1.Signature
func (*GetSwapRequest) ProtoMessage ¶
func (*GetSwapRequest) ProtoMessage()
func (*GetSwapRequest) ProtoReflect ¶
func (x *GetSwapRequest) ProtoReflect() protoreflect.Message
func (*GetSwapRequest) Reset ¶
func (x *GetSwapRequest) Reset()
func (*GetSwapRequest) String ¶
func (x *GetSwapRequest) String() string
func (*GetSwapRequest) Validate ¶
func (m *GetSwapRequest) Validate() error
Validate checks the field values on GetSwapRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetSwapRequestValidationError ¶
type GetSwapRequestValidationError struct {
// contains filtered or unexported fields
}
GetSwapRequestValidationError is the validation error returned by GetSwapRequest.Validate if the designated constraints aren't met.
func (GetSwapRequestValidationError) Cause ¶
func (e GetSwapRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSwapRequestValidationError) Error ¶
func (e GetSwapRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSwapRequestValidationError) ErrorName ¶
func (e GetSwapRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSwapRequestValidationError) Field ¶
func (e GetSwapRequestValidationError) Field() string
Field function returns field value.
func (GetSwapRequestValidationError) Key ¶
func (e GetSwapRequestValidationError) Key() bool
Key function returns key value.
func (GetSwapRequestValidationError) Reason ¶
func (e GetSwapRequestValidationError) Reason() string
Reason function returns reason value.
type GetSwapResponse ¶
type GetSwapResponse struct {
Result GetSwapResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.transaction.v1.GetSwapResponse_Result" json:"result,omitempty"`
Swap *SwapMetadata `protobuf:"bytes,2,opt,name=swap,proto3" json:"swap,omitempty"`
// contains filtered or unexported fields
}
func (*GetSwapResponse) Descriptor
deprecated
func (*GetSwapResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSwapResponse.ProtoReflect.Descriptor instead.
func (*GetSwapResponse) GetResult ¶
func (x *GetSwapResponse) GetResult() GetSwapResponse_Result
func (*GetSwapResponse) GetSwap ¶
func (x *GetSwapResponse) GetSwap() *SwapMetadata
func (*GetSwapResponse) ProtoMessage ¶
func (*GetSwapResponse) ProtoMessage()
func (*GetSwapResponse) ProtoReflect ¶
func (x *GetSwapResponse) ProtoReflect() protoreflect.Message
func (*GetSwapResponse) Reset ¶
func (x *GetSwapResponse) Reset()
func (*GetSwapResponse) String ¶
func (x *GetSwapResponse) String() string
func (*GetSwapResponse) Validate ¶
func (m *GetSwapResponse) Validate() error
Validate checks the field values on GetSwapResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetSwapResponseValidationError ¶
type GetSwapResponseValidationError struct {
// contains filtered or unexported fields
}
GetSwapResponseValidationError is the validation error returned by GetSwapResponse.Validate if the designated constraints aren't met.
func (GetSwapResponseValidationError) Cause ¶
func (e GetSwapResponseValidationError) Cause() error
Cause function returns cause value.
func (GetSwapResponseValidationError) Error ¶
func (e GetSwapResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetSwapResponseValidationError) ErrorName ¶
func (e GetSwapResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetSwapResponseValidationError) Field ¶
func (e GetSwapResponseValidationError) Field() string
Field function returns field value.
func (GetSwapResponseValidationError) Key ¶
func (e GetSwapResponseValidationError) Key() bool
Key function returns key value.
func (GetSwapResponseValidationError) Reason ¶
func (e GetSwapResponseValidationError) Reason() string
Reason function returns reason value.
type GetSwapResponse_Result ¶
type GetSwapResponse_Result int32
const ( GetSwapResponse_OK GetSwapResponse_Result = 0 GetSwapResponse_NOT_FOUND GetSwapResponse_Result = 1 GetSwapResponse_DENIED GetSwapResponse_Result = 2 )
func (GetSwapResponse_Result) Descriptor ¶
func (GetSwapResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetSwapResponse_Result) Enum ¶
func (x GetSwapResponse_Result) Enum() *GetSwapResponse_Result
func (GetSwapResponse_Result) EnumDescriptor
deprecated
func (GetSwapResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetSwapResponse_Result.Descriptor instead.
func (GetSwapResponse_Result) Number ¶
func (x GetSwapResponse_Result) Number() protoreflect.EnumNumber
func (GetSwapResponse_Result) String ¶
func (x GetSwapResponse_Result) String() string
func (GetSwapResponse_Result) Type ¶
func (GetSwapResponse_Result) Type() protoreflect.EnumType
type InvalidSignatureErrorDetails ¶
type InvalidSignatureErrorDetails struct {
// The action whose signature mismatched
ActionId uint32 `protobuf:"varint,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// Types that are assignable to ExpectedBlob:
//
// *InvalidSignatureErrorDetails_ExpectedTransaction
// *InvalidSignatureErrorDetails_ExpectedVixnHash
ExpectedBlob isInvalidSignatureErrorDetails_ExpectedBlob `protobuf_oneof:"expected_blob"`
// The signature that was provided by the client.
ProvidedSignature *v1.Signature `protobuf:"bytes,3,opt,name=provided_signature,json=providedSignature,proto3" json:"provided_signature,omitempty"`
// contains filtered or unexported fields
}
func (*InvalidSignatureErrorDetails) Descriptor
deprecated
func (*InvalidSignatureErrorDetails) Descriptor() ([]byte, []int)
Deprecated: Use InvalidSignatureErrorDetails.ProtoReflect.Descriptor instead.
func (*InvalidSignatureErrorDetails) GetActionId ¶
func (x *InvalidSignatureErrorDetails) GetActionId() uint32
func (*InvalidSignatureErrorDetails) GetExpectedBlob ¶
func (m *InvalidSignatureErrorDetails) GetExpectedBlob() isInvalidSignatureErrorDetails_ExpectedBlob
func (*InvalidSignatureErrorDetails) GetExpectedTransaction ¶
func (x *InvalidSignatureErrorDetails) GetExpectedTransaction() *v1.Transaction
func (*InvalidSignatureErrorDetails) GetExpectedVixnHash ¶
func (x *InvalidSignatureErrorDetails) GetExpectedVixnHash() *v1.Hash
func (*InvalidSignatureErrorDetails) GetProvidedSignature ¶
func (x *InvalidSignatureErrorDetails) GetProvidedSignature() *v1.Signature
func (*InvalidSignatureErrorDetails) ProtoMessage ¶
func (*InvalidSignatureErrorDetails) ProtoMessage()
func (*InvalidSignatureErrorDetails) ProtoReflect ¶
func (x *InvalidSignatureErrorDetails) ProtoReflect() protoreflect.Message
func (*InvalidSignatureErrorDetails) Reset ¶
func (x *InvalidSignatureErrorDetails) Reset()
func (*InvalidSignatureErrorDetails) String ¶
func (x *InvalidSignatureErrorDetails) String() string
func (*InvalidSignatureErrorDetails) Validate ¶
func (m *InvalidSignatureErrorDetails) Validate() error
Validate checks the field values on InvalidSignatureErrorDetails with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type InvalidSignatureErrorDetailsValidationError ¶
type InvalidSignatureErrorDetailsValidationError struct {
// contains filtered or unexported fields
}
InvalidSignatureErrorDetailsValidationError is the validation error returned by InvalidSignatureErrorDetails.Validate if the designated constraints aren't met.
func (InvalidSignatureErrorDetailsValidationError) Cause ¶
func (e InvalidSignatureErrorDetailsValidationError) Cause() error
Cause function returns cause value.
func (InvalidSignatureErrorDetailsValidationError) Error ¶
func (e InvalidSignatureErrorDetailsValidationError) Error() string
Error satisfies the builtin error interface
func (InvalidSignatureErrorDetailsValidationError) ErrorName ¶
func (e InvalidSignatureErrorDetailsValidationError) ErrorName() string
ErrorName returns error name.
func (InvalidSignatureErrorDetailsValidationError) Field ¶
func (e InvalidSignatureErrorDetailsValidationError) Field() string
Field function returns field value.
func (InvalidSignatureErrorDetailsValidationError) Key ¶
func (e InvalidSignatureErrorDetailsValidationError) Key() bool
Key function returns key value.
func (InvalidSignatureErrorDetailsValidationError) Reason ¶
func (e InvalidSignatureErrorDetailsValidationError) Reason() string
Reason function returns reason value.
type InvalidSignatureErrorDetails_ExpectedTransaction ¶
type InvalidSignatureErrorDetails_ExpectedTransaction struct {
// The transaction the server expected to have signed.
ExpectedTransaction *v1.Transaction `protobuf:"bytes,2,opt,name=expected_transaction,json=expectedTransaction,proto3,oneof"`
}
type Metadata ¶
type Metadata struct {
// Types that are assignable to Type:
//
// *Metadata_OpenAccounts
// *Metadata_SendPublicPayment
// *Metadata_ReceivePaymentsPublicly
// *Metadata_PublicDistribution
Type isMetadata_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
Metadata describes the high-level details of an intent
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetOpenAccounts ¶
func (x *Metadata) GetOpenAccounts() *OpenAccountsMetadata
func (*Metadata) GetPublicDistribution ¶
func (x *Metadata) GetPublicDistribution() *PublicDistributionMetadata
func (*Metadata) GetReceivePaymentsPublicly ¶
func (x *Metadata) GetReceivePaymentsPublicly() *ReceivePaymentsPubliclyMetadata
func (*Metadata) GetSendPublicPayment ¶
func (x *Metadata) GetSendPublicPayment() *SendPublicPaymentMetadata
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetadataValidationError ¶
type MetadataValidationError struct {
// contains filtered or unexported fields
}
MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.
func (MetadataValidationError) Cause ¶
func (e MetadataValidationError) Cause() error
Cause function returns cause value.
func (MetadataValidationError) Error ¶
func (e MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (MetadataValidationError) ErrorName ¶
func (e MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (MetadataValidationError) Field ¶
func (e MetadataValidationError) Field() string
Field function returns field value.
func (MetadataValidationError) Key ¶
func (e MetadataValidationError) Key() bool
Key function returns key value.
func (MetadataValidationError) Reason ¶
func (e MetadataValidationError) Reason() string
Reason function returns reason value.
type Metadata_OpenAccounts ¶
type Metadata_OpenAccounts struct {
OpenAccounts *OpenAccountsMetadata `protobuf:"bytes,1,opt,name=open_accounts,json=openAccounts,proto3,oneof"`
}
type Metadata_PublicDistribution ¶
type Metadata_PublicDistribution struct {
PublicDistribution *PublicDistributionMetadata `protobuf:"bytes,4,opt,name=public_distribution,json=publicDistribution,proto3,oneof"`
}
type Metadata_ReceivePaymentsPublicly ¶
type Metadata_ReceivePaymentsPublicly struct {
ReceivePaymentsPublicly *ReceivePaymentsPubliclyMetadata `protobuf:"bytes,3,opt,name=receive_payments_publicly,json=receivePaymentsPublicly,proto3,oneof"`
}
type Metadata_SendPublicPayment ¶
type Metadata_SendPublicPayment struct {
SendPublicPayment *SendPublicPaymentMetadata `protobuf:"bytes,2,opt,name=send_public_payment,json=sendPublicPayment,proto3,oneof"`
}
type NoPrivacyTransferAction ¶
type NoPrivacyTransferAction struct {
// The public key of the private key that has authority over source
Authority *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// The source account where funds are transferred from
Source *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// The destination account where funds are transferred to
Destination *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
// The quark amount to transfer
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
// The mint that this action will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Compact message signature required
func (*NoPrivacyTransferAction) Descriptor
deprecated
func (*NoPrivacyTransferAction) Descriptor() ([]byte, []int)
Deprecated: Use NoPrivacyTransferAction.ProtoReflect.Descriptor instead.
func (*NoPrivacyTransferAction) GetAmount ¶
func (x *NoPrivacyTransferAction) GetAmount() uint64
func (*NoPrivacyTransferAction) GetAuthority ¶
func (x *NoPrivacyTransferAction) GetAuthority() *v1.SolanaAccountId
func (*NoPrivacyTransferAction) GetDestination ¶
func (x *NoPrivacyTransferAction) GetDestination() *v1.SolanaAccountId
func (*NoPrivacyTransferAction) GetMint ¶
func (x *NoPrivacyTransferAction) GetMint() *v1.SolanaAccountId
func (*NoPrivacyTransferAction) GetSource ¶
func (x *NoPrivacyTransferAction) GetSource() *v1.SolanaAccountId
func (*NoPrivacyTransferAction) ProtoMessage ¶
func (*NoPrivacyTransferAction) ProtoMessage()
func (*NoPrivacyTransferAction) ProtoReflect ¶
func (x *NoPrivacyTransferAction) ProtoReflect() protoreflect.Message
func (*NoPrivacyTransferAction) Reset ¶
func (x *NoPrivacyTransferAction) Reset()
func (*NoPrivacyTransferAction) String ¶
func (x *NoPrivacyTransferAction) String() string
func (*NoPrivacyTransferAction) Validate ¶
func (m *NoPrivacyTransferAction) Validate() error
Validate checks the field values on NoPrivacyTransferAction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type NoPrivacyTransferActionValidationError ¶
type NoPrivacyTransferActionValidationError struct {
// contains filtered or unexported fields
}
NoPrivacyTransferActionValidationError is the validation error returned by NoPrivacyTransferAction.Validate if the designated constraints aren't met.
func (NoPrivacyTransferActionValidationError) Cause ¶
func (e NoPrivacyTransferActionValidationError) Cause() error
Cause function returns cause value.
func (NoPrivacyTransferActionValidationError) Error ¶
func (e NoPrivacyTransferActionValidationError) Error() string
Error satisfies the builtin error interface
func (NoPrivacyTransferActionValidationError) ErrorName ¶
func (e NoPrivacyTransferActionValidationError) ErrorName() string
ErrorName returns error name.
func (NoPrivacyTransferActionValidationError) Field ¶
func (e NoPrivacyTransferActionValidationError) Field() string
Field function returns field value.
func (NoPrivacyTransferActionValidationError) Key ¶
func (e NoPrivacyTransferActionValidationError) Key() bool
Key function returns key value.
func (NoPrivacyTransferActionValidationError) Reason ¶
func (e NoPrivacyTransferActionValidationError) Reason() string
Reason function returns reason value.
type NoPrivacyTransferServerParameter ¶
type NoPrivacyTransferServerParameter struct {
// contains filtered or unexported fields
}
func (*NoPrivacyTransferServerParameter) Descriptor
deprecated
func (*NoPrivacyTransferServerParameter) Descriptor() ([]byte, []int)
Deprecated: Use NoPrivacyTransferServerParameter.ProtoReflect.Descriptor instead.
func (*NoPrivacyTransferServerParameter) ProtoMessage ¶
func (*NoPrivacyTransferServerParameter) ProtoMessage()
func (*NoPrivacyTransferServerParameter) ProtoReflect ¶
func (x *NoPrivacyTransferServerParameter) ProtoReflect() protoreflect.Message
func (*NoPrivacyTransferServerParameter) Reset ¶
func (x *NoPrivacyTransferServerParameter) Reset()
func (*NoPrivacyTransferServerParameter) String ¶
func (x *NoPrivacyTransferServerParameter) String() string
func (*NoPrivacyTransferServerParameter) Validate ¶
func (m *NoPrivacyTransferServerParameter) Validate() error
Validate checks the field values on NoPrivacyTransferServerParameter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type NoPrivacyTransferServerParameterValidationError ¶
type NoPrivacyTransferServerParameterValidationError struct {
// contains filtered or unexported fields
}
NoPrivacyTransferServerParameterValidationError is the validation error returned by NoPrivacyTransferServerParameter.Validate if the designated constraints aren't met.
func (NoPrivacyTransferServerParameterValidationError) Cause ¶
func (e NoPrivacyTransferServerParameterValidationError) Cause() error
Cause function returns cause value.
func (NoPrivacyTransferServerParameterValidationError) Error ¶
func (e NoPrivacyTransferServerParameterValidationError) Error() string
Error satisfies the builtin error interface
func (NoPrivacyTransferServerParameterValidationError) ErrorName ¶
func (e NoPrivacyTransferServerParameterValidationError) ErrorName() string
ErrorName returns error name.
func (NoPrivacyTransferServerParameterValidationError) Field ¶
func (e NoPrivacyTransferServerParameterValidationError) Field() string
Field function returns field value.
func (NoPrivacyTransferServerParameterValidationError) Key ¶
func (e NoPrivacyTransferServerParameterValidationError) Key() bool
Key function returns key value.
func (NoPrivacyTransferServerParameterValidationError) Reason ¶
func (e NoPrivacyTransferServerParameterValidationError) Reason() string
Reason function returns reason value.
type NoPrivacyWithdrawAction ¶
type NoPrivacyWithdrawAction struct {
// The public key of the private key that has authority over source
Authority *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// The source account where funds are transferred from
Source *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// The destination account where funds are transferred to
Destination *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
// The quark amount to withdraw
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
// Whether the account is closed afterwards. This is always true, since there
// are no current se cases to leave it open.
ShouldClose bool `protobuf:"varint,5,opt,name=should_close,json=shouldClose,proto3" json:"should_close,omitempty"`
// Whether this action is for an auto-return, which client allows server to defer
// scheduling at its own discretion to return funds back to the owner (to their primary
// account) that funded source.
IsAutoReturn bool `protobuf:"varint,6,opt,name=is_auto_return,json=isAutoReturn,proto3" json:"is_auto_return,omitempty"`
// The mint that this action will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,7,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Compact message signature required
func (*NoPrivacyWithdrawAction) Descriptor
deprecated
func (*NoPrivacyWithdrawAction) Descriptor() ([]byte, []int)
Deprecated: Use NoPrivacyWithdrawAction.ProtoReflect.Descriptor instead.
func (*NoPrivacyWithdrawAction) GetAmount ¶
func (x *NoPrivacyWithdrawAction) GetAmount() uint64
func (*NoPrivacyWithdrawAction) GetAuthority ¶
func (x *NoPrivacyWithdrawAction) GetAuthority() *v1.SolanaAccountId
func (*NoPrivacyWithdrawAction) GetDestination ¶
func (x *NoPrivacyWithdrawAction) GetDestination() *v1.SolanaAccountId
func (*NoPrivacyWithdrawAction) GetIsAutoReturn ¶
func (x *NoPrivacyWithdrawAction) GetIsAutoReturn() bool
func (*NoPrivacyWithdrawAction) GetMint ¶
func (x *NoPrivacyWithdrawAction) GetMint() *v1.SolanaAccountId
func (*NoPrivacyWithdrawAction) GetShouldClose ¶
func (x *NoPrivacyWithdrawAction) GetShouldClose() bool
func (*NoPrivacyWithdrawAction) GetSource ¶
func (x *NoPrivacyWithdrawAction) GetSource() *v1.SolanaAccountId
func (*NoPrivacyWithdrawAction) ProtoMessage ¶
func (*NoPrivacyWithdrawAction) ProtoMessage()
func (*NoPrivacyWithdrawAction) ProtoReflect ¶
func (x *NoPrivacyWithdrawAction) ProtoReflect() protoreflect.Message
func (*NoPrivacyWithdrawAction) Reset ¶
func (x *NoPrivacyWithdrawAction) Reset()
func (*NoPrivacyWithdrawAction) String ¶
func (x *NoPrivacyWithdrawAction) String() string
func (*NoPrivacyWithdrawAction) Validate ¶
func (m *NoPrivacyWithdrawAction) Validate() error
Validate checks the field values on NoPrivacyWithdrawAction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type NoPrivacyWithdrawActionValidationError ¶
type NoPrivacyWithdrawActionValidationError struct {
// contains filtered or unexported fields
}
NoPrivacyWithdrawActionValidationError is the validation error returned by NoPrivacyWithdrawAction.Validate if the designated constraints aren't met.
func (NoPrivacyWithdrawActionValidationError) Cause ¶
func (e NoPrivacyWithdrawActionValidationError) Cause() error
Cause function returns cause value.
func (NoPrivacyWithdrawActionValidationError) Error ¶
func (e NoPrivacyWithdrawActionValidationError) Error() string
Error satisfies the builtin error interface
func (NoPrivacyWithdrawActionValidationError) ErrorName ¶
func (e NoPrivacyWithdrawActionValidationError) ErrorName() string
ErrorName returns error name.
func (NoPrivacyWithdrawActionValidationError) Field ¶
func (e NoPrivacyWithdrawActionValidationError) Field() string
Field function returns field value.
func (NoPrivacyWithdrawActionValidationError) Key ¶
func (e NoPrivacyWithdrawActionValidationError) Key() bool
Key function returns key value.
func (NoPrivacyWithdrawActionValidationError) Reason ¶
func (e NoPrivacyWithdrawActionValidationError) Reason() string
Reason function returns reason value.
type NoPrivacyWithdrawServerParameter ¶
type NoPrivacyWithdrawServerParameter struct {
// contains filtered or unexported fields
}
func (*NoPrivacyWithdrawServerParameter) Descriptor
deprecated
func (*NoPrivacyWithdrawServerParameter) Descriptor() ([]byte, []int)
Deprecated: Use NoPrivacyWithdrawServerParameter.ProtoReflect.Descriptor instead.
func (*NoPrivacyWithdrawServerParameter) ProtoMessage ¶
func (*NoPrivacyWithdrawServerParameter) ProtoMessage()
func (*NoPrivacyWithdrawServerParameter) ProtoReflect ¶
func (x *NoPrivacyWithdrawServerParameter) ProtoReflect() protoreflect.Message
func (*NoPrivacyWithdrawServerParameter) Reset ¶
func (x *NoPrivacyWithdrawServerParameter) Reset()
func (*NoPrivacyWithdrawServerParameter) String ¶
func (x *NoPrivacyWithdrawServerParameter) String() string
func (*NoPrivacyWithdrawServerParameter) Validate ¶
func (m *NoPrivacyWithdrawServerParameter) Validate() error
Validate checks the field values on NoPrivacyWithdrawServerParameter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type NoPrivacyWithdrawServerParameterValidationError ¶
type NoPrivacyWithdrawServerParameterValidationError struct {
// contains filtered or unexported fields
}
NoPrivacyWithdrawServerParameterValidationError is the validation error returned by NoPrivacyWithdrawServerParameter.Validate if the designated constraints aren't met.
func (NoPrivacyWithdrawServerParameterValidationError) Cause ¶
func (e NoPrivacyWithdrawServerParameterValidationError) Cause() error
Cause function returns cause value.
func (NoPrivacyWithdrawServerParameterValidationError) Error ¶
func (e NoPrivacyWithdrawServerParameterValidationError) Error() string
Error satisfies the builtin error interface
func (NoPrivacyWithdrawServerParameterValidationError) ErrorName ¶
func (e NoPrivacyWithdrawServerParameterValidationError) ErrorName() string
ErrorName returns error name.
func (NoPrivacyWithdrawServerParameterValidationError) Field ¶
func (e NoPrivacyWithdrawServerParameterValidationError) Field() string
Field function returns field value.
func (NoPrivacyWithdrawServerParameterValidationError) Key ¶
func (e NoPrivacyWithdrawServerParameterValidationError) Key() bool
Key function returns key value.
func (NoPrivacyWithdrawServerParameterValidationError) Reason ¶
func (e NoPrivacyWithdrawServerParameterValidationError) Reason() string
Reason function returns reason value.
type NoncedTransactionMetadata ¶
type NoncedTransactionMetadata struct {
// The nonce account to use in the system::AdvanceNonce instruction
Nonce *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The blockhash to set in the transaction or virtual instruction
Blockhash *v1.Blockhash `protobuf:"bytes,2,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
// contains filtered or unexported fields
}
For transactions, the nonce is a standard nonce on Solana For virtual instructions, the nonce is a virtual nonce on the Code VM
func (*NoncedTransactionMetadata) Descriptor
deprecated
func (*NoncedTransactionMetadata) Descriptor() ([]byte, []int)
Deprecated: Use NoncedTransactionMetadata.ProtoReflect.Descriptor instead.
func (*NoncedTransactionMetadata) GetBlockhash ¶
func (x *NoncedTransactionMetadata) GetBlockhash() *v1.Blockhash
func (*NoncedTransactionMetadata) GetNonce ¶
func (x *NoncedTransactionMetadata) GetNonce() *v1.SolanaAccountId
func (*NoncedTransactionMetadata) ProtoMessage ¶
func (*NoncedTransactionMetadata) ProtoMessage()
func (*NoncedTransactionMetadata) ProtoReflect ¶
func (x *NoncedTransactionMetadata) ProtoReflect() protoreflect.Message
func (*NoncedTransactionMetadata) Reset ¶
func (x *NoncedTransactionMetadata) Reset()
func (*NoncedTransactionMetadata) String ¶
func (x *NoncedTransactionMetadata) String() string
func (*NoncedTransactionMetadata) Validate ¶
func (m *NoncedTransactionMetadata) Validate() error
Validate checks the field values on NoncedTransactionMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type NoncedTransactionMetadataValidationError ¶
type NoncedTransactionMetadataValidationError struct {
// contains filtered or unexported fields
}
NoncedTransactionMetadataValidationError is the validation error returned by NoncedTransactionMetadata.Validate if the designated constraints aren't met.
func (NoncedTransactionMetadataValidationError) Cause ¶
func (e NoncedTransactionMetadataValidationError) Cause() error
Cause function returns cause value.
func (NoncedTransactionMetadataValidationError) Error ¶
func (e NoncedTransactionMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (NoncedTransactionMetadataValidationError) ErrorName ¶
func (e NoncedTransactionMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (NoncedTransactionMetadataValidationError) Field ¶
func (e NoncedTransactionMetadataValidationError) Field() string
Field function returns field value.
func (NoncedTransactionMetadataValidationError) Key ¶
func (e NoncedTransactionMetadataValidationError) Key() bool
Key function returns key value.
func (NoncedTransactionMetadataValidationError) Reason ¶
func (e NoncedTransactionMetadataValidationError) Reason() string
Reason function returns reason value.
type OpenAccountAction ¶
type OpenAccountAction struct {
// The type of account, which will dictate its intended use
AccountType v1.AccountType `` /* 126-byte string literal not displayed */
// The owner of the account. For accounts liked to a user's 12 words, this is
// the verified parent owner account public key. All other account types should
// set this to the authority value.
Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// The index used to for accounts that are derived from owner
Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
// The public key of the private key that has authority over the opened token account
Authority *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
// The token account being opened
Token *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
// The signature is of serialize(OpenAccountAction) without this field set
// using the private key of the authority account. This provides a proof
// of authorization to link authority to owner.
AuthoritySignature *v1.Signature `protobuf:"bytes,6,opt,name=authority_signature,json=authoritySignature,proto3" json:"authority_signature,omitempty"`
// The mint that this action will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,7,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
No client signature required
func (*OpenAccountAction) Descriptor
deprecated
func (*OpenAccountAction) Descriptor() ([]byte, []int)
Deprecated: Use OpenAccountAction.ProtoReflect.Descriptor instead.
func (*OpenAccountAction) GetAccountType ¶
func (x *OpenAccountAction) GetAccountType() v1.AccountType
func (*OpenAccountAction) GetAuthority ¶
func (x *OpenAccountAction) GetAuthority() *v1.SolanaAccountId
func (*OpenAccountAction) GetAuthoritySignature ¶
func (x *OpenAccountAction) GetAuthoritySignature() *v1.Signature
func (*OpenAccountAction) GetIndex ¶
func (x *OpenAccountAction) GetIndex() uint64
func (*OpenAccountAction) GetMint ¶
func (x *OpenAccountAction) GetMint() *v1.SolanaAccountId
func (*OpenAccountAction) GetOwner ¶
func (x *OpenAccountAction) GetOwner() *v1.SolanaAccountId
func (*OpenAccountAction) GetToken ¶
func (x *OpenAccountAction) GetToken() *v1.SolanaAccountId
func (*OpenAccountAction) ProtoMessage ¶
func (*OpenAccountAction) ProtoMessage()
func (*OpenAccountAction) ProtoReflect ¶
func (x *OpenAccountAction) ProtoReflect() protoreflect.Message
func (*OpenAccountAction) Reset ¶
func (x *OpenAccountAction) Reset()
func (*OpenAccountAction) String ¶
func (x *OpenAccountAction) String() string
func (*OpenAccountAction) Validate ¶
func (m *OpenAccountAction) Validate() error
Validate checks the field values on OpenAccountAction with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OpenAccountActionValidationError ¶
type OpenAccountActionValidationError struct {
// contains filtered or unexported fields
}
OpenAccountActionValidationError is the validation error returned by OpenAccountAction.Validate if the designated constraints aren't met.
func (OpenAccountActionValidationError) Cause ¶
func (e OpenAccountActionValidationError) Cause() error
Cause function returns cause value.
func (OpenAccountActionValidationError) Error ¶
func (e OpenAccountActionValidationError) Error() string
Error satisfies the builtin error interface
func (OpenAccountActionValidationError) ErrorName ¶
func (e OpenAccountActionValidationError) ErrorName() string
ErrorName returns error name.
func (OpenAccountActionValidationError) Field ¶
func (e OpenAccountActionValidationError) Field() string
Field function returns field value.
func (OpenAccountActionValidationError) Key ¶
func (e OpenAccountActionValidationError) Key() bool
Key function returns key value.
func (OpenAccountActionValidationError) Reason ¶
func (e OpenAccountActionValidationError) Reason() string
Reason function returns reason value.
type OpenAccountServerParameter ¶
type OpenAccountServerParameter struct {
// contains filtered or unexported fields
}
func (*OpenAccountServerParameter) Descriptor
deprecated
func (*OpenAccountServerParameter) Descriptor() ([]byte, []int)
Deprecated: Use OpenAccountServerParameter.ProtoReflect.Descriptor instead.
func (*OpenAccountServerParameter) ProtoMessage ¶
func (*OpenAccountServerParameter) ProtoMessage()
func (*OpenAccountServerParameter) ProtoReflect ¶
func (x *OpenAccountServerParameter) ProtoReflect() protoreflect.Message
func (*OpenAccountServerParameter) Reset ¶
func (x *OpenAccountServerParameter) Reset()
func (*OpenAccountServerParameter) String ¶
func (x *OpenAccountServerParameter) String() string
func (*OpenAccountServerParameter) Validate ¶
func (m *OpenAccountServerParameter) Validate() error
Validate checks the field values on OpenAccountServerParameter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OpenAccountServerParameterValidationError ¶
type OpenAccountServerParameterValidationError struct {
// contains filtered or unexported fields
}
OpenAccountServerParameterValidationError is the validation error returned by OpenAccountServerParameter.Validate if the designated constraints aren't met.
func (OpenAccountServerParameterValidationError) Cause ¶
func (e OpenAccountServerParameterValidationError) Cause() error
Cause function returns cause value.
func (OpenAccountServerParameterValidationError) Error ¶
func (e OpenAccountServerParameterValidationError) Error() string
Error satisfies the builtin error interface
func (OpenAccountServerParameterValidationError) ErrorName ¶
func (e OpenAccountServerParameterValidationError) ErrorName() string
ErrorName returns error name.
func (OpenAccountServerParameterValidationError) Field ¶
func (e OpenAccountServerParameterValidationError) Field() string
Field function returns field value.
func (OpenAccountServerParameterValidationError) Key ¶
func (e OpenAccountServerParameterValidationError) Key() bool
Key function returns key value.
func (OpenAccountServerParameterValidationError) Reason ¶
func (e OpenAccountServerParameterValidationError) Reason() string
Reason function returns reason value.
type OpenAccountsMetadata ¶
type OpenAccountsMetadata struct {
AccountSet OpenAccountsMetadata_AccountSet `` /* 148-byte string literal not displayed */
// The mint that this action will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Open a set of accounts
Action Spec (User):
for account in [PRIMARY]
actions.push_back(OpenAccountAction(account))
Action Spec (Pool):
for account in [POOL]
actions.push_back(OpenAccountAction(account))
func (*OpenAccountsMetadata) Descriptor
deprecated
func (*OpenAccountsMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OpenAccountsMetadata.ProtoReflect.Descriptor instead.
func (*OpenAccountsMetadata) GetAccountSet ¶
func (x *OpenAccountsMetadata) GetAccountSet() OpenAccountsMetadata_AccountSet
func (*OpenAccountsMetadata) GetMint ¶
func (x *OpenAccountsMetadata) GetMint() *v1.SolanaAccountId
func (*OpenAccountsMetadata) ProtoMessage ¶
func (*OpenAccountsMetadata) ProtoMessage()
func (*OpenAccountsMetadata) ProtoReflect ¶
func (x *OpenAccountsMetadata) ProtoReflect() protoreflect.Message
func (*OpenAccountsMetadata) Reset ¶
func (x *OpenAccountsMetadata) Reset()
func (*OpenAccountsMetadata) String ¶
func (x *OpenAccountsMetadata) String() string
func (*OpenAccountsMetadata) Validate ¶
func (m *OpenAccountsMetadata) Validate() error
Validate checks the field values on OpenAccountsMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OpenAccountsMetadataValidationError ¶
type OpenAccountsMetadataValidationError struct {
// contains filtered or unexported fields
}
OpenAccountsMetadataValidationError is the validation error returned by OpenAccountsMetadata.Validate if the designated constraints aren't met.
func (OpenAccountsMetadataValidationError) Cause ¶
func (e OpenAccountsMetadataValidationError) Cause() error
Cause function returns cause value.
func (OpenAccountsMetadataValidationError) Error ¶
func (e OpenAccountsMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (OpenAccountsMetadataValidationError) ErrorName ¶
func (e OpenAccountsMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (OpenAccountsMetadataValidationError) Field ¶
func (e OpenAccountsMetadataValidationError) Field() string
Field function returns field value.
func (OpenAccountsMetadataValidationError) Key ¶
func (e OpenAccountsMetadataValidationError) Key() bool
Key function returns key value.
func (OpenAccountsMetadataValidationError) Reason ¶
func (e OpenAccountsMetadataValidationError) Reason() string
Reason function returns reason value.
type OpenAccountsMetadata_AccountSet ¶
type OpenAccountsMetadata_AccountSet int32
const ( OpenAccountsMetadata_USER OpenAccountsMetadata_AccountSet = 0 // Opens a set of user accounts OpenAccountsMetadata_POOL OpenAccountsMetadata_AccountSet = 1 // Opens a pool account )
func (OpenAccountsMetadata_AccountSet) Descriptor ¶
func (OpenAccountsMetadata_AccountSet) Descriptor() protoreflect.EnumDescriptor
func (OpenAccountsMetadata_AccountSet) Enum ¶
func (x OpenAccountsMetadata_AccountSet) Enum() *OpenAccountsMetadata_AccountSet
func (OpenAccountsMetadata_AccountSet) EnumDescriptor
deprecated
func (OpenAccountsMetadata_AccountSet) EnumDescriptor() ([]byte, []int)
Deprecated: Use OpenAccountsMetadata_AccountSet.Descriptor instead.
func (OpenAccountsMetadata_AccountSet) Number ¶
func (x OpenAccountsMetadata_AccountSet) Number() protoreflect.EnumNumber
func (OpenAccountsMetadata_AccountSet) String ¶
func (x OpenAccountsMetadata_AccountSet) String() string
func (OpenAccountsMetadata_AccountSet) Type ¶
func (OpenAccountsMetadata_AccountSet) Type() protoreflect.EnumType
type PublicDistributionMetadata ¶
type PublicDistributionMetadata struct {
// The pool account to distribute from
Source *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// The set of distributions
Distributions []*PublicDistributionMetadata_Distribution `protobuf:"bytes,2,rep,name=distributions,proto3" json:"distributions,omitempty"`
// The mint that this intent will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Distribute funds from a pool account publicly to one or more user-owned accounts.
Action Spec:
for distribution in distributions[:len(distributions)-1]
actions.push_back(NoPrivacyTransferAction(POOL, distribution.destination, distributions.quarks))
actions.push_back(NoPrivacyWithdrawAction(POOL, distributions[len(distributions)-1].destination, distributions[len(distributions)-1].quarks))
Notes:
- All funds must distributed. The balance of the pool must be zero at the end of the intent
- The pool is closed at the end of the intent via a NoPrivacyWithdrawAction
func (*PublicDistributionMetadata) Descriptor
deprecated
func (*PublicDistributionMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PublicDistributionMetadata.ProtoReflect.Descriptor instead.
func (*PublicDistributionMetadata) GetDistributions ¶
func (x *PublicDistributionMetadata) GetDistributions() []*PublicDistributionMetadata_Distribution
func (*PublicDistributionMetadata) GetMint ¶
func (x *PublicDistributionMetadata) GetMint() *v1.SolanaAccountId
func (*PublicDistributionMetadata) GetSource ¶
func (x *PublicDistributionMetadata) GetSource() *v1.SolanaAccountId
func (*PublicDistributionMetadata) ProtoMessage ¶
func (*PublicDistributionMetadata) ProtoMessage()
func (*PublicDistributionMetadata) ProtoReflect ¶
func (x *PublicDistributionMetadata) ProtoReflect() protoreflect.Message
func (*PublicDistributionMetadata) Reset ¶
func (x *PublicDistributionMetadata) Reset()
func (*PublicDistributionMetadata) String ¶
func (x *PublicDistributionMetadata) String() string
func (*PublicDistributionMetadata) Validate ¶
func (m *PublicDistributionMetadata) Validate() error
Validate checks the field values on PublicDistributionMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PublicDistributionMetadataValidationError ¶
type PublicDistributionMetadataValidationError struct {
// contains filtered or unexported fields
}
PublicDistributionMetadataValidationError is the validation error returned by PublicDistributionMetadata.Validate if the designated constraints aren't met.
func (PublicDistributionMetadataValidationError) Cause ¶
func (e PublicDistributionMetadataValidationError) Cause() error
Cause function returns cause value.
func (PublicDistributionMetadataValidationError) Error ¶
func (e PublicDistributionMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (PublicDistributionMetadataValidationError) ErrorName ¶
func (e PublicDistributionMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (PublicDistributionMetadataValidationError) Field ¶
func (e PublicDistributionMetadataValidationError) Field() string
Field function returns field value.
func (PublicDistributionMetadataValidationError) Key ¶
func (e PublicDistributionMetadataValidationError) Key() bool
Key function returns key value.
func (PublicDistributionMetadataValidationError) Reason ¶
func (e PublicDistributionMetadataValidationError) Reason() string
Reason function returns reason value.
type PublicDistributionMetadata_Distribution ¶
type PublicDistributionMetadata_Distribution struct {
// Destination where a portion of the pool's funds will be distributed.
// This must always be a primary account.
Destination *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
// The amount of funds to distribute to the destination
Quarks uint64 `protobuf:"varint,2,opt,name=quarks,proto3" json:"quarks,omitempty"`
// contains filtered or unexported fields
}
func (*PublicDistributionMetadata_Distribution) Descriptor
deprecated
func (*PublicDistributionMetadata_Distribution) Descriptor() ([]byte, []int)
Deprecated: Use PublicDistributionMetadata_Distribution.ProtoReflect.Descriptor instead.
func (*PublicDistributionMetadata_Distribution) GetDestination ¶
func (x *PublicDistributionMetadata_Distribution) GetDestination() *v1.SolanaAccountId
func (*PublicDistributionMetadata_Distribution) GetQuarks ¶
func (x *PublicDistributionMetadata_Distribution) GetQuarks() uint64
func (*PublicDistributionMetadata_Distribution) ProtoMessage ¶
func (*PublicDistributionMetadata_Distribution) ProtoMessage()
func (*PublicDistributionMetadata_Distribution) ProtoReflect ¶
func (x *PublicDistributionMetadata_Distribution) ProtoReflect() protoreflect.Message
func (*PublicDistributionMetadata_Distribution) Reset ¶
func (x *PublicDistributionMetadata_Distribution) Reset()
func (*PublicDistributionMetadata_Distribution) String ¶
func (x *PublicDistributionMetadata_Distribution) String() string
func (*PublicDistributionMetadata_Distribution) Validate ¶
func (m *PublicDistributionMetadata_Distribution) Validate() error
Validate checks the field values on PublicDistributionMetadata_Distribution with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PublicDistributionMetadata_DistributionValidationError ¶
type PublicDistributionMetadata_DistributionValidationError struct {
// contains filtered or unexported fields
}
PublicDistributionMetadata_DistributionValidationError is the validation error returned by PublicDistributionMetadata_Distribution.Validate if the designated constraints aren't met.
func (PublicDistributionMetadata_DistributionValidationError) Cause ¶
func (e PublicDistributionMetadata_DistributionValidationError) Cause() error
Cause function returns cause value.
func (PublicDistributionMetadata_DistributionValidationError) Error ¶
func (e PublicDistributionMetadata_DistributionValidationError) Error() string
Error satisfies the builtin error interface
func (PublicDistributionMetadata_DistributionValidationError) ErrorName ¶
func (e PublicDistributionMetadata_DistributionValidationError) ErrorName() string
ErrorName returns error name.
func (PublicDistributionMetadata_DistributionValidationError) Field ¶
func (e PublicDistributionMetadata_DistributionValidationError) Field() string
Field function returns field value.
func (PublicDistributionMetadata_DistributionValidationError) Key ¶
func (e PublicDistributionMetadata_DistributionValidationError) Key() bool
Key function returns key value.
func (PublicDistributionMetadata_DistributionValidationError) Reason ¶
func (e PublicDistributionMetadata_DistributionValidationError) Reason() string
Reason function returns reason value.
type ReasonStringErrorDetails ¶
type ReasonStringErrorDetails struct {
// Human readable string indicating the failure.
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*ReasonStringErrorDetails) Descriptor
deprecated
func (*ReasonStringErrorDetails) Descriptor() ([]byte, []int)
Deprecated: Use ReasonStringErrorDetails.ProtoReflect.Descriptor instead.
func (*ReasonStringErrorDetails) GetReason ¶
func (x *ReasonStringErrorDetails) GetReason() string
func (*ReasonStringErrorDetails) ProtoMessage ¶
func (*ReasonStringErrorDetails) ProtoMessage()
func (*ReasonStringErrorDetails) ProtoReflect ¶
func (x *ReasonStringErrorDetails) ProtoReflect() protoreflect.Message
func (*ReasonStringErrorDetails) Reset ¶
func (x *ReasonStringErrorDetails) Reset()
func (*ReasonStringErrorDetails) String ¶
func (x *ReasonStringErrorDetails) String() string
func (*ReasonStringErrorDetails) Validate ¶
func (m *ReasonStringErrorDetails) Validate() error
Validate checks the field values on ReasonStringErrorDetails with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReasonStringErrorDetailsValidationError ¶
type ReasonStringErrorDetailsValidationError struct {
// contains filtered or unexported fields
}
ReasonStringErrorDetailsValidationError is the validation error returned by ReasonStringErrorDetails.Validate if the designated constraints aren't met.
func (ReasonStringErrorDetailsValidationError) Cause ¶
func (e ReasonStringErrorDetailsValidationError) Cause() error
Cause function returns cause value.
func (ReasonStringErrorDetailsValidationError) Error ¶
func (e ReasonStringErrorDetailsValidationError) Error() string
Error satisfies the builtin error interface
func (ReasonStringErrorDetailsValidationError) ErrorName ¶
func (e ReasonStringErrorDetailsValidationError) ErrorName() string
ErrorName returns error name.
func (ReasonStringErrorDetailsValidationError) Field ¶
func (e ReasonStringErrorDetailsValidationError) Field() string
Field function returns field value.
func (ReasonStringErrorDetailsValidationError) Key ¶
func (e ReasonStringErrorDetailsValidationError) Key() bool
Key function returns key value.
func (ReasonStringErrorDetailsValidationError) Reason ¶
func (e ReasonStringErrorDetailsValidationError) Reason() string
Reason function returns reason value.
type ReceivePaymentsPubliclyMetadata ¶
type ReceivePaymentsPubliclyMetadata struct {
// The remote send gift card to receive funds from
Source *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// The exact amount of quarks being received
Quarks uint64 `protobuf:"varint,2,opt,name=quarks,proto3" json:"quarks,omitempty"`
// Is the receipt of funds from a remote send gift card? Currently, this is
// the only use case for this intent and validation enforces the flag to true.
IsRemoteSend bool `protobuf:"varint,3,opt,name=is_remote_send,json=isRemoteSend,proto3" json:"is_remote_send,omitempty"`
// If is_remote_send is true, the original exchange data that was provided as
// part of creating the gift card account. This is purely a server-provided value.
// SubmitIntent will disallow this being set.
ExchangeData *ExchangeData `protobuf:"bytes,4,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,omitempty"`
// The mint that this intent will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Receive funds into a user-owned account publicly. All use cases of this intent close the account, so all funds must be moved.
Action Spec (Remote Send):
actions = [NoPrivacyWithdrawAction(REMOTE_SEND_GIFT_CARD, PRIMARY, quarks)]
func (*ReceivePaymentsPubliclyMetadata) Descriptor
deprecated
func (*ReceivePaymentsPubliclyMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ReceivePaymentsPubliclyMetadata.ProtoReflect.Descriptor instead.
func (*ReceivePaymentsPubliclyMetadata) GetExchangeData ¶
func (x *ReceivePaymentsPubliclyMetadata) GetExchangeData() *ExchangeData
func (*ReceivePaymentsPubliclyMetadata) GetIsRemoteSend ¶
func (x *ReceivePaymentsPubliclyMetadata) GetIsRemoteSend() bool
func (*ReceivePaymentsPubliclyMetadata) GetMint ¶
func (x *ReceivePaymentsPubliclyMetadata) GetMint() *v1.SolanaAccountId
func (*ReceivePaymentsPubliclyMetadata) GetQuarks ¶
func (x *ReceivePaymentsPubliclyMetadata) GetQuarks() uint64
func (*ReceivePaymentsPubliclyMetadata) GetSource ¶
func (x *ReceivePaymentsPubliclyMetadata) GetSource() *v1.SolanaAccountId
func (*ReceivePaymentsPubliclyMetadata) ProtoMessage ¶
func (*ReceivePaymentsPubliclyMetadata) ProtoMessage()
func (*ReceivePaymentsPubliclyMetadata) ProtoReflect ¶
func (x *ReceivePaymentsPubliclyMetadata) ProtoReflect() protoreflect.Message
func (*ReceivePaymentsPubliclyMetadata) Reset ¶
func (x *ReceivePaymentsPubliclyMetadata) Reset()
func (*ReceivePaymentsPubliclyMetadata) String ¶
func (x *ReceivePaymentsPubliclyMetadata) String() string
func (*ReceivePaymentsPubliclyMetadata) Validate ¶
func (m *ReceivePaymentsPubliclyMetadata) Validate() error
Validate checks the field values on ReceivePaymentsPubliclyMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReceivePaymentsPubliclyMetadataValidationError ¶
type ReceivePaymentsPubliclyMetadataValidationError struct {
// contains filtered or unexported fields
}
ReceivePaymentsPubliclyMetadataValidationError is the validation error returned by ReceivePaymentsPubliclyMetadata.Validate if the designated constraints aren't met.
func (ReceivePaymentsPubliclyMetadataValidationError) Cause ¶
func (e ReceivePaymentsPubliclyMetadataValidationError) Cause() error
Cause function returns cause value.
func (ReceivePaymentsPubliclyMetadataValidationError) Error ¶
func (e ReceivePaymentsPubliclyMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (ReceivePaymentsPubliclyMetadataValidationError) ErrorName ¶
func (e ReceivePaymentsPubliclyMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (ReceivePaymentsPubliclyMetadataValidationError) Field ¶
func (e ReceivePaymentsPubliclyMetadataValidationError) Field() string
Field function returns field value.
func (ReceivePaymentsPubliclyMetadataValidationError) Key ¶
func (e ReceivePaymentsPubliclyMetadataValidationError) Key() bool
Key function returns key value.
func (ReceivePaymentsPubliclyMetadataValidationError) Reason ¶
func (e ReceivePaymentsPubliclyMetadataValidationError) Reason() string
Reason function returns reason value.
type SendLimit ¶
type SendLimit struct {
// Remaining limit to apply on the next transaction
NextTransaction float32 `protobuf:"fixed32,1,opt,name=next_transaction,json=nextTransaction,proto3" json:"next_transaction,omitempty"`
// Maximum allowed on a per-transaction basis
MaxPerTransaction float32 `protobuf:"fixed32,2,opt,name=max_per_transaction,json=maxPerTransaction,proto3" json:"max_per_transaction,omitempty"`
// Maximum allowed on a per-day basis
MaxPerDay float32 `protobuf:"fixed32,3,opt,name=max_per_day,json=maxPerDay,proto3" json:"max_per_day,omitempty"`
// contains filtered or unexported fields
}
func (*SendLimit) Descriptor
deprecated
func (*SendLimit) GetMaxPerDay ¶
func (*SendLimit) GetMaxPerTransaction ¶
func (*SendLimit) GetNextTransaction ¶
func (*SendLimit) ProtoMessage ¶
func (*SendLimit) ProtoMessage()
func (*SendLimit) ProtoReflect ¶
func (x *SendLimit) ProtoReflect() protoreflect.Message
type SendLimitValidationError ¶
type SendLimitValidationError struct {
// contains filtered or unexported fields
}
SendLimitValidationError is the validation error returned by SendLimit.Validate if the designated constraints aren't met.
func (SendLimitValidationError) Cause ¶
func (e SendLimitValidationError) Cause() error
Cause function returns cause value.
func (SendLimitValidationError) Error ¶
func (e SendLimitValidationError) Error() string
Error satisfies the builtin error interface
func (SendLimitValidationError) ErrorName ¶
func (e SendLimitValidationError) ErrorName() string
ErrorName returns error name.
func (SendLimitValidationError) Field ¶
func (e SendLimitValidationError) Field() string
Field function returns field value.
func (SendLimitValidationError) Key ¶
func (e SendLimitValidationError) Key() bool
Key function returns key value.
func (SendLimitValidationError) Reason ¶
func (e SendLimitValidationError) Reason() string
Reason function returns reason value.
type SendPublicPaymentMetadata ¶
type SendPublicPaymentMetadata struct {
// The source account where funds will be sent from. Currently, this is always
// the user's primary account.
Source *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// The destination token account to send funds to.
Destination *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
// Destination owner account, which is required for withdrawals that intend
// to create an ATA. Every other variation of this intent can omit this field.
DestinationOwner *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=destination_owner,json=destinationOwner,proto3" json:"destination_owner,omitempty"`
// The exchange data of total funds being sent to the destination
ExchangeData *ExchangeData `protobuf:"bytes,4,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,omitempty"`
// Is the payment a withdrawal?
IsWithdrawal bool `protobuf:"varint,5,opt,name=is_withdrawal,json=isWithdrawal,proto3" json:"is_withdrawal,omitempty"`
// Is the payment going to a new gift card? Note is_withdrawal must be false.
IsRemoteSend bool `protobuf:"varint,6,opt,name=is_remote_send,json=isRemoteSend,proto3" json:"is_remote_send,omitempty"`
// The mint that this intent will be operating against
Mint *v1.SolanaAccountId `protobuf:"bytes,7,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
Send a payment to a destination account publicly.
Action Spec (Payment):
actions = [NoPrivacyTransferAction(PRIMARY, destination, ExchangeData.Quarks)]
Action Spec (Withdrawal):
actions = [NoPrivacyTransferAction(PRIMARY, destination, ExchangeData.Quarks)]
if destinationRequiresInitialization {
actions[0].NoPrivacyTransferAction.ExchangeData.Quarks -= feeAmount
actions.push_back(FeePaymentAction(PRIMARY, feeAccount, feeAmount))
}
Action Spec (Remote Send):
actions = [
OpenAccountAction(REMOTE_SEND_GIFT_CARD), NoPrivacyTransferAction(PRIMARY, REMOTE_SEND_GIFT_CARD, ExchangeData.Quarks), NoPrivacyWithdrawAction(REMOTE_SEND_GIFT_CARD, PRIMARY, ExchangeData.Quarks, is_auto_return=true),
]
func (*SendPublicPaymentMetadata) Descriptor
deprecated
func (*SendPublicPaymentMetadata) Descriptor() ([]byte, []int)
Deprecated: Use SendPublicPaymentMetadata.ProtoReflect.Descriptor instead.
func (*SendPublicPaymentMetadata) GetDestination ¶
func (x *SendPublicPaymentMetadata) GetDestination() *v1.SolanaAccountId
func (*SendPublicPaymentMetadata) GetDestinationOwner ¶
func (x *SendPublicPaymentMetadata) GetDestinationOwner() *v1.SolanaAccountId
func (*SendPublicPaymentMetadata) GetExchangeData ¶
func (x *SendPublicPaymentMetadata) GetExchangeData() *ExchangeData
func (*SendPublicPaymentMetadata) GetIsRemoteSend ¶
func (x *SendPublicPaymentMetadata) GetIsRemoteSend() bool
func (*SendPublicPaymentMetadata) GetIsWithdrawal ¶
func (x *SendPublicPaymentMetadata) GetIsWithdrawal() bool
func (*SendPublicPaymentMetadata) GetMint ¶
func (x *SendPublicPaymentMetadata) GetMint() *v1.SolanaAccountId
func (*SendPublicPaymentMetadata) GetSource ¶
func (x *SendPublicPaymentMetadata) GetSource() *v1.SolanaAccountId
func (*SendPublicPaymentMetadata) ProtoMessage ¶
func (*SendPublicPaymentMetadata) ProtoMessage()
func (*SendPublicPaymentMetadata) ProtoReflect ¶
func (x *SendPublicPaymentMetadata) ProtoReflect() protoreflect.Message
func (*SendPublicPaymentMetadata) Reset ¶
func (x *SendPublicPaymentMetadata) Reset()
func (*SendPublicPaymentMetadata) String ¶
func (x *SendPublicPaymentMetadata) String() string
func (*SendPublicPaymentMetadata) Validate ¶
func (m *SendPublicPaymentMetadata) Validate() error
Validate checks the field values on SendPublicPaymentMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SendPublicPaymentMetadataValidationError ¶
type SendPublicPaymentMetadataValidationError struct {
// contains filtered or unexported fields
}
SendPublicPaymentMetadataValidationError is the validation error returned by SendPublicPaymentMetadata.Validate if the designated constraints aren't met.
func (SendPublicPaymentMetadataValidationError) Cause ¶
func (e SendPublicPaymentMetadataValidationError) Cause() error
Cause function returns cause value.
func (SendPublicPaymentMetadataValidationError) Error ¶
func (e SendPublicPaymentMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (SendPublicPaymentMetadataValidationError) ErrorName ¶
func (e SendPublicPaymentMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (SendPublicPaymentMetadataValidationError) Field ¶
func (e SendPublicPaymentMetadataValidationError) Field() string
Field function returns field value.
func (SendPublicPaymentMetadataValidationError) Key ¶
func (e SendPublicPaymentMetadataValidationError) Key() bool
Key function returns key value.
func (SendPublicPaymentMetadataValidationError) Reason ¶
func (e SendPublicPaymentMetadataValidationError) Reason() string
Reason function returns reason value.
type ServerParameter ¶
type ServerParameter struct {
// The action the server parameters belong to
ActionId uint32 `protobuf:"varint,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// The set of nonces used for the action. Server will only provide values
// for transactions requiring client signatures.
Nonces []*NoncedTransactionMetadata `protobuf:"bytes,2,rep,name=nonces,proto3" json:"nonces,omitempty"`
// The type of server parameter which maps to the type of action requested
//
// Types that are assignable to Type:
//
// *ServerParameter_OpenAccount
// *ServerParameter_NoPrivacyTransfer
// *ServerParameter_NoPrivacyWithdraw
// *ServerParameter_FeePayment
Type isServerParameter_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
ServerParameter are a set of parameters known and returned by server that enables clients to complete transaction construction. Any necessary proofs, which are required to be locally verifiable, are also provided to ensure safe use in the event of a malicious server.
func (*ServerParameter) Descriptor
deprecated
func (*ServerParameter) Descriptor() ([]byte, []int)
Deprecated: Use ServerParameter.ProtoReflect.Descriptor instead.
func (*ServerParameter) GetActionId ¶
func (x *ServerParameter) GetActionId() uint32
func (*ServerParameter) GetFeePayment ¶
func (x *ServerParameter) GetFeePayment() *FeePaymentServerParameter
func (*ServerParameter) GetNoPrivacyTransfer ¶
func (x *ServerParameter) GetNoPrivacyTransfer() *NoPrivacyTransferServerParameter
func (*ServerParameter) GetNoPrivacyWithdraw ¶
func (x *ServerParameter) GetNoPrivacyWithdraw() *NoPrivacyWithdrawServerParameter
func (*ServerParameter) GetNonces ¶
func (x *ServerParameter) GetNonces() []*NoncedTransactionMetadata
func (*ServerParameter) GetOpenAccount ¶
func (x *ServerParameter) GetOpenAccount() *OpenAccountServerParameter
func (*ServerParameter) GetType ¶
func (m *ServerParameter) GetType() isServerParameter_Type
func (*ServerParameter) ProtoMessage ¶
func (*ServerParameter) ProtoMessage()
func (*ServerParameter) ProtoReflect ¶
func (x *ServerParameter) ProtoReflect() protoreflect.Message
func (*ServerParameter) Reset ¶
func (x *ServerParameter) Reset()
func (*ServerParameter) String ¶
func (x *ServerParameter) String() string
func (*ServerParameter) Validate ¶
func (m *ServerParameter) Validate() error
Validate checks the field values on ServerParameter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ServerParameterValidationError ¶
type ServerParameterValidationError struct {
// contains filtered or unexported fields
}
ServerParameterValidationError is the validation error returned by ServerParameter.Validate if the designated constraints aren't met.
func (ServerParameterValidationError) Cause ¶
func (e ServerParameterValidationError) Cause() error
Cause function returns cause value.
func (ServerParameterValidationError) Error ¶
func (e ServerParameterValidationError) Error() string
Error satisfies the builtin error interface
func (ServerParameterValidationError) ErrorName ¶
func (e ServerParameterValidationError) ErrorName() string
ErrorName returns error name.
func (ServerParameterValidationError) Field ¶
func (e ServerParameterValidationError) Field() string
Field function returns field value.
func (ServerParameterValidationError) Key ¶
func (e ServerParameterValidationError) Key() bool
Key function returns key value.
func (ServerParameterValidationError) Reason ¶
func (e ServerParameterValidationError) Reason() string
Reason function returns reason value.
type ServerParameter_FeePayment ¶
type ServerParameter_FeePayment struct {
FeePayment *FeePaymentServerParameter `protobuf:"bytes,6,opt,name=fee_payment,json=feePayment,proto3,oneof"`
}
type ServerParameter_NoPrivacyTransfer ¶
type ServerParameter_NoPrivacyTransfer struct {
NoPrivacyTransfer *NoPrivacyTransferServerParameter `protobuf:"bytes,4,opt,name=no_privacy_transfer,json=noPrivacyTransfer,proto3,oneof"`
}
type ServerParameter_NoPrivacyWithdraw ¶
type ServerParameter_NoPrivacyWithdraw struct {
NoPrivacyWithdraw *NoPrivacyWithdrawServerParameter `protobuf:"bytes,5,opt,name=no_privacy_withdraw,json=noPrivacyWithdraw,proto3,oneof"`
}
type ServerParameter_OpenAccount ¶
type ServerParameter_OpenAccount struct {
OpenAccount *OpenAccountServerParameter `protobuf:"bytes,3,opt,name=open_account,json=openAccount,proto3,oneof"`
}
type StartSwapRequest ¶
type StartSwapRequest struct {
// Types that are assignable to Request:
//
// *StartSwapRequest_Start_
// *StartSwapRequest_SubmitSignature_
Request isStartSwapRequest_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*StartSwapRequest) Descriptor
deprecated
func (*StartSwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapRequest.ProtoReflect.Descriptor instead.
func (*StartSwapRequest) GetRequest ¶
func (m *StartSwapRequest) GetRequest() isStartSwapRequest_Request
func (*StartSwapRequest) GetStart ¶
func (x *StartSwapRequest) GetStart() *StartSwapRequest_Start
func (*StartSwapRequest) GetSubmitSignature ¶
func (x *StartSwapRequest) GetSubmitSignature() *StartSwapRequest_SubmitSignature
func (*StartSwapRequest) ProtoMessage ¶
func (*StartSwapRequest) ProtoMessage()
func (*StartSwapRequest) ProtoReflect ¶
func (x *StartSwapRequest) ProtoReflect() protoreflect.Message
func (*StartSwapRequest) Reset ¶
func (x *StartSwapRequest) Reset()
func (*StartSwapRequest) String ¶
func (x *StartSwapRequest) String() string
func (*StartSwapRequest) Validate ¶
func (m *StartSwapRequest) Validate() error
Validate checks the field values on StartSwapRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapRequestValidationError ¶
type StartSwapRequestValidationError struct {
// contains filtered or unexported fields
}
StartSwapRequestValidationError is the validation error returned by StartSwapRequest.Validate if the designated constraints aren't met.
func (StartSwapRequestValidationError) Cause ¶
func (e StartSwapRequestValidationError) Cause() error
Cause function returns cause value.
func (StartSwapRequestValidationError) Error ¶
func (e StartSwapRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapRequestValidationError) ErrorName ¶
func (e StartSwapRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapRequestValidationError) Field ¶
func (e StartSwapRequestValidationError) Field() string
Field function returns field value.
func (StartSwapRequestValidationError) Key ¶
func (e StartSwapRequestValidationError) Key() bool
Key function returns key value.
func (StartSwapRequestValidationError) Reason ¶
func (e StartSwapRequestValidationError) Reason() string
Reason function returns reason value.
type StartSwapRequest_Start ¶
type StartSwapRequest_Start struct {
// Types that are assignable to Kind:
//
// *StartSwapRequest_Start_CurrencyCreator_
Kind isStartSwapRequest_Start_Kind `protobuf_oneof:"kind"`
// The owner account starting the swap
Owner *v1.SolanaAccountId `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"`
// The signature is of serialize(StartSwapRequest.Start) without this field
// set using the private key of the owner account. This provides an authentication
// mechanism to the RPC.
Signature *v1.Signature `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*StartSwapRequest_Start) Descriptor
deprecated
func (*StartSwapRequest_Start) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapRequest_Start.ProtoReflect.Descriptor instead.
func (*StartSwapRequest_Start) GetCurrencyCreator ¶
func (x *StartSwapRequest_Start) GetCurrencyCreator() *StartSwapRequest_Start_CurrencyCreator
func (*StartSwapRequest_Start) GetKind ¶
func (m *StartSwapRequest_Start) GetKind() isStartSwapRequest_Start_Kind
func (*StartSwapRequest_Start) GetOwner ¶
func (x *StartSwapRequest_Start) GetOwner() *v1.SolanaAccountId
func (*StartSwapRequest_Start) GetSignature ¶
func (x *StartSwapRequest_Start) GetSignature() *v1.Signature
func (*StartSwapRequest_Start) ProtoMessage ¶
func (*StartSwapRequest_Start) ProtoMessage()
func (*StartSwapRequest_Start) ProtoReflect ¶
func (x *StartSwapRequest_Start) ProtoReflect() protoreflect.Message
func (*StartSwapRequest_Start) Reset ¶
func (x *StartSwapRequest_Start) Reset()
func (*StartSwapRequest_Start) String ¶
func (x *StartSwapRequest_Start) String() string
func (*StartSwapRequest_Start) Validate ¶
func (m *StartSwapRequest_Start) Validate() error
Validate checks the field values on StartSwapRequest_Start with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapRequest_StartValidationError ¶
type StartSwapRequest_StartValidationError struct {
// contains filtered or unexported fields
}
StartSwapRequest_StartValidationError is the validation error returned by StartSwapRequest_Start.Validate if the designated constraints aren't met.
func (StartSwapRequest_StartValidationError) Cause ¶
func (e StartSwapRequest_StartValidationError) Cause() error
Cause function returns cause value.
func (StartSwapRequest_StartValidationError) Error ¶
func (e StartSwapRequest_StartValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapRequest_StartValidationError) ErrorName ¶
func (e StartSwapRequest_StartValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapRequest_StartValidationError) Field ¶
func (e StartSwapRequest_StartValidationError) Field() string
Field function returns field value.
func (StartSwapRequest_StartValidationError) Key ¶
func (e StartSwapRequest_StartValidationError) Key() bool
Key function returns key value.
func (StartSwapRequest_StartValidationError) Reason ¶
func (e StartSwapRequest_StartValidationError) Reason() string
Reason function returns reason value.
type StartSwapRequest_Start_ ¶
type StartSwapRequest_Start_ struct {
Start *StartSwapRequest_Start `protobuf:"bytes,1,opt,name=start,proto3,oneof"`
}
type StartSwapRequest_Start_CurrencyCreator ¶
type StartSwapRequest_Start_CurrencyCreator struct {
// The unique ID for this swap randomly generated on client
Id *v1.SwapId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The source mint that will be swapped from
FromMint *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=from_mint,json=fromMint,proto3" json:"from_mint,omitempty"`
// The destination mint that will be swapped from
ToMint *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=to_mint,json=toMint,proto3" json:"to_mint,omitempty"`
// The amount to swap from the source mint in quarks.
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
// Where "amount" of "from_mint" will be sent from to the VM swap PDA
FundingSource FundingSource `` /* 139-byte string literal not displayed */
// The ID of the "transaction" to lookup funding state.
//
// For SWAP_FUNDING_SOURCE_SUBMIT_INTENT, this value is the base58 encoded intent ID.
FundingId string `protobuf:"bytes,6,opt,name=funding_id,json=fundingId,proto3" json:"funding_id,omitempty"`
// contains filtered or unexported fields
}
Server parameters for starting swaps against the Currency Creator program
func (*StartSwapRequest_Start_CurrencyCreator) Descriptor
deprecated
func (*StartSwapRequest_Start_CurrencyCreator) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapRequest_Start_CurrencyCreator.ProtoReflect.Descriptor instead.
func (*StartSwapRequest_Start_CurrencyCreator) GetAmount ¶
func (x *StartSwapRequest_Start_CurrencyCreator) GetAmount() uint64
func (*StartSwapRequest_Start_CurrencyCreator) GetFromMint ¶
func (x *StartSwapRequest_Start_CurrencyCreator) GetFromMint() *v1.SolanaAccountId
func (*StartSwapRequest_Start_CurrencyCreator) GetFundingId ¶
func (x *StartSwapRequest_Start_CurrencyCreator) GetFundingId() string
func (*StartSwapRequest_Start_CurrencyCreator) GetFundingSource ¶
func (x *StartSwapRequest_Start_CurrencyCreator) GetFundingSource() FundingSource
func (*StartSwapRequest_Start_CurrencyCreator) GetId ¶
func (x *StartSwapRequest_Start_CurrencyCreator) GetId() *v1.SwapId
func (*StartSwapRequest_Start_CurrencyCreator) GetToMint ¶
func (x *StartSwapRequest_Start_CurrencyCreator) GetToMint() *v1.SolanaAccountId
func (*StartSwapRequest_Start_CurrencyCreator) ProtoMessage ¶
func (*StartSwapRequest_Start_CurrencyCreator) ProtoMessage()
func (*StartSwapRequest_Start_CurrencyCreator) ProtoReflect ¶
func (x *StartSwapRequest_Start_CurrencyCreator) ProtoReflect() protoreflect.Message
func (*StartSwapRequest_Start_CurrencyCreator) Reset ¶
func (x *StartSwapRequest_Start_CurrencyCreator) Reset()
func (*StartSwapRequest_Start_CurrencyCreator) String ¶
func (x *StartSwapRequest_Start_CurrencyCreator) String() string
func (*StartSwapRequest_Start_CurrencyCreator) Validate ¶
func (m *StartSwapRequest_Start_CurrencyCreator) Validate() error
Validate checks the field values on StartSwapRequest_Start_CurrencyCreator with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapRequest_Start_CurrencyCreatorValidationError ¶
type StartSwapRequest_Start_CurrencyCreatorValidationError struct {
// contains filtered or unexported fields
}
StartSwapRequest_Start_CurrencyCreatorValidationError is the validation error returned by StartSwapRequest_Start_CurrencyCreator.Validate if the designated constraints aren't met.
func (StartSwapRequest_Start_CurrencyCreatorValidationError) Cause ¶
func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Cause() error
Cause function returns cause value.
func (StartSwapRequest_Start_CurrencyCreatorValidationError) Error ¶
func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapRequest_Start_CurrencyCreatorValidationError) ErrorName ¶
func (e StartSwapRequest_Start_CurrencyCreatorValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapRequest_Start_CurrencyCreatorValidationError) Field ¶
func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Field() string
Field function returns field value.
func (StartSwapRequest_Start_CurrencyCreatorValidationError) Key ¶
func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Key() bool
Key function returns key value.
func (StartSwapRequest_Start_CurrencyCreatorValidationError) Reason ¶
func (e StartSwapRequest_Start_CurrencyCreatorValidationError) Reason() string
Reason function returns reason value.
type StartSwapRequest_Start_CurrencyCreator_ ¶
type StartSwapRequest_Start_CurrencyCreator_ struct {
CurrencyCreator *StartSwapRequest_Start_CurrencyCreator `protobuf:"bytes,1,opt,name=currency_creator,json=currencyCreator,proto3,oneof"`
}
type StartSwapRequest_SubmitSignature ¶
type StartSwapRequest_SubmitSignature struct {
// The signature of the verified swap metadata
Signature *v1.Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*StartSwapRequest_SubmitSignature) Descriptor
deprecated
func (*StartSwapRequest_SubmitSignature) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapRequest_SubmitSignature.ProtoReflect.Descriptor instead.
func (*StartSwapRequest_SubmitSignature) GetSignature ¶
func (x *StartSwapRequest_SubmitSignature) GetSignature() *v1.Signature
func (*StartSwapRequest_SubmitSignature) ProtoMessage ¶
func (*StartSwapRequest_SubmitSignature) ProtoMessage()
func (*StartSwapRequest_SubmitSignature) ProtoReflect ¶
func (x *StartSwapRequest_SubmitSignature) ProtoReflect() protoreflect.Message
func (*StartSwapRequest_SubmitSignature) Reset ¶
func (x *StartSwapRequest_SubmitSignature) Reset()
func (*StartSwapRequest_SubmitSignature) String ¶
func (x *StartSwapRequest_SubmitSignature) String() string
func (*StartSwapRequest_SubmitSignature) Validate ¶
func (m *StartSwapRequest_SubmitSignature) Validate() error
Validate checks the field values on StartSwapRequest_SubmitSignature with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapRequest_SubmitSignatureValidationError ¶
type StartSwapRequest_SubmitSignatureValidationError struct {
// contains filtered or unexported fields
}
StartSwapRequest_SubmitSignatureValidationError is the validation error returned by StartSwapRequest_SubmitSignature.Validate if the designated constraints aren't met.
func (StartSwapRequest_SubmitSignatureValidationError) Cause ¶
func (e StartSwapRequest_SubmitSignatureValidationError) Cause() error
Cause function returns cause value.
func (StartSwapRequest_SubmitSignatureValidationError) Error ¶
func (e StartSwapRequest_SubmitSignatureValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapRequest_SubmitSignatureValidationError) ErrorName ¶
func (e StartSwapRequest_SubmitSignatureValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapRequest_SubmitSignatureValidationError) Field ¶
func (e StartSwapRequest_SubmitSignatureValidationError) Field() string
Field function returns field value.
func (StartSwapRequest_SubmitSignatureValidationError) Key ¶
func (e StartSwapRequest_SubmitSignatureValidationError) Key() bool
Key function returns key value.
func (StartSwapRequest_SubmitSignatureValidationError) Reason ¶
func (e StartSwapRequest_SubmitSignatureValidationError) Reason() string
Reason function returns reason value.
type StartSwapRequest_SubmitSignature_ ¶
type StartSwapRequest_SubmitSignature_ struct {
SubmitSignature *StartSwapRequest_SubmitSignature `protobuf:"bytes,2,opt,name=submit_signature,json=submitSignature,proto3,oneof"`
}
type StartSwapResponse ¶
type StartSwapResponse struct {
// Types that are assignable to Response:
//
// *StartSwapResponse_ServerParameters_
// *StartSwapResponse_Success_
// *StartSwapResponse_Error_
Response isStartSwapResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*StartSwapResponse) Descriptor
deprecated
func (*StartSwapResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse.ProtoReflect.Descriptor instead.
func (*StartSwapResponse) GetError ¶
func (x *StartSwapResponse) GetError() *StartSwapResponse_Error
func (*StartSwapResponse) GetResponse ¶
func (m *StartSwapResponse) GetResponse() isStartSwapResponse_Response
func (*StartSwapResponse) GetServerParameters ¶
func (x *StartSwapResponse) GetServerParameters() *StartSwapResponse_ServerParameters
func (*StartSwapResponse) GetSuccess ¶
func (x *StartSwapResponse) GetSuccess() *StartSwapResponse_Success
func (*StartSwapResponse) ProtoMessage ¶
func (*StartSwapResponse) ProtoMessage()
func (*StartSwapResponse) ProtoReflect ¶
func (x *StartSwapResponse) ProtoReflect() protoreflect.Message
func (*StartSwapResponse) Reset ¶
func (x *StartSwapResponse) Reset()
func (*StartSwapResponse) String ¶
func (x *StartSwapResponse) String() string
func (*StartSwapResponse) Validate ¶
func (m *StartSwapResponse) Validate() error
Validate checks the field values on StartSwapResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapResponseValidationError ¶
type StartSwapResponseValidationError struct {
// contains filtered or unexported fields
}
StartSwapResponseValidationError is the validation error returned by StartSwapResponse.Validate if the designated constraints aren't met.
func (StartSwapResponseValidationError) Cause ¶
func (e StartSwapResponseValidationError) Cause() error
Cause function returns cause value.
func (StartSwapResponseValidationError) Error ¶
func (e StartSwapResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapResponseValidationError) ErrorName ¶
func (e StartSwapResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapResponseValidationError) Field ¶
func (e StartSwapResponseValidationError) Field() string
Field function returns field value.
func (StartSwapResponseValidationError) Key ¶
func (e StartSwapResponseValidationError) Key() bool
Key function returns key value.
func (StartSwapResponseValidationError) Reason ¶
func (e StartSwapResponseValidationError) Reason() string
Reason function returns reason value.
type StartSwapResponse_Error ¶
type StartSwapResponse_Error struct {
Code StartSwapResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.StartSwapResponse_Error_Code" json:"code,omitempty"`
ErrorDetails []*ErrorDetails `protobuf:"bytes,2,rep,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
// contains filtered or unexported fields
}
func (*StartSwapResponse_Error) Descriptor
deprecated
func (*StartSwapResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse_Error.ProtoReflect.Descriptor instead.
func (*StartSwapResponse_Error) GetCode ¶
func (x *StartSwapResponse_Error) GetCode() StartSwapResponse_Error_Code
func (*StartSwapResponse_Error) GetErrorDetails ¶
func (x *StartSwapResponse_Error) GetErrorDetails() []*ErrorDetails
func (*StartSwapResponse_Error) ProtoMessage ¶
func (*StartSwapResponse_Error) ProtoMessage()
func (*StartSwapResponse_Error) ProtoReflect ¶
func (x *StartSwapResponse_Error) ProtoReflect() protoreflect.Message
func (*StartSwapResponse_Error) Reset ¶
func (x *StartSwapResponse_Error) Reset()
func (*StartSwapResponse_Error) String ¶
func (x *StartSwapResponse_Error) String() string
func (*StartSwapResponse_Error) Validate ¶
func (m *StartSwapResponse_Error) Validate() error
Validate checks the field values on StartSwapResponse_Error with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapResponse_ErrorValidationError ¶
type StartSwapResponse_ErrorValidationError struct {
// contains filtered or unexported fields
}
StartSwapResponse_ErrorValidationError is the validation error returned by StartSwapResponse_Error.Validate if the designated constraints aren't met.
func (StartSwapResponse_ErrorValidationError) Cause ¶
func (e StartSwapResponse_ErrorValidationError) Cause() error
Cause function returns cause value.
func (StartSwapResponse_ErrorValidationError) Error ¶
func (e StartSwapResponse_ErrorValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapResponse_ErrorValidationError) ErrorName ¶
func (e StartSwapResponse_ErrorValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapResponse_ErrorValidationError) Field ¶
func (e StartSwapResponse_ErrorValidationError) Field() string
Field function returns field value.
func (StartSwapResponse_ErrorValidationError) Key ¶
func (e StartSwapResponse_ErrorValidationError) Key() bool
Key function returns key value.
func (StartSwapResponse_ErrorValidationError) Reason ¶
func (e StartSwapResponse_ErrorValidationError) Reason() string
Reason function returns reason value.
type StartSwapResponse_Error_ ¶
type StartSwapResponse_Error_ struct {
Error *StartSwapResponse_Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}
type StartSwapResponse_Error_Code ¶
type StartSwapResponse_Error_Code int32
const ( // Denied by a guard (spam, money laundering, etc) StartSwapResponse_Error_DENIED StartSwapResponse_Error_Code = 0 // There is an issue with the provided signature StartSwapResponse_Error_SIGNATURE_ERROR StartSwapResponse_Error_Code = 1 // The swap metadata failed server-side validation StartSwapResponse_Error_INVALID_SWAP StartSwapResponse_Error_Code = 2 )
func (StartSwapResponse_Error_Code) Descriptor ¶
func (StartSwapResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
func (StartSwapResponse_Error_Code) Enum ¶
func (x StartSwapResponse_Error_Code) Enum() *StartSwapResponse_Error_Code
func (StartSwapResponse_Error_Code) EnumDescriptor
deprecated
func (StartSwapResponse_Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse_Error_Code.Descriptor instead.
func (StartSwapResponse_Error_Code) Number ¶
func (x StartSwapResponse_Error_Code) Number() protoreflect.EnumNumber
func (StartSwapResponse_Error_Code) String ¶
func (x StartSwapResponse_Error_Code) String() string
func (StartSwapResponse_Error_Code) Type ¶
func (StartSwapResponse_Error_Code) Type() protoreflect.EnumType
type StartSwapResponse_ServerParameters ¶
type StartSwapResponse_ServerParameters struct {
// Types that are assignable to Kind:
//
// *StartSwapResponse_ServerParameters_CurrencyCreator_
Kind isStartSwapResponse_ServerParameters_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*StartSwapResponse_ServerParameters) Descriptor
deprecated
func (*StartSwapResponse_ServerParameters) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse_ServerParameters.ProtoReflect.Descriptor instead.
func (*StartSwapResponse_ServerParameters) GetCurrencyCreator ¶
func (x *StartSwapResponse_ServerParameters) GetCurrencyCreator() *StartSwapResponse_ServerParameters_CurrencyCreator
func (*StartSwapResponse_ServerParameters) GetKind ¶
func (m *StartSwapResponse_ServerParameters) GetKind() isStartSwapResponse_ServerParameters_Kind
func (*StartSwapResponse_ServerParameters) ProtoMessage ¶
func (*StartSwapResponse_ServerParameters) ProtoMessage()
func (*StartSwapResponse_ServerParameters) ProtoReflect ¶
func (x *StartSwapResponse_ServerParameters) ProtoReflect() protoreflect.Message
func (*StartSwapResponse_ServerParameters) Reset ¶
func (x *StartSwapResponse_ServerParameters) Reset()
func (*StartSwapResponse_ServerParameters) String ¶
func (x *StartSwapResponse_ServerParameters) String() string
func (*StartSwapResponse_ServerParameters) Validate ¶
func (m *StartSwapResponse_ServerParameters) Validate() error
Validate checks the field values on StartSwapResponse_ServerParameters with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapResponse_ServerParametersValidationError ¶
type StartSwapResponse_ServerParametersValidationError struct {
// contains filtered or unexported fields
}
StartSwapResponse_ServerParametersValidationError is the validation error returned by StartSwapResponse_ServerParameters.Validate if the designated constraints aren't met.
func (StartSwapResponse_ServerParametersValidationError) Cause ¶
func (e StartSwapResponse_ServerParametersValidationError) Cause() error
Cause function returns cause value.
func (StartSwapResponse_ServerParametersValidationError) Error ¶
func (e StartSwapResponse_ServerParametersValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapResponse_ServerParametersValidationError) ErrorName ¶
func (e StartSwapResponse_ServerParametersValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapResponse_ServerParametersValidationError) Field ¶
func (e StartSwapResponse_ServerParametersValidationError) Field() string
Field function returns field value.
func (StartSwapResponse_ServerParametersValidationError) Key ¶
func (e StartSwapResponse_ServerParametersValidationError) Key() bool
Key function returns key value.
func (StartSwapResponse_ServerParametersValidationError) Reason ¶
func (e StartSwapResponse_ServerParametersValidationError) Reason() string
Reason function returns reason value.
type StartSwapResponse_ServerParameters_ ¶
type StartSwapResponse_ServerParameters_ struct {
ServerParameters *StartSwapResponse_ServerParameters `protobuf:"bytes,1,opt,name=server_parameters,json=serverParameters,proto3,oneof"`
}
type StartSwapResponse_ServerParameters_CurrencyCreator ¶
type StartSwapResponse_ServerParameters_CurrencyCreator struct {
// The nonce that is reserved for use in the swap transaction
Nonce *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The blockhash that is reserved for use in the swap transaction
Blockhash *v1.Blockhash `protobuf:"bytes,2,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
// contains filtered or unexported fields
}
func (*StartSwapResponse_ServerParameters_CurrencyCreator) Descriptor
deprecated
func (*StartSwapResponse_ServerParameters_CurrencyCreator) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse_ServerParameters_CurrencyCreator.ProtoReflect.Descriptor instead.
func (*StartSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash ¶
func (x *StartSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash() *v1.Blockhash
func (*StartSwapResponse_ServerParameters_CurrencyCreator) GetNonce ¶
func (x *StartSwapResponse_ServerParameters_CurrencyCreator) GetNonce() *v1.SolanaAccountId
func (*StartSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage ¶
func (*StartSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage()
func (*StartSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect ¶
func (x *StartSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect() protoreflect.Message
func (*StartSwapResponse_ServerParameters_CurrencyCreator) Reset ¶
func (x *StartSwapResponse_ServerParameters_CurrencyCreator) Reset()
func (*StartSwapResponse_ServerParameters_CurrencyCreator) String ¶
func (x *StartSwapResponse_ServerParameters_CurrencyCreator) String() string
func (*StartSwapResponse_ServerParameters_CurrencyCreator) Validate ¶
func (m *StartSwapResponse_ServerParameters_CurrencyCreator) Validate() error
Validate checks the field values on StartSwapResponse_ServerParameters_CurrencyCreator with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapResponse_ServerParameters_CurrencyCreatorValidationError ¶
type StartSwapResponse_ServerParameters_CurrencyCreatorValidationError struct {
// contains filtered or unexported fields
}
StartSwapResponse_ServerParameters_CurrencyCreatorValidationError is the validation error returned by StartSwapResponse_ServerParameters_CurrencyCreator.Validate if the designated constraints aren't met.
func (StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Cause ¶
func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Cause() error
Cause function returns cause value.
func (StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Error ¶
func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) ErrorName ¶
func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Field ¶
func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Field() string
Field function returns field value.
func (StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Key ¶
Key function returns key value.
func (StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Reason ¶
func (e StartSwapResponse_ServerParameters_CurrencyCreatorValidationError) Reason() string
Reason function returns reason value.
type StartSwapResponse_ServerParameters_CurrencyCreator_ ¶
type StartSwapResponse_ServerParameters_CurrencyCreator_ struct {
CurrencyCreator *StartSwapResponse_ServerParameters_CurrencyCreator `protobuf:"bytes,1,opt,name=currency_creator,json=currencyCreator,proto3,oneof"`
}
type StartSwapResponse_Success ¶
type StartSwapResponse_Success struct {
Code StartSwapResponse_Success_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.StartSwapResponse_Success_Code" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*StartSwapResponse_Success) Descriptor
deprecated
func (*StartSwapResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse_Success.ProtoReflect.Descriptor instead.
func (*StartSwapResponse_Success) GetCode ¶
func (x *StartSwapResponse_Success) GetCode() StartSwapResponse_Success_Code
func (*StartSwapResponse_Success) ProtoMessage ¶
func (*StartSwapResponse_Success) ProtoMessage()
func (*StartSwapResponse_Success) ProtoReflect ¶
func (x *StartSwapResponse_Success) ProtoReflect() protoreflect.Message
func (*StartSwapResponse_Success) Reset ¶
func (x *StartSwapResponse_Success) Reset()
func (*StartSwapResponse_Success) String ¶
func (x *StartSwapResponse_Success) String() string
func (*StartSwapResponse_Success) Validate ¶
func (m *StartSwapResponse_Success) Validate() error
Validate checks the field values on StartSwapResponse_Success with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StartSwapResponse_SuccessValidationError ¶
type StartSwapResponse_SuccessValidationError struct {
// contains filtered or unexported fields
}
StartSwapResponse_SuccessValidationError is the validation error returned by StartSwapResponse_Success.Validate if the designated constraints aren't met.
func (StartSwapResponse_SuccessValidationError) Cause ¶
func (e StartSwapResponse_SuccessValidationError) Cause() error
Cause function returns cause value.
func (StartSwapResponse_SuccessValidationError) Error ¶
func (e StartSwapResponse_SuccessValidationError) Error() string
Error satisfies the builtin error interface
func (StartSwapResponse_SuccessValidationError) ErrorName ¶
func (e StartSwapResponse_SuccessValidationError) ErrorName() string
ErrorName returns error name.
func (StartSwapResponse_SuccessValidationError) Field ¶
func (e StartSwapResponse_SuccessValidationError) Field() string
Field function returns field value.
func (StartSwapResponse_SuccessValidationError) Key ¶
func (e StartSwapResponse_SuccessValidationError) Key() bool
Key function returns key value.
func (StartSwapResponse_SuccessValidationError) Reason ¶
func (e StartSwapResponse_SuccessValidationError) Reason() string
Reason function returns reason value.
type StartSwapResponse_Success_ ¶
type StartSwapResponse_Success_ struct {
Success *StartSwapResponse_Success `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}
type StartSwapResponse_Success_Code ¶
type StartSwapResponse_Success_Code int32
const (
StartSwapResponse_Success_OK StartSwapResponse_Success_Code = 0
)
func (StartSwapResponse_Success_Code) Descriptor ¶
func (StartSwapResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
func (StartSwapResponse_Success_Code) Enum ¶
func (x StartSwapResponse_Success_Code) Enum() *StartSwapResponse_Success_Code
func (StartSwapResponse_Success_Code) EnumDescriptor
deprecated
func (StartSwapResponse_Success_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use StartSwapResponse_Success_Code.Descriptor instead.
func (StartSwapResponse_Success_Code) Number ¶
func (x StartSwapResponse_Success_Code) Number() protoreflect.EnumNumber
func (StartSwapResponse_Success_Code) String ¶
func (x StartSwapResponse_Success_Code) String() string
func (StartSwapResponse_Success_Code) Type ¶
func (StartSwapResponse_Success_Code) Type() protoreflect.EnumType
type SubmitIntentRequest ¶
type SubmitIntentRequest struct {
// Types that are assignable to Request:
//
// *SubmitIntentRequest_SubmitActions_
// *SubmitIntentRequest_SubmitSignatures_
Request isSubmitIntentRequest_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*SubmitIntentRequest) Descriptor
deprecated
func (*SubmitIntentRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentRequest.ProtoReflect.Descriptor instead.
func (*SubmitIntentRequest) GetRequest ¶
func (m *SubmitIntentRequest) GetRequest() isSubmitIntentRequest_Request
func (*SubmitIntentRequest) GetSubmitActions ¶
func (x *SubmitIntentRequest) GetSubmitActions() *SubmitIntentRequest_SubmitActions
func (*SubmitIntentRequest) GetSubmitSignatures ¶
func (x *SubmitIntentRequest) GetSubmitSignatures() *SubmitIntentRequest_SubmitSignatures
func (*SubmitIntentRequest) ProtoMessage ¶
func (*SubmitIntentRequest) ProtoMessage()
func (*SubmitIntentRequest) ProtoReflect ¶
func (x *SubmitIntentRequest) ProtoReflect() protoreflect.Message
func (*SubmitIntentRequest) Reset ¶
func (x *SubmitIntentRequest) Reset()
func (*SubmitIntentRequest) String ¶
func (x *SubmitIntentRequest) String() string
func (*SubmitIntentRequest) Validate ¶
func (m *SubmitIntentRequest) Validate() error
Validate checks the field values on SubmitIntentRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentRequestValidationError ¶
type SubmitIntentRequestValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentRequestValidationError is the validation error returned by SubmitIntentRequest.Validate if the designated constraints aren't met.
func (SubmitIntentRequestValidationError) Cause ¶
func (e SubmitIntentRequestValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentRequestValidationError) Error ¶
func (e SubmitIntentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentRequestValidationError) ErrorName ¶
func (e SubmitIntentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentRequestValidationError) Field ¶
func (e SubmitIntentRequestValidationError) Field() string
Field function returns field value.
func (SubmitIntentRequestValidationError) Key ¶
func (e SubmitIntentRequestValidationError) Key() bool
Key function returns key value.
func (SubmitIntentRequestValidationError) Reason ¶
func (e SubmitIntentRequestValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentRequest_SubmitActions ¶
type SubmitIntentRequest_SubmitActions struct {
// The globally unique client generated intent ID. Use the original intent
// ID when operating on actions that mutate the intent.
Id *v1.IntentId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The verified owner account public key
Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// Additional metadata that describes the high-level intention
Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// The set of all ordered actions required to fulfill the intent
Actions []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
// The signature is of serialize(SubmitActions) without this field set using the
// private key of the owner account. This provides an authentication mechanism
// to the RPC.
Signature *v1.Signature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitIntentRequest_SubmitActions) Descriptor
deprecated
func (*SubmitIntentRequest_SubmitActions) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentRequest_SubmitActions.ProtoReflect.Descriptor instead.
func (*SubmitIntentRequest_SubmitActions) GetActions ¶
func (x *SubmitIntentRequest_SubmitActions) GetActions() []*Action
func (*SubmitIntentRequest_SubmitActions) GetId ¶
func (x *SubmitIntentRequest_SubmitActions) GetId() *v1.IntentId
func (*SubmitIntentRequest_SubmitActions) GetMetadata ¶
func (x *SubmitIntentRequest_SubmitActions) GetMetadata() *Metadata
func (*SubmitIntentRequest_SubmitActions) GetOwner ¶
func (x *SubmitIntentRequest_SubmitActions) GetOwner() *v1.SolanaAccountId
func (*SubmitIntentRequest_SubmitActions) GetSignature ¶
func (x *SubmitIntentRequest_SubmitActions) GetSignature() *v1.Signature
func (*SubmitIntentRequest_SubmitActions) ProtoMessage ¶
func (*SubmitIntentRequest_SubmitActions) ProtoMessage()
func (*SubmitIntentRequest_SubmitActions) ProtoReflect ¶
func (x *SubmitIntentRequest_SubmitActions) ProtoReflect() protoreflect.Message
func (*SubmitIntentRequest_SubmitActions) Reset ¶
func (x *SubmitIntentRequest_SubmitActions) Reset()
func (*SubmitIntentRequest_SubmitActions) String ¶
func (x *SubmitIntentRequest_SubmitActions) String() string
func (*SubmitIntentRequest_SubmitActions) Validate ¶
func (m *SubmitIntentRequest_SubmitActions) Validate() error
Validate checks the field values on SubmitIntentRequest_SubmitActions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentRequest_SubmitActionsValidationError ¶
type SubmitIntentRequest_SubmitActionsValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentRequest_SubmitActionsValidationError is the validation error returned by SubmitIntentRequest_SubmitActions.Validate if the designated constraints aren't met.
func (SubmitIntentRequest_SubmitActionsValidationError) Cause ¶
func (e SubmitIntentRequest_SubmitActionsValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentRequest_SubmitActionsValidationError) Error ¶
func (e SubmitIntentRequest_SubmitActionsValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentRequest_SubmitActionsValidationError) ErrorName ¶
func (e SubmitIntentRequest_SubmitActionsValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentRequest_SubmitActionsValidationError) Field ¶
func (e SubmitIntentRequest_SubmitActionsValidationError) Field() string
Field function returns field value.
func (SubmitIntentRequest_SubmitActionsValidationError) Key ¶
func (e SubmitIntentRequest_SubmitActionsValidationError) Key() bool
Key function returns key value.
func (SubmitIntentRequest_SubmitActionsValidationError) Reason ¶
func (e SubmitIntentRequest_SubmitActionsValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentRequest_SubmitActions_ ¶
type SubmitIntentRequest_SubmitActions_ struct {
SubmitActions *SubmitIntentRequest_SubmitActions `protobuf:"bytes,1,opt,name=submit_actions,json=submitActions,proto3,oneof"`
}
type SubmitIntentRequest_SubmitSignatures ¶
type SubmitIntentRequest_SubmitSignatures struct {
// The set of all signatures for each transaction or virtual instruction requiring
// signature from the authority accounts.
//
// The signature for a transaction is for the marshalled transaction.
// The signature for a virtual instruction is the hash of the marshalled instruction.
Signatures []*v1.Signature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitIntentRequest_SubmitSignatures) Descriptor
deprecated
func (*SubmitIntentRequest_SubmitSignatures) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentRequest_SubmitSignatures.ProtoReflect.Descriptor instead.
func (*SubmitIntentRequest_SubmitSignatures) GetSignatures ¶
func (x *SubmitIntentRequest_SubmitSignatures) GetSignatures() []*v1.Signature
func (*SubmitIntentRequest_SubmitSignatures) ProtoMessage ¶
func (*SubmitIntentRequest_SubmitSignatures) ProtoMessage()
func (*SubmitIntentRequest_SubmitSignatures) ProtoReflect ¶
func (x *SubmitIntentRequest_SubmitSignatures) ProtoReflect() protoreflect.Message
func (*SubmitIntentRequest_SubmitSignatures) Reset ¶
func (x *SubmitIntentRequest_SubmitSignatures) Reset()
func (*SubmitIntentRequest_SubmitSignatures) String ¶
func (x *SubmitIntentRequest_SubmitSignatures) String() string
func (*SubmitIntentRequest_SubmitSignatures) Validate ¶
func (m *SubmitIntentRequest_SubmitSignatures) Validate() error
Validate checks the field values on SubmitIntentRequest_SubmitSignatures with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentRequest_SubmitSignaturesValidationError ¶
type SubmitIntentRequest_SubmitSignaturesValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentRequest_SubmitSignaturesValidationError is the validation error returned by SubmitIntentRequest_SubmitSignatures.Validate if the designated constraints aren't met.
func (SubmitIntentRequest_SubmitSignaturesValidationError) Cause ¶
func (e SubmitIntentRequest_SubmitSignaturesValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentRequest_SubmitSignaturesValidationError) Error ¶
func (e SubmitIntentRequest_SubmitSignaturesValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentRequest_SubmitSignaturesValidationError) ErrorName ¶
func (e SubmitIntentRequest_SubmitSignaturesValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentRequest_SubmitSignaturesValidationError) Field ¶
func (e SubmitIntentRequest_SubmitSignaturesValidationError) Field() string
Field function returns field value.
func (SubmitIntentRequest_SubmitSignaturesValidationError) Key ¶
func (e SubmitIntentRequest_SubmitSignaturesValidationError) Key() bool
Key function returns key value.
func (SubmitIntentRequest_SubmitSignaturesValidationError) Reason ¶
func (e SubmitIntentRequest_SubmitSignaturesValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentRequest_SubmitSignatures_ ¶
type SubmitIntentRequest_SubmitSignatures_ struct {
SubmitSignatures *SubmitIntentRequest_SubmitSignatures `protobuf:"bytes,2,opt,name=submit_signatures,json=submitSignatures,proto3,oneof"`
}
type SubmitIntentResponse ¶
type SubmitIntentResponse struct {
// Types that are assignable to Response:
//
// *SubmitIntentResponse_ServerParameters_
// *SubmitIntentResponse_Success_
// *SubmitIntentResponse_Error_
Response isSubmitIntentResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*SubmitIntentResponse) Descriptor
deprecated
func (*SubmitIntentResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentResponse.ProtoReflect.Descriptor instead.
func (*SubmitIntentResponse) GetError ¶
func (x *SubmitIntentResponse) GetError() *SubmitIntentResponse_Error
func (*SubmitIntentResponse) GetResponse ¶
func (m *SubmitIntentResponse) GetResponse() isSubmitIntentResponse_Response
func (*SubmitIntentResponse) GetServerParameters ¶
func (x *SubmitIntentResponse) GetServerParameters() *SubmitIntentResponse_ServerParameters
func (*SubmitIntentResponse) GetSuccess ¶
func (x *SubmitIntentResponse) GetSuccess() *SubmitIntentResponse_Success
func (*SubmitIntentResponse) ProtoMessage ¶
func (*SubmitIntentResponse) ProtoMessage()
func (*SubmitIntentResponse) ProtoReflect ¶
func (x *SubmitIntentResponse) ProtoReflect() protoreflect.Message
func (*SubmitIntentResponse) Reset ¶
func (x *SubmitIntentResponse) Reset()
func (*SubmitIntentResponse) String ¶
func (x *SubmitIntentResponse) String() string
func (*SubmitIntentResponse) Validate ¶
func (m *SubmitIntentResponse) Validate() error
Validate checks the field values on SubmitIntentResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentResponseValidationError ¶
type SubmitIntentResponseValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentResponseValidationError is the validation error returned by SubmitIntentResponse.Validate if the designated constraints aren't met.
func (SubmitIntentResponseValidationError) Cause ¶
func (e SubmitIntentResponseValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentResponseValidationError) Error ¶
func (e SubmitIntentResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentResponseValidationError) ErrorName ¶
func (e SubmitIntentResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentResponseValidationError) Field ¶
func (e SubmitIntentResponseValidationError) Field() string
Field function returns field value.
func (SubmitIntentResponseValidationError) Key ¶
func (e SubmitIntentResponseValidationError) Key() bool
Key function returns key value.
func (SubmitIntentResponseValidationError) Reason ¶
func (e SubmitIntentResponseValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentResponse_Error ¶
type SubmitIntentResponse_Error struct {
Code SubmitIntentResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.SubmitIntentResponse_Error_Code" json:"code,omitempty"`
ErrorDetails []*ErrorDetails `protobuf:"bytes,2,rep,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitIntentResponse_Error) Descriptor
deprecated
func (*SubmitIntentResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentResponse_Error.ProtoReflect.Descriptor instead.
func (*SubmitIntentResponse_Error) GetCode ¶
func (x *SubmitIntentResponse_Error) GetCode() SubmitIntentResponse_Error_Code
func (*SubmitIntentResponse_Error) GetErrorDetails ¶
func (x *SubmitIntentResponse_Error) GetErrorDetails() []*ErrorDetails
func (*SubmitIntentResponse_Error) ProtoMessage ¶
func (*SubmitIntentResponse_Error) ProtoMessage()
func (*SubmitIntentResponse_Error) ProtoReflect ¶
func (x *SubmitIntentResponse_Error) ProtoReflect() protoreflect.Message
func (*SubmitIntentResponse_Error) Reset ¶
func (x *SubmitIntentResponse_Error) Reset()
func (*SubmitIntentResponse_Error) String ¶
func (x *SubmitIntentResponse_Error) String() string
func (*SubmitIntentResponse_Error) Validate ¶
func (m *SubmitIntentResponse_Error) Validate() error
Validate checks the field values on SubmitIntentResponse_Error with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentResponse_ErrorValidationError ¶
type SubmitIntentResponse_ErrorValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentResponse_ErrorValidationError is the validation error returned by SubmitIntentResponse_Error.Validate if the designated constraints aren't met.
func (SubmitIntentResponse_ErrorValidationError) Cause ¶
func (e SubmitIntentResponse_ErrorValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentResponse_ErrorValidationError) Error ¶
func (e SubmitIntentResponse_ErrorValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentResponse_ErrorValidationError) ErrorName ¶
func (e SubmitIntentResponse_ErrorValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentResponse_ErrorValidationError) Field ¶
func (e SubmitIntentResponse_ErrorValidationError) Field() string
Field function returns field value.
func (SubmitIntentResponse_ErrorValidationError) Key ¶
func (e SubmitIntentResponse_ErrorValidationError) Key() bool
Key function returns key value.
func (SubmitIntentResponse_ErrorValidationError) Reason ¶
func (e SubmitIntentResponse_ErrorValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentResponse_Error_ ¶
type SubmitIntentResponse_Error_ struct {
Error *SubmitIntentResponse_Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}
type SubmitIntentResponse_Error_Code ¶
type SubmitIntentResponse_Error_Code int32
const ( // Denied by a guard (spam, money laundering, etc) SubmitIntentResponse_Error_DENIED SubmitIntentResponse_Error_Code = 0 // The intent is invalid. SubmitIntentResponse_Error_INVALID_INTENT SubmitIntentResponse_Error_Code = 1 // There is an issue with provided signatures. SubmitIntentResponse_Error_SIGNATURE_ERROR SubmitIntentResponse_Error_Code = 2 // Server detected client has stale state. SubmitIntentResponse_Error_STALE_STATE SubmitIntentResponse_Error_Code = 3 )
func (SubmitIntentResponse_Error_Code) Descriptor ¶
func (SubmitIntentResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
func (SubmitIntentResponse_Error_Code) Enum ¶
func (x SubmitIntentResponse_Error_Code) Enum() *SubmitIntentResponse_Error_Code
func (SubmitIntentResponse_Error_Code) EnumDescriptor
deprecated
func (SubmitIntentResponse_Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubmitIntentResponse_Error_Code.Descriptor instead.
func (SubmitIntentResponse_Error_Code) Number ¶
func (x SubmitIntentResponse_Error_Code) Number() protoreflect.EnumNumber
func (SubmitIntentResponse_Error_Code) String ¶
func (x SubmitIntentResponse_Error_Code) String() string
func (SubmitIntentResponse_Error_Code) Type ¶
func (SubmitIntentResponse_Error_Code) Type() protoreflect.EnumType
type SubmitIntentResponse_ServerParameters ¶
type SubmitIntentResponse_ServerParameters struct {
// The set of all server paremeters required to fill missing transaction
// or virtual instruction details. Server guarantees to provide a message
// for each client action in an order consistent with the received action
// list.
ServerParameters []*ServerParameter `protobuf:"bytes,1,rep,name=server_parameters,json=serverParameters,proto3" json:"server_parameters,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitIntentResponse_ServerParameters) Descriptor
deprecated
func (*SubmitIntentResponse_ServerParameters) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentResponse_ServerParameters.ProtoReflect.Descriptor instead.
func (*SubmitIntentResponse_ServerParameters) GetServerParameters ¶
func (x *SubmitIntentResponse_ServerParameters) GetServerParameters() []*ServerParameter
func (*SubmitIntentResponse_ServerParameters) ProtoMessage ¶
func (*SubmitIntentResponse_ServerParameters) ProtoMessage()
func (*SubmitIntentResponse_ServerParameters) ProtoReflect ¶
func (x *SubmitIntentResponse_ServerParameters) ProtoReflect() protoreflect.Message
func (*SubmitIntentResponse_ServerParameters) Reset ¶
func (x *SubmitIntentResponse_ServerParameters) Reset()
func (*SubmitIntentResponse_ServerParameters) String ¶
func (x *SubmitIntentResponse_ServerParameters) String() string
func (*SubmitIntentResponse_ServerParameters) Validate ¶
func (m *SubmitIntentResponse_ServerParameters) Validate() error
Validate checks the field values on SubmitIntentResponse_ServerParameters with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentResponse_ServerParametersValidationError ¶
type SubmitIntentResponse_ServerParametersValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentResponse_ServerParametersValidationError is the validation error returned by SubmitIntentResponse_ServerParameters.Validate if the designated constraints aren't met.
func (SubmitIntentResponse_ServerParametersValidationError) Cause ¶
func (e SubmitIntentResponse_ServerParametersValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentResponse_ServerParametersValidationError) Error ¶
func (e SubmitIntentResponse_ServerParametersValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentResponse_ServerParametersValidationError) ErrorName ¶
func (e SubmitIntentResponse_ServerParametersValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentResponse_ServerParametersValidationError) Field ¶
func (e SubmitIntentResponse_ServerParametersValidationError) Field() string
Field function returns field value.
func (SubmitIntentResponse_ServerParametersValidationError) Key ¶
func (e SubmitIntentResponse_ServerParametersValidationError) Key() bool
Key function returns key value.
func (SubmitIntentResponse_ServerParametersValidationError) Reason ¶
func (e SubmitIntentResponse_ServerParametersValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentResponse_ServerParameters_ ¶
type SubmitIntentResponse_ServerParameters_ struct {
ServerParameters *SubmitIntentResponse_ServerParameters `protobuf:"bytes,1,opt,name=server_parameters,json=serverParameters,proto3,oneof"`
}
type SubmitIntentResponse_Success ¶
type SubmitIntentResponse_Success struct {
Code SubmitIntentResponse_Success_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.SubmitIntentResponse_Success_Code" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitIntentResponse_Success) Descriptor
deprecated
func (*SubmitIntentResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use SubmitIntentResponse_Success.ProtoReflect.Descriptor instead.
func (*SubmitIntentResponse_Success) GetCode ¶
func (x *SubmitIntentResponse_Success) GetCode() SubmitIntentResponse_Success_Code
func (*SubmitIntentResponse_Success) ProtoMessage ¶
func (*SubmitIntentResponse_Success) ProtoMessage()
func (*SubmitIntentResponse_Success) ProtoReflect ¶
func (x *SubmitIntentResponse_Success) ProtoReflect() protoreflect.Message
func (*SubmitIntentResponse_Success) Reset ¶
func (x *SubmitIntentResponse_Success) Reset()
func (*SubmitIntentResponse_Success) String ¶
func (x *SubmitIntentResponse_Success) String() string
func (*SubmitIntentResponse_Success) Validate ¶
func (m *SubmitIntentResponse_Success) Validate() error
Validate checks the field values on SubmitIntentResponse_Success with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubmitIntentResponse_SuccessValidationError ¶
type SubmitIntentResponse_SuccessValidationError struct {
// contains filtered or unexported fields
}
SubmitIntentResponse_SuccessValidationError is the validation error returned by SubmitIntentResponse_Success.Validate if the designated constraints aren't met.
func (SubmitIntentResponse_SuccessValidationError) Cause ¶
func (e SubmitIntentResponse_SuccessValidationError) Cause() error
Cause function returns cause value.
func (SubmitIntentResponse_SuccessValidationError) Error ¶
func (e SubmitIntentResponse_SuccessValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitIntentResponse_SuccessValidationError) ErrorName ¶
func (e SubmitIntentResponse_SuccessValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitIntentResponse_SuccessValidationError) Field ¶
func (e SubmitIntentResponse_SuccessValidationError) Field() string
Field function returns field value.
func (SubmitIntentResponse_SuccessValidationError) Key ¶
func (e SubmitIntentResponse_SuccessValidationError) Key() bool
Key function returns key value.
func (SubmitIntentResponse_SuccessValidationError) Reason ¶
func (e SubmitIntentResponse_SuccessValidationError) Reason() string
Reason function returns reason value.
type SubmitIntentResponse_Success_ ¶
type SubmitIntentResponse_Success_ struct {
Success *SubmitIntentResponse_Success `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}
type SubmitIntentResponse_Success_Code ¶
type SubmitIntentResponse_Success_Code int32
const ( // The intent was successfully created and is now scheduled. SubmitIntentResponse_Success_OK SubmitIntentResponse_Success_Code = 0 )
func (SubmitIntentResponse_Success_Code) Descriptor ¶
func (SubmitIntentResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
func (SubmitIntentResponse_Success_Code) Enum ¶
func (x SubmitIntentResponse_Success_Code) Enum() *SubmitIntentResponse_Success_Code
func (SubmitIntentResponse_Success_Code) EnumDescriptor
deprecated
func (SubmitIntentResponse_Success_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubmitIntentResponse_Success_Code.Descriptor instead.
func (SubmitIntentResponse_Success_Code) Number ¶
func (x SubmitIntentResponse_Success_Code) Number() protoreflect.EnumNumber
func (SubmitIntentResponse_Success_Code) String ¶
func (x SubmitIntentResponse_Success_Code) String() string
func (SubmitIntentResponse_Success_Code) Type ¶
func (SubmitIntentResponse_Success_Code) Type() protoreflect.EnumType
type SwapMetadata ¶
type SwapMetadata struct {
VerifiedMetadata *VerifiedSwapMetadata `protobuf:"bytes,1,opt,name=verified_metadata,json=verifiedMetadata,proto3" json:"verified_metadata,omitempty"`
State SwapMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=ocp.transaction.v1.SwapMetadata_State" json:"state,omitempty"`
// The signature is of serialize(VerifiedSwapMetadata) using the private
// key of the owner account. Use this to guarantee that VerifiedSwapMetadata
// has not been tampered with.
Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*SwapMetadata) Descriptor
deprecated
func (*SwapMetadata) Descriptor() ([]byte, []int)
Deprecated: Use SwapMetadata.ProtoReflect.Descriptor instead.
func (*SwapMetadata) GetSignature ¶
func (x *SwapMetadata) GetSignature() *v1.Signature
func (*SwapMetadata) GetState ¶
func (x *SwapMetadata) GetState() SwapMetadata_State
func (*SwapMetadata) GetVerifiedMetadata ¶
func (x *SwapMetadata) GetVerifiedMetadata() *VerifiedSwapMetadata
func (*SwapMetadata) ProtoMessage ¶
func (*SwapMetadata) ProtoMessage()
func (*SwapMetadata) ProtoReflect ¶
func (x *SwapMetadata) ProtoReflect() protoreflect.Message
func (*SwapMetadata) Reset ¶
func (x *SwapMetadata) Reset()
func (*SwapMetadata) String ¶
func (x *SwapMetadata) String() string
func (*SwapMetadata) Validate ¶
func (m *SwapMetadata) Validate() error
Validate checks the field values on SwapMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapMetadataValidationError ¶
type SwapMetadataValidationError struct {
// contains filtered or unexported fields
}
SwapMetadataValidationError is the validation error returned by SwapMetadata.Validate if the designated constraints aren't met.
func (SwapMetadataValidationError) Cause ¶
func (e SwapMetadataValidationError) Cause() error
Cause function returns cause value.
func (SwapMetadataValidationError) Error ¶
func (e SwapMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (SwapMetadataValidationError) ErrorName ¶
func (e SwapMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (SwapMetadataValidationError) Field ¶
func (e SwapMetadataValidationError) Field() string
Field function returns field value.
func (SwapMetadataValidationError) Key ¶
func (e SwapMetadataValidationError) Key() bool
Key function returns key value.
func (SwapMetadataValidationError) Reason ¶
func (e SwapMetadataValidationError) Reason() string
Reason function returns reason value.
type SwapMetadata_State ¶
type SwapMetadata_State int32
const ( SwapMetadata_UNKNOWN SwapMetadata_State = 0 SwapMetadata_CREATED SwapMetadata_State = 1 // Swap state has been created and is pending funding SwapMetadata_FUNDING SwapMetadata_State = 2 // The VM swap PDA is in the process of being funded SwapMetadata_FUNDED SwapMetadata_State = 3 // The VM swap PDA has been funded SwapMetadata_SUBMITTING SwapMetadata_State = 4 // The swap transaction is being submitted to the blockchain SwapMetadata_FINALIZED SwapMetadata_State = 5 // The swap transaction has been finalized on the blockchain SwapMetadata_FAILED SwapMetadata_State = 6 // The swap transaction failed SwapMetadata_CANCELLING SwapMetadata_State = 7 // The swap is in the process of being cancelled. SwapMetadata_CANCELLED SwapMetadata_State = 8 // The swap transaction is cancelled. Funds have been deposited back into the VM )
func (SwapMetadata_State) Descriptor ¶
func (SwapMetadata_State) Descriptor() protoreflect.EnumDescriptor
func (SwapMetadata_State) Enum ¶
func (x SwapMetadata_State) Enum() *SwapMetadata_State
func (SwapMetadata_State) EnumDescriptor
deprecated
func (SwapMetadata_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use SwapMetadata_State.Descriptor instead.
func (SwapMetadata_State) Number ¶
func (x SwapMetadata_State) Number() protoreflect.EnumNumber
func (SwapMetadata_State) String ¶
func (x SwapMetadata_State) String() string
func (SwapMetadata_State) Type ¶
func (SwapMetadata_State) Type() protoreflect.EnumType
type SwapRequest ¶
type SwapRequest struct {
// Types that are assignable to Request:
//
// *SwapRequest_Initiate_
// *SwapRequest_SubmitSignatures_
Request isSwapRequest_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*SwapRequest) Descriptor
deprecated
func (*SwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwapRequest.ProtoReflect.Descriptor instead.
func (*SwapRequest) GetInitiate ¶
func (x *SwapRequest) GetInitiate() *SwapRequest_Initiate
func (*SwapRequest) GetRequest ¶
func (m *SwapRequest) GetRequest() isSwapRequest_Request
func (*SwapRequest) GetSubmitSignatures ¶
func (x *SwapRequest) GetSubmitSignatures() *SwapRequest_SubmitSignatures
func (*SwapRequest) ProtoMessage ¶
func (*SwapRequest) ProtoMessage()
func (*SwapRequest) ProtoReflect ¶
func (x *SwapRequest) ProtoReflect() protoreflect.Message
func (*SwapRequest) Reset ¶
func (x *SwapRequest) Reset()
func (*SwapRequest) String ¶
func (x *SwapRequest) String() string
func (*SwapRequest) Validate ¶
func (m *SwapRequest) Validate() error
Validate checks the field values on SwapRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapRequestValidationError ¶
type SwapRequestValidationError struct {
// contains filtered or unexported fields
}
SwapRequestValidationError is the validation error returned by SwapRequest.Validate if the designated constraints aren't met.
func (SwapRequestValidationError) Cause ¶
func (e SwapRequestValidationError) Cause() error
Cause function returns cause value.
func (SwapRequestValidationError) Error ¶
func (e SwapRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SwapRequestValidationError) ErrorName ¶
func (e SwapRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SwapRequestValidationError) Field ¶
func (e SwapRequestValidationError) Field() string
Field function returns field value.
func (SwapRequestValidationError) Key ¶
func (e SwapRequestValidationError) Key() bool
Key function returns key value.
func (SwapRequestValidationError) Reason ¶
func (e SwapRequestValidationError) Reason() string
Reason function returns reason value.
type SwapRequest_Initiate ¶
type SwapRequest_Initiate struct {
// Types that are assignable to Kind:
//
// *SwapRequest_Initiate_Stateless_
// *SwapRequest_Initiate_Stateful_
Kind isSwapRequest_Initiate_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*SwapRequest_Initiate) Descriptor
deprecated
func (*SwapRequest_Initiate) Descriptor() ([]byte, []int)
Deprecated: Use SwapRequest_Initiate.ProtoReflect.Descriptor instead.
func (*SwapRequest_Initiate) GetKind ¶
func (m *SwapRequest_Initiate) GetKind() isSwapRequest_Initiate_Kind
func (*SwapRequest_Initiate) GetStateful ¶
func (x *SwapRequest_Initiate) GetStateful() *SwapRequest_Initiate_Stateful
func (*SwapRequest_Initiate) GetStateless ¶
func (x *SwapRequest_Initiate) GetStateless() *SwapRequest_Initiate_Stateless
func (*SwapRequest_Initiate) ProtoMessage ¶
func (*SwapRequest_Initiate) ProtoMessage()
func (*SwapRequest_Initiate) ProtoReflect ¶
func (x *SwapRequest_Initiate) ProtoReflect() protoreflect.Message
func (*SwapRequest_Initiate) Reset ¶
func (x *SwapRequest_Initiate) Reset()
func (*SwapRequest_Initiate) String ¶
func (x *SwapRequest_Initiate) String() string
func (*SwapRequest_Initiate) Validate ¶
func (m *SwapRequest_Initiate) Validate() error
Validate checks the field values on SwapRequest_Initiate with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapRequest_InitiateValidationError ¶
type SwapRequest_InitiateValidationError struct {
// contains filtered or unexported fields
}
SwapRequest_InitiateValidationError is the validation error returned by SwapRequest_Initiate.Validate if the designated constraints aren't met.
func (SwapRequest_InitiateValidationError) Cause ¶
func (e SwapRequest_InitiateValidationError) Cause() error
Cause function returns cause value.
func (SwapRequest_InitiateValidationError) Error ¶
func (e SwapRequest_InitiateValidationError) Error() string
Error satisfies the builtin error interface
func (SwapRequest_InitiateValidationError) ErrorName ¶
func (e SwapRequest_InitiateValidationError) ErrorName() string
ErrorName returns error name.
func (SwapRequest_InitiateValidationError) Field ¶
func (e SwapRequest_InitiateValidationError) Field() string
Field function returns field value.
func (SwapRequest_InitiateValidationError) Key ¶
func (e SwapRequest_InitiateValidationError) Key() bool
Key function returns key value.
func (SwapRequest_InitiateValidationError) Reason ¶
func (e SwapRequest_InitiateValidationError) Reason() string
Reason function returns reason value.
type SwapRequest_Initiate_ ¶
type SwapRequest_Initiate_ struct {
Initiate *SwapRequest_Initiate `protobuf:"bytes,1,opt,name=initiate,proto3,oneof"`
}
type SwapRequest_Initiate_Stateful ¶
type SwapRequest_Initiate_Stateful struct {
// The ID of the swap to execute
SwapId *v1.SwapId `protobuf:"bytes,1,opt,name=swap_id,json=swapId,proto3" json:"swap_id,omitempty"`
// The verified owner account public key
Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// The user authority account that will sign to authorize the swap.
//
// For Currency Creator program buy/sell flows, this should be a random one-time use account.
SwapAuthority *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=swap_authority,json=swapAuthority,proto3" json:"swap_authority,omitempty"`
// The signature is of serialize(Stateful) without this field set using the
// private key of the owner account. This provides an authentication mechanism
// to the RPC.
Signature *v1.Signature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*SwapRequest_Initiate_Stateful) Descriptor
deprecated
func (*SwapRequest_Initiate_Stateful) Descriptor() ([]byte, []int)
Deprecated: Use SwapRequest_Initiate_Stateful.ProtoReflect.Descriptor instead.
func (*SwapRequest_Initiate_Stateful) GetOwner ¶
func (x *SwapRequest_Initiate_Stateful) GetOwner() *v1.SolanaAccountId
func (*SwapRequest_Initiate_Stateful) GetSignature ¶
func (x *SwapRequest_Initiate_Stateful) GetSignature() *v1.Signature
func (*SwapRequest_Initiate_Stateful) GetSwapAuthority ¶
func (x *SwapRequest_Initiate_Stateful) GetSwapAuthority() *v1.SolanaAccountId
func (*SwapRequest_Initiate_Stateful) GetSwapId ¶
func (x *SwapRequest_Initiate_Stateful) GetSwapId() *v1.SwapId
func (*SwapRequest_Initiate_Stateful) ProtoMessage ¶
func (*SwapRequest_Initiate_Stateful) ProtoMessage()
func (*SwapRequest_Initiate_Stateful) ProtoReflect ¶
func (x *SwapRequest_Initiate_Stateful) ProtoReflect() protoreflect.Message
func (*SwapRequest_Initiate_Stateful) Reset ¶
func (x *SwapRequest_Initiate_Stateful) Reset()
func (*SwapRequest_Initiate_Stateful) String ¶
func (x *SwapRequest_Initiate_Stateful) String() string
func (*SwapRequest_Initiate_Stateful) Validate ¶
func (m *SwapRequest_Initiate_Stateful) Validate() error
Validate checks the field values on SwapRequest_Initiate_Stateful with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapRequest_Initiate_StatefulValidationError ¶
type SwapRequest_Initiate_StatefulValidationError struct {
// contains filtered or unexported fields
}
SwapRequest_Initiate_StatefulValidationError is the validation error returned by SwapRequest_Initiate_Stateful.Validate if the designated constraints aren't met.
func (SwapRequest_Initiate_StatefulValidationError) Cause ¶
func (e SwapRequest_Initiate_StatefulValidationError) Cause() error
Cause function returns cause value.
func (SwapRequest_Initiate_StatefulValidationError) Error ¶
func (e SwapRequest_Initiate_StatefulValidationError) Error() string
Error satisfies the builtin error interface
func (SwapRequest_Initiate_StatefulValidationError) ErrorName ¶
func (e SwapRequest_Initiate_StatefulValidationError) ErrorName() string
ErrorName returns error name.
func (SwapRequest_Initiate_StatefulValidationError) Field ¶
func (e SwapRequest_Initiate_StatefulValidationError) Field() string
Field function returns field value.
func (SwapRequest_Initiate_StatefulValidationError) Key ¶
func (e SwapRequest_Initiate_StatefulValidationError) Key() bool
Key function returns key value.
func (SwapRequest_Initiate_StatefulValidationError) Reason ¶
func (e SwapRequest_Initiate_StatefulValidationError) Reason() string
Reason function returns reason value.
type SwapRequest_Initiate_Stateful_ ¶
type SwapRequest_Initiate_Stateful_ struct {
Stateful *SwapRequest_Initiate_Stateful `protobuf:"bytes,2,opt,name=stateful,proto3,oneof"`
}
type SwapRequest_Initiate_Stateless ¶
type SwapRequest_Initiate_Stateless struct {
// The verified owner account public key
Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The source mint that will be swapped from
FromMint *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=from_mint,json=fromMint,proto3" json:"from_mint,omitempty"`
// The destination mint that will be swapped to
ToMint *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=to_mint,json=toMint,proto3" json:"to_mint,omitempty"`
// The amount to swap from the source mint in quarks.
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
// The user authority account that will sign to authorize the swap.
//
// For Currency Creator program buy/sell flows, this should be a random one-time use account.
SwapAuthority *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=swap_authority,json=swapAuthority,proto3" json:"swap_authority,omitempty"`
// Whether the client wants the RPC to wait for blockchain status. If false,
// then the RPC will return Success when the swap is submitted to the blockchain.
// Otherwise, the RPC will observe and report back the status of the transaction.
WaitForBlockchainStatus bool `` /* 135-byte string literal not displayed */
// The signature is of serialize(Stateless) without this field set using the
// private key of the owner account. This provides an authentication mechanism
// to the RPC.
Signature *v1.Signature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*SwapRequest_Initiate_Stateless) Descriptor
deprecated
func (*SwapRequest_Initiate_Stateless) Descriptor() ([]byte, []int)
Deprecated: Use SwapRequest_Initiate_Stateless.ProtoReflect.Descriptor instead.
func (*SwapRequest_Initiate_Stateless) GetAmount ¶
func (x *SwapRequest_Initiate_Stateless) GetAmount() uint64
func (*SwapRequest_Initiate_Stateless) GetFromMint ¶
func (x *SwapRequest_Initiate_Stateless) GetFromMint() *v1.SolanaAccountId
func (*SwapRequest_Initiate_Stateless) GetOwner ¶
func (x *SwapRequest_Initiate_Stateless) GetOwner() *v1.SolanaAccountId
func (*SwapRequest_Initiate_Stateless) GetSignature ¶
func (x *SwapRequest_Initiate_Stateless) GetSignature() *v1.Signature
func (*SwapRequest_Initiate_Stateless) GetSwapAuthority ¶
func (x *SwapRequest_Initiate_Stateless) GetSwapAuthority() *v1.SolanaAccountId
func (*SwapRequest_Initiate_Stateless) GetToMint ¶
func (x *SwapRequest_Initiate_Stateless) GetToMint() *v1.SolanaAccountId
func (*SwapRequest_Initiate_Stateless) GetWaitForBlockchainStatus ¶
func (x *SwapRequest_Initiate_Stateless) GetWaitForBlockchainStatus() bool
func (*SwapRequest_Initiate_Stateless) ProtoMessage ¶
func (*SwapRequest_Initiate_Stateless) ProtoMessage()
func (*SwapRequest_Initiate_Stateless) ProtoReflect ¶
func (x *SwapRequest_Initiate_Stateless) ProtoReflect() protoreflect.Message
func (*SwapRequest_Initiate_Stateless) Reset ¶
func (x *SwapRequest_Initiate_Stateless) Reset()
func (*SwapRequest_Initiate_Stateless) String ¶
func (x *SwapRequest_Initiate_Stateless) String() string
func (*SwapRequest_Initiate_Stateless) Validate ¶
func (m *SwapRequest_Initiate_Stateless) Validate() error
Validate checks the field values on SwapRequest_Initiate_Stateless with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapRequest_Initiate_StatelessValidationError ¶
type SwapRequest_Initiate_StatelessValidationError struct {
// contains filtered or unexported fields
}
SwapRequest_Initiate_StatelessValidationError is the validation error returned by SwapRequest_Initiate_Stateless.Validate if the designated constraints aren't met.
func (SwapRequest_Initiate_StatelessValidationError) Cause ¶
func (e SwapRequest_Initiate_StatelessValidationError) Cause() error
Cause function returns cause value.
func (SwapRequest_Initiate_StatelessValidationError) Error ¶
func (e SwapRequest_Initiate_StatelessValidationError) Error() string
Error satisfies the builtin error interface
func (SwapRequest_Initiate_StatelessValidationError) ErrorName ¶
func (e SwapRequest_Initiate_StatelessValidationError) ErrorName() string
ErrorName returns error name.
func (SwapRequest_Initiate_StatelessValidationError) Field ¶
func (e SwapRequest_Initiate_StatelessValidationError) Field() string
Field function returns field value.
func (SwapRequest_Initiate_StatelessValidationError) Key ¶
func (e SwapRequest_Initiate_StatelessValidationError) Key() bool
Key function returns key value.
func (SwapRequest_Initiate_StatelessValidationError) Reason ¶
func (e SwapRequest_Initiate_StatelessValidationError) Reason() string
Reason function returns reason value.
type SwapRequest_Initiate_Stateless_ ¶
type SwapRequest_Initiate_Stateless_ struct {
Stateless *SwapRequest_Initiate_Stateless `protobuf:"bytes,1,opt,name=stateless,proto3,oneof"`
}
type SwapRequest_SubmitSignatures ¶
type SwapRequest_SubmitSignatures struct {
// The signatures for the locally constructed swap transaction
Signatures []*v1.Signature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
// contains filtered or unexported fields
}
func (*SwapRequest_SubmitSignatures) Descriptor
deprecated
func (*SwapRequest_SubmitSignatures) Descriptor() ([]byte, []int)
Deprecated: Use SwapRequest_SubmitSignatures.ProtoReflect.Descriptor instead.
func (*SwapRequest_SubmitSignatures) GetSignatures ¶
func (x *SwapRequest_SubmitSignatures) GetSignatures() []*v1.Signature
func (*SwapRequest_SubmitSignatures) ProtoMessage ¶
func (*SwapRequest_SubmitSignatures) ProtoMessage()
func (*SwapRequest_SubmitSignatures) ProtoReflect ¶
func (x *SwapRequest_SubmitSignatures) ProtoReflect() protoreflect.Message
func (*SwapRequest_SubmitSignatures) Reset ¶
func (x *SwapRequest_SubmitSignatures) Reset()
func (*SwapRequest_SubmitSignatures) String ¶
func (x *SwapRequest_SubmitSignatures) String() string
func (*SwapRequest_SubmitSignatures) Validate ¶
func (m *SwapRequest_SubmitSignatures) Validate() error
Validate checks the field values on SwapRequest_SubmitSignatures with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapRequest_SubmitSignaturesValidationError ¶
type SwapRequest_SubmitSignaturesValidationError struct {
// contains filtered or unexported fields
}
SwapRequest_SubmitSignaturesValidationError is the validation error returned by SwapRequest_SubmitSignatures.Validate if the designated constraints aren't met.
func (SwapRequest_SubmitSignaturesValidationError) Cause ¶
func (e SwapRequest_SubmitSignaturesValidationError) Cause() error
Cause function returns cause value.
func (SwapRequest_SubmitSignaturesValidationError) Error ¶
func (e SwapRequest_SubmitSignaturesValidationError) Error() string
Error satisfies the builtin error interface
func (SwapRequest_SubmitSignaturesValidationError) ErrorName ¶
func (e SwapRequest_SubmitSignaturesValidationError) ErrorName() string
ErrorName returns error name.
func (SwapRequest_SubmitSignaturesValidationError) Field ¶
func (e SwapRequest_SubmitSignaturesValidationError) Field() string
Field function returns field value.
func (SwapRequest_SubmitSignaturesValidationError) Key ¶
func (e SwapRequest_SubmitSignaturesValidationError) Key() bool
Key function returns key value.
func (SwapRequest_SubmitSignaturesValidationError) Reason ¶
func (e SwapRequest_SubmitSignaturesValidationError) Reason() string
Reason function returns reason value.
type SwapRequest_SubmitSignatures_ ¶
type SwapRequest_SubmitSignatures_ struct {
SubmitSignatures *SwapRequest_SubmitSignatures `protobuf:"bytes,2,opt,name=submit_signatures,json=submitSignatures,proto3,oneof"`
}
type SwapResponse ¶
type SwapResponse struct {
// Types that are assignable to Response:
//
// *SwapResponse_ServerParameters_
// *SwapResponse_Success_
// *SwapResponse_Error_
Response isSwapResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*SwapResponse) Descriptor
deprecated
func (*SwapResponse) Descriptor() ([]byte, []int)
Deprecated: Use SwapResponse.ProtoReflect.Descriptor instead.
func (*SwapResponse) GetError ¶
func (x *SwapResponse) GetError() *SwapResponse_Error
func (*SwapResponse) GetResponse ¶
func (m *SwapResponse) GetResponse() isSwapResponse_Response
func (*SwapResponse) GetServerParameters ¶
func (x *SwapResponse) GetServerParameters() *SwapResponse_ServerParameters
func (*SwapResponse) GetSuccess ¶
func (x *SwapResponse) GetSuccess() *SwapResponse_Success
func (*SwapResponse) ProtoMessage ¶
func (*SwapResponse) ProtoMessage()
func (*SwapResponse) ProtoReflect ¶
func (x *SwapResponse) ProtoReflect() protoreflect.Message
func (*SwapResponse) Reset ¶
func (x *SwapResponse) Reset()
func (*SwapResponse) String ¶
func (x *SwapResponse) String() string
func (*SwapResponse) Validate ¶
func (m *SwapResponse) Validate() error
Validate checks the field values on SwapResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapResponseValidationError ¶
type SwapResponseValidationError struct {
// contains filtered or unexported fields
}
SwapResponseValidationError is the validation error returned by SwapResponse.Validate if the designated constraints aren't met.
func (SwapResponseValidationError) Cause ¶
func (e SwapResponseValidationError) Cause() error
Cause function returns cause value.
func (SwapResponseValidationError) Error ¶
func (e SwapResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SwapResponseValidationError) ErrorName ¶
func (e SwapResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SwapResponseValidationError) Field ¶
func (e SwapResponseValidationError) Field() string
Field function returns field value.
func (SwapResponseValidationError) Key ¶
func (e SwapResponseValidationError) Key() bool
Key function returns key value.
func (SwapResponseValidationError) Reason ¶
func (e SwapResponseValidationError) Reason() string
Reason function returns reason value.
type SwapResponse_Error ¶
type SwapResponse_Error struct {
Code SwapResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.SwapResponse_Error_Code" json:"code,omitempty"`
ErrorDetails []*ErrorDetails `protobuf:"bytes,2,rep,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
// contains filtered or unexported fields
}
func (*SwapResponse_Error) Descriptor
deprecated
func (*SwapResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use SwapResponse_Error.ProtoReflect.Descriptor instead.
func (*SwapResponse_Error) GetCode ¶
func (x *SwapResponse_Error) GetCode() SwapResponse_Error_Code
func (*SwapResponse_Error) GetErrorDetails ¶
func (x *SwapResponse_Error) GetErrorDetails() []*ErrorDetails
func (*SwapResponse_Error) ProtoMessage ¶
func (*SwapResponse_Error) ProtoMessage()
func (*SwapResponse_Error) ProtoReflect ¶
func (x *SwapResponse_Error) ProtoReflect() protoreflect.Message
func (*SwapResponse_Error) Reset ¶
func (x *SwapResponse_Error) Reset()
func (*SwapResponse_Error) String ¶
func (x *SwapResponse_Error) String() string
func (*SwapResponse_Error) Validate ¶
func (m *SwapResponse_Error) Validate() error
Validate checks the field values on SwapResponse_Error with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapResponse_ErrorValidationError ¶
type SwapResponse_ErrorValidationError struct {
// contains filtered or unexported fields
}
SwapResponse_ErrorValidationError is the validation error returned by SwapResponse_Error.Validate if the designated constraints aren't met.
func (SwapResponse_ErrorValidationError) Cause ¶
func (e SwapResponse_ErrorValidationError) Cause() error
Cause function returns cause value.
func (SwapResponse_ErrorValidationError) Error ¶
func (e SwapResponse_ErrorValidationError) Error() string
Error satisfies the builtin error interface
func (SwapResponse_ErrorValidationError) ErrorName ¶
func (e SwapResponse_ErrorValidationError) ErrorName() string
ErrorName returns error name.
func (SwapResponse_ErrorValidationError) Field ¶
func (e SwapResponse_ErrorValidationError) Field() string
Field function returns field value.
func (SwapResponse_ErrorValidationError) Key ¶
func (e SwapResponse_ErrorValidationError) Key() bool
Key function returns key value.
func (SwapResponse_ErrorValidationError) Reason ¶
func (e SwapResponse_ErrorValidationError) Reason() string
Reason function returns reason value.
type SwapResponse_Error_ ¶
type SwapResponse_Error_ struct {
Error *SwapResponse_Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}
type SwapResponse_Error_Code ¶
type SwapResponse_Error_Code int32
const ( // Denied by a guard (spam, money laundering, etc) SwapResponse_Error_DENIED SwapResponse_Error_Code = 0 // There is an issue with the provided signature. SwapResponse_Error_SIGNATURE_ERROR SwapResponse_Error_Code = 1 // The swap failed server-side validation SwapResponse_Error_INVALID_SWAP SwapResponse_Error_Code = 2 // The submitted swap transaction failed. Attempt the swap again. SwapResponse_Error_SWAP_FAILED SwapResponse_Error_Code = 3 )
func (SwapResponse_Error_Code) Descriptor ¶
func (SwapResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
func (SwapResponse_Error_Code) Enum ¶
func (x SwapResponse_Error_Code) Enum() *SwapResponse_Error_Code
func (SwapResponse_Error_Code) EnumDescriptor
deprecated
func (SwapResponse_Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use SwapResponse_Error_Code.Descriptor instead.
func (SwapResponse_Error_Code) Number ¶
func (x SwapResponse_Error_Code) Number() protoreflect.EnumNumber
func (SwapResponse_Error_Code) String ¶
func (x SwapResponse_Error_Code) String() string
func (SwapResponse_Error_Code) Type ¶
func (SwapResponse_Error_Code) Type() protoreflect.EnumType
type SwapResponse_ServerParameters ¶
type SwapResponse_ServerParameters struct {
// Types that are assignable to Kind:
//
// *SwapResponse_ServerParameters_CurrencyCreatorStateless_
// *SwapResponse_ServerParameters_CurrencyCreatorStateful_
Kind isSwapResponse_ServerParameters_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*SwapResponse_ServerParameters) Descriptor
deprecated
func (*SwapResponse_ServerParameters) Descriptor() ([]byte, []int)
Deprecated: Use SwapResponse_ServerParameters.ProtoReflect.Descriptor instead.
func (*SwapResponse_ServerParameters) GetCurrencyCreatorStateful ¶
func (x *SwapResponse_ServerParameters) GetCurrencyCreatorStateful() *SwapResponse_ServerParameters_CurrencyCreatorStateful
func (*SwapResponse_ServerParameters) GetCurrencyCreatorStateless ¶
func (x *SwapResponse_ServerParameters) GetCurrencyCreatorStateless() *SwapResponse_ServerParameters_CurrencyCreatorStateless
func (*SwapResponse_ServerParameters) GetKind ¶
func (m *SwapResponse_ServerParameters) GetKind() isSwapResponse_ServerParameters_Kind
func (*SwapResponse_ServerParameters) ProtoMessage ¶
func (*SwapResponse_ServerParameters) ProtoMessage()
func (*SwapResponse_ServerParameters) ProtoReflect ¶
func (x *SwapResponse_ServerParameters) ProtoReflect() protoreflect.Message
func (*SwapResponse_ServerParameters) Reset ¶
func (x *SwapResponse_ServerParameters) Reset()
func (*SwapResponse_ServerParameters) String ¶
func (x *SwapResponse_ServerParameters) String() string
func (*SwapResponse_ServerParameters) Validate ¶
func (m *SwapResponse_ServerParameters) Validate() error
Validate checks the field values on SwapResponse_ServerParameters with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapResponse_ServerParametersValidationError ¶
type SwapResponse_ServerParametersValidationError struct {
// contains filtered or unexported fields
}
SwapResponse_ServerParametersValidationError is the validation error returned by SwapResponse_ServerParameters.Validate if the designated constraints aren't met.
func (SwapResponse_ServerParametersValidationError) Cause ¶
func (e SwapResponse_ServerParametersValidationError) Cause() error
Cause function returns cause value.
func (SwapResponse_ServerParametersValidationError) Error ¶
func (e SwapResponse_ServerParametersValidationError) Error() string
Error satisfies the builtin error interface
func (SwapResponse_ServerParametersValidationError) ErrorName ¶
func (e SwapResponse_ServerParametersValidationError) ErrorName() string
ErrorName returns error name.
func (SwapResponse_ServerParametersValidationError) Field ¶
func (e SwapResponse_ServerParametersValidationError) Field() string
Field function returns field value.
func (SwapResponse_ServerParametersValidationError) Key ¶
func (e SwapResponse_ServerParametersValidationError) Key() bool
Key function returns key value.
func (SwapResponse_ServerParametersValidationError) Reason ¶
func (e SwapResponse_ServerParametersValidationError) Reason() string
Reason function returns reason value.
type SwapResponse_ServerParameters_ ¶
type SwapResponse_ServerParameters_ struct {
ServerParameters *SwapResponse_ServerParameters `protobuf:"bytes,1,opt,name=server_parameters,json=serverParameters,proto3,oneof"`
}
type SwapResponse_ServerParameters_CurrencyCreatorStateful ¶
type SwapResponse_ServerParameters_CurrencyCreatorStateful struct {
// Subisdizer account that will be paying for the swap
Payer *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
// ALTs that should be used when constructing the versioned transaction
Alts []*v1.SolanaAddressLookupTable `protobuf:"bytes,2,rep,name=alts,proto3" json:"alts,omitempty"`
// Compute unit limit provided to the ComputeBudget::SetComputeUnitLimit
// instruction. If the value is 0, then the instruction can be omitted.
ComputeUnitLimit uint32 `protobuf:"varint,3,opt,name=compute_unit_limit,json=computeUnitLimit,proto3" json:"compute_unit_limit,omitempty"`
// Compute unit price provided in the ComputeBudget::SetComputeUnitPrice
// instruction. If the value is 0, then the instruction can be omitted.
ComputeUnitPrice uint64 `protobuf:"varint,4,opt,name=compute_unit_price,json=computeUnitPrice,proto3" json:"compute_unit_price,omitempty"`
// Value provided into the Memo::Memo instruction. If the value length is 0,
// then the instruction can be omitted.
MemoValue string `protobuf:"bytes,5,opt,name=memo_value,json=memoValue,proto3" json:"memo_value,omitempty"`
// The memory account where the destination virtual Timelock account lives
MemoryAccount *v1.SolanaAccountId `protobuf:"bytes,6,opt,name=memory_account,json=memoryAccount,proto3" json:"memory_account,omitempty"`
// The memory index where the destination virtual Timelock account lives
MemoryIndex uint32 `protobuf:"varint,7,opt,name=memory_index,json=memoryIndex,proto3" json:"memory_index,omitempty"`
// contains filtered or unexported fields
}
Server parameters when executing stateful buy/sell flows against the Currency Creator program
Supported Solana transaction version: v0
Instruction formats:
Buy Tokens (Core Mint -> Launchpad Currency Mint):
- System::AdvanceNonce
- [Optional] ComputeBudget::SetComputeUnitLimit
- [Optional] ComputeBudget::SetComputeUnitPrice
- [Optional] Memo::Memo
- AssociatedTokenAccount::CreateIdempotent (open Core Mint temporary account)
- VM::TransferForSwap (Core Mint VM swap ATA -> Core Mint temporary account)
- CurrencyCreator::BuyAndDepositIntoVm (bounded buy depositing to_mint tokens into the to_mint VM)
- Token::CloseAccount (closes Core Mint temporary account)
- VM::CloseSwapAccountIfEmpty (closes Core Mint VM swap ATA if empty)
Sell Tokens (Launchpad Currency Mint -> Core Mint):
- System::AdvanceNonce
- [Optional] ComputeBudget::SetComputeUnitLimit
- [Optional] ComputeBudget::SetComputeUnitPrice
- [Optional] Memo::Memo
- AssociatedTokenAccount::CreateIdempotent (open from_mint temporary account)
- VM::TransferForSwap (from_mint VM swap ATA -> from_mint temporary account)
- CurrencyCreator::SellAndDepositIntoVm (bounded sell depositing Core Mint into the Core Mint VM)
- Token::CloseAccount (closes from_mint temporary account)
- VM::CloseSwapAccountIfEmpty (closes from_mint swap PDA/ATA if empty)
Swap Tokens (Launchpad Currency Mint -> Launchpad Currency Mint):
- System::AdvanceNonce
- [Optional] ComputeBudget::SetComputeUnitLimit
- [Optional] ComputeBudget::SetComputeUnitPrice
- [Optional] Memo::Memo
- AssociatedTokenAccount::CreateIdempotent (open Core Mint temporary account)
- AssociatedTokenAccount::CreateIdempotent (open from_mint temporary account)
- VM::TransferForSwap (from_mint VM swap ATA -> from_mint temporary account)
- CurrencyCreator::SellTokens (bounded sell transferring Core Mint into temporary account)
- CurrencyCreator::BuyAndDepositIntoVm (unlimited buy depositing to_mint tokens into the to_mint VM)
- Token::CloseAccount (closes Core Mint temporary account)
- Token::CloseAccount (closes from_mint temporary account)
- VM::CloseSwapAccountIfEmpty (closes from_mint VM swap ATA if empty)
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) Descriptor
deprecated
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) Descriptor() ([]byte, []int)
Deprecated: Use SwapResponse_ServerParameters_CurrencyCreatorStateful.ProtoReflect.Descriptor instead.
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetAlts ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetAlts() []*v1.SolanaAddressLookupTable
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetComputeUnitLimit ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetComputeUnitLimit() uint32
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetComputeUnitPrice ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetComputeUnitPrice() uint64
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoValue ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoValue() string
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoryAccount ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoryAccount() *v1.SolanaAccountId
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoryIndex ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetMemoryIndex() uint32
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) GetPayer ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) GetPayer() *v1.SolanaAccountId
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) ProtoMessage ¶
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) ProtoMessage()
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) ProtoReflect ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) ProtoReflect() protoreflect.Message
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) Reset ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) Reset()
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) String ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateful) String() string
func (*SwapResponse_ServerParameters_CurrencyCreatorStateful) Validate ¶
func (m *SwapResponse_ServerParameters_CurrencyCreatorStateful) Validate() error
Validate checks the field values on SwapResponse_ServerParameters_CurrencyCreatorStateful with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError ¶
type SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError struct {
// contains filtered or unexported fields
}
SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError is the validation error returned by SwapResponse_ServerParameters_CurrencyCreatorStateful.Validate if the designated constraints aren't met.
func (SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Cause ¶
Cause function returns cause value.
func (SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Error ¶
Error satisfies the builtin error interface
func (SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) ErrorName ¶
func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) ErrorName() string
ErrorName returns error name.
func (SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Field ¶
Field function returns field value.
func (SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Key ¶
Key function returns key value.
func (SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Reason ¶
func (e SwapResponse_ServerParameters_CurrencyCreatorStatefulValidationError) Reason() string
Reason function returns reason value.
type SwapResponse_ServerParameters_CurrencyCreatorStateful_ ¶
type SwapResponse_ServerParameters_CurrencyCreatorStateful_ struct {
CurrencyCreatorStateful *SwapResponse_ServerParameters_CurrencyCreatorStateful `protobuf:"bytes,2,opt,name=currency_creator_stateful,json=currencyCreatorStateful,proto3,oneof"`
}
type SwapResponse_ServerParameters_CurrencyCreatorStateless ¶
type SwapResponse_ServerParameters_CurrencyCreatorStateless struct {
// Subisdizer account that will be paying for the swap
Payer *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
// Recent blockhash
RecentBlockhash *v1.Blockhash `protobuf:"bytes,2,opt,name=recent_blockhash,json=recentBlockhash,proto3" json:"recent_blockhash,omitempty"`
// ALTs that should be used when constructing the versioned transaction
Alts []*v1.SolanaAddressLookupTable `protobuf:"bytes,3,rep,name=alts,proto3" json:"alts,omitempty"`
// Compute unit limit provided to the ComputeBudget::SetComputeUnitLimit
// instruction. If the value is 0, then the instruction can be omitted.
ComputeUnitLimit uint32 `protobuf:"varint,4,opt,name=compute_unit_limit,json=computeUnitLimit,proto3" json:"compute_unit_limit,omitempty"`
// Compute unit price provided in the ComputeBudget::SetComputeUnitPrice
// instruction. If the value is 0, then the instruction can be omitted.
ComputeUnitPrice uint64 `protobuf:"varint,5,opt,name=compute_unit_price,json=computeUnitPrice,proto3" json:"compute_unit_price,omitempty"`
// Value provided into the Memo::Memo instruction. If the value length is 0,
// then the instruction can be omitted.
MemoValue string `protobuf:"bytes,6,opt,name=memo_value,json=memoValue,proto3" json:"memo_value,omitempty"`
// The memory account where the destination virtual Timelock account lives
MemoryAccount *v1.SolanaAccountId `protobuf:"bytes,7,opt,name=memory_account,json=memoryAccount,proto3" json:"memory_account,omitempty"`
// The memory index where the destination virtual Timelock account lives
MemoryIndex uint32 `protobuf:"varint,8,opt,name=memory_index,json=memoryIndex,proto3" json:"memory_index,omitempty"`
// contains filtered or unexported fields
}
Server parameters when executing stateless buy/sell flows against the Currency Creator program
Note: The transaction and instruction formats are nearly identical to the stateful flow, except the system::AdvanceNonce instruction is ommitted in favour of using a latest blockhash.
Note: This will be deprecated in favour of the stateful version. For PoC of swap flow only.
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) Descriptor
deprecated
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) Descriptor() ([]byte, []int)
Deprecated: Use SwapResponse_ServerParameters_CurrencyCreatorStateless.ProtoReflect.Descriptor instead.
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetAlts ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetAlts() []*v1.SolanaAddressLookupTable
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetComputeUnitLimit ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetComputeUnitLimit() uint32
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetComputeUnitPrice ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetComputeUnitPrice() uint64
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoValue ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoValue() string
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoryAccount ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoryAccount() *v1.SolanaAccountId
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoryIndex ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetMemoryIndex() uint32
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetPayer ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetPayer() *v1.SolanaAccountId
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) GetRecentBlockhash ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) GetRecentBlockhash() *v1.Blockhash
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) ProtoMessage ¶
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) ProtoMessage()
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) ProtoReflect ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) ProtoReflect() protoreflect.Message
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) Reset ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) Reset()
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) String ¶
func (x *SwapResponse_ServerParameters_CurrencyCreatorStateless) String() string
func (*SwapResponse_ServerParameters_CurrencyCreatorStateless) Validate ¶
func (m *SwapResponse_ServerParameters_CurrencyCreatorStateless) Validate() error
Validate checks the field values on SwapResponse_ServerParameters_CurrencyCreatorStateless with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError ¶
type SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError struct {
// contains filtered or unexported fields
}
SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError is the validation error returned by SwapResponse_ServerParameters_CurrencyCreatorStateless.Validate if the designated constraints aren't met.
func (SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Cause ¶
Cause function returns cause value.
func (SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Error ¶
Error satisfies the builtin error interface
func (SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) ErrorName ¶
func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) ErrorName() string
ErrorName returns error name.
func (SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Field ¶
Field function returns field value.
func (SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Key ¶
Key function returns key value.
func (SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Reason ¶
func (e SwapResponse_ServerParameters_CurrencyCreatorStatelessValidationError) Reason() string
Reason function returns reason value.
type SwapResponse_ServerParameters_CurrencyCreatorStateless_ ¶
type SwapResponse_ServerParameters_CurrencyCreatorStateless_ struct {
CurrencyCreatorStateless *SwapResponse_ServerParameters_CurrencyCreatorStateless `protobuf:"bytes,1,opt,name=currency_creator_stateless,json=currencyCreatorStateless,proto3,oneof"`
}
type SwapResponse_Success ¶
type SwapResponse_Success struct {
Code SwapResponse_Success_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.SwapResponse_Success_Code" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*SwapResponse_Success) Descriptor
deprecated
func (*SwapResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use SwapResponse_Success.ProtoReflect.Descriptor instead.
func (*SwapResponse_Success) GetCode ¶
func (x *SwapResponse_Success) GetCode() SwapResponse_Success_Code
func (*SwapResponse_Success) ProtoMessage ¶
func (*SwapResponse_Success) ProtoMessage()
func (*SwapResponse_Success) ProtoReflect ¶
func (x *SwapResponse_Success) ProtoReflect() protoreflect.Message
func (*SwapResponse_Success) Reset ¶
func (x *SwapResponse_Success) Reset()
func (*SwapResponse_Success) String ¶
func (x *SwapResponse_Success) String() string
func (*SwapResponse_Success) Validate ¶
func (m *SwapResponse_Success) Validate() error
Validate checks the field values on SwapResponse_Success with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SwapResponse_SuccessValidationError ¶
type SwapResponse_SuccessValidationError struct {
// contains filtered or unexported fields
}
SwapResponse_SuccessValidationError is the validation error returned by SwapResponse_Success.Validate if the designated constraints aren't met.
func (SwapResponse_SuccessValidationError) Cause ¶
func (e SwapResponse_SuccessValidationError) Cause() error
Cause function returns cause value.
func (SwapResponse_SuccessValidationError) Error ¶
func (e SwapResponse_SuccessValidationError) Error() string
Error satisfies the builtin error interface
func (SwapResponse_SuccessValidationError) ErrorName ¶
func (e SwapResponse_SuccessValidationError) ErrorName() string
ErrorName returns error name.
func (SwapResponse_SuccessValidationError) Field ¶
func (e SwapResponse_SuccessValidationError) Field() string
Field function returns field value.
func (SwapResponse_SuccessValidationError) Key ¶
func (e SwapResponse_SuccessValidationError) Key() bool
Key function returns key value.
func (SwapResponse_SuccessValidationError) Reason ¶
func (e SwapResponse_SuccessValidationError) Reason() string
Reason function returns reason value.
type SwapResponse_Success_ ¶
type SwapResponse_Success_ struct {
Success *SwapResponse_Success `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}
type SwapResponse_Success_Code ¶
type SwapResponse_Success_Code int32
const ( // The swap was submitted to the blockchain. SwapResponse_Success_SWAP_SUBMITTED SwapResponse_Success_Code = 0 // The swap was finalized on the blockchain. SwapResponse_Success_SWAP_FINALIZED SwapResponse_Success_Code = 1 )
func (SwapResponse_Success_Code) Descriptor ¶
func (SwapResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
func (SwapResponse_Success_Code) Enum ¶
func (x SwapResponse_Success_Code) Enum() *SwapResponse_Success_Code
func (SwapResponse_Success_Code) EnumDescriptor
deprecated
func (SwapResponse_Success_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use SwapResponse_Success_Code.Descriptor instead.
func (SwapResponse_Success_Code) Number ¶
func (x SwapResponse_Success_Code) Number() protoreflect.EnumNumber
func (SwapResponse_Success_Code) String ¶
func (x SwapResponse_Success_Code) String() string
func (SwapResponse_Success_Code) Type ¶
func (SwapResponse_Success_Code) Type() protoreflect.EnumType
type TransactionClient ¶
type TransactionClient interface {
// SubmitIntent is the mechanism for client and server to agree upon a set of
// client actions to execute on the blockchain using the Code sequencer for
// fulfillment.
//
// Transactions and virtual instructions are never exchanged between client and server.
// Instead, the required accounts and arguments for instructions known to each actor are
// exchanged to allow independent and local construction.
//
// Client and server are expected to fully validate the intent. Proofs will
// be provided for any parameter requiring one. Signatures should only be
// generated after approval.
//
// This RPC is not a traditional streaming endpoint. It bundles two unary calls
// to enable DB-level transaction semantics.
//
// The high-level happy path flow for the RPC is as follows:
// 1. Client initiates a stream and sends SubmitIntentRequest.SubmitActions
// 2. Server validates the intent, its actions and metadata
// 3a. If there are transactions or virtual instructions requiring the user's signature,
// then server returns SubmitIntentResponse.ServerParameters
// 3b. Otherwise, server returns SubmitIntentResponse.Success and closes the
// stream
// 4. For each transaction or virtual instruction requiring the user's signature, the client
// locally constructs it, performs validation and collects the signature
// 5. Client sends SubmitIntentRequest.SubmitSignatures with the signature
// list generated from 4
// 6. Server validates all signatures are submitted and are the expected values
// using locally constructed transactions or virtual instructions.
// 7. Server returns SubmitIntentResponse.Success and closes the stream
//
// In the error case:
// - Server will return SubmitIntentResponse.Error and close the stream
// - Client will close the stream
SubmitIntent(ctx context.Context, opts ...grpc.CallOption) (Transaction_SubmitIntentClient, error)
// GetIntentMetadata gets basic metadata on an intent. It can also be used
// to fetch the status of submitted intents. Metadata exists only for intents
// that have been successfully submitted.
GetIntentMetadata(ctx context.Context, in *GetIntentMetadataRequest, opts ...grpc.CallOption) (*GetIntentMetadataResponse, error)
// GetLimits gets limits for money moving intents for an owner account in an
// identity-aware manner
GetLimits(ctx context.Context, in *GetLimitsRequest, opts ...grpc.CallOption) (*GetLimitsResponse, error)
// CanWithdrawToAccount provides hints to clients for submitting withdraw intents.
// The RPC indicates if a withdrawal is possible, and how it should be performed.
CanWithdrawToAccount(ctx context.Context, in *CanWithdrawToAccountRequest, opts ...grpc.CallOption) (*CanWithdrawToAccountResponse, error)
// Airdrop airdrops core mint tokens to the requesting account
Airdrop(ctx context.Context, in *AirdropRequest, opts ...grpc.CallOption) (*AirdropResponse, error)
// VoidGiftCard voids a gift card account by returning the funds to the funds back
// to the issuer via the auto-return action if it hasn't been claimed or already
// returned.
//
// Note: The RPC is idempotent. If the user already claimed/voided the gift card, or
//
// it is close to or is auto-returned, then OK will be returned.
VoidGiftCard(ctx context.Context, in *VoidGiftCardRequest, opts ...grpc.CallOption) (*VoidGiftCardResponse, error)
// StartSwap begins the process for swapping tokens by coordinating verified metadata
// for non-custodial state management tracking.
StartSwap(ctx context.Context, opts ...grpc.CallOption) (Transaction_StartSwapClient, error)
// GetSwap gets metadata for a swap
GetSwap(ctx context.Context, in *GetSwapRequest, opts ...grpc.CallOption) (*GetSwapResponse, error)
// GetPendingSwaps get swaps that are pending client actions which include:
// 1. Swaps that need a call to SubmitIntent to fund the VM swap PDA (ie. in a CREATED state)
// 2. Swaps that need to be executed via the Swap RPC (ie. in a FUNDED state)
GetPendingSwaps(ctx context.Context, in *GetPendingSwapsRequest, opts ...grpc.CallOption) (*GetPendingSwapsResponse, error)
// Swap performs an on-chain swap. The high-level flow mirrors SubmitIntent
// closely. However, due to the time-sensitive nature and unreliability of
// swaps, they do not fit within the broader intent system. This results in
// a few key differences:
// - Transactions are submitted on a best-effort basis outside of the Code
// Sequencer within the RPC handler
// - Balance changes are applied after the transaction has finalized
Swap(ctx context.Context, opts ...grpc.CallOption) (Transaction_SwapClient, error)
}
TransactionClient is the client API for Transaction service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTransactionClient ¶
func NewTransactionClient(cc grpc.ClientConnInterface) TransactionClient
type TransactionServer ¶
type TransactionServer interface {
// SubmitIntent is the mechanism for client and server to agree upon a set of
// client actions to execute on the blockchain using the Code sequencer for
// fulfillment.
//
// Transactions and virtual instructions are never exchanged between client and server.
// Instead, the required accounts and arguments for instructions known to each actor are
// exchanged to allow independent and local construction.
//
// Client and server are expected to fully validate the intent. Proofs will
// be provided for any parameter requiring one. Signatures should only be
// generated after approval.
//
// This RPC is not a traditional streaming endpoint. It bundles two unary calls
// to enable DB-level transaction semantics.
//
// The high-level happy path flow for the RPC is as follows:
// 1. Client initiates a stream and sends SubmitIntentRequest.SubmitActions
// 2. Server validates the intent, its actions and metadata
// 3a. If there are transactions or virtual instructions requiring the user's signature,
// then server returns SubmitIntentResponse.ServerParameters
// 3b. Otherwise, server returns SubmitIntentResponse.Success and closes the
// stream
// 4. For each transaction or virtual instruction requiring the user's signature, the client
// locally constructs it, performs validation and collects the signature
// 5. Client sends SubmitIntentRequest.SubmitSignatures with the signature
// list generated from 4
// 6. Server validates all signatures are submitted and are the expected values
// using locally constructed transactions or virtual instructions.
// 7. Server returns SubmitIntentResponse.Success and closes the stream
//
// In the error case:
// - Server will return SubmitIntentResponse.Error and close the stream
// - Client will close the stream
SubmitIntent(Transaction_SubmitIntentServer) error
// GetIntentMetadata gets basic metadata on an intent. It can also be used
// to fetch the status of submitted intents. Metadata exists only for intents
// that have been successfully submitted.
GetIntentMetadata(context.Context, *GetIntentMetadataRequest) (*GetIntentMetadataResponse, error)
// GetLimits gets limits for money moving intents for an owner account in an
// identity-aware manner
GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error)
// CanWithdrawToAccount provides hints to clients for submitting withdraw intents.
// The RPC indicates if a withdrawal is possible, and how it should be performed.
CanWithdrawToAccount(context.Context, *CanWithdrawToAccountRequest) (*CanWithdrawToAccountResponse, error)
// Airdrop airdrops core mint tokens to the requesting account
Airdrop(context.Context, *AirdropRequest) (*AirdropResponse, error)
// VoidGiftCard voids a gift card account by returning the funds to the funds back
// to the issuer via the auto-return action if it hasn't been claimed or already
// returned.
//
// Note: The RPC is idempotent. If the user already claimed/voided the gift card, or
//
// it is close to or is auto-returned, then OK will be returned.
VoidGiftCard(context.Context, *VoidGiftCardRequest) (*VoidGiftCardResponse, error)
// StartSwap begins the process for swapping tokens by coordinating verified metadata
// for non-custodial state management tracking.
StartSwap(Transaction_StartSwapServer) error
// GetSwap gets metadata for a swap
GetSwap(context.Context, *GetSwapRequest) (*GetSwapResponse, error)
// GetPendingSwaps get swaps that are pending client actions which include:
// 1. Swaps that need a call to SubmitIntent to fund the VM swap PDA (ie. in a CREATED state)
// 2. Swaps that need to be executed via the Swap RPC (ie. in a FUNDED state)
GetPendingSwaps(context.Context, *GetPendingSwapsRequest) (*GetPendingSwapsResponse, error)
// Swap performs an on-chain swap. The high-level flow mirrors SubmitIntent
// closely. However, due to the time-sensitive nature and unreliability of
// swaps, they do not fit within the broader intent system. This results in
// a few key differences:
// - Transactions are submitted on a best-effort basis outside of the Code
// Sequencer within the RPC handler
// - Balance changes are applied after the transaction has finalized
Swap(Transaction_SwapServer) error
// contains filtered or unexported methods
}
TransactionServer is the server API for Transaction service. All implementations must embed UnimplementedTransactionServer for forward compatibility
type Transaction_StartSwapClient ¶
type Transaction_StartSwapClient interface {
Send(*StartSwapRequest) error
Recv() (*StartSwapResponse, error)
grpc.ClientStream
}
type Transaction_StartSwapServer ¶
type Transaction_StartSwapServer interface {
Send(*StartSwapResponse) error
Recv() (*StartSwapRequest, error)
grpc.ServerStream
}
type Transaction_SubmitIntentClient ¶
type Transaction_SubmitIntentClient interface {
Send(*SubmitIntentRequest) error
Recv() (*SubmitIntentResponse, error)
grpc.ClientStream
}
type Transaction_SubmitIntentServer ¶
type Transaction_SubmitIntentServer interface {
Send(*SubmitIntentResponse) error
Recv() (*SubmitIntentRequest, error)
grpc.ServerStream
}
type Transaction_SwapClient ¶
type Transaction_SwapClient interface {
Send(*SwapRequest) error
Recv() (*SwapResponse, error)
grpc.ClientStream
}
type Transaction_SwapServer ¶
type Transaction_SwapServer interface {
Send(*SwapResponse) error
Recv() (*SwapRequest, error)
grpc.ServerStream
}
type UnimplementedTransactionServer ¶
type UnimplementedTransactionServer struct {
}
UnimplementedTransactionServer must be embedded to have forward compatible implementations.
func (UnimplementedTransactionServer) Airdrop ¶
func (UnimplementedTransactionServer) Airdrop(context.Context, *AirdropRequest) (*AirdropResponse, error)
func (UnimplementedTransactionServer) CanWithdrawToAccount ¶
func (UnimplementedTransactionServer) CanWithdrawToAccount(context.Context, *CanWithdrawToAccountRequest) (*CanWithdrawToAccountResponse, error)
func (UnimplementedTransactionServer) GetIntentMetadata ¶
func (UnimplementedTransactionServer) GetIntentMetadata(context.Context, *GetIntentMetadataRequest) (*GetIntentMetadataResponse, error)
func (UnimplementedTransactionServer) GetLimits ¶
func (UnimplementedTransactionServer) GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error)
func (UnimplementedTransactionServer) GetPendingSwaps ¶
func (UnimplementedTransactionServer) GetPendingSwaps(context.Context, *GetPendingSwapsRequest) (*GetPendingSwapsResponse, error)
func (UnimplementedTransactionServer) GetSwap ¶
func (UnimplementedTransactionServer) GetSwap(context.Context, *GetSwapRequest) (*GetSwapResponse, error)
func (UnimplementedTransactionServer) StartSwap ¶
func (UnimplementedTransactionServer) StartSwap(Transaction_StartSwapServer) error
func (UnimplementedTransactionServer) SubmitIntent ¶
func (UnimplementedTransactionServer) SubmitIntent(Transaction_SubmitIntentServer) error
func (UnimplementedTransactionServer) Swap ¶
func (UnimplementedTransactionServer) Swap(Transaction_SwapServer) error
func (UnimplementedTransactionServer) VoidGiftCard ¶
func (UnimplementedTransactionServer) VoidGiftCard(context.Context, *VoidGiftCardRequest) (*VoidGiftCardResponse, error)
type UnsafeTransactionServer ¶
type UnsafeTransactionServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServer will result in compilation errors.
type VerifiedCurrencyCreatorSwapMetadata ¶
type VerifiedCurrencyCreatorSwapMetadata struct {
// Verifiable client-side parameters that were provided during the StartSwap RPC
ClientParameters *StartSwapRequest_Start_CurrencyCreator `protobuf:"bytes,1,opt,name=client_parameters,json=clientParameters,proto3" json:"client_parameters,omitempty"`
// Verifiable agreed-upon server-side parameters that were provided during the StartSwap RPC
ServerParameters *StartSwapResponse_ServerParameters_CurrencyCreator `protobuf:"bytes,2,opt,name=server_parameters,json=serverParameters,proto3" json:"server_parameters,omitempty"`
// contains filtered or unexported fields
}
VerifiedCurrencyCreatorSwapMetadata is verified metadata for swaps against the Currency Creator program
func (*VerifiedCurrencyCreatorSwapMetadata) Descriptor
deprecated
func (*VerifiedCurrencyCreatorSwapMetadata) Descriptor() ([]byte, []int)
Deprecated: Use VerifiedCurrencyCreatorSwapMetadata.ProtoReflect.Descriptor instead.
func (*VerifiedCurrencyCreatorSwapMetadata) GetClientParameters ¶
func (x *VerifiedCurrencyCreatorSwapMetadata) GetClientParameters() *StartSwapRequest_Start_CurrencyCreator
func (*VerifiedCurrencyCreatorSwapMetadata) GetServerParameters ¶
func (x *VerifiedCurrencyCreatorSwapMetadata) GetServerParameters() *StartSwapResponse_ServerParameters_CurrencyCreator
func (*VerifiedCurrencyCreatorSwapMetadata) ProtoMessage ¶
func (*VerifiedCurrencyCreatorSwapMetadata) ProtoMessage()
func (*VerifiedCurrencyCreatorSwapMetadata) ProtoReflect ¶
func (x *VerifiedCurrencyCreatorSwapMetadata) ProtoReflect() protoreflect.Message
func (*VerifiedCurrencyCreatorSwapMetadata) Reset ¶
func (x *VerifiedCurrencyCreatorSwapMetadata) Reset()
func (*VerifiedCurrencyCreatorSwapMetadata) String ¶
func (x *VerifiedCurrencyCreatorSwapMetadata) String() string
func (*VerifiedCurrencyCreatorSwapMetadata) Validate ¶
func (m *VerifiedCurrencyCreatorSwapMetadata) Validate() error
Validate checks the field values on VerifiedCurrencyCreatorSwapMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VerifiedCurrencyCreatorSwapMetadataValidationError ¶
type VerifiedCurrencyCreatorSwapMetadataValidationError struct {
// contains filtered or unexported fields
}
VerifiedCurrencyCreatorSwapMetadataValidationError is the validation error returned by VerifiedCurrencyCreatorSwapMetadata.Validate if the designated constraints aren't met.
func (VerifiedCurrencyCreatorSwapMetadataValidationError) Cause ¶
func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Cause() error
Cause function returns cause value.
func (VerifiedCurrencyCreatorSwapMetadataValidationError) Error ¶
func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (VerifiedCurrencyCreatorSwapMetadataValidationError) ErrorName ¶
func (e VerifiedCurrencyCreatorSwapMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (VerifiedCurrencyCreatorSwapMetadataValidationError) Field ¶
func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Field() string
Field function returns field value.
func (VerifiedCurrencyCreatorSwapMetadataValidationError) Key ¶
func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Key() bool
Key function returns key value.
func (VerifiedCurrencyCreatorSwapMetadataValidationError) Reason ¶
func (e VerifiedCurrencyCreatorSwapMetadataValidationError) Reason() string
Reason function returns reason value.
type VerifiedSwapMetadata ¶
type VerifiedSwapMetadata struct {
// Types that are assignable to Kind:
//
// *VerifiedSwapMetadata_CurrencyCreator
Kind isVerifiedSwapMetadata_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
VerifiedSwapMetadata defines verifiable swap metadata for non-custodial swap state management using client signature verification.
func (*VerifiedSwapMetadata) Descriptor
deprecated
func (*VerifiedSwapMetadata) Descriptor() ([]byte, []int)
Deprecated: Use VerifiedSwapMetadata.ProtoReflect.Descriptor instead.
func (*VerifiedSwapMetadata) GetCurrencyCreator ¶
func (x *VerifiedSwapMetadata) GetCurrencyCreator() *VerifiedCurrencyCreatorSwapMetadata
func (*VerifiedSwapMetadata) GetKind ¶
func (m *VerifiedSwapMetadata) GetKind() isVerifiedSwapMetadata_Kind
func (*VerifiedSwapMetadata) ProtoMessage ¶
func (*VerifiedSwapMetadata) ProtoMessage()
func (*VerifiedSwapMetadata) ProtoReflect ¶
func (x *VerifiedSwapMetadata) ProtoReflect() protoreflect.Message
func (*VerifiedSwapMetadata) Reset ¶
func (x *VerifiedSwapMetadata) Reset()
func (*VerifiedSwapMetadata) String ¶
func (x *VerifiedSwapMetadata) String() string
func (*VerifiedSwapMetadata) Validate ¶
func (m *VerifiedSwapMetadata) Validate() error
Validate checks the field values on VerifiedSwapMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VerifiedSwapMetadataValidationError ¶
type VerifiedSwapMetadataValidationError struct {
// contains filtered or unexported fields
}
VerifiedSwapMetadataValidationError is the validation error returned by VerifiedSwapMetadata.Validate if the designated constraints aren't met.
func (VerifiedSwapMetadataValidationError) Cause ¶
func (e VerifiedSwapMetadataValidationError) Cause() error
Cause function returns cause value.
func (VerifiedSwapMetadataValidationError) Error ¶
func (e VerifiedSwapMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (VerifiedSwapMetadataValidationError) ErrorName ¶
func (e VerifiedSwapMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (VerifiedSwapMetadataValidationError) Field ¶
func (e VerifiedSwapMetadataValidationError) Field() string
Field function returns field value.
func (VerifiedSwapMetadataValidationError) Key ¶
func (e VerifiedSwapMetadataValidationError) Key() bool
Key function returns key value.
func (VerifiedSwapMetadataValidationError) Reason ¶
func (e VerifiedSwapMetadataValidationError) Reason() string
Reason function returns reason value.
type VerifiedSwapMetadata_CurrencyCreator ¶
type VerifiedSwapMetadata_CurrencyCreator struct {
CurrencyCreator *VerifiedCurrencyCreatorSwapMetadata `protobuf:"bytes,1,opt,name=currency_creator,json=currencyCreator,proto3,oneof"`
}
type VoidGiftCardRequest ¶
type VoidGiftCardRequest struct {
// The owner account that issued the gift card account
Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The vault of the gift card account to void
GiftCardVault *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=gift_card_vault,json=giftCardVault,proto3" json:"gift_card_vault,omitempty"`
// The signature is of serialize(VoidGiftCardRequest) without this field set using
// the private key of the owner account. This provides an authentication mechanism
// to the RPC.
Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*VoidGiftCardRequest) Descriptor
deprecated
func (*VoidGiftCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use VoidGiftCardRequest.ProtoReflect.Descriptor instead.
func (*VoidGiftCardRequest) GetGiftCardVault ¶
func (x *VoidGiftCardRequest) GetGiftCardVault() *v1.SolanaAccountId
func (*VoidGiftCardRequest) GetOwner ¶
func (x *VoidGiftCardRequest) GetOwner() *v1.SolanaAccountId
func (*VoidGiftCardRequest) GetSignature ¶
func (x *VoidGiftCardRequest) GetSignature() *v1.Signature
func (*VoidGiftCardRequest) ProtoMessage ¶
func (*VoidGiftCardRequest) ProtoMessage()
func (*VoidGiftCardRequest) ProtoReflect ¶
func (x *VoidGiftCardRequest) ProtoReflect() protoreflect.Message
func (*VoidGiftCardRequest) Reset ¶
func (x *VoidGiftCardRequest) Reset()
func (*VoidGiftCardRequest) String ¶
func (x *VoidGiftCardRequest) String() string
func (*VoidGiftCardRequest) Validate ¶
func (m *VoidGiftCardRequest) Validate() error
Validate checks the field values on VoidGiftCardRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VoidGiftCardRequestValidationError ¶
type VoidGiftCardRequestValidationError struct {
// contains filtered or unexported fields
}
VoidGiftCardRequestValidationError is the validation error returned by VoidGiftCardRequest.Validate if the designated constraints aren't met.
func (VoidGiftCardRequestValidationError) Cause ¶
func (e VoidGiftCardRequestValidationError) Cause() error
Cause function returns cause value.
func (VoidGiftCardRequestValidationError) Error ¶
func (e VoidGiftCardRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VoidGiftCardRequestValidationError) ErrorName ¶
func (e VoidGiftCardRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VoidGiftCardRequestValidationError) Field ¶
func (e VoidGiftCardRequestValidationError) Field() string
Field function returns field value.
func (VoidGiftCardRequestValidationError) Key ¶
func (e VoidGiftCardRequestValidationError) Key() bool
Key function returns key value.
func (VoidGiftCardRequestValidationError) Reason ¶
func (e VoidGiftCardRequestValidationError) Reason() string
Reason function returns reason value.
type VoidGiftCardResponse ¶
type VoidGiftCardResponse struct {
Result VoidGiftCardResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.transaction.v1.VoidGiftCardResponse_Result" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*VoidGiftCardResponse) Descriptor
deprecated
func (*VoidGiftCardResponse) Descriptor() ([]byte, []int)
Deprecated: Use VoidGiftCardResponse.ProtoReflect.Descriptor instead.
func (*VoidGiftCardResponse) GetResult ¶
func (x *VoidGiftCardResponse) GetResult() VoidGiftCardResponse_Result
func (*VoidGiftCardResponse) ProtoMessage ¶
func (*VoidGiftCardResponse) ProtoMessage()
func (*VoidGiftCardResponse) ProtoReflect ¶
func (x *VoidGiftCardResponse) ProtoReflect() protoreflect.Message
func (*VoidGiftCardResponse) Reset ¶
func (x *VoidGiftCardResponse) Reset()
func (*VoidGiftCardResponse) String ¶
func (x *VoidGiftCardResponse) String() string
func (*VoidGiftCardResponse) Validate ¶
func (m *VoidGiftCardResponse) Validate() error
Validate checks the field values on VoidGiftCardResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VoidGiftCardResponseValidationError ¶
type VoidGiftCardResponseValidationError struct {
// contains filtered or unexported fields
}
VoidGiftCardResponseValidationError is the validation error returned by VoidGiftCardResponse.Validate if the designated constraints aren't met.
func (VoidGiftCardResponseValidationError) Cause ¶
func (e VoidGiftCardResponseValidationError) Cause() error
Cause function returns cause value.
func (VoidGiftCardResponseValidationError) Error ¶
func (e VoidGiftCardResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VoidGiftCardResponseValidationError) ErrorName ¶
func (e VoidGiftCardResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VoidGiftCardResponseValidationError) Field ¶
func (e VoidGiftCardResponseValidationError) Field() string
Field function returns field value.
func (VoidGiftCardResponseValidationError) Key ¶
func (e VoidGiftCardResponseValidationError) Key() bool
Key function returns key value.
func (VoidGiftCardResponseValidationError) Reason ¶
func (e VoidGiftCardResponseValidationError) Reason() string
Reason function returns reason value.
type VoidGiftCardResponse_Result ¶
type VoidGiftCardResponse_Result int32
const ( VoidGiftCardResponse_OK VoidGiftCardResponse_Result = 0 // The owner account didn't issue the gift card accoun VoidGiftCardResponse_DENIED VoidGiftCardResponse_Result = 1 // A different owner account than the issuer claimed the gift card VoidGiftCardResponse_CLAIMED_BY_OTHER_USER VoidGiftCardResponse_Result = 2 // The gift card doesn't exist VoidGiftCardResponse_NOT_FOUND VoidGiftCardResponse_Result = 3 )
func (VoidGiftCardResponse_Result) Descriptor ¶
func (VoidGiftCardResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (VoidGiftCardResponse_Result) Enum ¶
func (x VoidGiftCardResponse_Result) Enum() *VoidGiftCardResponse_Result
func (VoidGiftCardResponse_Result) EnumDescriptor
deprecated
func (VoidGiftCardResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use VoidGiftCardResponse_Result.Descriptor instead.
func (VoidGiftCardResponse_Result) Number ¶
func (x VoidGiftCardResponse_Result) Number() protoreflect.EnumNumber
func (VoidGiftCardResponse_Result) String ¶
func (x VoidGiftCardResponse_Result) String() string
func (VoidGiftCardResponse_Result) Type ¶
func (VoidGiftCardResponse_Result) Type() protoreflect.EnumType