transaction

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	GetLimitsResponse_Result_name = map[int32]string{
		0: "OK",
	}
	GetLimitsResponse_Result_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for GetLimitsResponse_Result.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	DeniedErrorDetails_Code_name = map[int32]string{
		0: "UNSPECIFIED",
	}
	DeniedErrorDetails_Code_value = map[string]int32{
		"UNSPECIFIED": 0,
	}
)

Enum value maps for DeniedErrorDetails_Code.

View Source
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.

View Source
var File_transaction_v1_transaction_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetFeePayment

func (x *Action) GetFeePayment() *FeePaymentAction

func (*Action) GetId

func (x *Action) GetId() uint32

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) GetType

func (m *Action) GetType() isAction_Type

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

func (*Action) Validate

func (m *Action) Validate() error

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

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

Cause function returns cause value.

func (AirdropRequestValidationError) Error

Error satisfies the builtin error interface

func (AirdropRequestValidationError) ErrorName

func (e AirdropRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AirdropRequestValidationError) Field

Field function returns field value.

func (AirdropRequestValidationError) Key

Key function returns key value.

func (AirdropRequestValidationError) Reason

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

Cause function returns cause value.

func (AirdropResponseValidationError) Error

Error satisfies the builtin error interface

func (AirdropResponseValidationError) ErrorName

func (e AirdropResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AirdropResponseValidationError) Field

Field function returns field value.

func (AirdropResponseValidationError) Key

Key function returns key value.

func (AirdropResponseValidationError) Reason

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) Enum

func (AirdropResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use AirdropResponse_Result.Descriptor instead.

func (AirdropResponse_Result) Number

func (AirdropResponse_Result) String

func (x AirdropResponse_Result) String() string

func (AirdropResponse_Result) Type

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) 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

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 (*CanWithdrawToAccountRequest) GetMint

func (*CanWithdrawToAccountRequest) ProtoMessage

func (*CanWithdrawToAccountRequest) ProtoMessage()

func (*CanWithdrawToAccountRequest) ProtoReflect

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

Cause function returns cause value.

