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) GetClientExchangeData() *VerifiedExchangeData
- func (x *SendPublicPaymentMetadata) GetDestination() *v1.SolanaAccountId
- func (x *SendPublicPaymentMetadata) GetDestinationOwner() *v1.SolanaAccountId
- func (m *SendPublicPaymentMetadata) GetExchangeData() isSendPublicPaymentMetadata_ExchangeData
- func (x *SendPublicPaymentMetadata) GetIsRemoteSend() bool
- func (x *SendPublicPaymentMetadata) GetIsWithdrawal() bool
- func (x *SendPublicPaymentMetadata) GetMint() *v1.SolanaAccountId
- func (x *SendPublicPaymentMetadata) GetServerExchangeData() *ExchangeData
- 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 SendPublicPaymentMetadata_ClientExchangeData
- type SendPublicPaymentMetadata_ServerExchangeData
- 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 StatefulSwapRequest
- func (*StatefulSwapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapRequest) GetInitiate() *StatefulSwapRequest_Initiate
- func (m *StatefulSwapRequest) GetRequest() isStatefulSwapRequest_Request
- func (x *StatefulSwapRequest) GetSubmitSignatures() *StatefulSwapRequest_SubmitSignatures
- func (*StatefulSwapRequest) ProtoMessage()
- func (x *StatefulSwapRequest) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapRequest) Reset()
- func (x *StatefulSwapRequest) String() string
- func (m *StatefulSwapRequest) Validate() error
- type StatefulSwapRequestValidationError
- func (e StatefulSwapRequestValidationError) Cause() error
- func (e StatefulSwapRequestValidationError) Error() string
- func (e StatefulSwapRequestValidationError) ErrorName() string
- func (e StatefulSwapRequestValidationError) Field() string
- func (e StatefulSwapRequestValidationError) Key() bool
- func (e StatefulSwapRequestValidationError) Reason() string
- type StatefulSwapRequest_Initiate
- func (*StatefulSwapRequest_Initiate) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapRequest_Initiate) GetCurrencyCreator() *StatefulSwapRequest_Initiate_CurrencyCreator
- func (m *StatefulSwapRequest_Initiate) GetKind() isStatefulSwapRequest_Initiate_Kind
- func (x *StatefulSwapRequest_Initiate) GetOwner() *v1.SolanaAccountId
- func (x *StatefulSwapRequest_Initiate) GetProofSignature() *v1.Signature
- func (x *StatefulSwapRequest_Initiate) GetSignature() *v1.Signature
- func (x *StatefulSwapRequest_Initiate) GetSwapAuthority() *v1.SolanaAccountId
- func (*StatefulSwapRequest_Initiate) ProtoMessage()
- func (x *StatefulSwapRequest_Initiate) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapRequest_Initiate) Reset()
- func (x *StatefulSwapRequest_Initiate) String() string
- func (m *StatefulSwapRequest_Initiate) Validate() error
- type StatefulSwapRequest_InitiateValidationError
- func (e StatefulSwapRequest_InitiateValidationError) Cause() error
- func (e StatefulSwapRequest_InitiateValidationError) Error() string
- func (e StatefulSwapRequest_InitiateValidationError) ErrorName() string
- func (e StatefulSwapRequest_InitiateValidationError) Field() string
- func (e StatefulSwapRequest_InitiateValidationError) Key() bool
- func (e StatefulSwapRequest_InitiateValidationError) Reason() string
- type StatefulSwapRequest_Initiate_
- type StatefulSwapRequest_Initiate_CurrencyCreator
- func (*StatefulSwapRequest_Initiate_CurrencyCreator) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetAmount() uint64
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetFromMint() *v1.SolanaAccountId
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingId() string
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingSource() FundingSource
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetId() *v1.SwapId
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetToMint() *v1.SolanaAccountId
- func (*StatefulSwapRequest_Initiate_CurrencyCreator) ProtoMessage()
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) Reset()
- func (x *StatefulSwapRequest_Initiate_CurrencyCreator) String() string
- func (m *StatefulSwapRequest_Initiate_CurrencyCreator) Validate() error
- type StatefulSwapRequest_Initiate_CurrencyCreatorValidationError
- func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Cause() error
- func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Error() string
- func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) ErrorName() string
- func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Field() string
- func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Key() bool
- func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Reason() string
- type StatefulSwapRequest_Initiate_CurrencyCreator_
- type StatefulSwapRequest_SubmitSignatures
- func (*StatefulSwapRequest_SubmitSignatures) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapRequest_SubmitSignatures) GetTransactionSignatures() []*v1.Signature
- func (*StatefulSwapRequest_SubmitSignatures) ProtoMessage()
- func (x *StatefulSwapRequest_SubmitSignatures) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapRequest_SubmitSignatures) Reset()
- func (x *StatefulSwapRequest_SubmitSignatures) String() string
- func (m *StatefulSwapRequest_SubmitSignatures) Validate() error
- type StatefulSwapRequest_SubmitSignaturesValidationError
- func (e StatefulSwapRequest_SubmitSignaturesValidationError) Cause() error
- func (e StatefulSwapRequest_SubmitSignaturesValidationError) Error() string
- func (e StatefulSwapRequest_SubmitSignaturesValidationError) ErrorName() string
- func (e StatefulSwapRequest_SubmitSignaturesValidationError) Field() string
- func (e StatefulSwapRequest_SubmitSignaturesValidationError) Key() bool
- func (e StatefulSwapRequest_SubmitSignaturesValidationError) Reason() string
- type StatefulSwapRequest_SubmitSignatures_
- type StatefulSwapResponse
- func (*StatefulSwapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapResponse) GetError() *StatefulSwapResponse_Error
- func (m *StatefulSwapResponse) GetResponse() isStatefulSwapResponse_Response
- func (x *StatefulSwapResponse) GetServerParameters() *StatefulSwapResponse_ServerParameters
- func (x *StatefulSwapResponse) GetSuccess() *StatefulSwapResponse_Success
- func (*StatefulSwapResponse) ProtoMessage()
- func (x *StatefulSwapResponse) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapResponse) Reset()
- func (x *StatefulSwapResponse) String() string
- func (m *StatefulSwapResponse) Validate() error
- type StatefulSwapResponseValidationError
- func (e StatefulSwapResponseValidationError) Cause() error
- func (e StatefulSwapResponseValidationError) Error() string
- func (e StatefulSwapResponseValidationError) ErrorName() string
- func (e StatefulSwapResponseValidationError) Field() string
- func (e StatefulSwapResponseValidationError) Key() bool
- func (e StatefulSwapResponseValidationError) Reason() string
- type StatefulSwapResponse_Error
- func (*StatefulSwapResponse_Error) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapResponse_Error) GetCode() StatefulSwapResponse_Error_Code
- func (x *StatefulSwapResponse_Error) GetErrorDetails() []*ErrorDetails
- func (*StatefulSwapResponse_Error) ProtoMessage()
- func (x *StatefulSwapResponse_Error) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapResponse_Error) Reset()
- func (x *StatefulSwapResponse_Error) String() string
- func (m *StatefulSwapResponse_Error) Validate() error
- type StatefulSwapResponse_ErrorValidationError
- func (e StatefulSwapResponse_ErrorValidationError) Cause() error
- func (e StatefulSwapResponse_ErrorValidationError) Error() string
- func (e StatefulSwapResponse_ErrorValidationError) ErrorName() string
- func (e StatefulSwapResponse_ErrorValidationError) Field() string
- func (e StatefulSwapResponse_ErrorValidationError) Key() bool
- func (e StatefulSwapResponse_ErrorValidationError) Reason() string
- type StatefulSwapResponse_Error_
- type StatefulSwapResponse_Error_Code
- func (StatefulSwapResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
- func (x StatefulSwapResponse_Error_Code) Enum() *StatefulSwapResponse_Error_Code
- func (StatefulSwapResponse_Error_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x StatefulSwapResponse_Error_Code) Number() protoreflect.EnumNumber
- func (x StatefulSwapResponse_Error_Code) String() string
- func (StatefulSwapResponse_Error_Code) Type() protoreflect.EnumType
- type StatefulSwapResponse_ServerParameters
- func (*StatefulSwapResponse_ServerParameters) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapResponse_ServerParameters) GetCurrencyCreator() *StatefulSwapResponse_ServerParameters_CurrencyCreator
- func (m *StatefulSwapResponse_ServerParameters) GetKind() isStatefulSwapResponse_ServerParameters_Kind
- func (*StatefulSwapResponse_ServerParameters) ProtoMessage()
- func (x *StatefulSwapResponse_ServerParameters) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapResponse_ServerParameters) Reset()
- func (x *StatefulSwapResponse_ServerParameters) String() string
- func (m *StatefulSwapResponse_ServerParameters) Validate() error
- type StatefulSwapResponse_ServerParametersValidationError
- func (e StatefulSwapResponse_ServerParametersValidationError) Cause() error
- func (e StatefulSwapResponse_ServerParametersValidationError) Error() string
- func (e StatefulSwapResponse_ServerParametersValidationError) ErrorName() string
- func (e StatefulSwapResponse_ServerParametersValidationError) Field() string
- func (e StatefulSwapResponse_ServerParametersValidationError) Key() bool
- func (e StatefulSwapResponse_ServerParametersValidationError) Reason() string
- type StatefulSwapResponse_ServerParameters_
- type StatefulSwapResponse_ServerParameters_CurrencyCreator
- func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetAlts() []*v1.SolanaAddressLookupTable
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash() *v1.Blockhash
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitLimit() uint32
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitPrice() uint64
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoValue() string
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryAccount() *v1.SolanaAccountId
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryIndex() uint32
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetNonce() *v1.SolanaAccountId
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetPayer() *v1.SolanaAccountId
- func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage()
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) Reset()
- func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) String() string
- func (m *StatefulSwapResponse_ServerParameters_CurrencyCreator) Validate() error
- type StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError
- func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Cause() error
- func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Error() string
- func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) ErrorName() string
- func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Field() string
- func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Key() bool
- func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Reason() string
- type StatefulSwapResponse_ServerParameters_CurrencyCreator_
- type StatefulSwapResponse_Success
- func (*StatefulSwapResponse_Success) Descriptor() ([]byte, []int)deprecated
- func (x *StatefulSwapResponse_Success) GetCode() StatefulSwapResponse_Success_Code
- func (*StatefulSwapResponse_Success) ProtoMessage()
- func (x *StatefulSwapResponse_Success) ProtoReflect() protoreflect.Message
- func (x *StatefulSwapResponse_Success) Reset()
- func (x *StatefulSwapResponse_Success) String() string
- func (m *StatefulSwapResponse_Success) Validate() error
- type StatefulSwapResponse_SuccessValidationError
- func (e StatefulSwapResponse_SuccessValidationError) Cause() error
- func (e StatefulSwapResponse_SuccessValidationError) Error() string
- func (e StatefulSwapResponse_SuccessValidationError) ErrorName() string
- func (e StatefulSwapResponse_SuccessValidationError) Field() string
- func (e StatefulSwapResponse_SuccessValidationError) Key() bool
- func (e StatefulSwapResponse_SuccessValidationError) Reason() string
- type StatefulSwapResponse_Success_
- type StatefulSwapResponse_Success_Code
- func (StatefulSwapResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
- func (x StatefulSwapResponse_Success_Code) Enum() *StatefulSwapResponse_Success_Code
- func (StatefulSwapResponse_Success_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x StatefulSwapResponse_Success_Code) Number() protoreflect.EnumNumber
- func (x StatefulSwapResponse_Success_Code) String() string
- func (StatefulSwapResponse_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 TransactionClient
- type TransactionServer
- type Transaction_StatefulSwapClient
- type Transaction_StatefulSwapServer
- type Transaction_SubmitIntentClient
- type Transaction_SubmitIntentServer
- 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) StatefulSwap(Transaction_StatefulSwapServer) error
- func (UnimplementedTransactionServer) SubmitIntent(Transaction_SubmitIntentServer) error
- func (UnimplementedTransactionServer) VoidGiftCard(context.Context, *VoidGiftCardRequest) (*VoidGiftCardResponse, error)
- type UnsafeTransactionServer
- type VerifiedCurrencyCreatorSwapMetadata
- func (*VerifiedCurrencyCreatorSwapMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *VerifiedCurrencyCreatorSwapMetadata) GetClientParameters() *StatefulSwapRequest_Initiate_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 VerifiedExchangeData
- func (*VerifiedExchangeData) Descriptor() ([]byte, []int)deprecated
- func (x *VerifiedExchangeData) GetCoreMintFiatExchangeRate() *v11.VerifiedCoreMintFiatExchangeRate
- func (x *VerifiedExchangeData) GetLaunchpadCurrencyReserveState() *v11.VerifiedLaunchpadCurrencyReserveState
- func (x *VerifiedExchangeData) GetMint() *v1.SolanaAccountId
- func (x *VerifiedExchangeData) GetNativeAmount() float64
- func (x *VerifiedExchangeData) GetQuarks() uint64
- func (*VerifiedExchangeData) ProtoMessage()
- func (x *VerifiedExchangeData) ProtoReflect() protoreflect.Message
- func (x *VerifiedExchangeData) Reset()
- func (x *VerifiedExchangeData) String() string
- func (m *VerifiedExchangeData) Validate() error
- type VerifiedExchangeDataValidationError
- func (e VerifiedExchangeDataValidationError) Cause() error
- func (e VerifiedExchangeDataValidationError) Error() string
- func (e VerifiedExchangeDataValidationError) ErrorName() string
- func (e VerifiedExchangeDataValidationError) Field() string
- func (e VerifiedExchangeDataValidationError) Key() bool
- func (e VerifiedExchangeDataValidationError) 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", 2: "FUNDING_SOURCE_EXTERNAL_WALLET", } FundingSource_value = map[string]int32{ "FUNDING_SOURCE_UNKNOWN": 0, "FUNDING_SOURCE_SUBMIT_INTENT": 1, "FUNDING_SOURCE_EXTERNAL_WALLET": 2, } )
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 ( StatefulSwapResponse_Success_Code_name = map[int32]string{ 0: "OK", } StatefulSwapResponse_Success_Code_value = map[string]int32{ "OK": 0, } )
Enum value maps for StatefulSwapResponse_Success_Code.
var ( StatefulSwapResponse_Error_Code_name = map[int32]string{ 0: "DENIED", 1: "SIGNATURE_ERROR", 2: "INVALID_SWAP", } StatefulSwapResponse_Error_Code_value = map[string]int32{ "DENIED": 0, "SIGNATURE_ERROR": 1, "INVALID_SWAP": 2, } )
Enum value maps for StatefulSwapResponse_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 ( 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: "StatefulSwap", Handler: _Transaction_StatefulSwap_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 fiat amount in a payment flow.
NativeAmount float64 `protobuf:"fixed64,3,opt,name=native_amount,json=nativeAmount,proto3" json:"native_amount,omitempty"`
// The exact amount of quarks being operated in a payment flow.
// This will be used as the source of truth for validating transfer amounts.
Quarks uint64 `protobuf:"varint,4,opt,name=quarks,proto3" json:"quarks,omitempty"`
// The crypto mint that is being operated against for the payment flow.
Mint *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=mint,proto3" json:"mint,omitempty"`
// contains filtered or unexported fields
}
ExchangeData defines an amount of crypto to use in a payment flow with fiat 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 fiat amount in a payment flow.
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 FundingSource_FUNDING_SOURCE_EXTERNAL_WALLET FundingSource = 2 )
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
//
// Types that are assignable to ExchangeData:
//
// *SendPublicPaymentMetadata_ServerExchangeData
// *SendPublicPaymentMetadata_ClientExchangeData
ExchangeData isSendPublicPaymentMetadata_ExchangeData `protobuf_oneof:"exchange_data"`
// 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) GetClientExchangeData ¶ added in v0.10.0
func (x *SendPublicPaymentMetadata) GetClientExchangeData() *VerifiedExchangeData
func (*SendPublicPaymentMetadata) GetDestination ¶
func (x *SendPublicPaymentMetadata) GetDestination() *v1.SolanaAccountId
func (*SendPublicPaymentMetadata) GetDestinationOwner ¶
func (x *SendPublicPaymentMetadata) GetDestinationOwner() *v1.SolanaAccountId
func (*SendPublicPaymentMetadata) GetExchangeData ¶
func (m *SendPublicPaymentMetadata) GetExchangeData() isSendPublicPaymentMetadata_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) GetServerExchangeData ¶ added in v0.10.0
func (x *SendPublicPaymentMetadata) GetServerExchangeData() *ExchangeData
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 SendPublicPaymentMetadata_ClientExchangeData ¶ added in v0.10.0
type SendPublicPaymentMetadata_ClientExchangeData struct {
// Provided by clients when submitting new intents
ClientExchangeData *VerifiedExchangeData `protobuf:"bytes,8,opt,name=client_exchange_data,json=clientExchangeData,proto3,oneof"`
}
type SendPublicPaymentMetadata_ServerExchangeData ¶ added in v0.10.0
type SendPublicPaymentMetadata_ServerExchangeData struct {
// Provided by server for submitted intents
ServerExchangeData *ExchangeData `protobuf:"bytes,4,opt,name=server_exchange_data,json=serverExchangeData,proto3,oneof"`
}
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 StatefulSwapRequest ¶ added in v0.7.0
type StatefulSwapRequest struct {
// Types that are assignable to Request:
//
// *StatefulSwapRequest_Initiate_
// *StatefulSwapRequest_SubmitSignatures_
Request isStatefulSwapRequest_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*StatefulSwapRequest) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapRequest.ProtoReflect.Descriptor instead.
func (*StatefulSwapRequest) GetInitiate ¶ added in v0.7.0
func (x *StatefulSwapRequest) GetInitiate() *StatefulSwapRequest_Initiate
func (*StatefulSwapRequest) GetRequest ¶ added in v0.7.0
func (m *StatefulSwapRequest) GetRequest() isStatefulSwapRequest_Request
func (*StatefulSwapRequest) GetSubmitSignatures ¶ added in v0.7.0
func (x *StatefulSwapRequest) GetSubmitSignatures() *StatefulSwapRequest_SubmitSignatures
func (*StatefulSwapRequest) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapRequest) ProtoMessage()
func (*StatefulSwapRequest) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapRequest) ProtoReflect() protoreflect.Message
func (*StatefulSwapRequest) Reset ¶ added in v0.7.0
func (x *StatefulSwapRequest) Reset()
func (*StatefulSwapRequest) String ¶ added in v0.7.0
func (x *StatefulSwapRequest) String() string
func (*StatefulSwapRequest) Validate ¶ added in v0.7.0
func (m *StatefulSwapRequest) Validate() error
Validate checks the field values on StatefulSwapRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapRequestValidationError ¶ added in v0.7.0
type StatefulSwapRequestValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapRequestValidationError is the validation error returned by StatefulSwapRequest.Validate if the designated constraints aren't met.
func (StatefulSwapRequestValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapRequestValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapRequestValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapRequestValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapRequestValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapRequestValidationError) Field() string
Field function returns field value.
func (StatefulSwapRequestValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapRequestValidationError) Key() bool
Key function returns key value.
func (StatefulSwapRequestValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapRequestValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapRequest_Initiate ¶ added in v0.7.0
type StatefulSwapRequest_Initiate struct {
// Types that are assignable to Kind:
//
// *StatefulSwapRequest_Initiate_CurrencyCreator_
Kind isStatefulSwapRequest_Initiate_Kind `protobuf_oneof:"kind"`
// The owner account starting the swap
Owner *v1.SolanaAccountId `protobuf:"bytes,9,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,10,opt,name=swap_authority,json=swapAuthority,proto3" json:"swap_authority,omitempty"`
// The signature of serialize(VerifiedSwapMetadata) for the swap being initiated.
ProofSignature *v1.Signature `protobuf:"bytes,11,opt,name=proof_signature,json=proofSignature,proto3" json:"proof_signature,omitempty"`
// The signature is of serialize(StatefulSwapRequest.Initiate) 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,12,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*StatefulSwapRequest_Initiate) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapRequest_Initiate) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapRequest_Initiate.ProtoReflect.Descriptor instead.
func (*StatefulSwapRequest_Initiate) GetCurrencyCreator ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) GetCurrencyCreator() *StatefulSwapRequest_Initiate_CurrencyCreator
func (*StatefulSwapRequest_Initiate) GetKind ¶ added in v0.7.0
func (m *StatefulSwapRequest_Initiate) GetKind() isStatefulSwapRequest_Initiate_Kind
func (*StatefulSwapRequest_Initiate) GetOwner ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) GetOwner() *v1.SolanaAccountId
func (*StatefulSwapRequest_Initiate) GetProofSignature ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) GetProofSignature() *v1.Signature
func (*StatefulSwapRequest_Initiate) GetSignature ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) GetSignature() *v1.Signature
func (*StatefulSwapRequest_Initiate) GetSwapAuthority ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) GetSwapAuthority() *v1.SolanaAccountId
func (*StatefulSwapRequest_Initiate) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapRequest_Initiate) ProtoMessage()
func (*StatefulSwapRequest_Initiate) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) ProtoReflect() protoreflect.Message
func (*StatefulSwapRequest_Initiate) Reset ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) Reset()
func (*StatefulSwapRequest_Initiate) String ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate) String() string
func (*StatefulSwapRequest_Initiate) Validate ¶ added in v0.7.0
func (m *StatefulSwapRequest_Initiate) Validate() error
Validate checks the field values on StatefulSwapRequest_Initiate with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapRequest_InitiateValidationError ¶ added in v0.7.0
type StatefulSwapRequest_InitiateValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapRequest_InitiateValidationError is the validation error returned by StatefulSwapRequest_Initiate.Validate if the designated constraints aren't met.
func (StatefulSwapRequest_InitiateValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapRequest_InitiateValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapRequest_InitiateValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapRequest_InitiateValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapRequest_InitiateValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapRequest_InitiateValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapRequest_InitiateValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapRequest_InitiateValidationError) Field() string
Field function returns field value.
func (StatefulSwapRequest_InitiateValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapRequest_InitiateValidationError) Key() bool
Key function returns key value.
func (StatefulSwapRequest_InitiateValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapRequest_InitiateValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapRequest_Initiate_ ¶ added in v0.7.0
type StatefulSwapRequest_Initiate_ struct {
Initiate *StatefulSwapRequest_Initiate `protobuf:"bytes,1,opt,name=initiate,proto3,oneof"`
}
type StatefulSwapRequest_Initiate_CurrencyCreator ¶ added in v0.7.0
type StatefulSwapRequest_Initiate_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 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"`
// 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 FUNDING_SOURCE_SUBMIT_INTENT, this value is the base58 encoded intent ID.
// For FUNDING_SOURCE_EXTERNAL_WALLET, this value is the base58 encoded transaction signature.
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 (*StatefulSwapRequest_Initiate_CurrencyCreator) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapRequest_Initiate_CurrencyCreator) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapRequest_Initiate_CurrencyCreator.ProtoReflect.Descriptor instead.
func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetAmount ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetAmount() uint64
func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetFromMint ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetFromMint() *v1.SolanaAccountId
func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingId ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingId() string
func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingSource ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingSource() FundingSource
func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetId ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetId() *v1.SwapId
func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetToMint ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) GetToMint() *v1.SolanaAccountId
func (*StatefulSwapRequest_Initiate_CurrencyCreator) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapRequest_Initiate_CurrencyCreator) ProtoMessage()
func (*StatefulSwapRequest_Initiate_CurrencyCreator) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) ProtoReflect() protoreflect.Message
func (*StatefulSwapRequest_Initiate_CurrencyCreator) Reset ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) Reset()
func (*StatefulSwapRequest_Initiate_CurrencyCreator) String ¶ added in v0.7.0
func (x *StatefulSwapRequest_Initiate_CurrencyCreator) String() string
func (*StatefulSwapRequest_Initiate_CurrencyCreator) Validate ¶ added in v0.7.0
func (m *StatefulSwapRequest_Initiate_CurrencyCreator) Validate() error
Validate checks the field values on StatefulSwapRequest_Initiate_CurrencyCreator with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapRequest_Initiate_CurrencyCreatorValidationError ¶ added in v0.7.0
type StatefulSwapRequest_Initiate_CurrencyCreatorValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapRequest_Initiate_CurrencyCreatorValidationError is the validation error returned by StatefulSwapRequest_Initiate_CurrencyCreator.Validate if the designated constraints aren't met.
func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Field() string
Field function returns field value.
func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Key() bool
Key function returns key value.
func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapRequest_Initiate_CurrencyCreator_ ¶ added in v0.7.0
type StatefulSwapRequest_Initiate_CurrencyCreator_ struct {
CurrencyCreator *StatefulSwapRequest_Initiate_CurrencyCreator `protobuf:"bytes,1,opt,name=currency_creator,json=currencyCreator,proto3,oneof"`
}
type StatefulSwapRequest_SubmitSignatures ¶ added in v0.7.0
type StatefulSwapRequest_SubmitSignatures struct {
// The signatures for the locally constructed swap transaction
TransactionSignatures []*v1.Signature `protobuf:"bytes,1,rep,name=transaction_signatures,json=transactionSignatures,proto3" json:"transaction_signatures,omitempty"`
// contains filtered or unexported fields
}
func (*StatefulSwapRequest_SubmitSignatures) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapRequest_SubmitSignatures) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapRequest_SubmitSignatures.ProtoReflect.Descriptor instead.
func (*StatefulSwapRequest_SubmitSignatures) GetTransactionSignatures ¶ added in v0.7.0
func (x *StatefulSwapRequest_SubmitSignatures) GetTransactionSignatures() []*v1.Signature
func (*StatefulSwapRequest_SubmitSignatures) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapRequest_SubmitSignatures) ProtoMessage()
func (*StatefulSwapRequest_SubmitSignatures) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapRequest_SubmitSignatures) ProtoReflect() protoreflect.Message
func (*StatefulSwapRequest_SubmitSignatures) Reset ¶ added in v0.7.0
func (x *StatefulSwapRequest_SubmitSignatures) Reset()
func (*StatefulSwapRequest_SubmitSignatures) String ¶ added in v0.7.0
func (x *StatefulSwapRequest_SubmitSignatures) String() string
func (*StatefulSwapRequest_SubmitSignatures) Validate ¶ added in v0.7.0
func (m *StatefulSwapRequest_SubmitSignatures) Validate() error
Validate checks the field values on StatefulSwapRequest_SubmitSignatures with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapRequest_SubmitSignaturesValidationError ¶ added in v0.7.0
type StatefulSwapRequest_SubmitSignaturesValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapRequest_SubmitSignaturesValidationError is the validation error returned by StatefulSwapRequest_SubmitSignatures.Validate if the designated constraints aren't met.
func (StatefulSwapRequest_SubmitSignaturesValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapRequest_SubmitSignaturesValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapRequest_SubmitSignaturesValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapRequest_SubmitSignaturesValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapRequest_SubmitSignaturesValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapRequest_SubmitSignaturesValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapRequest_SubmitSignaturesValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapRequest_SubmitSignaturesValidationError) Field() string
Field function returns field value.
func (StatefulSwapRequest_SubmitSignaturesValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapRequest_SubmitSignaturesValidationError) Key() bool
Key function returns key value.
func (StatefulSwapRequest_SubmitSignaturesValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapRequest_SubmitSignaturesValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapRequest_SubmitSignatures_ ¶ added in v0.7.0
type StatefulSwapRequest_SubmitSignatures_ struct {
SubmitSignatures *StatefulSwapRequest_SubmitSignatures `protobuf:"bytes,2,opt,name=submit_signatures,json=submitSignatures,proto3,oneof"`
}
type StatefulSwapResponse ¶ added in v0.7.0
type StatefulSwapResponse struct {
// Types that are assignable to Response:
//
// *StatefulSwapResponse_ServerParameters_
// *StatefulSwapResponse_Success_
// *StatefulSwapResponse_Error_
Response isStatefulSwapResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*StatefulSwapResponse) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse.ProtoReflect.Descriptor instead.
func (*StatefulSwapResponse) GetError ¶ added in v0.7.0
func (x *StatefulSwapResponse) GetError() *StatefulSwapResponse_Error
func (*StatefulSwapResponse) GetResponse ¶ added in v0.7.0
func (m *StatefulSwapResponse) GetResponse() isStatefulSwapResponse_Response
func (*StatefulSwapResponse) GetServerParameters ¶ added in v0.7.0
func (x *StatefulSwapResponse) GetServerParameters() *StatefulSwapResponse_ServerParameters
func (*StatefulSwapResponse) GetSuccess ¶ added in v0.7.0
func (x *StatefulSwapResponse) GetSuccess() *StatefulSwapResponse_Success
func (*StatefulSwapResponse) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapResponse) ProtoMessage()
func (*StatefulSwapResponse) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapResponse) ProtoReflect() protoreflect.Message
func (*StatefulSwapResponse) Reset ¶ added in v0.7.0
func (x *StatefulSwapResponse) Reset()
func (*StatefulSwapResponse) String ¶ added in v0.7.0
func (x *StatefulSwapResponse) String() string
func (*StatefulSwapResponse) Validate ¶ added in v0.7.0
func (m *StatefulSwapResponse) Validate() error
Validate checks the field values on StatefulSwapResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapResponseValidationError ¶ added in v0.7.0
type StatefulSwapResponseValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapResponseValidationError is the validation error returned by StatefulSwapResponse.Validate if the designated constraints aren't met.
func (StatefulSwapResponseValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapResponseValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapResponseValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapResponseValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapResponseValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapResponseValidationError) Field() string
Field function returns field value.
func (StatefulSwapResponseValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapResponseValidationError) Key() bool
Key function returns key value.
func (StatefulSwapResponseValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapResponseValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapResponse_Error ¶ added in v0.7.0
type StatefulSwapResponse_Error struct {
Code StatefulSwapResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.StatefulSwapResponse_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 (*StatefulSwapResponse_Error) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapResponse_Error) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse_Error.ProtoReflect.Descriptor instead.
func (*StatefulSwapResponse_Error) GetCode ¶ added in v0.7.0
func (x *StatefulSwapResponse_Error) GetCode() StatefulSwapResponse_Error_Code
func (*StatefulSwapResponse_Error) GetErrorDetails ¶ added in v0.7.0
func (x *StatefulSwapResponse_Error) GetErrorDetails() []*ErrorDetails
func (*StatefulSwapResponse_Error) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapResponse_Error) ProtoMessage()
func (*StatefulSwapResponse_Error) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapResponse_Error) ProtoReflect() protoreflect.Message
func (*StatefulSwapResponse_Error) Reset ¶ added in v0.7.0
func (x *StatefulSwapResponse_Error) Reset()
func (*StatefulSwapResponse_Error) String ¶ added in v0.7.0
func (x *StatefulSwapResponse_Error) String() string
func (*StatefulSwapResponse_Error) Validate ¶ added in v0.7.0
func (m *StatefulSwapResponse_Error) Validate() error
Validate checks the field values on StatefulSwapResponse_Error with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapResponse_ErrorValidationError ¶ added in v0.7.0
type StatefulSwapResponse_ErrorValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapResponse_ErrorValidationError is the validation error returned by StatefulSwapResponse_Error.Validate if the designated constraints aren't met.
func (StatefulSwapResponse_ErrorValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapResponse_ErrorValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapResponse_ErrorValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapResponse_ErrorValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapResponse_ErrorValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapResponse_ErrorValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapResponse_ErrorValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapResponse_ErrorValidationError) Field() string
Field function returns field value.
func (StatefulSwapResponse_ErrorValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapResponse_ErrorValidationError) Key() bool
Key function returns key value.
func (StatefulSwapResponse_ErrorValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapResponse_ErrorValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapResponse_Error_ ¶ added in v0.7.0
type StatefulSwapResponse_Error_ struct {
Error *StatefulSwapResponse_Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}
type StatefulSwapResponse_Error_Code ¶ added in v0.7.0
type StatefulSwapResponse_Error_Code int32
const ( // Denied by a guard (spam, money laundering, etc) StatefulSwapResponse_Error_DENIED StatefulSwapResponse_Error_Code = 0 // There is an issue with the provided proof or transaction signatures StatefulSwapResponse_Error_SIGNATURE_ERROR StatefulSwapResponse_Error_Code = 1 // The swap metadata failed server-side validation StatefulSwapResponse_Error_INVALID_SWAP StatefulSwapResponse_Error_Code = 2 )
func (StatefulSwapResponse_Error_Code) Descriptor ¶ added in v0.7.0
func (StatefulSwapResponse_Error_Code) Descriptor() protoreflect.EnumDescriptor
func (StatefulSwapResponse_Error_Code) Enum ¶ added in v0.7.0
func (x StatefulSwapResponse_Error_Code) Enum() *StatefulSwapResponse_Error_Code
func (StatefulSwapResponse_Error_Code) EnumDescriptor
deprecated
added in
v0.7.0
func (StatefulSwapResponse_Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse_Error_Code.Descriptor instead.
func (StatefulSwapResponse_Error_Code) Number ¶ added in v0.7.0
func (x StatefulSwapResponse_Error_Code) Number() protoreflect.EnumNumber
func (StatefulSwapResponse_Error_Code) String ¶ added in v0.7.0
func (x StatefulSwapResponse_Error_Code) String() string
func (StatefulSwapResponse_Error_Code) Type ¶ added in v0.7.0
func (StatefulSwapResponse_Error_Code) Type() protoreflect.EnumType
type StatefulSwapResponse_ServerParameters ¶ added in v0.7.0
type StatefulSwapResponse_ServerParameters struct {
// Types that are assignable to Kind:
//
// *StatefulSwapResponse_ServerParameters_CurrencyCreator_
Kind isStatefulSwapResponse_ServerParameters_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*StatefulSwapResponse_ServerParameters) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapResponse_ServerParameters) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse_ServerParameters.ProtoReflect.Descriptor instead.
func (*StatefulSwapResponse_ServerParameters) GetCurrencyCreator ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters) GetCurrencyCreator() *StatefulSwapResponse_ServerParameters_CurrencyCreator
func (*StatefulSwapResponse_ServerParameters) GetKind ¶ added in v0.7.0
func (m *StatefulSwapResponse_ServerParameters) GetKind() isStatefulSwapResponse_ServerParameters_Kind
func (*StatefulSwapResponse_ServerParameters) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapResponse_ServerParameters) ProtoMessage()
func (*StatefulSwapResponse_ServerParameters) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters) ProtoReflect() protoreflect.Message
func (*StatefulSwapResponse_ServerParameters) Reset ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters) Reset()
func (*StatefulSwapResponse_ServerParameters) String ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters) String() string
func (*StatefulSwapResponse_ServerParameters) Validate ¶ added in v0.7.0
func (m *StatefulSwapResponse_ServerParameters) Validate() error
Validate checks the field values on StatefulSwapResponse_ServerParameters with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapResponse_ServerParametersValidationError ¶ added in v0.7.0
type StatefulSwapResponse_ServerParametersValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapResponse_ServerParametersValidationError is the validation error returned by StatefulSwapResponse_ServerParameters.Validate if the designated constraints aren't met.
func (StatefulSwapResponse_ServerParametersValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParametersValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapResponse_ServerParametersValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParametersValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapResponse_ServerParametersValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParametersValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapResponse_ServerParametersValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParametersValidationError) Field() string
Field function returns field value.
func (StatefulSwapResponse_ServerParametersValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParametersValidationError) Key() bool
Key function returns key value.
func (StatefulSwapResponse_ServerParametersValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParametersValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapResponse_ServerParameters_ ¶ added in v0.7.0
type StatefulSwapResponse_ServerParameters_ struct {
ServerParameters *StatefulSwapResponse_ServerParameters `protobuf:"bytes,1,opt,name=server_parameters,json=serverParameters,proto3,oneof"`
}
type StatefulSwapResponse_ServerParameters_CurrencyCreator ¶ added in v0.7.0
type StatefulSwapResponse_ServerParameters_CurrencyCreator struct {
// Subisdizer account that will be paying for the swap
Payer *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
// The nonce that is reserved for use in the swap transaction
Nonce *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The blockhash that is reserved for use in the swap transaction
Blockhash *v1.Blockhash `protobuf:"bytes,3,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
// ALTs that should be used when constructing the versioned transaction
Alts []*v1.SolanaAddressLookupTable `protobuf:"bytes,4,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,5,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,6,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,7,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,8,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,9,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 (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse_ServerParameters_CurrencyCreator.ProtoReflect.Descriptor instead.
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetAlts ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetAlts() []*v1.SolanaAddressLookupTable
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash() *v1.Blockhash
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitLimit ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitLimit() uint32
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitPrice ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitPrice() uint64
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoValue ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoValue() string
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryAccount ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryAccount() *v1.SolanaAccountId
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryIndex ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryIndex() uint32
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetNonce ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetNonce() *v1.SolanaAccountId
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetPayer ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) GetPayer() *v1.SolanaAccountId
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage()
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect() protoreflect.Message
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Reset ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) Reset()
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) String ¶ added in v0.7.0
func (x *StatefulSwapResponse_ServerParameters_CurrencyCreator) String() string
func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Validate ¶ added in v0.7.0
func (m *StatefulSwapResponse_ServerParameters_CurrencyCreator) Validate() error
Validate checks the field values on StatefulSwapResponse_ServerParameters_CurrencyCreator with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError ¶ added in v0.7.0
type StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError is the validation error returned by StatefulSwapResponse_ServerParameters_CurrencyCreator.Validate if the designated constraints aren't met.
func (StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Cause ¶ added in v0.7.0
Cause function returns cause value.
func (StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Error ¶ added in v0.7.0
Error satisfies the builtin error interface
func (StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Field ¶ added in v0.7.0
Field function returns field value.
func (StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Key ¶ added in v0.7.0
Key function returns key value.
func (StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapResponse_ServerParameters_CurrencyCreatorValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapResponse_ServerParameters_CurrencyCreator_ ¶ added in v0.7.0
type StatefulSwapResponse_ServerParameters_CurrencyCreator_ struct {
CurrencyCreator *StatefulSwapResponse_ServerParameters_CurrencyCreator `protobuf:"bytes,1,opt,name=currency_creator,json=currencyCreator,proto3,oneof"`
}
type StatefulSwapResponse_Success ¶ added in v0.7.0
type StatefulSwapResponse_Success struct {
Code StatefulSwapResponse_Success_Code `protobuf:"varint,1,opt,name=code,proto3,enum=ocp.transaction.v1.StatefulSwapResponse_Success_Code" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*StatefulSwapResponse_Success) Descriptor
deprecated
added in
v0.7.0
func (*StatefulSwapResponse_Success) Descriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse_Success.ProtoReflect.Descriptor instead.
func (*StatefulSwapResponse_Success) GetCode ¶ added in v0.7.0
func (x *StatefulSwapResponse_Success) GetCode() StatefulSwapResponse_Success_Code
func (*StatefulSwapResponse_Success) ProtoMessage ¶ added in v0.7.0
func (*StatefulSwapResponse_Success) ProtoMessage()
func (*StatefulSwapResponse_Success) ProtoReflect ¶ added in v0.7.0
func (x *StatefulSwapResponse_Success) ProtoReflect() protoreflect.Message
func (*StatefulSwapResponse_Success) Reset ¶ added in v0.7.0
func (x *StatefulSwapResponse_Success) Reset()
func (*StatefulSwapResponse_Success) String ¶ added in v0.7.0
func (x *StatefulSwapResponse_Success) String() string
func (*StatefulSwapResponse_Success) Validate ¶ added in v0.7.0
func (m *StatefulSwapResponse_Success) Validate() error
Validate checks the field values on StatefulSwapResponse_Success with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatefulSwapResponse_SuccessValidationError ¶ added in v0.7.0
type StatefulSwapResponse_SuccessValidationError struct {
// contains filtered or unexported fields
}
StatefulSwapResponse_SuccessValidationError is the validation error returned by StatefulSwapResponse_Success.Validate if the designated constraints aren't met.
func (StatefulSwapResponse_SuccessValidationError) Cause ¶ added in v0.7.0
func (e StatefulSwapResponse_SuccessValidationError) Cause() error
Cause function returns cause value.
func (StatefulSwapResponse_SuccessValidationError) Error ¶ added in v0.7.0
func (e StatefulSwapResponse_SuccessValidationError) Error() string
Error satisfies the builtin error interface
func (StatefulSwapResponse_SuccessValidationError) ErrorName ¶ added in v0.7.0
func (e StatefulSwapResponse_SuccessValidationError) ErrorName() string
ErrorName returns error name.
func (StatefulSwapResponse_SuccessValidationError) Field ¶ added in v0.7.0
func (e StatefulSwapResponse_SuccessValidationError) Field() string
Field function returns field value.
func (StatefulSwapResponse_SuccessValidationError) Key ¶ added in v0.7.0
func (e StatefulSwapResponse_SuccessValidationError) Key() bool
Key function returns key value.
func (StatefulSwapResponse_SuccessValidationError) Reason ¶ added in v0.7.0
func (e StatefulSwapResponse_SuccessValidationError) Reason() string
Reason function returns reason value.
type StatefulSwapResponse_Success_ ¶ added in v0.7.0
type StatefulSwapResponse_Success_ struct {
Success *StatefulSwapResponse_Success `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}
type StatefulSwapResponse_Success_Code ¶ added in v0.7.0
type StatefulSwapResponse_Success_Code int32
const (
StatefulSwapResponse_Success_OK StatefulSwapResponse_Success_Code = 0
)
func (StatefulSwapResponse_Success_Code) Descriptor ¶ added in v0.7.0
func (StatefulSwapResponse_Success_Code) Descriptor() protoreflect.EnumDescriptor
func (StatefulSwapResponse_Success_Code) Enum ¶ added in v0.7.0
func (x StatefulSwapResponse_Success_Code) Enum() *StatefulSwapResponse_Success_Code
func (StatefulSwapResponse_Success_Code) EnumDescriptor
deprecated
added in
v0.7.0
func (StatefulSwapResponse_Success_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatefulSwapResponse_Success_Code.Descriptor instead.
func (StatefulSwapResponse_Success_Code) Number ¶ added in v0.7.0
func (x StatefulSwapResponse_Success_Code) Number() protoreflect.EnumNumber
func (StatefulSwapResponse_Success_Code) String ¶ added in v0.7.0
func (x StatefulSwapResponse_Success_Code) String() string
func (StatefulSwapResponse_Success_Code) Type ¶ added in v0.7.0
func (StatefulSwapResponse_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 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)
// StatefulSwap swaps tokens using a non-custodial state-management system.
// The high-level flow mirrors SubmitIntent closely. However, due to the
// unreliability of swaps, they do not fit within the broader intent system.
// This results in a few key differences:
// - Client is (potentially) involved in additional steps to complete the
// swap within the state machine
// - Transactions are submitted on a best-effort basis outside of the Code
// Sequencer
// - Balance changes are applied after the transaction has finalized
//
// Swap transaction signatures are collected up-front. They are executed once the
// swap is funded.
StatefulSwap(ctx context.Context, opts ...grpc.CallOption) (Transaction_StatefulSwapClient, error)
// GetSwap gets metadata for a swap
GetSwap(ctx context.Context, in *GetSwapRequest, opts ...grpc.CallOption) (*GetSwapResponse, error)
// GetPendingSwaps gets swaps that are pending client actions which include:
// - Swaps that need a call to SubmitIntent to fund the VM swap PDA
GetPendingSwaps(ctx context.Context, in *GetPendingSwapsRequest, opts ...grpc.CallOption) (*GetPendingSwapsResponse, 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)
// StatefulSwap swaps tokens using a non-custodial state-management system.
// The high-level flow mirrors SubmitIntent closely. However, due to the
// unreliability of swaps, they do not fit within the broader intent system.
// This results in a few key differences:
// - Client is (potentially) involved in additional steps to complete the
// swap within the state machine
// - Transactions are submitted on a best-effort basis outside of the Code
// Sequencer
// - Balance changes are applied after the transaction has finalized
//
// Swap transaction signatures are collected up-front. They are executed once the
// swap is funded.
StatefulSwap(Transaction_StatefulSwapServer) error
// GetSwap gets metadata for a swap
GetSwap(context.Context, *GetSwapRequest) (*GetSwapResponse, error)
// GetPendingSwaps gets swaps that are pending client actions which include:
// - Swaps that need a call to SubmitIntent to fund the VM swap PDA
GetPendingSwaps(context.Context, *GetPendingSwapsRequest) (*GetPendingSwapsResponse, error)
// contains filtered or unexported methods
}
TransactionServer is the server API for Transaction service. All implementations must embed UnimplementedTransactionServer for forward compatibility
type Transaction_StatefulSwapClient ¶ added in v0.7.0
type Transaction_StatefulSwapClient interface {
Send(*StatefulSwapRequest) error
Recv() (*StatefulSwapResponse, error)
grpc.ClientStream
}
type Transaction_StatefulSwapServer ¶ added in v0.7.0
type Transaction_StatefulSwapServer interface {
Send(*StatefulSwapResponse) error
Recv() (*StatefulSwapRequest, 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 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) StatefulSwap ¶ added in v0.7.0
func (UnimplementedTransactionServer) StatefulSwap(Transaction_StatefulSwapServer) error
func (UnimplementedTransactionServer) SubmitIntent ¶
func (UnimplementedTransactionServer) SubmitIntent(Transaction_SubmitIntentServer) 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 StatefulSwap RPC
ClientParameters *StatefulSwapRequest_Initiate_CurrencyCreator `protobuf:"bytes,1,opt,name=client_parameters,json=clientParameters,proto3" json:"client_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() *StatefulSwapRequest_Initiate_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 VerifiedExchangeData ¶ added in v0.10.0
type VerifiedExchangeData struct {
// The crypto mint that is being operated against for the payment flow.
Mint *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=mint,proto3" json:"mint,omitempty"`
// The exact amount of quarks being operated in a payment flow.
// This will be used as the source of truth for validating transfer amounts.
Quarks uint64 `protobuf:"varint,2,opt,name=quarks,proto3" json:"quarks,omitempty"`
// The agreed upon fiat amount in a payment flow.
NativeAmount float64 `protobuf:"fixed64,3,opt,name=native_amount,json=nativeAmount,proto3" json:"native_amount,omitempty"`
// Verified core mint fiat exchange rate used to compute the exchange data
//
// Required when operating against:
// - Core mint
// - Launchpad currency
CoreMintFiatExchangeRate *v11.VerifiedCoreMintFiatExchangeRate `` /* 139-byte string literal not displayed */
// Verified launchpad currency reserve state used to compute the exchange data
//
// Required when operating against:
// - Launchpad currency
LaunchpadCurrencyReserveState *v11.VerifiedLaunchpadCurrencyReserveState `` /* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
VerifiedExchangeData defines an amount of crypto to use in a payment flow with verified server-state for provable fiat exchange data
func (*VerifiedExchangeData) Descriptor
deprecated
added in
v0.10.0
func (*VerifiedExchangeData) Descriptor() ([]byte, []int)
Deprecated: Use VerifiedExchangeData.ProtoReflect.Descriptor instead.
func (*VerifiedExchangeData) GetCoreMintFiatExchangeRate ¶ added in v0.10.0
func (x *VerifiedExchangeData) GetCoreMintFiatExchangeRate() *v11.VerifiedCoreMintFiatExchangeRate
func (*VerifiedExchangeData) GetLaunchpadCurrencyReserveState ¶ added in v0.10.0
func (x *VerifiedExchangeData) GetLaunchpadCurrencyReserveState() *v11.VerifiedLaunchpadCurrencyReserveState
func (*VerifiedExchangeData) GetMint ¶ added in v0.10.0
func (x *VerifiedExchangeData) GetMint() *v1.SolanaAccountId
func (*VerifiedExchangeData) GetNativeAmount ¶ added in v0.10.0
func (x *VerifiedExchangeData) GetNativeAmount() float64
func (*VerifiedExchangeData) GetQuarks ¶ added in v0.10.0
func (x *VerifiedExchangeData) GetQuarks() uint64
func (*VerifiedExchangeData) ProtoMessage ¶ added in v0.10.0
func (*VerifiedExchangeData) ProtoMessage()
func (*VerifiedExchangeData) ProtoReflect ¶ added in v0.10.0
func (x *VerifiedExchangeData) ProtoReflect() protoreflect.Message
func (*VerifiedExchangeData) Reset ¶ added in v0.10.0
func (x *VerifiedExchangeData) Reset()
func (*VerifiedExchangeData) String ¶ added in v0.10.0
func (x *VerifiedExchangeData) String() string
func (*VerifiedExchangeData) Validate ¶ added in v0.10.0
func (m *VerifiedExchangeData) Validate() error
Validate checks the field values on VerifiedExchangeData with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VerifiedExchangeDataValidationError ¶ added in v0.10.0
type VerifiedExchangeDataValidationError struct {
// contains filtered or unexported fields
}
VerifiedExchangeDataValidationError is the validation error returned by VerifiedExchangeData.Validate if the designated constraints aren't met.
func (VerifiedExchangeDataValidationError) Cause ¶ added in v0.10.0
func (e VerifiedExchangeDataValidationError) Cause() error
Cause function returns cause value.
func (VerifiedExchangeDataValidationError) Error ¶ added in v0.10.0
func (e VerifiedExchangeDataValidationError) Error() string
Error satisfies the builtin error interface
func (VerifiedExchangeDataValidationError) ErrorName ¶ added in v0.10.0
func (e VerifiedExchangeDataValidationError) ErrorName() string
ErrorName returns error name.
func (VerifiedExchangeDataValidationError) Field ¶ added in v0.10.0
func (e VerifiedExchangeDataValidationError) Field() string
Field function returns field value.
func (VerifiedExchangeDataValidationError) Key ¶ added in v0.10.0
func (e VerifiedExchangeDataValidationError) Key() bool
Key function returns key value.
func (VerifiedExchangeDataValidationError) Reason ¶ added in v0.10.0
func (e VerifiedExchangeDataValidationError) 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