func (CanWithdrawToAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (CanWithdrawToAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (CanWithdrawToAccountRequestValidationError) Field

Field function returns field value.

func (CanWithdrawToAccountRequestValidationError) Key

Key function returns key value.

func (CanWithdrawToAccountRequestValidationError) Reason

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 (*CanWithdrawToAccountResponse) GetFeeAmount

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 (*CanWithdrawToAccountResponse) Reset

func (x *CanWithdrawToAccountResponse) Reset()

func (*CanWithdrawToAccountResponse) 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

Cause function returns cause value.

func (CanWithdrawToAccountResponseValidationError) Error

Error satisfies the builtin error interface

func (CanWithdrawToAccountResponseValidationError) ErrorName

ErrorName returns error name.

func (CanWithdrawToAccountResponseValidationError) Field

Field function returns field value.

func (CanWithdrawToAccountResponseValidationError) Key

Key function returns key value.

func (CanWithdrawToAccountResponseValidationError) Reason

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) Enum

func (CanWithdrawToAccountResponse_AccountType) EnumDescriptor deprecated

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

Deprecated: Use CanWithdrawToAccountResponse_AccountType.Descriptor instead.

func (CanWithdrawToAccountResponse_AccountType) Number

func (CanWithdrawToAccountResponse_AccountType) String

func (CanWithdrawToAccountResponse_AccountType) Type

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 (*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

Cause function returns cause value.

func (DeniedErrorDetailsValidationError) Error

Error satisfies the builtin error interface

func (DeniedErrorDetailsValidationError) ErrorName

ErrorName returns error name.

func (DeniedErrorDetailsValidationError) Field

Field function returns field value.

func (DeniedErrorDetailsValidationError) Key

Key function returns key value.

func (DeniedErrorDetailsValidationError) Reason

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) Enum

func (DeniedErrorDetails_Code) EnumDescriptor deprecated

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

Deprecated: Use DeniedErrorDetails_Code.Descriptor instead.

func (DeniedErrorDetails_Code) Number

func (DeniedErrorDetails_Code) String

func (x DeniedErrorDetails_Code) String() string

func (DeniedErrorDetails_Code) Type

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

Cause function returns cause value.

func (ErrorDetailsValidationError) Error

Error satisfies the builtin error interface

func (ErrorDetailsValidationError) ErrorName

func (e ErrorDetailsValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorDetailsValidationError) Field

Field function returns field value.

func (ErrorDetailsValidationError) Key

Key function returns key value.

func (ErrorDetailsValidationError) Reason

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

Cause function returns cause value.

func (ExchangeDataValidationError) Error

Error satisfies the builtin error interface

func (ExchangeDataValidationError) ErrorName

func (e ExchangeDataValidationError) ErrorName() string

ErrorName returns error name.

func (ExchangeDataValidationError) Field

Field function returns field value.

func (ExchangeDataValidationError) Key

Key function returns key value.

func (ExchangeDataValidationError) Reason

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

Cause function returns cause value.

func (ExchangeDataWithoutRateValidationError) Error

Error satisfies the builtin error interface

func (ExchangeDataWithoutRateValidationError) ErrorName

ErrorName returns error name.

func (ExchangeDataWithoutRateValidationError) Field

Field function returns field value.

func (ExchangeDataWithoutRateValidationError) Key

Key function returns key value.

func (ExchangeDataWithoutRateValidationError) Reason

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 (*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

Cause function returns cause value.

func (FeePaymentActionValidationError) Error

Error satisfies the builtin error interface

func (FeePaymentActionValidationError) ErrorName

ErrorName returns error name.

func (FeePaymentActionValidationError) Field

Field function returns field value.

func (FeePaymentActionValidationError) Key

Key function returns key value.

func (FeePaymentActionValidationError) Reason

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) Enum

func (FeePaymentAction_FeeType) EnumDescriptor deprecated

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

Deprecated: Use FeePaymentAction_FeeType.Descriptor instead.

func (FeePaymentAction_FeeType) Number

func (FeePaymentAction_FeeType) String

func (x FeePaymentAction_FeeType) String() string

func (FeePaymentAction_FeeType) Type

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 (*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

Cause function returns cause value.

func (FeePaymentServerParameterValidationError) Error

Error satisfies the builtin error interface

func (FeePaymentServerParameterValidationError) ErrorName

ErrorName returns error name.

func (FeePaymentServerParameterValidationError) Field

Field function returns field value.

func (FeePaymentServerParameterValidationError) Key

Key function returns key value.

func (FeePaymentServerParameterValidationError) Reason

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) Enum

func (x FundingSource) Enum() *FundingSource

func (FundingSource) EnumDescriptor deprecated

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

Deprecated: Use FundingSource.Descriptor instead.

func (FundingSource) Number

func (FundingSource) String

func (x FundingSource) String() string

func (FundingSource) Type

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 (*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

Cause function returns cause value.

func (GetIntentMetadataRequestValidationError) Error

Error satisfies the builtin error interface

func (GetIntentMetadataRequestValidationError) ErrorName

ErrorName returns error name.

func (GetIntentMetadataRequestValidationError) Field

Field function returns field value.

func (GetIntentMetadataRequestValidationError) Key

Key function returns key value.

func (GetIntentMetadataRequestValidationError) Reason

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 (*GetIntentMetadataResponse) ProtoMessage

func (*GetIntentMetadataResponse) ProtoMessage()

func (*GetIntentMetadataResponse) ProtoReflect

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

Cause function returns cause value.

func (GetIntentMetadataResponseValidationError) Error

Error satisfies the builtin error interface

func (GetIntentMetadataResponseValidationError) ErrorName

ErrorName returns error name.

func (GetIntentMetadataResponseValidationError) Field

Field function returns field value.

func (GetIntentMetadataResponseValidationError) Key

Key function returns key value.

func (GetIntentMetadataResponseValidationError) Reason

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) Enum

func (GetIntentMetadataResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetIntentMetadataResponse_Result.Descriptor instead.

func (GetIntentMetadataResponse_Result) Number

func (GetIntentMetadataResponse_Result) String

func (GetIntentMetadataResponse_Result) Type

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

Cause function returns cause value.

func (GetLimitsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetLimitsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetLimitsRequestValidationError) Field

Field function returns field value.

func (GetLimitsRequestValidationError) Key

Key function returns key value.

func (GetLimitsRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (GetLimitsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetLimitsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetLimitsResponseValidationError) Field

Field function returns field value.

func (GetLimitsResponseValidationError) Key

Key function returns key value.

func (GetLimitsResponseValidationError) Reason

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) Enum

func (GetLimitsResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetLimitsResponse_Result.Descriptor instead.

func (GetLimitsResponse_Result) Number

func (GetLimitsResponse_Result) String

func (x GetLimitsResponse_Result) String() string

func (GetLimitsResponse_Result) Type

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

Cause function returns cause value.

func (GetPendingSwapsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPendingSwapsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPendingSwapsRequestValidationError) Field

Field function returns field value.

func (GetPendingSwapsRequestValidationError) Key

Key function returns key value.

func (GetPendingSwapsRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (GetPendingSwapsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPendingSwapsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPendingSwapsResponseValidationError) Field

Field function returns field value.

func (GetPendingSwapsResponseValidationError) Key

Key function returns key value.

func (GetPendingSwapsResponseValidationError) Reason

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) Enum

func (GetPendingSwapsResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetPendingSwapsResponse_Result.Descriptor instead.

func (GetPendingSwapsResponse_Result) Number

func (GetPendingSwapsResponse_Result) String

func (GetPendingSwapsResponse_Result) Type

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

Cause function returns cause value.

func (GetSwapRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSwapRequestValidationError) ErrorName

func (e GetSwapRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetSwapRequestValidationError) Field

Field function returns field value.

func (GetSwapRequestValidationError) Key

Key function returns key value.

func (GetSwapRequestValidationError) Reason

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

Cause function returns cause value.

func (GetSwapResponseValidationError) Error

Error satisfies the builtin error interface

func (GetSwapResponseValidationError) ErrorName

func (e GetSwapResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetSwapResponseValidationError) Field

Field function returns field value.

func (GetSwapResponseValidationError) Key

Key function returns key value.

func (GetSwapResponseValidationError) Reason

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) Enum

func (GetSwapResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetSwapResponse_Result.Descriptor instead.

func (GetSwapResponse_Result) Number

func (GetSwapResponse_Result) String

func (x GetSwapResponse_Result) String() string

func (GetSwapResponse_Result) Type

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 (*InvalidSignatureErrorDetails) Reset

func (x *InvalidSignatureErrorDetails) Reset()

func (*InvalidSignatureErrorDetails) 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

Cause function returns cause value.

func (InvalidSignatureErrorDetailsValidationError) Error

Error satisfies the builtin error interface

func (InvalidSignatureErrorDetailsValidationError) ErrorName

ErrorName returns error name.

func (InvalidSignatureErrorDetailsValidationError) Field

Field function returns field value.

func (InvalidSignatureErrorDetailsValidationError) Key

Key function returns key value.

func (InvalidSignatureErrorDetailsValidationError) Reason

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 InvalidSignatureErrorDetails_ExpectedVixnHash

type InvalidSignatureErrorDetails_ExpectedVixnHash struct {
	// The virtual ixn hash the server expected to have signed.
	ExpectedVixnHash *v1.Hash `protobuf:"bytes,4,opt,name=expected_vixn_hash,json=expectedVixnHash,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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

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) GetType

func (m *Metadata) GetType() isMetadata_Type

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) Validate

func (m *Metadata) Validate() error

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

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 (*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

Cause function returns cause value.

func (NoPrivacyTransferActionValidationError) Error

Error satisfies the builtin error interface

func (NoPrivacyTransferActionValidationError) ErrorName

ErrorName returns error name.

func (NoPrivacyTransferActionValidationError) Field

Field function returns field value.

func (NoPrivacyTransferActionValidationError) Key

Key function returns key value.

func (NoPrivacyTransferActionValidationError) Reason

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 (*NoPrivacyTransferServerParameter) Reset

func (*NoPrivacyTransferServerParameter) String

func (*NoPrivacyTransferServerParameter) Validate

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

Cause function returns cause value.

func (NoPrivacyTransferServerParameterValidationError) Error

Error satisfies the builtin error interface

func (NoPrivacyTransferServerParameterValidationError) ErrorName

ErrorName returns error name.

func (NoPrivacyTransferServerParameterValidationError) Field

Field function returns field value.

func (NoPrivacyTransferServerParameterValidationError) Key

Key function returns key value.

func (NoPrivacyTransferServerParameterValidationError) Reason

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 (*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

Cause function returns cause value.

func (NoPrivacyWithdrawActionValidationError) Error

Error satisfies the builtin error interface

func (NoPrivacyWithdrawActionValidationError) ErrorName

ErrorName returns error name.

func (NoPrivacyWithdrawActionValidationError) Field

Field function returns field value.

func (NoPrivacyWithdrawActionValidationError) Key

Key function returns key value.

func (NoPrivacyWithdrawActionValidationError) Reason

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 (*NoPrivacyWithdrawServerParameter) Reset

func (*NoPrivacyWithdrawServerParameter) String

func (*NoPrivacyWithdrawServerParameter) Validate

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

Cause function returns cause value.

func (NoPrivacyWithdrawServerParameterValidationError) Error

Error satisfies the builtin error interface

func (NoPrivacyWithdrawServerParameterValidationError) ErrorName

ErrorName returns error name.

func (NoPrivacyWithdrawServerParameterValidationError) Field

Field function returns field value.

func (NoPrivacyWithdrawServerParameterValidationError) Key

Key function returns key value.

func (NoPrivacyWithdrawServerParameterValidationError) Reason

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 (*NoncedTransactionMetadata) ProtoMessage

func (*NoncedTransactionMetadata) ProtoMessage()

func (*NoncedTransactionMetadata) ProtoReflect

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

Cause function returns cause value.

func (NoncedTransactionMetadataValidationError) Error

Error satisfies the builtin error interface

func (NoncedTransactionMetadataValidationError) ErrorName

ErrorName returns error name.

func (NoncedTransactionMetadataValidationError) Field

Field function returns field value.

func (NoncedTransactionMetadataValidationError) Key

Key function returns key value.

func (NoncedTransactionMetadataValidationError) Reason

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

Cause function returns cause value.

func (OpenAccountActionValidationError) Error

Error satisfies the builtin error interface

func (OpenAccountActionValidationError) ErrorName

ErrorName returns error name.

func (OpenAccountActionValidationError) Field

Field function returns field value.

func (OpenAccountActionValidationError) Key

Key function returns key value.

func (OpenAccountActionValidationError) Reason

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 (*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

Cause function returns cause value.

func (OpenAccountServerParameterValidationError) Error

Error satisfies the builtin error interface

func (OpenAccountServerParameterValidationError) ErrorName

ErrorName returns error name.

func (OpenAccountServerParameterValidationError) Field

Field function returns field value.

func (OpenAccountServerParameterValidationError) Key

Key function returns key value.

func (OpenAccountServerParameterValidationError) Reason

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 (*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

Cause function returns cause value.

func (OpenAccountsMetadataValidationError) Error

Error satisfies the builtin error interface

func (OpenAccountsMetadataValidationError) ErrorName

ErrorName returns error name.

func (OpenAccountsMetadataValidationError) Field

Field function returns field value.

func (OpenAccountsMetadataValidationError) Key

Key function returns key value.

func (OpenAccountsMetadataValidationError) Reason

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) Enum

func (OpenAccountsMetadata_AccountSet) EnumDescriptor deprecated

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

Deprecated: Use OpenAccountsMetadata_AccountSet.Descriptor instead.

func (OpenAccountsMetadata_AccountSet) Number

func (OpenAccountsMetadata_AccountSet) String

func (OpenAccountsMetadata_AccountSet) Type

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 (*PublicDistributionMetadata) GetMint

func (*PublicDistributionMetadata) GetSource

func (*PublicDistributionMetadata) ProtoMessage

func (*PublicDistributionMetadata) ProtoMessage()

func (*PublicDistributionMetadata) ProtoReflect

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

Cause function returns cause value.

func (PublicDistributionMetadataValidationError) Error

Error satisfies the builtin error interface

func (PublicDistributionMetadataValidationError) ErrorName

ErrorName returns error name.

func (PublicDistributionMetadataValidationError) Field

Field function returns field value.

func (PublicDistributionMetadataValidationError) Key

Key function returns key value.

func (PublicDistributionMetadataValidationError) Reason

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 (*PublicDistributionMetadata_Distribution) GetQuarks

func (*PublicDistributionMetadata_Distribution) ProtoMessage

func (*PublicDistributionMetadata_Distribution) ProtoReflect

func (*PublicDistributionMetadata_Distribution) Reset

func (*PublicDistributionMetadata_Distribution) String

func (*PublicDistributionMetadata_Distribution) Validate

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

Cause function returns cause value.

func (PublicDistributionMetadata_DistributionValidationError) Error

Error satisfies the builtin error interface

func (PublicDistributionMetadata_DistributionValidationError) ErrorName

ErrorName returns error name.

func (PublicDistributionMetadata_DistributionValidationError) Field

Field function returns field value.

func (PublicDistributionMetadata_DistributionValidationError) Key

Key function returns key value.

func (PublicDistributionMetadata_DistributionValidationError) Reason

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

Cause function returns cause value.

func (ReasonStringErrorDetailsValidationError) Error

Error satisfies the builtin error interface

func (ReasonStringErrorDetailsValidationError) ErrorName

ErrorName returns error name.

func (ReasonStringErrorDetailsValidationError) Field

Field function returns field value.

func (ReasonStringErrorDetailsValidationError) Key

Key function returns key value.

func (ReasonStringErrorDetailsValidationError) Reason

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 (*ReceivePaymentsPubliclyMetadata) GetQuarks

func (x *ReceivePaymentsPubliclyMetadata) GetQuarks() uint64

func (*ReceivePaymentsPubliclyMetadata) GetSource

func (*ReceivePaymentsPubliclyMetadata) ProtoMessage

func (*ReceivePaymentsPubliclyMetadata) ProtoMessage()

func (*ReceivePaymentsPubliclyMetadata) ProtoReflect

func (*ReceivePaymentsPubliclyMetadata) Reset

func (*ReceivePaymentsPubliclyMetadata) 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

Cause function returns cause value.

func (ReceivePaymentsPubliclyMetadataValidationError) Error

Error satisfies the builtin error interface

func (ReceivePaymentsPubliclyMetadataValidationError) ErrorName

ErrorName returns error name.

func (ReceivePaymentsPubliclyMetadataValidationError) Field

Field function returns field value.

func (ReceivePaymentsPubliclyMetadataValidationError) Key

Key function returns key value.

func (ReceivePaymentsPubliclyMetadataValidationError) Reason

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

Deprecated: Use SendLimit.ProtoReflect.Descriptor instead.

func (*SendLimit) GetMaxPerDay

func (x *SendLimit) GetMaxPerDay() float32

func (*SendLimit) GetMaxPerTransaction

func (x *SendLimit) GetMaxPerTransaction() float32

func (*SendLimit) GetNextTransaction

func (x *SendLimit) GetNextTransaction() float32

func (*SendLimit) ProtoMessage

func (*SendLimit) ProtoMessage()

func (*SendLimit) ProtoReflect

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

func (*SendLimit) Reset

func (x *SendLimit) Reset()

func (*SendLimit) String

func (x *SendLimit) String() string

func (*SendLimit) Validate

func (m *SendLimit) Validate() error

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

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

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 (*SendPublicPaymentMetadata) GetServerExchangeData added in v0.10.0

func (x *SendPublicPaymentMetadata) GetServerExchangeData() *ExchangeData

func (*SendPublicPaymentMetadata) GetSource

func (*SendPublicPaymentMetadata) ProtoMessage

func (*SendPublicPaymentMetadata) ProtoMessage()

func (*SendPublicPaymentMetadata) ProtoReflect

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

Cause function returns cause value.

func (SendPublicPaymentMetadataValidationError) Error

Error satisfies the builtin error interface

func (SendPublicPaymentMetadataValidationError) ErrorName

ErrorName returns error name.

func (SendPublicPaymentMetadataValidationError) Field

Field function returns field value.

func (SendPublicPaymentMetadataValidationError) Key

Key function returns key value.

func (SendPublicPaymentMetadataValidationError) Reason

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

Cause function returns cause value.

func (ServerParameterValidationError) Error

Error satisfies the builtin error interface

func (ServerParameterValidationError) ErrorName

func (e ServerParameterValidationError) ErrorName() string

ErrorName returns error name.

func (ServerParameterValidationError) Field

Field function returns field value.

func (ServerParameterValidationError) Key

Key function returns key value.

func (ServerParameterValidationError) Reason

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 (*StatefulSwapRequest) GetRequest added in v0.7.0

func (m *StatefulSwapRequest) GetRequest() isStatefulSwapRequest_Request

func (*StatefulSwapRequest) GetSubmitSignatures added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapRequestValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapRequestValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapRequestValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapRequestValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapRequestValidationError) Reason added in v0.7.0

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 (*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 (*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 (*StatefulSwapRequest_Initiate) Reset added in v0.7.0

func (x *StatefulSwapRequest_Initiate) Reset()

func (*StatefulSwapRequest_Initiate) String added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapRequest_InitiateValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapRequest_InitiateValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapRequest_InitiateValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapRequest_InitiateValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapRequest_InitiateValidationError) Reason added in v0.7.0

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

Deprecated: Use StatefulSwapRequest_Initiate_CurrencyCreator.ProtoReflect.Descriptor instead.

func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetAmount added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetFromMint added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingId added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetFundingSource added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetId added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) GetToMint added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) ProtoMessage added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) ProtoReflect added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) Reset added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) String added in v0.7.0

func (*StatefulSwapRequest_Initiate_CurrencyCreator) Validate added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapRequest_Initiate_CurrencyCreatorValidationError) Reason added in v0.7.0

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 (*StatefulSwapRequest_SubmitSignatures) Reset added in v0.7.0

func (*StatefulSwapRequest_SubmitSignatures) String added in v0.7.0

func (*StatefulSwapRequest_SubmitSignatures) Validate added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapRequest_SubmitSignaturesValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapRequest_SubmitSignaturesValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapRequest_SubmitSignaturesValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapRequest_SubmitSignaturesValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapRequest_SubmitSignaturesValidationError) Reason added in v0.7.0

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 (*StatefulSwapResponse) GetResponse added in v0.7.0

func (m *StatefulSwapResponse) GetResponse() isStatefulSwapResponse_Response

func (*StatefulSwapResponse) GetServerParameters added in v0.7.0

func (*StatefulSwapResponse) GetSuccess added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapResponseValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapResponseValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapResponseValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapResponseValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapResponseValidationError) Reason added in v0.7.0

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 (*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 (*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

Cause function returns cause value.

func (StatefulSwapResponse_ErrorValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapResponse_ErrorValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapResponse_ErrorValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapResponse_ErrorValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapResponse_ErrorValidationError) Reason added in v0.7.0

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) Enum added in v0.7.0

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 (StatefulSwapResponse_Error_Code) String added in v0.7.0

func (StatefulSwapResponse_Error_Code) Type added in v0.7.0

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 (*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 (*StatefulSwapResponse_ServerParameters) Reset added in v0.7.0

func (*StatefulSwapResponse_ServerParameters) String added in v0.7.0

func (*StatefulSwapResponse_ServerParameters) Validate added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapResponse_ServerParametersValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapResponse_ServerParametersValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapResponse_ServerParametersValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapResponse_ServerParametersValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapResponse_ServerParametersValidationError) Reason added in v0.7.0

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):

  1. System::AdvanceNonce
  2. [Optional] ComputeBudget::SetComputeUnitLimit
  3. [Optional] ComputeBudget::SetComputeUnitPrice
  4. [Optional] Memo::Memo
  5. AssociatedTokenAccount::CreateIdempotent (open Core Mint temporary account)
  6. VM::TransferForSwap (Core Mint VM swap ATA -> Core Mint temporary account)
  7. CurrencyCreator::BuyAndDepositIntoVm (bounded buy depositing to_mint tokens into the to_mint VM)
  8. Token::CloseAccount (closes Core Mint temporary account)
  9. VM::CloseSwapAccountIfEmpty (closes Core Mint VM swap ATA if empty)

Sell Tokens (Launchpad Currency Mint -> Core Mint):

  1. System::AdvanceNonce
  2. [Optional] ComputeBudget::SetComputeUnitLimit
  3. [Optional] ComputeBudget::SetComputeUnitPrice
  4. [Optional] Memo::Memo
  5. AssociatedTokenAccount::CreateIdempotent (open from_mint temporary account)
  6. VM::TransferForSwap (from_mint VM swap ATA -> from_mint temporary account)
  7. CurrencyCreator::SellAndDepositIntoVm (bounded sell depositing Core Mint into the Core Mint VM)
  8. Token::CloseAccount (closes from_mint temporary account)
  9. VM::CloseSwapAccountIfEmpty (closes from_mint swap PDA/ATA if empty)

Swap Tokens (Launchpad Currency Mint -> Launchpad Currency Mint):

  1. System::AdvanceNonce
  2. [Optional] ComputeBudget::SetComputeUnitLimit
  3. [Optional] ComputeBudget::SetComputeUnitPrice
  4. [Optional] Memo::Memo
  5. AssociatedTokenAccount::CreateIdempotent (open Core Mint temporary account)
  6. AssociatedTokenAccount::CreateIdempotent (open from_mint temporary account)
  7. VM::TransferForSwap (from_mint VM swap ATA -> from_mint temporary account)
  8. CurrencyCreator::SellTokens (bounded sell transferring Core Mint into temporary account)
  9. CurrencyCreator::BuyAndDepositIntoVm (unlimited buy depositing to_mint tokens into the to_mint VM)
  10. Token::CloseAccount (closes Core Mint temporary account)
  11. Token::CloseAccount (closes from_mint temporary account)
  12. VM::CloseSwapAccountIfEmpty (closes from_mint VM swap ATA if empty)

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Descriptor deprecated added in v0.7.0

Deprecated: Use StatefulSwapResponse_ServerParameters_CurrencyCreator.ProtoReflect.Descriptor instead.

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetAlts added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetBlockhash added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitLimit added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetComputeUnitPrice added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoValue added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryAccount added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetMemoryIndex added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetNonce added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) GetPayer added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoMessage added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) ProtoReflect added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Reset added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) String added in v0.7.0

func (*StatefulSwapResponse_ServerParameters_CurrencyCreator) Validate added in v0.7.0

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

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

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 (*StatefulSwapResponse_Success) ProtoMessage added in v0.7.0

func (*StatefulSwapResponse_Success) ProtoMessage()

func (*StatefulSwapResponse_Success) ProtoReflect added in v0.7.0

func (*StatefulSwapResponse_Success) Reset added in v0.7.0

func (x *StatefulSwapResponse_Success) Reset()

func (*StatefulSwapResponse_Success) String added in v0.7.0

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

Cause function returns cause value.

func (StatefulSwapResponse_SuccessValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (StatefulSwapResponse_SuccessValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (StatefulSwapResponse_SuccessValidationError) Field added in v0.7.0

Field function returns field value.

func (StatefulSwapResponse_SuccessValidationError) Key added in v0.7.0

Key function returns key value.

func (StatefulSwapResponse_SuccessValidationError) Reason added in v0.7.0

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) Enum added in v0.7.0

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 (StatefulSwapResponse_Success_Code) String added in v0.7.0

func (StatefulSwapResponse_Success_Code) Type added in v0.7.0

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 (*SubmitIntentRequest) GetSubmitSignatures

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

Cause function returns cause value.

func (SubmitIntentRequestValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentRequestValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentRequestValidationError) Field

Field function returns field value.

func (SubmitIntentRequestValidationError) Key

Key function returns key value.

func (SubmitIntentRequestValidationError) Reason

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 (*SubmitIntentRequest_SubmitActions) GetMetadata

func (x *SubmitIntentRequest_SubmitActions) GetMetadata() *Metadata

func (*SubmitIntentRequest_SubmitActions) GetOwner

func (*SubmitIntentRequest_SubmitActions) GetSignature

func (x *SubmitIntentRequest_SubmitActions) GetSignature() *v1.Signature

func (*SubmitIntentRequest_SubmitActions) ProtoMessage

func (*SubmitIntentRequest_SubmitActions) ProtoMessage()

func (*SubmitIntentRequest_SubmitActions) ProtoReflect

func (*SubmitIntentRequest_SubmitActions) Reset

func (*SubmitIntentRequest_SubmitActions) String

func (*SubmitIntentRequest_SubmitActions) Validate

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

Cause function returns cause value.

func (SubmitIntentRequest_SubmitActionsValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentRequest_SubmitActionsValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentRequest_SubmitActionsValidationError) Field

Field function returns field value.

func (SubmitIntentRequest_SubmitActionsValidationError) Key

Key function returns key value.

func (SubmitIntentRequest_SubmitActionsValidationError) Reason

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 (*SubmitIntentRequest_SubmitSignatures) Reset

func (*SubmitIntentRequest_SubmitSignatures) String

func (*SubmitIntentRequest_SubmitSignatures) Validate

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

Cause function returns cause value.

func (SubmitIntentRequest_SubmitSignaturesValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentRequest_SubmitSignaturesValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentRequest_SubmitSignaturesValidationError) Field

Field function returns field value.

func (SubmitIntentRequest_SubmitSignaturesValidationError) Key

Key function returns key value.

func (SubmitIntentRequest_SubmitSignaturesValidationError) Reason

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 (*SubmitIntentResponse) GetResponse

func (m *SubmitIntentResponse) GetResponse() isSubmitIntentResponse_Response

func (*SubmitIntentResponse) GetServerParameters

func (*SubmitIntentResponse) GetSuccess

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

Cause function returns cause value.

func (SubmitIntentResponseValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentResponseValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentResponseValidationError) Field

Field function returns field value.

func (SubmitIntentResponseValidationError) Key

Key function returns key value.

func (SubmitIntentResponseValidationError) Reason

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 (*SubmitIntentResponse_Error) GetErrorDetails

func (x *SubmitIntentResponse_Error) GetErrorDetails() []*ErrorDetails

func (*SubmitIntentResponse_Error) ProtoMessage

func (*SubmitIntentResponse_Error) ProtoMessage()

func (*SubmitIntentResponse_Error) ProtoReflect

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

Cause function returns cause value.

func (SubmitIntentResponse_ErrorValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentResponse_ErrorValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentResponse_ErrorValidationError) Field

Field function returns field value.

func (SubmitIntentResponse_ErrorValidationError) Key

Key function returns key value.

func (SubmitIntentResponse_ErrorValidationError) Reason

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) Enum

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 (SubmitIntentResponse_Error_Code) String

func (SubmitIntentResponse_Error_Code) Type

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 (*SubmitIntentResponse_ServerParameters) Reset

func (*SubmitIntentResponse_ServerParameters) String

func (*SubmitIntentResponse_ServerParameters) Validate

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

Cause function returns cause value.

func (SubmitIntentResponse_ServerParametersValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentResponse_ServerParametersValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentResponse_ServerParametersValidationError) Field

Field function returns field value.

func (SubmitIntentResponse_ServerParametersValidationError) Key

Key function returns key value.

func (SubmitIntentResponse_ServerParametersValidationError) Reason

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 (*SubmitIntentResponse_Success) ProtoMessage

func (*SubmitIntentResponse_Success) ProtoMessage()

func (*SubmitIntentResponse_Success) ProtoReflect

func (*SubmitIntentResponse_Success) Reset

func (x *SubmitIntentResponse_Success) Reset()

func (*SubmitIntentResponse_Success) 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

Cause function returns cause value.

func (SubmitIntentResponse_SuccessValidationError) Error

Error satisfies the builtin error interface

func (SubmitIntentResponse_SuccessValidationError) ErrorName

ErrorName returns error name.

func (SubmitIntentResponse_SuccessValidationError) Field

Field function returns field value.

func (SubmitIntentResponse_SuccessValidationError) Key

Key function returns key value.

func (SubmitIntentResponse_SuccessValidationError) Reason

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) Enum

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 (SubmitIntentResponse_Success_Code) String

func (SubmitIntentResponse_Success_Code) Type

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

Cause function returns cause value.

func (SwapMetadataValidationError) Error

Error satisfies the builtin error interface

func (SwapMetadataValidationError) ErrorName

func (e SwapMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (SwapMetadataValidationError) Field

Field function returns field value.

func (SwapMetadataValidationError) Key

Key function returns key value.

func (SwapMetadataValidationError) Reason

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) Enum

func (SwapMetadata_State) EnumDescriptor deprecated

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

Deprecated: Use SwapMetadata_State.Descriptor instead.

func (SwapMetadata_State) Number

func (SwapMetadata_State) String

func (x SwapMetadata_State) String() string

func (SwapMetadata_State) Type

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.

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) GetIntentMetadata

func (UnimplementedTransactionServer) GetLimits

func (UnimplementedTransactionServer) GetPendingSwaps

func (UnimplementedTransactionServer) GetSwap

func (UnimplementedTransactionServer) StatefulSwap added in v0.7.0

func (UnimplementedTransactionServer) SubmitIntent

func (UnimplementedTransactionServer) VoidGiftCard

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 (*VerifiedCurrencyCreatorSwapMetadata) ProtoMessage

func (*VerifiedCurrencyCreatorSwapMetadata) ProtoMessage()

func (*VerifiedCurrencyCreatorSwapMetadata) ProtoReflect

func (*VerifiedCurrencyCreatorSwapMetadata) Reset

func (*VerifiedCurrencyCreatorSwapMetadata) String

func (*VerifiedCurrencyCreatorSwapMetadata) Validate

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

Cause function returns cause value.

func (VerifiedCurrencyCreatorSwapMetadataValidationError) Error

Error satisfies the builtin error interface

func (VerifiedCurrencyCreatorSwapMetadataValidationError) ErrorName

ErrorName returns error name.

func (VerifiedCurrencyCreatorSwapMetadataValidationError) Field

Field function returns field value.

func (VerifiedCurrencyCreatorSwapMetadataValidationError) Key

Key function returns key value.

func (VerifiedCurrencyCreatorSwapMetadataValidationError) Reason

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

Cause function returns cause value.

func (VerifiedExchangeDataValidationError) Error added in v0.10.0

Error satisfies the builtin error interface

func (VerifiedExchangeDataValidationError) ErrorName added in v0.10.0

ErrorName returns error name.

func (VerifiedExchangeDataValidationError) Field added in v0.10.0

Field function returns field value.

func (VerifiedExchangeDataValidationError) Key added in v0.10.0

Key function returns key value.

func (VerifiedExchangeDataValidationError) Reason added in v0.10.0

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 (*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

Cause function returns cause value.

func (VerifiedSwapMetadataValidationError) Error

Error satisfies the builtin error interface

func (VerifiedSwapMetadataValidationError) ErrorName

ErrorName returns error name.

func (VerifiedSwapMetadataValidationError) Field

Field function returns field value.

func (VerifiedSwapMetadataValidationError) Key

Key function returns key value.

func (VerifiedSwapMetadataValidationError) Reason

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

Cause function returns cause value.

func (VoidGiftCardRequestValidationError) Error

Error satisfies the builtin error interface

func (VoidGiftCardRequestValidationError) ErrorName

ErrorName returns error name.

func (VoidGiftCardRequestValidationError) Field

Field function returns field value.

func (VoidGiftCardRequestValidationError) Key

Key function returns key value.

func (VoidGiftCardRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (VoidGiftCardResponseValidationError) Error

Error satisfies the builtin error interface

func (VoidGiftCardResponseValidationError) ErrorName

ErrorName returns error name.

func (VoidGiftCardResponseValidationError) Field

Field function returns field value.

func (VoidGiftCardResponseValidationError) Key

Key function returns key value.

func (VoidGiftCardResponseValidationError) Reason

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) Enum

func (VoidGiftCardResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use VoidGiftCardResponse_Result.Descriptor instead.

func (VoidGiftCardResponse_Result) Number

func (VoidGiftCardResponse_Result) String

func (VoidGiftCardResponse_Result) Type

Jump to

Keyboard shortcuts

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