transaction

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 22 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AirdropType_name = map[int32]string{
		0: "UNKNOWN",
		1: "GIVE_FIRST_KIN",
		2: "GET_FIRST_KIN",
	}
	AirdropType_value = map[string]int32{
		"UNKNOWN":        0,
		"GIVE_FIRST_KIN": 1,
		"GET_FIRST_KIN":  2,
	}
)

Enum value maps for AirdropType.

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 (
	GetPrivacyUpgradeStatusResponse_Result_name = map[int32]string{
		0: "OK",
		1: "INTENT_NOT_FOUND",
		2: "ACTION_NOT_FOUND",
		3: "INVALID_ACTION",
	}
	GetPrivacyUpgradeStatusResponse_Result_value = map[string]int32{
		"OK":               0,
		"INTENT_NOT_FOUND": 1,
		"ACTION_NOT_FOUND": 2,
		"INVALID_ACTION":   3,
	}
)

Enum value maps for GetPrivacyUpgradeStatusResponse_Result.

View Source
var (
	GetPrivacyUpgradeStatusResponse_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "TEMPORARY_TRANSACTION_FINALIZED",
		2: "WAITING_FOR_NEXT_BLOCK",
		3: "READY_FOR_UPGRADE",
		4: "ALREADY_UPGRADED",
	}
	GetPrivacyUpgradeStatusResponse_Status_value = map[string]int32{
		"UNKNOWN":                         0,
		"TEMPORARY_TRANSACTION_FINALIZED": 1,
		"WAITING_FOR_NEXT_BLOCK":          2,
		"READY_FOR_UPGRADE":               3,
		"ALREADY_UPGRADED":                4,
	}
)

Enum value maps for GetPrivacyUpgradeStatusResponse_Status.

View Source
var (
	GetPrioritizedIntentsForPrivacyUpgradeResponse_Result_name = map[int32]string{
		0: "OK",
		1: "NOT_FOUND",
	}
	GetPrioritizedIntentsForPrivacyUpgradeResponse_Result_value = map[string]int32{
		"OK":        0,
		"NOT_FOUND": 1,
	}
)

Enum value maps for GetPrioritizedIntentsForPrivacyUpgradeResponse_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 (
	GetPaymentHistoryRequest_Direction_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	GetPaymentHistoryRequest_Direction_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for GetPaymentHistoryRequest_Direction.

View Source
var (
	GetPaymentHistoryResponse_Result_name = map[int32]string{
		0: "OK",
		1: "NOT_FOUND",
	}
	GetPaymentHistoryResponse_Result_value = map[string]int32{
		"OK":        0,
		"NOT_FOUND": 1,
	}
)

Enum value maps for GetPaymentHistoryResponse_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 (
	SwapResponse_Success_Code_name = map[int32]string{
		0: "SWAP_SUBMITTED",
		1: "SWAP_FINALIZED",
	}
	SwapResponse_Success_Code_value = map[string]int32{
		"SWAP_SUBMITTED": 0,
		"SWAP_FINALIZED": 1,
	}
)

Enum value maps for SwapResponse_Success_Code.

View Source
var (
	SwapResponse_Error_Code_name = map[int32]string{
		0: "DENIED",
		2: "SIGNATURE_ERROR",
		3: "INVALID_SWAP",
		4: "SWAP_FAILED",
	}
	SwapResponse_Error_Code_value = map[string]int32{
		"DENIED":          0,
		"SIGNATURE_ERROR": 2,
		"INVALID_SWAP":    3,
		"SWAP_FAILED":     4,
	}
)

Enum value maps for SwapResponse_Error_Code.

View Source
var (
	DeclareFiatOnrampPurchaseAttemptResponse_Result_name = map[int32]string{
		0: "OK",
		1: "INVALID_OWNER",
		2: "UNSUPPORTED_CURRENCY",
		3: "AMOUNT_EXCEEDS_MAXIMUM",
	}
	DeclareFiatOnrampPurchaseAttemptResponse_Result_value = map[string]int32{
		"OK":                     0,
		"INVALID_OWNER":          1,
		"UNSUPPORTED_CURRENCY":   2,
		"AMOUNT_EXCEEDS_MAXIMUM": 3,
	}
)

Enum value maps for DeclareFiatOnrampPurchaseAttemptResponse_Result.

View Source
var (
	FeePaymentAction_FeeType_name = map[int32]string{
		0: "CODE",
		1: "THIRD_PARTY",
	}
	FeePaymentAction_FeeType_value = map[string]int32{
		"CODE":        0,
		"THIRD_PARTY": 1,
	}
)

Enum value maps for FeePaymentAction_FeeType.

View Source
var (
	PaymentHistoryItem_PaymentType_name = map[int32]string{
		0: "UNKNOWN",
		1: "SEND",
		2: "RECEIVE",
	}
	PaymentHistoryItem_PaymentType_value = map[string]int32{
		"UNKNOWN": 0,
		"SEND":    1,
		"RECEIVE": 2,
	}
)

Enum value maps for PaymentHistoryItem_PaymentType.

View Source
var (
	TippedUser_Platform_name = map[int32]string{
		0: "UNKNOWN",
		1: "TWITTER",
	}
	TippedUser_Platform_value = map[string]int32{
		"UNKNOWN": 0,
		"TWITTER": 1,
	}
)

Enum value maps for TippedUser_Platform.

View Source
var File_transaction_v2_transaction_service_proto protoreflect.FileDescriptor
View Source
var Transaction_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "code.transaction.v2.Transaction",
	HandlerType: (*TransactionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetIntentMetadata",
			Handler:    _Transaction_GetIntentMetadata_Handler,
		},
		{
			MethodName: "GetPrivacyUpgradeStatus",
			Handler:    _Transaction_GetPrivacyUpgradeStatus_Handler,
		},
		{
			MethodName: "GetPrioritizedIntentsForPrivacyUpgrade",
			Handler:    _Transaction_GetPrioritizedIntentsForPrivacyUpgrade_Handler,
		},
		{
			MethodName: "GetLimits",
			Handler:    _Transaction_GetLimits_Handler,
		},
		{
			MethodName: "GetPaymentHistory",
			Handler:    _Transaction_GetPaymentHistory_Handler,
		},
		{
			MethodName: "CanWithdrawToAccount",
			Handler:    _Transaction_CanWithdrawToAccount_Handler,
		},
		{
			MethodName: "Airdrop",
			Handler:    _Transaction_Airdrop_Handler,
		},
		{
			MethodName: "DeclareFiatOnrampPurchaseAttempt",
			Handler:    _Transaction_DeclareFiatOnrampPurchaseAttempt_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubmitIntent",
			Handler:       _Transaction_SubmitIntent_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "Swap",
			Handler:       _Transaction_Swap_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "transaction/v2/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_CloseEmptyAccount
	//	*Action_CloseDormantAccount
	//	*Action_NoPrivacyTransfer
	//	*Action_NoPrivacyWithdraw
	//	*Action_TemporaryPrivacyTransfer
	//	*Action_TemporaryPrivacyExchange
	//	*Action_PermanentPrivacyUpgrade
	//	*Action_FeePayment
	Type isAction_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

Action is a well-defined, ordered and small set of transactions 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) GetCloseDormantAccount

func (x *Action) GetCloseDormantAccount() *CloseDormantAccountAction

func (*Action) GetCloseEmptyAccount

func (x *Action) GetCloseEmptyAccount() *CloseEmptyAccountAction

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

func (x *Action) GetPermanentPrivacyUpgrade() *PermanentPrivacyUpgradeAction

func (*Action) GetTemporaryPrivacyExchange

func (x *Action) GetTemporaryPrivacyExchange() *TemporaryPrivacyExchangeAction

func (*Action) GetTemporaryPrivacyTransfer

func (x *Action) GetTemporaryPrivacyTransfer() *TemporaryPrivacyTransferAction

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_CloseDormantAccount

type Action_CloseDormantAccount struct {
	CloseDormantAccount *CloseDormantAccountAction `protobuf:"bytes,4,opt,name=close_dormant_account,json=closeDormantAccount,proto3,oneof"`
}

type Action_CloseEmptyAccount

type Action_CloseEmptyAccount struct {
	CloseEmptyAccount *CloseEmptyAccountAction `protobuf:"bytes,3,opt,name=close_empty_account,json=closeEmptyAccount,proto3,oneof"`
}

type Action_FeePayment

type Action_FeePayment struct {
	FeePayment *FeePaymentAction `protobuf:"bytes,10,opt,name=fee_payment,json=feePayment,proto3,oneof"`
}

type Action_NoPrivacyTransfer

type Action_NoPrivacyTransfer struct {
	NoPrivacyTransfer *NoPrivacyTransferAction `protobuf:"bytes,5,opt,name=no_privacy_transfer,json=noPrivacyTransfer,proto3,oneof"`
}

type Action_NoPrivacyWithdraw

type Action_NoPrivacyWithdraw struct {
	NoPrivacyWithdraw *NoPrivacyWithdrawAction `protobuf:"bytes,6,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 Action_PermanentPrivacyUpgrade

type Action_PermanentPrivacyUpgrade struct {
	PermanentPrivacyUpgrade *PermanentPrivacyUpgradeAction `protobuf:"bytes,9,opt,name=permanent_privacy_upgrade,json=permanentPrivacyUpgrade,proto3,oneof"`
}

type Action_TemporaryPrivacyExchange

type Action_TemporaryPrivacyExchange struct {
	TemporaryPrivacyExchange *TemporaryPrivacyExchangeAction `protobuf:"bytes,8,opt,name=temporary_privacy_exchange,json=temporaryPrivacyExchange,proto3,oneof"`
}

type Action_TemporaryPrivacyTransfer

type Action_TemporaryPrivacyTransfer struct {
	TemporaryPrivacyTransfer *TemporaryPrivacyTransferAction `protobuf:"bytes,7,opt,name=temporary_privacy_transfer,json=temporaryPrivacyTransfer,proto3,oneof"`
}

type AdditionalFeePayment added in v1.10.0

type AdditionalFeePayment struct {

	// Destination Kin token account where the fee payment will be made
	Destination *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// Fee percentage, in basis points, of the total quark amount of a payment.
	FeeBps uint32 `protobuf:"varint,2,opt,name=fee_bps,json=feeBps,proto3" json:"fee_bps,omitempty"`
	// contains filtered or unexported fields
}

func (*AdditionalFeePayment) Descriptor deprecated added in v1.10.0

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

Deprecated: Use AdditionalFeePayment.ProtoReflect.Descriptor instead.

func (*AdditionalFeePayment) GetDestination added in v1.10.0

func (x *AdditionalFeePayment) GetDestination() *v1.SolanaAccountId

func (*AdditionalFeePayment) GetFeeBps added in v1.10.0

func (x *AdditionalFeePayment) GetFeeBps() uint32

func (*AdditionalFeePayment) ProtoMessage added in v1.10.0

func (*AdditionalFeePayment) ProtoMessage()

func (*AdditionalFeePayment) ProtoReflect added in v1.10.0

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

func (*AdditionalFeePayment) Reset added in v1.10.0

func (x *AdditionalFeePayment) Reset()

func (*AdditionalFeePayment) String added in v1.10.0

func (x *AdditionalFeePayment) String() string

func (*AdditionalFeePayment) Validate added in v1.10.0

func (m *AdditionalFeePayment) Validate() error

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

type AdditionalFeePaymentValidationError added in v1.10.0

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

AdditionalFeePaymentValidationError is the validation error returned by AdditionalFeePayment.Validate if the designated constraints aren't met.

func (AdditionalFeePaymentValidationError) Cause added in v1.10.0

Cause function returns cause value.

func (AdditionalFeePaymentValidationError) Error added in v1.10.0

Error satisfies the builtin error interface

func (AdditionalFeePaymentValidationError) ErrorName added in v1.10.0

ErrorName returns error name.

func (AdditionalFeePaymentValidationError) Field added in v1.10.0

Field function returns field value.

func (AdditionalFeePaymentValidationError) Key added in v1.10.0

Key function returns key value.

func (AdditionalFeePaymentValidationError) Reason added in v1.10.0

Reason function returns reason value.

type AirdropRequest

type AirdropRequest struct {

	// The type of airdrop to claim
	AirdropType AirdropType `` /* 132-byte string literal not displayed */
	// The owner account to airdrop Kin 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=code.transaction.v2.AirdropResponse_Result" json:"result,omitempty"`
	// Exchange data for the amount of Kin 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 giving someone else their first Kin
	AirdropType_GIVE_FIRST_KIN AirdropType = 1
	// Airdrop for getting a user started with first Kin balance
	AirdropType_GET_FIRST_KIN 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 BuyModuleLimit added in v1.11.0

type BuyModuleLimit struct {

	// Minimum amount that can be purchased through the buy module
	MinPerTransaction float32 `protobuf:"fixed32,1,opt,name=min_per_transaction,json=minPerTransaction,proto3" json:"min_per_transaction,omitempty"`
	// Maximum amount that can be purchased through the buy module
	MaxPerTransaction float32 `protobuf:"fixed32,2,opt,name=max_per_transaction,json=maxPerTransaction,proto3" json:"max_per_transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*BuyModuleLimit) Descriptor deprecated added in v1.11.0

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

Deprecated: Use BuyModuleLimit.ProtoReflect.Descriptor instead.

func (*BuyModuleLimit) GetMaxPerTransaction added in v1.11.0

func (x *BuyModuleLimit) GetMaxPerTransaction() float32

func (*BuyModuleLimit) GetMinPerTransaction added in v1.11.0

func (x *BuyModuleLimit) GetMinPerTransaction() float32

func (*BuyModuleLimit) ProtoMessage added in v1.11.0

func (*BuyModuleLimit) ProtoMessage()

func (*BuyModuleLimit) ProtoReflect added in v1.11.0

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

func (*BuyModuleLimit) Reset added in v1.11.0

func (x *BuyModuleLimit) Reset()

func (*BuyModuleLimit) String added in v1.11.0

func (x *BuyModuleLimit) String() string

func (*BuyModuleLimit) Validate added in v1.11.0

func (m *BuyModuleLimit) Validate() error

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

type BuyModuleLimitValidationError added in v1.11.0

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

BuyModuleLimitValidationError is the validation error returned by BuyModuleLimit.Validate if the designated constraints aren't met.

func (BuyModuleLimitValidationError) Cause added in v1.11.0

Cause function returns cause value.

func (BuyModuleLimitValidationError) Error added in v1.11.0

Error satisfies the builtin error interface

func (BuyModuleLimitValidationError) ErrorName added in v1.11.0

func (e BuyModuleLimitValidationError) ErrorName() string

ErrorName returns error name.

func (BuyModuleLimitValidationError) Field added in v1.11.0

Field function returns field value.

func (BuyModuleLimitValidationError) Key added in v1.11.0

Key function returns key value.

func (BuyModuleLimitValidationError) Reason added in v1.11.0

Reason function returns reason value.

type CanWithdrawToAccountRequest

type CanWithdrawToAccountRequest struct {
	Account *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=account,proto3" json:"account,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) 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 {

	// 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 `` /* 161-byte string literal not displayed */
	// 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
	//   - Not wanting to subsidize the creation of an ATA
	//   - 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 */
	// Token account requires initialization before the withdrawal can occur.
	// Server has chosen not to subsidize the fees. The response is guaranteed
	// to have set is_valid_payment_destination = false in this case.
	RequiresInitialization bool `` /* 128-byte string literal not displayed */
	// 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) 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 CloseDormantAccountAction

type CloseDormantAccountAction struct {

	// The type of account being closed
	AccountType v1.AccountType `` /* 127-byte string literal not displayed */
	// The public key of the private key that has authority over the token account
	// that should be closed
	Authority *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// The token account being closed
	Token *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// The destination where funds are withdrawn to
	Destination *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::RevokeLockWithAuthority
  4. timelock::DeactivateLock
  5. timelock::Withdraw (token -> primary)
  6. timelock::CloseAccounts
Client Signature Required: Yes

func (*CloseDormantAccountAction) Descriptor deprecated

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

Deprecated: Use CloseDormantAccountAction.ProtoReflect.Descriptor instead.

func (*CloseDormantAccountAction) GetAccountType

func (x *CloseDormantAccountAction) GetAccountType() v1.AccountType

func (*CloseDormantAccountAction) GetAuthority

func (x *CloseDormantAccountAction) GetAuthority() *v1.SolanaAccountId

func (*CloseDormantAccountAction) GetDestination

func (x *CloseDormantAccountAction) GetDestination() *v1.SolanaAccountId

func (*CloseDormantAccountAction) GetToken

func (*CloseDormantAccountAction) ProtoMessage

func (*CloseDormantAccountAction) ProtoMessage()

func (*CloseDormantAccountAction) ProtoReflect

func (*CloseDormantAccountAction) Reset

func (x *CloseDormantAccountAction) Reset()

func (*CloseDormantAccountAction) String

func (x *CloseDormantAccountAction) String() string

func (*CloseDormantAccountAction) Validate

func (m *CloseDormantAccountAction) Validate() error

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

type CloseDormantAccountActionValidationError

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

CloseDormantAccountActionValidationError is the validation error returned by CloseDormantAccountAction.Validate if the designated constraints aren't met.

func (CloseDormantAccountActionValidationError) Cause

Cause function returns cause value.

func (CloseDormantAccountActionValidationError) Error

Error satisfies the builtin error interface

func (CloseDormantAccountActionValidationError) ErrorName

ErrorName returns error name.

func (CloseDormantAccountActionValidationError) Field

Field function returns field value.

func (CloseDormantAccountActionValidationError) Key

Key function returns key value.

func (CloseDormantAccountActionValidationError) Reason

Reason function returns reason value.

type CloseDormantAccountServerParameter

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

func (*CloseDormantAccountServerParameter) Descriptor deprecated

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

Deprecated: Use CloseDormantAccountServerParameter.ProtoReflect.Descriptor instead.

func (*CloseDormantAccountServerParameter) ProtoMessage

func (*CloseDormantAccountServerParameter) ProtoMessage()

func (*CloseDormantAccountServerParameter) ProtoReflect

func (*CloseDormantAccountServerParameter) Reset

func (*CloseDormantAccountServerParameter) String

func (*CloseDormantAccountServerParameter) Validate

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

type CloseDormantAccountServerParameterValidationError

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

CloseDormantAccountServerParameterValidationError is the validation error returned by CloseDormantAccountServerParameter.Validate if the designated constraints aren't met.

func (CloseDormantAccountServerParameterValidationError) Cause

Cause function returns cause value.

func (CloseDormantAccountServerParameterValidationError) Error

Error satisfies the builtin error interface

func (CloseDormantAccountServerParameterValidationError) ErrorName

ErrorName returns error name.

func (CloseDormantAccountServerParameterValidationError) Field

Field function returns field value.

func (CloseDormantAccountServerParameterValidationError) Key

Key function returns key value.

func (CloseDormantAccountServerParameterValidationError) Reason

Reason function returns reason value.

type CloseEmptyAccountAction

type CloseEmptyAccountAction struct {

	// The type of account being closed
	AccountType v1.AccountType `` /* 127-byte string literal not displayed */
	// The public key of the private key that has authority over the token account
	// that should be closed
	Authority *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// The token account being closed
	Token *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. timelock::BurnDustWithAuthority (max 1 Kin)
  3. timelock::CloseAccounts
Client Signature Required: Yes

func (*CloseEmptyAccountAction) Descriptor deprecated

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

Deprecated: Use CloseEmptyAccountAction.ProtoReflect.Descriptor instead.

func (*CloseEmptyAccountAction) GetAccountType

func (x *CloseEmptyAccountAction) GetAccountType() v1.AccountType

func (*CloseEmptyAccountAction) GetAuthority

func (x *CloseEmptyAccountAction) GetAuthority() *v1.SolanaAccountId

func (*CloseEmptyAccountAction) GetToken

func (*CloseEmptyAccountAction) ProtoMessage

func (*CloseEmptyAccountAction) ProtoMessage()

func (*CloseEmptyAccountAction) ProtoReflect

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

func (*CloseEmptyAccountAction) Reset

func (x *CloseEmptyAccountAction) Reset()

func (*CloseEmptyAccountAction) String

func (x *CloseEmptyAccountAction) String() string

func (*CloseEmptyAccountAction) Validate

func (m *CloseEmptyAccountAction) Validate() error

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

type CloseEmptyAccountActionValidationError

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

CloseEmptyAccountActionValidationError is the validation error returned by CloseEmptyAccountAction.Validate if the designated constraints aren't met.

func (CloseEmptyAccountActionValidationError) Cause

Cause function returns cause value.

func (CloseEmptyAccountActionValidationError) Error

Error satisfies the builtin error interface

func (CloseEmptyAccountActionValidationError) ErrorName

ErrorName returns error name.

func (CloseEmptyAccountActionValidationError) Field

Field function returns field value.

func (CloseEmptyAccountActionValidationError) Key

Key function returns key value.

func (CloseEmptyAccountActionValidationError) Reason

Reason function returns reason value.

type CloseEmptyAccountServerParameter

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

func (*CloseEmptyAccountServerParameter) Descriptor deprecated

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

Deprecated: Use CloseEmptyAccountServerParameter.ProtoReflect.Descriptor instead.

func (*CloseEmptyAccountServerParameter) ProtoMessage

func (*CloseEmptyAccountServerParameter) ProtoMessage()

func (*CloseEmptyAccountServerParameter) ProtoReflect

func (*CloseEmptyAccountServerParameter) Reset

func (*CloseEmptyAccountServerParameter) String

func (*CloseEmptyAccountServerParameter) Validate

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

type CloseEmptyAccountServerParameterValidationError

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

CloseEmptyAccountServerParameterValidationError is the validation error returned by CloseEmptyAccountServerParameter.Validate if the designated constraints aren't met.

func (CloseEmptyAccountServerParameterValidationError) Cause

Cause function returns cause value.

func (CloseEmptyAccountServerParameterValidationError) Error

Error satisfies the builtin error interface

func (CloseEmptyAccountServerParameterValidationError) ErrorName

ErrorName returns error name.

func (CloseEmptyAccountServerParameterValidationError) Field

Field function returns field value.

func (CloseEmptyAccountServerParameterValidationError) Key

Key function returns key value.

func (CloseEmptyAccountServerParameterValidationError) Reason

Reason function returns reason value.

type Cursor

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

func (*Cursor) Descriptor deprecated

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

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) GetValue

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

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

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

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) String

func (x *Cursor) String() string

func (*Cursor) Validate

func (m *Cursor) Validate() error

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

type CursorValidationError

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

CursorValidationError is the validation error returned by Cursor.Validate if the designated constraints aren't met.

func (CursorValidationError) Cause

func (e CursorValidationError) Cause() error

Cause function returns cause value.

func (CursorValidationError) Error

func (e CursorValidationError) Error() string

Error satisfies the builtin error interface

func (CursorValidationError) ErrorName

func (e CursorValidationError) ErrorName() string

ErrorName returns error name.

func (CursorValidationError) Field

func (e CursorValidationError) Field() string

Field function returns field value.

func (CursorValidationError) Key

func (e CursorValidationError) Key() bool

Key function returns key value.

func (CursorValidationError) Reason

func (e CursorValidationError) Reason() string

Reason function returns reason value.

type DeclareFiatOnrampPurchaseAttemptRequest added in v1.12.2

type DeclareFiatOnrampPurchaseAttemptRequest struct {

	// The owner account invoking the buy module
	Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// The amount being purchased
	PurchaseAmount *ExchangeDataWithoutRate `protobuf:"bytes,2,opt,name=purchase_amount,json=purchaseAmount,proto3" json:"purchase_amount,omitempty"`
	// A nonce value unique to the purchase. If it's included in a memo for the
	// transaction for the deposit to the owner, then purchase_amount will be used
	// for display values. Otherwise, the amount will be inferred from the transaction.
	Nonce *v1.UUID `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The signature is of serialize(DeclareFiatOnrampPurchaseAttemptRequest) without
	// this field set using the private key of the owner account. This provides an
	// authentication mechanism to the RPC.
	Signature *v1.Signature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*DeclareFiatOnrampPurchaseAttemptRequest) Descriptor deprecated added in v1.12.2

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

Deprecated: Use DeclareFiatOnrampPurchaseAttemptRequest.ProtoReflect.Descriptor instead.

func (*DeclareFiatOnrampPurchaseAttemptRequest) GetNonce added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) GetOwner added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) GetPurchaseAmount added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) GetSignature added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) ProtoMessage added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) ProtoReflect added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) Reset added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) String added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptRequest) Validate added in v1.12.2

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

type DeclareFiatOnrampPurchaseAttemptRequestValidationError added in v1.12.2

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

DeclareFiatOnrampPurchaseAttemptRequestValidationError is the validation error returned by DeclareFiatOnrampPurchaseAttemptRequest.Validate if the designated constraints aren't met.

func (DeclareFiatOnrampPurchaseAttemptRequestValidationError) Cause added in v1.12.2

Cause function returns cause value.

func (DeclareFiatOnrampPurchaseAttemptRequestValidationError) Error added in v1.12.2

Error satisfies the builtin error interface

func (DeclareFiatOnrampPurchaseAttemptRequestValidationError) ErrorName added in v1.12.2

ErrorName returns error name.

func (DeclareFiatOnrampPurchaseAttemptRequestValidationError) Field added in v1.12.2

Field function returns field value.

func (DeclareFiatOnrampPurchaseAttemptRequestValidationError) Key added in v1.12.2

Key function returns key value.

func (DeclareFiatOnrampPurchaseAttemptRequestValidationError) Reason added in v1.12.2

Reason function returns reason value.

type DeclareFiatOnrampPurchaseAttemptResponse added in v1.12.2

type DeclareFiatOnrampPurchaseAttemptResponse struct {
	Result DeclareFiatOnrampPurchaseAttemptResponse_Result `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeclareFiatOnrampPurchaseAttemptResponse) Descriptor deprecated added in v1.12.2

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

Deprecated: Use DeclareFiatOnrampPurchaseAttemptResponse.ProtoReflect.Descriptor instead.

func (*DeclareFiatOnrampPurchaseAttemptResponse) GetResult added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptResponse) ProtoMessage added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptResponse) ProtoReflect added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptResponse) Reset added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptResponse) String added in v1.12.2

func (*DeclareFiatOnrampPurchaseAttemptResponse) Validate added in v1.12.2

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

type DeclareFiatOnrampPurchaseAttemptResponseValidationError added in v1.12.2

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

DeclareFiatOnrampPurchaseAttemptResponseValidationError is the validation error returned by DeclareFiatOnrampPurchaseAttemptResponse.Validate if the designated constraints aren't met.

func (DeclareFiatOnrampPurchaseAttemptResponseValidationError) Cause added in v1.12.2

Cause function returns cause value.

func (DeclareFiatOnrampPurchaseAttemptResponseValidationError) Error added in v1.12.2

Error satisfies the builtin error interface

func (DeclareFiatOnrampPurchaseAttemptResponseValidationError) ErrorName added in v1.12.2

ErrorName returns error name.

func (DeclareFiatOnrampPurchaseAttemptResponseValidationError) Field added in v1.12.2

Field function returns field value.

func (DeclareFiatOnrampPurchaseAttemptResponseValidationError) Key added in v1.12.2

Key function returns key value.

func (DeclareFiatOnrampPurchaseAttemptResponseValidationError) Reason added in v1.12.2

Reason function returns reason value.

type DeclareFiatOnrampPurchaseAttemptResponse_Result added in v1.12.2

type DeclareFiatOnrampPurchaseAttemptResponse_Result int32
const (
	DeclareFiatOnrampPurchaseAttemptResponse_OK DeclareFiatOnrampPurchaseAttemptResponse_Result = 0
	// The owner account is not valid (ie. it isn't a Code account)
	DeclareFiatOnrampPurchaseAttemptResponse_INVALID_OWNER DeclareFiatOnrampPurchaseAttemptResponse_Result = 1
	// The currency isn't supported
	DeclareFiatOnrampPurchaseAttemptResponse_UNSUPPORTED_CURRENCY DeclareFiatOnrampPurchaseAttemptResponse_Result = 2
	// The amount specified exceeds limits
	DeclareFiatOnrampPurchaseAttemptResponse_AMOUNT_EXCEEDS_MAXIMUM DeclareFiatOnrampPurchaseAttemptResponse_Result = 3
)

func (DeclareFiatOnrampPurchaseAttemptResponse_Result) Descriptor added in v1.12.2

func (DeclareFiatOnrampPurchaseAttemptResponse_Result) Enum added in v1.12.2

func (DeclareFiatOnrampPurchaseAttemptResponse_Result) EnumDescriptor deprecated added in v1.12.2

Deprecated: Use DeclareFiatOnrampPurchaseAttemptResponse_Result.Descriptor instead.

func (DeclareFiatOnrampPurchaseAttemptResponse_Result) Number added in v1.12.2

func (DeclareFiatOnrampPurchaseAttemptResponse_Result) String added in v1.12.2

func (DeclareFiatOnrampPurchaseAttemptResponse_Result) Type added in v1.12.2

type DepositLimit

type DepositLimit struct {

	// Maximum quarks that may be deposited at any time. Server will guarantee
	// this threshold will be below enforced dollar value limits, while also
	// ensuring sufficient funds are available for a full organizer that supports
	// max payment sends. Total dollar value limits may be spread across many deposits.
	MaxQuarks uint64 `protobuf:"varint,1,opt,name=max_quarks,json=maxQuarks,proto3" json:"max_quarks,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositLimit) Descriptor deprecated

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

Deprecated: Use DepositLimit.ProtoReflect.Descriptor instead.

func (*DepositLimit) GetMaxQuarks

func (x *DepositLimit) GetMaxQuarks() uint64

func (*DepositLimit) ProtoMessage

func (*DepositLimit) ProtoMessage()

func (*DepositLimit) ProtoReflect

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

func (*DepositLimit) Reset

func (x *DepositLimit) Reset()

func (*DepositLimit) String

func (x *DepositLimit) String() string

func (*DepositLimit) Validate

func (m *DepositLimit) Validate() error

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

type DepositLimitValidationError

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

DepositLimitValidationError is the validation error returned by DepositLimit.Validate if the designated constraints aren't met.

func (DepositLimitValidationError) Cause

Cause function returns cause value.

func (DepositLimitValidationError) Error

Error satisfies the builtin error interface

func (DepositLimitValidationError) ErrorName

func (e DepositLimitValidationError) ErrorName() string

ErrorName returns error name.

func (DepositLimitValidationError) Field

Field function returns field value.

func (DepositLimitValidationError) Key

Key function returns key value.

func (DepositLimitValidationError) Reason

Reason function returns reason value.

type ErrorDetails

type ErrorDetails struct {

	// Types that are assignable to Type:
	//
	//	*ErrorDetails_ReasonString
	//	*ErrorDetails_InvalidSignature
	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) 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_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 EstablishRelationshipMetadata

type EstablishRelationshipMetadata struct {
	Relationship *v1.Relationship `protobuf:"bytes,1,opt,name=relationship,proto3" json:"relationship,omitempty"`
	// contains filtered or unexported fields
}

Establishes a long-lived private relationship between a user and another entity.

Prereqs:

  • OpenAccounts intent has been submitted

Action spec:

actions = [OpenAccountAction(RELATIONSHIP)]

func (*EstablishRelationshipMetadata) Descriptor deprecated

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

Deprecated: Use EstablishRelationshipMetadata.ProtoReflect.Descriptor instead.

func (*EstablishRelationshipMetadata) GetRelationship

func (x *EstablishRelationshipMetadata) GetRelationship() *v1.Relationship

func (*EstablishRelationshipMetadata) ProtoMessage

func (*EstablishRelationshipMetadata) ProtoMessage()

func (*EstablishRelationshipMetadata) ProtoReflect

func (*EstablishRelationshipMetadata) Reset

func (x *EstablishRelationshipMetadata) Reset()

func (*EstablishRelationshipMetadata) String

func (*EstablishRelationshipMetadata) Validate

func (m *EstablishRelationshipMetadata) Validate() error

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

type EstablishRelationshipMetadataValidationError

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

EstablishRelationshipMetadataValidationError is the validation error returned by EstablishRelationshipMetadata.Validate if the designated constraints aren't met.

func (EstablishRelationshipMetadataValidationError) Cause

Cause function returns cause value.

func (EstablishRelationshipMetadataValidationError) Error

Error satisfies the builtin error interface

func (EstablishRelationshipMetadataValidationError) ErrorName

ErrorName returns error name.

func (EstablishRelationshipMetadataValidationError) Field

Field function returns field value.

func (EstablishRelationshipMetadataValidationError) Key

Key function returns key value.

func (EstablishRelationshipMetadataValidationError) Reason

Reason function returns reason value.

type ExchangeData

type ExchangeData struct {

	// ISO 4217 alpha-3 currency code.
	Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	// The agreed upon exchange rate. This might not be the same as the
	// actual exchange rate at the time of intent or fund transfer.
	ExchangeRate float64 `protobuf:"fixed64,2,opt,name=exchange_rate,json=exchangeRate,proto3" json:"exchange_rate,omitempty"`
	// The agreed upon transfer amount in the currency the payment was made
	// in.
	NativeAmount float64 `protobuf:"fixed64,3,opt,name=native_amount,json=nativeAmount,proto3" json:"native_amount,omitempty"`
	// The exact amount of quarks to send. This will be used as the source of
	// truth for validating transaction transfer amounts.
	Quarks uint64 `protobuf:"varint,4,opt,name=quarks,proto3" json:"quarks,omitempty"`
	// contains filtered or unexported fields
}

ExchangeData defines an amount of Kin with currency exchange data

func (*ExchangeData) Descriptor deprecated

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

Deprecated: Use ExchangeData.ProtoReflect.Descriptor instead.

func (*ExchangeData) GetCurrency

func (x *ExchangeData) GetCurrency() string

func (*ExchangeData) GetExchangeRate

func (x *ExchangeData) GetExchangeRate() float64

func (*ExchangeData) 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 transfer amount in the currency the payment was made
	// in.
	NativeAmount float64 `protobuf:"fixed64,2,opt,name=native_amount,json=nativeAmount,proto3" json:"native_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeDataWithoutRate) Descriptor deprecated

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

Deprecated: Use ExchangeDataWithoutRate.ProtoReflect.Descriptor instead.

func (*ExchangeDataWithoutRate) GetCurrency

func (x *ExchangeDataWithoutRate) GetCurrency() string

func (*ExchangeDataWithoutRate) GetNativeAmount

func (x *ExchangeDataWithoutRate) GetNativeAmount() float64

func (*ExchangeDataWithoutRate) ProtoMessage

func (*ExchangeDataWithoutRate) ProtoMessage()

func (*ExchangeDataWithoutRate) ProtoReflect

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

func (*ExchangeDataWithoutRate) Reset

func (x *ExchangeDataWithoutRate) Reset()

func (*ExchangeDataWithoutRate) String

func (x *ExchangeDataWithoutRate) String() string

func (*ExchangeDataWithoutRate) Validate

func (m *ExchangeDataWithoutRate) Validate() error

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

type ExchangeDataWithoutRateValidationError

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

ExchangeDataWithoutRateValidationError is the validation error returned by ExchangeDataWithoutRate.Validate if the designated constraints aren't met.

func (ExchangeDataWithoutRateValidationError) Cause

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,4,opt,name=type,proto3,enum=code.transaction.v2.FeePaymentAction_FeeType" json:"type,omitempty"`
	// 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 Kin quark amount to transfer
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// The destination where the fee payment is being made for fees outside of
	// Code.
	Destination *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::TransferWithAuthority (source -> fee account)
Client Signature Required: Yes

Note: This is exactly a NoPrivacyTransferAction, but with specialized metadata

for fees.

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) GetDestination added in v1.10.0

func (x *FeePaymentAction) GetDestination() *v1.SolanaAccountId

func (*FeePaymentAction) GetSource

func (x *FeePaymentAction) GetSource() *v1.SolanaAccountId

func (*FeePaymentAction) GetType added in v1.10.0

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 added in v1.10.0

type FeePaymentAction_FeeType int32
const (
	FeePaymentAction_CODE        FeePaymentAction_FeeType = 0 // Hardcoded $0.01 USD fee to a dynamic fee account specified by server
	FeePaymentAction_THIRD_PARTY FeePaymentAction_FeeType = 1 // Third party fee specified at time of payment request
)

func (FeePaymentAction_FeeType) Descriptor added in v1.10.0

func (FeePaymentAction_FeeType) Enum added in v1.10.0

func (FeePaymentAction_FeeType) EnumDescriptor deprecated added in v1.10.0

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

Deprecated: Use FeePaymentAction_FeeType.Descriptor instead.

func (FeePaymentAction_FeeType) Number added in v1.10.0

func (FeePaymentAction_FeeType) String added in v1.10.0

func (x FeePaymentAction_FeeType) String() string

func (FeePaymentAction_FeeType) Type added in v1.10.0

type FeePaymentServerParameter

type FeePaymentServerParameter struct {

	// The destination account where Code fee payments should be sent. This will
	// only be set when the corresponding FeePaymentAction Type is CODE.
	CodeDestination *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=code_destination,json=codeDestination,proto3" json:"code_destination,omitempty"`
	// contains filtered or unexported fields
}

func (*FeePaymentServerParameter) Descriptor deprecated

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

Deprecated: Use FeePaymentServerParameter.ProtoReflect.Descriptor instead.

func (*FeePaymentServerParameter) GetCodeDestination added in v1.10.0

func (x *FeePaymentServerParameter) GetCodeDestination() *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 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=code.transaction.v2.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=code.transaction.v2.GetLimitsResponse_Result" json:"result,omitempty"`
	// Send limits keyed by currency
	SendLimitsByCurrency map[string]*SendLimit `` /* 213-byte string literal not displayed */
	// Deposit limits
	DepositLimit *DepositLimit `protobuf:"bytes,3,opt,name=deposit_limit,json=depositLimit,proto3" json:"deposit_limit,omitempty"`
	// Micro payment limits keyed by currency
	MicroPaymentLimitsByCurrency map[string]*MicroPaymentLimit `` /* 239-byte string literal not displayed */
	// Buy module limits keyed by currency
	BuyModuleLimitsByCurrency map[string]*BuyModuleLimit `` /* 230-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetLimitsResponse) Descriptor deprecated

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

Deprecated: Use GetLimitsResponse.ProtoReflect.Descriptor instead.

func (*GetLimitsResponse) GetBuyModuleLimitsByCurrency added in v1.11.0

func (x *GetLimitsResponse) GetBuyModuleLimitsByCurrency() map[string]*BuyModuleLimit

func (*GetLimitsResponse) GetDepositLimit

func (x *GetLimitsResponse) GetDepositLimit() *DepositLimit

func (*GetLimitsResponse) GetMicroPaymentLimitsByCurrency

func (x *GetLimitsResponse) GetMicroPaymentLimitsByCurrency() map[string]*MicroPaymentLimit

func (*GetLimitsResponse) GetResult

func (*GetLimitsResponse) GetSendLimitsByCurrency added in v1.11.0

func (x *GetLimitsResponse) GetSendLimitsByCurrency() map[string]*SendLimit

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 GetPaymentHistoryRequest

type GetPaymentHistoryRequest struct {

	// The owner account to get payment history for
	Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// An optional history cursor indicating where in the history to resume from.
	Cursor *Cursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// The number of results to return per request. Default is 100.
	PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The order in which to return history items from the cursor.
	Direction GetPaymentHistoryRequest_Direction `` /* 132-byte string literal not displayed */
	// The signature is of serialize(GetPaymentHistoryRequest) 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 (*GetPaymentHistoryRequest) Descriptor deprecated

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

Deprecated: Use GetPaymentHistoryRequest.ProtoReflect.Descriptor instead.

func (*GetPaymentHistoryRequest) GetCursor

func (x *GetPaymentHistoryRequest) GetCursor() *Cursor

func (*GetPaymentHistoryRequest) GetDirection

func (*GetPaymentHistoryRequest) GetOwner

func (*GetPaymentHistoryRequest) GetPageSize

func (x *GetPaymentHistoryRequest) GetPageSize() uint32

func (*GetPaymentHistoryRequest) GetSignature

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

func (*GetPaymentHistoryRequest) ProtoMessage

func (*GetPaymentHistoryRequest) ProtoMessage()

func (*GetPaymentHistoryRequest) ProtoReflect

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

func (*GetPaymentHistoryRequest) Reset

func (x *GetPaymentHistoryRequest) Reset()

func (*GetPaymentHistoryRequest) String

func (x *GetPaymentHistoryRequest) String() string

func (*GetPaymentHistoryRequest) Validate

func (m *GetPaymentHistoryRequest) Validate() error

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

type GetPaymentHistoryRequestValidationError

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

GetPaymentHistoryRequestValidationError is the validation error returned by GetPaymentHistoryRequest.Validate if the designated constraints aren't met.

func (GetPaymentHistoryRequestValidationError) Cause

Cause function returns cause value.

func (GetPaymentHistoryRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPaymentHistoryRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPaymentHistoryRequestValidationError) Field

Field function returns field value.

func (GetPaymentHistoryRequestValidationError) Key

Key function returns key value.

func (GetPaymentHistoryRequestValidationError) Reason

Reason function returns reason value.

type GetPaymentHistoryRequest_Direction

type GetPaymentHistoryRequest_Direction int32
const (
	// ASC direction returns all history items in ascending order.
	GetPaymentHistoryRequest_ASC GetPaymentHistoryRequest_Direction = 0
	// DESC direction returns all history items in descending order.
	GetPaymentHistoryRequest_DESC GetPaymentHistoryRequest_Direction = 1
)

func (GetPaymentHistoryRequest_Direction) Descriptor

func (GetPaymentHistoryRequest_Direction) Enum

func (GetPaymentHistoryRequest_Direction) EnumDescriptor deprecated

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

Deprecated: Use GetPaymentHistoryRequest_Direction.Descriptor instead.

func (GetPaymentHistoryRequest_Direction) Number

func (GetPaymentHistoryRequest_Direction) String

func (GetPaymentHistoryRequest_Direction) Type

type GetPaymentHistoryResponse

type GetPaymentHistoryResponse struct {
	Result GetPaymentHistoryResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.transaction.v2.GetPaymentHistoryResponse_Result" json:"result,omitempty"`
	Items  []*PaymentHistoryItem            `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPaymentHistoryResponse) Descriptor deprecated

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

Deprecated: Use GetPaymentHistoryResponse.ProtoReflect.Descriptor instead.

func (*GetPaymentHistoryResponse) GetItems

func (*GetPaymentHistoryResponse) GetResult

func (*GetPaymentHistoryResponse) ProtoMessage

func (*GetPaymentHistoryResponse) ProtoMessage()

func (*GetPaymentHistoryResponse) ProtoReflect

func (*GetPaymentHistoryResponse) Reset

func (x *GetPaymentHistoryResponse) Reset()

func (*GetPaymentHistoryResponse) String

func (x *GetPaymentHistoryResponse) String() string

func (*GetPaymentHistoryResponse) Validate

func (m *GetPaymentHistoryResponse) Validate() error

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

type GetPaymentHistoryResponseValidationError

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

GetPaymentHistoryResponseValidationError is the validation error returned by GetPaymentHistoryResponse.Validate if the designated constraints aren't met.

func (GetPaymentHistoryResponseValidationError) Cause

Cause function returns cause value.

func (GetPaymentHistoryResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPaymentHistoryResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPaymentHistoryResponseValidationError) Field

Field function returns field value.

func (GetPaymentHistoryResponseValidationError) Key

Key function returns key value.

func (GetPaymentHistoryResponseValidationError) Reason

Reason function returns reason value.

type GetPaymentHistoryResponse_Result

type GetPaymentHistoryResponse_Result int32
const (
	GetPaymentHistoryResponse_OK        GetPaymentHistoryResponse_Result = 0
	GetPaymentHistoryResponse_NOT_FOUND GetPaymentHistoryResponse_Result = 1
)

func (GetPaymentHistoryResponse_Result) Descriptor

func (GetPaymentHistoryResponse_Result) Enum

func (GetPaymentHistoryResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetPaymentHistoryResponse_Result.Descriptor instead.

func (GetPaymentHistoryResponse_Result) Number

func (GetPaymentHistoryResponse_Result) String

func (GetPaymentHistoryResponse_Result) Type

type GetPrioritizedIntentsForPrivacyUpgradeRequest

type GetPrioritizedIntentsForPrivacyUpgradeRequest struct {

	// The owner account to query against for upgradeable intents.
	Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// The maximum number of intents to return in the response. Default is 10.
	Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// The signature is of serialize(GetPrioritizedIntentsForPrivacyUpgradeRequest)
	// 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 (*GetPrioritizedIntentsForPrivacyUpgradeRequest) Descriptor deprecated

Deprecated: Use GetPrioritizedIntentsForPrivacyUpgradeRequest.ProtoReflect.Descriptor instead.

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) GetLimit

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) GetOwner

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) GetSignature

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) ProtoMessage

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) ProtoReflect

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) Reset

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) String

func (*GetPrioritizedIntentsForPrivacyUpgradeRequest) Validate

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

type GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError

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

GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError is the validation error returned by GetPrioritizedIntentsForPrivacyUpgradeRequest.Validate if the designated constraints aren't met.

func (GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError) Cause

Cause function returns cause value.

func (GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError) Field

Field function returns field value.

func (GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError) Key

Key function returns key value.

func (GetPrioritizedIntentsForPrivacyUpgradeRequestValidationError) Reason

Reason function returns reason value.

type GetPrioritizedIntentsForPrivacyUpgradeResponse

type GetPrioritizedIntentsForPrivacyUpgradeResponse struct {
	Result GetPrioritizedIntentsForPrivacyUpgradeResponse_Result `` /* 145-byte string literal not displayed */
	// Ordered from highest to lowest priority
	Items []*UpgradeableIntent `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) Descriptor deprecated

Deprecated: Use GetPrioritizedIntentsForPrivacyUpgradeResponse.ProtoReflect.Descriptor instead.

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) GetItems

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) GetResult

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) ProtoMessage

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) ProtoReflect

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) Reset

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) String

func (*GetPrioritizedIntentsForPrivacyUpgradeResponse) Validate

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

type GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError

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

GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError is the validation error returned by GetPrioritizedIntentsForPrivacyUpgradeResponse.Validate if the designated constraints aren't met.

func (GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError) Cause

Cause function returns cause value.

func (GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError) Field

Field function returns field value.

func (GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError) Key

Key function returns key value.

func (GetPrioritizedIntentsForPrivacyUpgradeResponseValidationError) Reason

Reason function returns reason value.

type GetPrioritizedIntentsForPrivacyUpgradeResponse_Result

type GetPrioritizedIntentsForPrivacyUpgradeResponse_Result int32
const (
	GetPrioritizedIntentsForPrivacyUpgradeResponse_OK        GetPrioritizedIntentsForPrivacyUpgradeResponse_Result = 0
	GetPrioritizedIntentsForPrivacyUpgradeResponse_NOT_FOUND GetPrioritizedIntentsForPrivacyUpgradeResponse_Result = 1
)

func (GetPrioritizedIntentsForPrivacyUpgradeResponse_Result) Descriptor

func (GetPrioritizedIntentsForPrivacyUpgradeResponse_Result) Enum

func (GetPrioritizedIntentsForPrivacyUpgradeResponse_Result) EnumDescriptor deprecated

Deprecated: Use GetPrioritizedIntentsForPrivacyUpgradeResponse_Result.Descriptor instead.

func (GetPrioritizedIntentsForPrivacyUpgradeResponse_Result) Number

func (GetPrioritizedIntentsForPrivacyUpgradeResponse_Result) String

func (GetPrioritizedIntentsForPrivacyUpgradeResponse_Result) Type

type GetPrivacyUpgradeStatusRequest

type GetPrivacyUpgradeStatusRequest struct {

	// The intent ID
	IntentId *v1.IntentId `protobuf:"bytes,1,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"`
	// The action ID for private transaction
	ActionId uint32 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPrivacyUpgradeStatusRequest) Descriptor deprecated

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

Deprecated: Use GetPrivacyUpgradeStatusRequest.ProtoReflect.Descriptor instead.

func (*GetPrivacyUpgradeStatusRequest) GetActionId

func (x *GetPrivacyUpgradeStatusRequest) GetActionId() uint32

func (*GetPrivacyUpgradeStatusRequest) GetIntentId

func (x *GetPrivacyUpgradeStatusRequest) GetIntentId() *v1.IntentId

func (*GetPrivacyUpgradeStatusRequest) ProtoMessage

func (*GetPrivacyUpgradeStatusRequest) ProtoMessage()

func (*GetPrivacyUpgradeStatusRequest) ProtoReflect

func (*GetPrivacyUpgradeStatusRequest) Reset

func (x *GetPrivacyUpgradeStatusRequest) Reset()

func (*GetPrivacyUpgradeStatusRequest) String

func (*GetPrivacyUpgradeStatusRequest) Validate

func (m *GetPrivacyUpgradeStatusRequest) Validate() error

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

type GetPrivacyUpgradeStatusRequestValidationError

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

GetPrivacyUpgradeStatusRequestValidationError is the validation error returned by GetPrivacyUpgradeStatusRequest.Validate if the designated constraints aren't met.

func (GetPrivacyUpgradeStatusRequestValidationError) Cause

Cause function returns cause value.

func (GetPrivacyUpgradeStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPrivacyUpgradeStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPrivacyUpgradeStatusRequestValidationError) Field

Field function returns field value.

func (GetPrivacyUpgradeStatusRequestValidationError) Key

Key function returns key value.

func (GetPrivacyUpgradeStatusRequestValidationError) Reason

Reason function returns reason value.

type GetPrivacyUpgradeStatusResponse

type GetPrivacyUpgradeStatusResponse struct {
	Result GetPrivacyUpgradeStatusResponse_Result `` /* 130-byte string literal not displayed */
	Status GetPrivacyUpgradeStatusResponse_Status `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetPrivacyUpgradeStatusResponse) Descriptor deprecated

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

Deprecated: Use GetPrivacyUpgradeStatusResponse.ProtoReflect.Descriptor instead.

func (*GetPrivacyUpgradeStatusResponse) GetResult

func (*GetPrivacyUpgradeStatusResponse) GetStatus

func (*GetPrivacyUpgradeStatusResponse) ProtoMessage

func (*GetPrivacyUpgradeStatusResponse) ProtoMessage()

func (*GetPrivacyUpgradeStatusResponse) ProtoReflect

func (*GetPrivacyUpgradeStatusResponse) Reset

func (*GetPrivacyUpgradeStatusResponse) String

func (*GetPrivacyUpgradeStatusResponse) Validate

func (m *GetPrivacyUpgradeStatusResponse) Validate() error

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

type GetPrivacyUpgradeStatusResponseValidationError

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

GetPrivacyUpgradeStatusResponseValidationError is the validation error returned by GetPrivacyUpgradeStatusResponse.Validate if the designated constraints aren't met.

func (GetPrivacyUpgradeStatusResponseValidationError) Cause

Cause function returns cause value.

func (GetPrivacyUpgradeStatusResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPrivacyUpgradeStatusResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPrivacyUpgradeStatusResponseValidationError) Field

Field function returns field value.

func (GetPrivacyUpgradeStatusResponseValidationError) Key

Key function returns key value.

func (GetPrivacyUpgradeStatusResponseValidationError) Reason

Reason function returns reason value.

type GetPrivacyUpgradeStatusResponse_Result

type GetPrivacyUpgradeStatusResponse_Result int32
const (
	GetPrivacyUpgradeStatusResponse_OK GetPrivacyUpgradeStatusResponse_Result = 0
	// The provided intent ID doesn't exist
	GetPrivacyUpgradeStatusResponse_INTENT_NOT_FOUND GetPrivacyUpgradeStatusResponse_Result = 1
	// The provided action ID doesn't exist
	GetPrivacyUpgradeStatusResponse_ACTION_NOT_FOUND GetPrivacyUpgradeStatusResponse_Result = 2
	// The provided action doesn't map to a private transaction
	GetPrivacyUpgradeStatusResponse_INVALID_ACTION GetPrivacyUpgradeStatusResponse_Result = 3
)

func (GetPrivacyUpgradeStatusResponse_Result) Descriptor

func (GetPrivacyUpgradeStatusResponse_Result) Enum

func (GetPrivacyUpgradeStatusResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetPrivacyUpgradeStatusResponse_Result.Descriptor instead.

func (GetPrivacyUpgradeStatusResponse_Result) Number

func (GetPrivacyUpgradeStatusResponse_Result) String

func (GetPrivacyUpgradeStatusResponse_Result) Type

type GetPrivacyUpgradeStatusResponse_Status

type GetPrivacyUpgradeStatusResponse_Status int32
const (
	GetPrivacyUpgradeStatusResponse_UNKNOWN GetPrivacyUpgradeStatusResponse_Status = 0
	// The transaction for the temporary private transaction was submitted and
	// finalized. The opportunity to upgrade was missed.
	GetPrivacyUpgradeStatusResponse_TEMPORARY_TRANSACTION_FINALIZED GetPrivacyUpgradeStatusResponse_Status = 1
	// The next block of transactions hasn't been created. Wait and try again
	// later.
	GetPrivacyUpgradeStatusResponse_WAITING_FOR_NEXT_BLOCK GetPrivacyUpgradeStatusResponse_Status = 2
	// The transaction can be upgraded to permanent privacy
	GetPrivacyUpgradeStatusResponse_READY_FOR_UPGRADE GetPrivacyUpgradeStatusResponse_Status = 3
	// The transaction has already been upgraded
	GetPrivacyUpgradeStatusResponse_ALREADY_UPGRADED GetPrivacyUpgradeStatusResponse_Status = 4
)

func (GetPrivacyUpgradeStatusResponse_Status) Descriptor

func (GetPrivacyUpgradeStatusResponse_Status) Enum

func (GetPrivacyUpgradeStatusResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use GetPrivacyUpgradeStatusResponse_Status.Descriptor instead.

func (GetPrivacyUpgradeStatusResponse_Status) Number

func (GetPrivacyUpgradeStatusResponse_Status) String

func (GetPrivacyUpgradeStatusResponse_Status) 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"`
	// The transaction the server expected to have signed.
	ExpectedTransaction *v1.Transaction `protobuf:"bytes,2,opt,name=expected_transaction,json=expectedTransaction,proto3" json:"expected_transaction,omitempty"`
	// 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) GetExpectedTransaction

func (x *InvalidSignatureErrorDetails) GetExpectedTransaction() *v1.Transaction

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 Metadata

type Metadata struct {

	// Types that are assignable to Type:
	//
	//	*Metadata_OpenAccounts
	//	*Metadata_SendPrivatePayment
	//	*Metadata_ReceivePaymentsPrivately
	//	*Metadata_UpgradePrivacy
	//	*Metadata_MigrateToPrivacy_2022
	//	*Metadata_SendPublicPayment
	//	*Metadata_ReceivePaymentsPublicly
	//	*Metadata_EstablishRelationship
	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) GetEstablishRelationship

func (x *Metadata) GetEstablishRelationship() *EstablishRelationshipMetadata

func (*Metadata) GetMigrateToPrivacy_2022

func (x *Metadata) GetMigrateToPrivacy_2022() *MigrateToPrivacy2022Metadata

func (*Metadata) GetOpenAccounts

func (x *Metadata) GetOpenAccounts() *OpenAccountsMetadata

func (*Metadata) GetReceivePaymentsPrivately

func (x *Metadata) GetReceivePaymentsPrivately() *ReceivePaymentsPrivatelyMetadata

func (*Metadata) GetReceivePaymentsPublicly

func (x *Metadata) GetReceivePaymentsPublicly() *ReceivePaymentsPubliclyMetadata

func (*Metadata) GetSendPrivatePayment

func (x *Metadata) GetSendPrivatePayment() *SendPrivatePaymentMetadata

func (*Metadata) GetSendPublicPayment

func (x *Metadata) GetSendPublicPayment() *SendPublicPaymentMetadata

func (*Metadata) GetType

func (m *Metadata) GetType() isMetadata_Type

func (*Metadata) GetUpgradePrivacy

func (x *Metadata) GetUpgradePrivacy() *UpgradePrivacyMetadata

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_EstablishRelationship

type Metadata_EstablishRelationship struct {
	EstablishRelationship *EstablishRelationshipMetadata `protobuf:"bytes,8,opt,name=establish_relationship,json=establishRelationship,proto3,oneof"`
}

type Metadata_MigrateToPrivacy_2022

type Metadata_MigrateToPrivacy_2022 struct {
	MigrateToPrivacy_2022 *MigrateToPrivacy2022Metadata `protobuf:"bytes,5,opt,name=migrate_to_privacy_2022,json=migrateToPrivacy2022,proto3,oneof"`
}

type Metadata_OpenAccounts

type Metadata_OpenAccounts struct {
	OpenAccounts *OpenAccountsMetadata `protobuf:"bytes,1,opt,name=open_accounts,json=openAccounts,proto3,oneof"`
}

type Metadata_ReceivePaymentsPrivately

type Metadata_ReceivePaymentsPrivately struct {
	ReceivePaymentsPrivately *ReceivePaymentsPrivatelyMetadata `protobuf:"bytes,3,opt,name=receive_payments_privately,json=receivePaymentsPrivately,proto3,oneof"`
}

type Metadata_ReceivePaymentsPublicly

type Metadata_ReceivePaymentsPublicly struct {
	ReceivePaymentsPublicly *ReceivePaymentsPubliclyMetadata `protobuf:"bytes,7,opt,name=receive_payments_publicly,json=receivePaymentsPublicly,proto3,oneof"`
}

type Metadata_SendPrivatePayment

type Metadata_SendPrivatePayment struct {
	SendPrivatePayment *SendPrivatePaymentMetadata `protobuf:"bytes,2,opt,name=send_private_payment,json=sendPrivatePayment,proto3,oneof"`
}

type Metadata_SendPublicPayment

type Metadata_SendPublicPayment struct {
	SendPublicPayment *SendPublicPaymentMetadata `protobuf:"bytes,6,opt,name=send_public_payment,json=sendPublicPayment,proto3,oneof"`
}

type Metadata_UpgradePrivacy

type Metadata_UpgradePrivacy struct {
	UpgradePrivacy *UpgradePrivacyMetadata `protobuf:"bytes,4,opt,name=upgrade_privacy,json=upgradePrivacy,proto3,oneof"`
}

type MicroPaymentLimit

type MicroPaymentLimit struct {

	// Maximum native amount that can be applied per micro payment transaction
	MaxPerTransaction float32 `protobuf:"fixed32,1,opt,name=max_per_transaction,json=maxPerTransaction,proto3" json:"max_per_transaction,omitempty"`
	// Minimum native amount that can be applied per micro payment transaction
	MinPerTransaction float32 `protobuf:"fixed32,2,opt,name=min_per_transaction,json=minPerTransaction,proto3" json:"min_per_transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*MicroPaymentLimit) Descriptor deprecated

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

Deprecated: Use MicroPaymentLimit.ProtoReflect.Descriptor instead.

func (*MicroPaymentLimit) GetMaxPerTransaction

func (x *MicroPaymentLimit) GetMaxPerTransaction() float32

func (*MicroPaymentLimit) GetMinPerTransaction

func (x *MicroPaymentLimit) GetMinPerTransaction() float32

func (*MicroPaymentLimit) ProtoMessage

func (*MicroPaymentLimit) ProtoMessage()

func (*MicroPaymentLimit) ProtoReflect

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

func (*MicroPaymentLimit) Reset

func (x *MicroPaymentLimit) Reset()

func (*MicroPaymentLimit) String

func (x *MicroPaymentLimit) String() string

func (*MicroPaymentLimit) Validate

func (m *MicroPaymentLimit) Validate() error

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

type MicroPaymentLimitValidationError

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

MicroPaymentLimitValidationError is the validation error returned by MicroPaymentLimit.Validate if the designated constraints aren't met.

func (MicroPaymentLimitValidationError) Cause

Cause function returns cause value.

func (MicroPaymentLimitValidationError) Error

Error satisfies the builtin error interface

func (MicroPaymentLimitValidationError) ErrorName

ErrorName returns error name.

func (MicroPaymentLimitValidationError) Field

Field function returns field value.

func (MicroPaymentLimitValidationError) Key

Key function returns key value.

func (MicroPaymentLimitValidationError) Reason

Reason function returns reason value.

type MigrateToPrivacy2022Metadata

type MigrateToPrivacy2022Metadata struct {

	// The exact amount of Kin in quarks being migrated. Set this to zero if
	// the account is empty.
	Quarks uint64 `protobuf:"varint,1,opt,name=quarks,proto3" json:"quarks,omitempty"`
	// contains filtered or unexported fields
}

Migrates existing users prior to the privacy implementation by:

  1. If there are funds in the LEGACY_PRIMARY_2022 account, then move them to the new PRIMARY account, so the client can later simulate a deposit by submitting a *separate* ReceivePaymentsPrivately intent.
  2. Close the LEGACY_PRIMARY_2022 account.

Prereqs:

  • OpenAccounts intent has been submitted

Action spec:

if balance == 0 {
   actions = [CloseEmptyAccountAction(LEGACY_PRIMARY_2022)]
} else {

   actions = [NoPrivacyWitdraw(LEGACY_PRIMARY_2022, PRIMARY, Quarks)]
}

func (*MigrateToPrivacy2022Metadata) Descriptor deprecated

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

Deprecated: Use MigrateToPrivacy2022Metadata.ProtoReflect.Descriptor instead.

func (*MigrateToPrivacy2022Metadata) GetQuarks

func (x *MigrateToPrivacy2022Metadata) GetQuarks() uint64

func (*MigrateToPrivacy2022Metadata) ProtoMessage

func (*MigrateToPrivacy2022Metadata) ProtoMessage()

func (*MigrateToPrivacy2022Metadata) ProtoReflect

func (*MigrateToPrivacy2022Metadata) Reset

func (x *MigrateToPrivacy2022Metadata) Reset()

func (*MigrateToPrivacy2022Metadata) String

func (*MigrateToPrivacy2022Metadata) Validate

func (m *MigrateToPrivacy2022Metadata) Validate() error

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

type MigrateToPrivacy2022MetadataValidationError

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

MigrateToPrivacy2022MetadataValidationError is the validation error returned by MigrateToPrivacy2022Metadata.Validate if the designated constraints aren't met.

func (MigrateToPrivacy2022MetadataValidationError) Cause

Cause function returns cause value.

func (MigrateToPrivacy2022MetadataValidationError) Error

Error satisfies the builtin error interface

func (MigrateToPrivacy2022MetadataValidationError) ErrorName

ErrorName returns error name.

func (MigrateToPrivacy2022MetadataValidationError) Field

Field function returns field value.

func (MigrateToPrivacy2022MetadataValidationError) Key

Key function returns key value.

func (MigrateToPrivacy2022MetadataValidationError) Reason

Reason function returns reason value.

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 Kin quark amount to transfer
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::TransferWithAuthority (source -> destination)
Client Signature Required: Yes

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) 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 intended Kin 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"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::RevokeLockWithAuthority
  4. timelock::DeactivateLock
  5. timelock::Withdraw (source -> destination)
  6. timelock::CloseAccounts
Client Signature Required: Yes

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) 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
	Blockhash *v1.Blockhash `protobuf:"bytes,2,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
	// contains filtered or unexported fields
}

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 `` /* 127-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"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. timelock::Initialize
Client Signature Required: No

All OpenAccountActions for non-primary accounts must be followed with an associated CloseDormantAccountAction to enable server to perform cleanup.

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) 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 {
	// contains filtered or unexported fields
}

Open a set of accounts. Currently, clients should only use this for new users to open all required accounts up front (buckets, incoming, and outgoing).

Action Spec:

actions = [OpenAccountAction(PRIMARY)] for account in [TEMPORARY_INCOMING, TEMPORARY_OUTGOING, BUCKET_1_KIN, ... , BUCKET_1_000_000_KIN]

actions.push_back(OpenAccountAction(account))
actions.push_back(CloseDormantAccount(account))

func (*OpenAccountsMetadata) Descriptor deprecated

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

Deprecated: Use OpenAccountsMetadata.ProtoReflect.Descriptor instead.

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 PaymentHistoryItem

type PaymentHistoryItem struct {

	// The cursor position of this item.
	Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// Exchange data related to the payment
	ExchangeData *ExchangeData `protobuf:"bytes,2,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,omitempty"`
	// Is this payment a send or receive?
	PaymentType PaymentHistoryItem_PaymentType `` /* 151-byte string literal not displayed */
	// If the payment was a SEND, was it a withdraw?
	IsWithdraw bool `protobuf:"varint,4,opt,name=is_withdraw,json=isWithdraw,proto3" json:"is_withdraw,omitempty"`
	// If the payment was a RECEIVE, was it a deposit?
	IsDeposit bool `protobuf:"varint,5,opt,name=is_deposit,json=isDeposit,proto3" json:"is_deposit,omitempty"`
	// The timestamp of the payment
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Was the payment involved in a remote send?
	IsRemoteSend bool `protobuf:"varint,7,opt,name=is_remote_send,json=isRemoteSend,proto3" json:"is_remote_send,omitempty"`
	// If payment_type is RECEIVE and is_remote_send is true, was the funds being
	// returned back to the issuer?
	IsReturned bool `protobuf:"varint,8,opt,name=is_returned,json=isReturned,proto3" json:"is_returned,omitempty"`
	// If payment_type is RECEIVE, is this receive an airdrop part of a reward, incentive, etc.?
	IsAirdrop bool `protobuf:"varint,9,opt,name=is_airdrop,json=isAirdrop,proto3" json:"is_airdrop,omitempty"`
	// If is_airdrop is true, the type of airdrop received.
	AirdropType AirdropType `` /* 133-byte string literal not displayed */
	// Is this a micro payment?
	IsMicroPayment bool `protobuf:"varint,11,opt,name=is_micro_payment,json=isMicroPayment,proto3" json:"is_micro_payment,omitempty"`
	// The intent ID associated with this history item
	IntentId *v1.IntentId `protobuf:"bytes,12,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentHistoryItem) Descriptor deprecated

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

Deprecated: Use PaymentHistoryItem.ProtoReflect.Descriptor instead.

func (*PaymentHistoryItem) GetAirdropType

func (x *PaymentHistoryItem) GetAirdropType() AirdropType

func (*PaymentHistoryItem) GetCursor

func (x *PaymentHistoryItem) GetCursor() *Cursor

func (*PaymentHistoryItem) GetExchangeData

func (x *PaymentHistoryItem) GetExchangeData() *ExchangeData

func (*PaymentHistoryItem) GetIntentId added in v1.3.0

func (x *PaymentHistoryItem) GetIntentId() *v1.IntentId

func (*PaymentHistoryItem) GetIsAirdrop

func (x *PaymentHistoryItem) GetIsAirdrop() bool

func (*PaymentHistoryItem) GetIsDeposit

func (x *PaymentHistoryItem) GetIsDeposit() bool

func (*PaymentHistoryItem) GetIsMicroPayment

func (x *PaymentHistoryItem) GetIsMicroPayment() bool

func (*PaymentHistoryItem) GetIsRemoteSend

func (x *PaymentHistoryItem) GetIsRemoteSend() bool

func (*PaymentHistoryItem) GetIsReturned

func (x *PaymentHistoryItem) GetIsReturned() bool

func (*PaymentHistoryItem) GetIsWithdraw

func (x *PaymentHistoryItem) GetIsWithdraw() bool

func (*PaymentHistoryItem) GetPaymentType

func (*PaymentHistoryItem) GetTimestamp

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

func (*PaymentHistoryItem) ProtoMessage

func (*PaymentHistoryItem) ProtoMessage()

func (*PaymentHistoryItem) ProtoReflect

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

func (*PaymentHistoryItem) Reset

func (x *PaymentHistoryItem) Reset()

func (*PaymentHistoryItem) String

func (x *PaymentHistoryItem) String() string

func (*PaymentHistoryItem) Validate

func (m *PaymentHistoryItem) Validate() error

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

type PaymentHistoryItemValidationError

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

PaymentHistoryItemValidationError is the validation error returned by PaymentHistoryItem.Validate if the designated constraints aren't met.

func (PaymentHistoryItemValidationError) Cause

Cause function returns cause value.

func (PaymentHistoryItemValidationError) Error

Error satisfies the builtin error interface

func (PaymentHistoryItemValidationError) ErrorName

ErrorName returns error name.

func (PaymentHistoryItemValidationError) Field

Field function returns field value.

func (PaymentHistoryItemValidationError) Key

Key function returns key value.

func (PaymentHistoryItemValidationError) Reason

Reason function returns reason value.

type PaymentHistoryItem_PaymentType

type PaymentHistoryItem_PaymentType int32
const (
	PaymentHistoryItem_UNKNOWN PaymentHistoryItem_PaymentType = 0
	PaymentHistoryItem_SEND    PaymentHistoryItem_PaymentType = 1
	PaymentHistoryItem_RECEIVE PaymentHistoryItem_PaymentType = 2
)

func (PaymentHistoryItem_PaymentType) Descriptor

func (PaymentHistoryItem_PaymentType) Enum

func (PaymentHistoryItem_PaymentType) EnumDescriptor deprecated

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

Deprecated: Use PaymentHistoryItem_PaymentType.Descriptor instead.

func (PaymentHistoryItem_PaymentType) Number

func (PaymentHistoryItem_PaymentType) String

func (PaymentHistoryItem_PaymentType) Type

type PermanentPrivacyUpgradeAction

type PermanentPrivacyUpgradeAction struct {

	// The action ID of the temporary private transfer or exchange to upgrade
	ActionId uint32 `protobuf:"varint,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::TransferWithAuthority (source -> different commitment)
Client Signature Required: Yes

func (*PermanentPrivacyUpgradeAction) Descriptor deprecated

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

Deprecated: Use PermanentPrivacyUpgradeAction.ProtoReflect.Descriptor instead.

func (*PermanentPrivacyUpgradeAction) GetActionId

func (x *PermanentPrivacyUpgradeAction) GetActionId() uint32

func (*PermanentPrivacyUpgradeAction) ProtoMessage

func (*PermanentPrivacyUpgradeAction) ProtoMessage()

func (*PermanentPrivacyUpgradeAction) ProtoReflect

func (*PermanentPrivacyUpgradeAction) Reset

func (x *PermanentPrivacyUpgradeAction) Reset()

func (*PermanentPrivacyUpgradeAction) String

func (*PermanentPrivacyUpgradeAction) Validate

func (m *PermanentPrivacyUpgradeAction) Validate() error

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

type PermanentPrivacyUpgradeActionValidationError

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

PermanentPrivacyUpgradeActionValidationError is the validation error returned by PermanentPrivacyUpgradeAction.Validate if the designated constraints aren't met.

func (PermanentPrivacyUpgradeActionValidationError) Cause

Cause function returns cause value.

func (PermanentPrivacyUpgradeActionValidationError) Error

Error satisfies the builtin error interface

func (PermanentPrivacyUpgradeActionValidationError) ErrorName

ErrorName returns error name.

func (PermanentPrivacyUpgradeActionValidationError) Field

Field function returns field value.

func (PermanentPrivacyUpgradeActionValidationError) Key

Key function returns key value.

func (PermanentPrivacyUpgradeActionValidationError) Reason

Reason function returns reason value.

type PermanentPrivacyUpgradeServerParameter

type PermanentPrivacyUpgradeServerParameter struct {

	// The new commitment that is being paid
	NewCommitment *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=new_commitment,json=newCommitment,proto3" json:"new_commitment,omitempty"`
	// The new commitment account's transcript. This is purely needed by client
	// to validate merkle_root with commitment PDA logic.
	NewCommitmentTranscript *v1.Hash `` /* 132-byte string literal not displayed */
	// The new commitment account's destination. This is purely needed by client
	// to validate merkle_root with commitment PDA logic.
	NewCommitmentDestination *v1.SolanaAccountId `` /* 135-byte string literal not displayed */
	// The new commitment account's payment amount. This is purely needed by client
	// to validate merkle_root with commitment PDA logic.
	NewCommitmentAmount uint64 `protobuf:"varint,4,opt,name=new_commitment_amount,json=newCommitmentAmount,proto3" json:"new_commitment_amount,omitempty"`
	// The merkle root, which was the recent root used in the new commitment account
	MerkleRoot *v1.Hash `protobuf:"bytes,5,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	// The merkle proof that validates the original commitment occurred prior to
	// the new commitment server is asking client to pay
	MerkleProof []*v1.Hash `protobuf:"bytes,6,rep,name=merkle_proof,json=merkleProof,proto3" json:"merkle_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*PermanentPrivacyUpgradeServerParameter) Descriptor deprecated

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

Deprecated: Use PermanentPrivacyUpgradeServerParameter.ProtoReflect.Descriptor instead.

func (*PermanentPrivacyUpgradeServerParameter) GetMerkleProof

func (x *PermanentPrivacyUpgradeServerParameter) GetMerkleProof() []*v1.Hash

func (*PermanentPrivacyUpgradeServerParameter) GetMerkleRoot

func (x *PermanentPrivacyUpgradeServerParameter) GetMerkleRoot() *v1.Hash

func (*PermanentPrivacyUpgradeServerParameter) GetNewCommitment

func (*PermanentPrivacyUpgradeServerParameter) GetNewCommitmentAmount

func (x *PermanentPrivacyUpgradeServerParameter) GetNewCommitmentAmount() uint64

func (*PermanentPrivacyUpgradeServerParameter) GetNewCommitmentDestination

func (x *PermanentPrivacyUpgradeServerParameter) GetNewCommitmentDestination() *v1.SolanaAccountId

func (*PermanentPrivacyUpgradeServerParameter) GetNewCommitmentTranscript

func (x *PermanentPrivacyUpgradeServerParameter) GetNewCommitmentTranscript() *v1.Hash

func (*PermanentPrivacyUpgradeServerParameter) ProtoMessage

func (*PermanentPrivacyUpgradeServerParameter) ProtoReflect

func (*PermanentPrivacyUpgradeServerParameter) Reset

func (*PermanentPrivacyUpgradeServerParameter) String

func (*PermanentPrivacyUpgradeServerParameter) Validate

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

type PermanentPrivacyUpgradeServerParameterValidationError

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

PermanentPrivacyUpgradeServerParameterValidationError is the validation error returned by PermanentPrivacyUpgradeServerParameter.Validate if the designated constraints aren't met.

func (PermanentPrivacyUpgradeServerParameterValidationError) Cause

Cause function returns cause value.

func (PermanentPrivacyUpgradeServerParameterValidationError) Error

Error satisfies the builtin error interface

func (PermanentPrivacyUpgradeServerParameterValidationError) ErrorName

ErrorName returns error name.

func (PermanentPrivacyUpgradeServerParameterValidationError) Field

Field function returns field value.

func (PermanentPrivacyUpgradeServerParameterValidationError) Key

Key function returns key value.

func (PermanentPrivacyUpgradeServerParameterValidationError) 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 ReceivePaymentsPrivatelyMetadata

type ReceivePaymentsPrivatelyMetadata struct {

	// The temporary incoming, primary or relationship account to receive funds from
	Source *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// The exact amount of Kin in quarks being received
	Quarks uint64 `protobuf:"varint,2,opt,name=quarks,proto3" json:"quarks,omitempty"`
	// Is the receipt of funds from a deposit? If true, the source account must
	// be a primary or relationship account. Otherwise, it must be from a temporary
	// incoming account.
	IsDeposit bool `protobuf:"varint,3,opt,name=is_deposit,json=isDeposit,proto3" json:"is_deposit,omitempty"`
	// contains filtered or unexported fields
}

Receive funds into an organizer with initial temporary privacy. Clients should also reorganize their bucket accounts and rotate their temporary incoming account as applicable. Only accounts owned and derived by a user's 12 words should operate as a source in this intent type to guarantee privacy upgradeability.

Action Spec (Payment):

actions = [

// Section 1: Transfer Quarks from TEMPORARY_INCOMING account to BUCKET_X_KIN accounts with reorganizations

TemporaryPrivacyTransferAction(TEMPORARY_INCOMING[index], BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
...,
TemporaryPrivacyTransferAction(TEMPORARY_INCOMING[index], BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),

// Section 2: Rotate TEMPORARY_INCOMING account

// Below must appear last in this exact order
CloseEmptyAccountAction(TEMPORARY_INCOMING[index]),
OpenAccountAction(TEMPORARY_INCOMING[index + 1])
CloseDormantAccount(TEMPORARY_INCOMING[index + 1]),

]

Action Spec (Deposit):

source = PRIMARY or RELATIONSHIP actions = [

TemporaryPrivacyTransferAction(source, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
...,
TemporaryPrivacyTransferAction(source, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),

]

func (*ReceivePaymentsPrivatelyMetadata) Descriptor deprecated

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

Deprecated: Use ReceivePaymentsPrivatelyMetadata.ProtoReflect.Descriptor instead.

func (*ReceivePaymentsPrivatelyMetadata) GetIsDeposit

func (x *ReceivePaymentsPrivatelyMetadata) GetIsDeposit() bool

func (*ReceivePaymentsPrivatelyMetadata) GetQuarks

func (*ReceivePaymentsPrivatelyMetadata) GetSource

func (*ReceivePaymentsPrivatelyMetadata) ProtoMessage

func (*ReceivePaymentsPrivatelyMetadata) ProtoMessage()

func (*ReceivePaymentsPrivatelyMetadata) ProtoReflect

func (*ReceivePaymentsPrivatelyMetadata) Reset

func (*ReceivePaymentsPrivatelyMetadata) String

func (*ReceivePaymentsPrivatelyMetadata) Validate

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

type ReceivePaymentsPrivatelyMetadataValidationError

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

ReceivePaymentsPrivatelyMetadataValidationError is the validation error returned by ReceivePaymentsPrivatelyMetadata.Validate if the designated constraints aren't met.

func (ReceivePaymentsPrivatelyMetadataValidationError) Cause

Cause function returns cause value.

func (ReceivePaymentsPrivatelyMetadataValidationError) Error

Error satisfies the builtin error interface

func (ReceivePaymentsPrivatelyMetadataValidationError) ErrorName

ErrorName returns error name.

func (ReceivePaymentsPrivatelyMetadataValidationError) Field

Field function returns field value.

func (ReceivePaymentsPrivatelyMetadataValidationError) Key

Key function returns key value.

func (ReceivePaymentsPrivatelyMetadataValidationError) 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 Kin in 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, is the gift card being voided? The user owner
	// account's 12 words that issued the gift card may only set this flag to true.
	// Functionally, this doesn't affect the intent, but rather if we decide to show
	// it in a user-friendly payment history.
	IsIssuerVoidingGiftCard bool `` /* 137-byte string literal not displayed */
	// 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,5,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,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. Use this intent to receive payments from an account not owned by a user's 12 words into a temporary incoming account, which will guarantee privacy upgradeability.

Action Spec (Remote Send):

actions = [NoPrivacyWithdrawAction(REMOTE_SEND_GIFT_CARD, TEMPORARY_INCOMING[latest_index], 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) GetIsIssuerVoidingGiftCard

func (x *ReceivePaymentsPubliclyMetadata) GetIsIssuerVoidingGiftCard() bool

func (*ReceivePaymentsPubliclyMetadata) GetIsRemoteSend

func (x *ReceivePaymentsPubliclyMetadata) GetIsRemoteSend() bool

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 added in v1.11.0

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 added in v1.11.0

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

Deprecated: Use SendLimit.ProtoReflect.Descriptor instead.

func (*SendLimit) GetMaxPerDay added in v1.11.0

func (x *SendLimit) GetMaxPerDay() float32

func (*SendLimit) GetMaxPerTransaction added in v1.11.0

func (x *SendLimit) GetMaxPerTransaction() float32

func (*SendLimit) GetNextTransaction added in v1.11.0

func (x *SendLimit) GetNextTransaction() float32

func (*SendLimit) ProtoMessage added in v1.11.0

func (*SendLimit) ProtoMessage()

func (*SendLimit) ProtoReflect added in v1.11.0

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

func (*SendLimit) Reset added in v1.11.0

func (x *SendLimit) Reset()

func (*SendLimit) String added in v1.11.0

func (x *SendLimit) String() string

func (*SendLimit) Validate added in v1.11.0

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 added in v1.11.0

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 added in v1.11.0

func (e SendLimitValidationError) Cause() error

Cause function returns cause value.

func (SendLimitValidationError) Error added in v1.11.0

func (e SendLimitValidationError) Error() string

Error satisfies the builtin error interface

func (SendLimitValidationError) ErrorName added in v1.11.0

func (e SendLimitValidationError) ErrorName() string

ErrorName returns error name.

func (SendLimitValidationError) Field added in v1.11.0

func (e SendLimitValidationError) Field() string

Field function returns field value.

func (SendLimitValidationError) Key added in v1.11.0

Key function returns key value.

func (SendLimitValidationError) Reason added in v1.11.0

func (e SendLimitValidationError) Reason() string

Reason function returns reason value.

type SendPrivatePaymentMetadata

type SendPrivatePaymentMetadata struct {

	// The destination token account to send funds to
	Destination *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// The exchange data of total funds being sent to the destination
	ExchangeData *ExchangeData `protobuf:"bytes,2,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,omitempty"`
	// Is the payment a withdrawal? For destinations that are not Code temporary
	// accounts, this must be set to true.
	IsWithdrawal bool `protobuf:"varint,3,opt,name=is_withdrawal,json=isWithdrawal,proto3" json:"is_withdrawal,omitempty"`
	// Is the payment for a remote send?
	IsRemoteSend bool `protobuf:"varint,4,opt,name=is_remote_send,json=isRemoteSend,proto3" json:"is_remote_send,omitempty"`
	// Is the payment for a tip?
	IsTip bool `protobuf:"varint,5,opt,name=is_tip,json=isTip,proto3" json:"is_tip,omitempty"`
	// If is_tip is true, the user being tipped
	TippedUser *TippedUser `protobuf:"bytes,6,opt,name=tipped_user,json=tippedUser,proto3" json:"tipped_user,omitempty"`
	// contains filtered or unexported fields
}

Sends a payment to a destination account with initial temporary privacy. Clients should also reorganize their bucket accounts and rotate their temporary outgoing account.

Action Spec (In Person Cash Payment or Withdrawal or Tip):

actions = [

// Section 1: Transfer ExchangeData.Quarks from BUCKET_X_KIN accounts to TEMPORARY_OUTGOING account with reogranizations

TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyTransferAction(BUCKET_X_KIN, TEMPORARY_OUTGOING[index], multiple * bucketSize),
...,
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyTransferAction(BUCKET_X_KIN, TEMPORARY_OUTGOING[index], multiple * bucketSize),

// Section 2: Rotate TEMPORARY_OUTGOING account

// Below must appear last in this exact order
NoPrivacyWithdrawAction(TEMPORARY_OUTGOING[index], destination, ExchangeData.Quarks),
OpenAccountAction(TEMPORARY_OUTGOING[index + 1]),
CloseDormantAccount(TEMPORARY_OUTGOING[index + 1]),

]

Action Spec (Remote Send):

actions = [

// Section 1: Open REMOTE_SEND_GIFT_CARD account

OpenAccountAction(REMOTE_SEND_GIFT_CARD),

// Section 2: Transfer ExchangeData.Quarks from BUCKET_X_KIN accounts to TEMPORARY_OUTGOING account with reogranizations

TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyTransferAction(BUCKET_X_KIN, TEMPORARY_OUTGOING[index], multiple * bucketSize),
...,
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyTransferAction(BUCKET_X_KIN, TEMPORARY_OUTGOING[index], multiple * bucketSize),

// Section 3: Rotate TEMPORARY_OUTGOING account

// Below must appear last in this exact order
NoPrivacyWithdrawAction(TEMPORARY_OUTGOING[index], REMOTE_SEND_GIFT_CARD, ExchangeData.Quarks),
OpenAccountAction(TEMPORARY_OUTGOING[index + 1]),
CloseDormantAccount(TEMPORARY_OUTGOING[index + 1]),

// Section 4: Close REMOTE_SEND_GIFT_CARD if not redeemed after period of time

CloseDormantAccount(REMOTE_SEND_GIFT_CARD),

Action Spec (Micro Payment):

actions = [

// Section 1: Transfer ExchangeData.Quarks from BUCKET_X_KIN accounts to TEMPORARY_OUTGOING account with reogranizations

TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyTransferAction(BUCKET_X_KIN, TEMPORARY_OUTGOING[index], multiple * bucketSize),
...,
TemporaryPrivacyExchangeAction(BUCKET_X_KIN, BUCKET_X_KIN, multiple * bucketSize),
TemporaryPrivacyTransferAction(BUCKET_X_KIN, TEMPORARY_OUTGOING[index], multiple * bucketSize),

// Section 2: Fee payments

// Hard-coded Code $0.01 USD fee to a dynamic fee account
FeePayment(TEMPORARY_OUTGOING[index], codeFeeAccount, $0.01 USD of Kin),

// Additional fees, exactly as specified in the original payment request
FeePayment(TEMPORARY_OUTGOING[index], additionalFeeAccount0, additionalFeeQuarks0),
...
FeePayment(TEMPORARY_OUTGOING[index], additionalFeeAccountN, additionalFeeQuarksN),

// Section 3: Rotate TEMPORARY_OUTGOING account

// Below must appear last in this exact order
NoPrivacyWithdrawAction(TEMPORARY_OUTGOING[index], destination, ExchangeData.Quarks - $0.01 USD of Kin - additionalFeeQuarks0 - ... - additionalFeeQuarksN),
OpenAccountAction(TEMPORARY_OUTGOING[index + 1]),
CloseDormantAccount(TEMPORARY_OUTGOING[index + 1]),

]

func (*SendPrivatePaymentMetadata) Descriptor deprecated

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

Deprecated: Use SendPrivatePaymentMetadata.ProtoReflect.Descriptor instead.

func (*SendPrivatePaymentMetadata) GetDestination

func (x *SendPrivatePaymentMetadata) GetDestination() *v1.SolanaAccountId

func (*SendPrivatePaymentMetadata) GetExchangeData

func (x *SendPrivatePaymentMetadata) GetExchangeData() *ExchangeData

func (*SendPrivatePaymentMetadata) GetIsRemoteSend

func (x *SendPrivatePaymentMetadata) GetIsRemoteSend() bool

func (*SendPrivatePaymentMetadata) GetIsTip added in v1.15.0

func (x *SendPrivatePaymentMetadata) GetIsTip() bool

func (*SendPrivatePaymentMetadata) GetIsWithdrawal

func (x *SendPrivatePaymentMetadata) GetIsWithdrawal() bool

func (*SendPrivatePaymentMetadata) GetTippedUser added in v1.16.0

func (x *SendPrivatePaymentMetadata) GetTippedUser() *TippedUser

func (*SendPrivatePaymentMetadata) ProtoMessage

func (*SendPrivatePaymentMetadata) ProtoMessage()

func (*SendPrivatePaymentMetadata) ProtoReflect

func (*SendPrivatePaymentMetadata) Reset

func (x *SendPrivatePaymentMetadata) Reset()

func (*SendPrivatePaymentMetadata) String

func (x *SendPrivatePaymentMetadata) String() string

func (*SendPrivatePaymentMetadata) Validate

func (m *SendPrivatePaymentMetadata) Validate() error

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

type SendPrivatePaymentMetadataValidationError

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

SendPrivatePaymentMetadataValidationError is the validation error returned by SendPrivatePaymentMetadata.Validate if the designated constraints aren't met.

func (SendPrivatePaymentMetadataValidationError) Cause

Cause function returns cause value.

func (SendPrivatePaymentMetadataValidationError) Error

Error satisfies the builtin error interface

func (SendPrivatePaymentMetadataValidationError) ErrorName

ErrorName returns error name.

func (SendPrivatePaymentMetadataValidationError) Field

Field function returns field value.

func (SendPrivatePaymentMetadataValidationError) Key

Key function returns key value.

func (SendPrivatePaymentMetadataValidationError) Reason

Reason function returns reason value.

type SendPublicPaymentMetadata

type SendPublicPaymentMetadata struct {

	// The primary or relatinship account where funds will be sent from. The primary
	// account is assumed if this field is not set for backwards compatibility with
	// old clients.
	Source *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// The destination token account to send funds to. This cannot be a Code
	// temporary account.
	Destination *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// The exchange data of total funds being sent to the destination
	ExchangeData *ExchangeData `protobuf:"bytes,2,opt,name=exchange_data,json=exchangeData,proto3" json:"exchange_data,omitempty"`
	// Is the payment a withdrawal? Currently, this is always true.
	IsWithdrawal bool `protobuf:"varint,3,opt,name=is_withdrawal,json=isWithdrawal,proto3" json:"is_withdrawal,omitempty"`
	// contains filtered or unexported fields
}

Send a payment to a destination account publicly.

Action Spec:

source = PRIMARY or RELATIONSHIP actions = [NoPrivacyTransferAction(source, destination, ExchangeData.Quarks)]

func (*SendPublicPaymentMetadata) Descriptor deprecated

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

Deprecated: Use SendPublicPaymentMetadata.ProtoReflect.Descriptor instead.

func (*SendPublicPaymentMetadata) GetDestination

func (x *SendPublicPaymentMetadata) GetDestination() *v1.SolanaAccountId

func (*SendPublicPaymentMetadata) GetExchangeData

func (x *SendPublicPaymentMetadata) GetExchangeData() *ExchangeData

func (*SendPublicPaymentMetadata) GetIsWithdrawal

func (x *SendPublicPaymentMetadata) GetIsWithdrawal() bool

func (*SendPublicPaymentMetadata) GetSource added in v1.4.0

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 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_CloseEmptyAccount
	//	*ServerParameter_CloseDormantAccount
	//	*ServerParameter_NoPrivacyTransfer
	//	*ServerParameter_NoPrivacyWithdraw
	//	*ServerParameter_TemporaryPrivacyTransfer
	//	*ServerParameter_TemporaryPrivacyExchange
	//	*ServerParameter_PermanentPrivacyUpgrade
	//	*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) GetCloseDormantAccount

func (x *ServerParameter) GetCloseDormantAccount() *CloseDormantAccountServerParameter

func (*ServerParameter) GetCloseEmptyAccount

func (x *ServerParameter) GetCloseEmptyAccount() *CloseEmptyAccountServerParameter

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

func (x *ServerParameter) GetPermanentPrivacyUpgrade() *PermanentPrivacyUpgradeServerParameter

func (*ServerParameter) GetTemporaryPrivacyExchange

func (x *ServerParameter) GetTemporaryPrivacyExchange() *TemporaryPrivacyExchangeServerParameter

func (*ServerParameter) GetTemporaryPrivacyTransfer

func (x *ServerParameter) GetTemporaryPrivacyTransfer() *TemporaryPrivacyTransferServerParameter

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_CloseDormantAccount

type ServerParameter_CloseDormantAccount struct {
	CloseDormantAccount *CloseDormantAccountServerParameter `protobuf:"bytes,5,opt,name=close_dormant_account,json=closeDormantAccount,proto3,oneof"`
}

type ServerParameter_CloseEmptyAccount

type ServerParameter_CloseEmptyAccount struct {
	CloseEmptyAccount *CloseEmptyAccountServerParameter `protobuf:"bytes,4,opt,name=close_empty_account,json=closeEmptyAccount,proto3,oneof"`
}

type ServerParameter_FeePayment

type ServerParameter_FeePayment struct {
	FeePayment *FeePaymentServerParameter `protobuf:"bytes,11,opt,name=fee_payment,json=feePayment,proto3,oneof"`
}

type ServerParameter_NoPrivacyTransfer

type ServerParameter_NoPrivacyTransfer struct {
	NoPrivacyTransfer *NoPrivacyTransferServerParameter `protobuf:"bytes,6,opt,name=no_privacy_transfer,json=noPrivacyTransfer,proto3,oneof"`
}

type ServerParameter_NoPrivacyWithdraw

type ServerParameter_NoPrivacyWithdraw struct {
	NoPrivacyWithdraw *NoPrivacyWithdrawServerParameter `protobuf:"bytes,7,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 ServerParameter_PermanentPrivacyUpgrade

type ServerParameter_PermanentPrivacyUpgrade struct {
	PermanentPrivacyUpgrade *PermanentPrivacyUpgradeServerParameter `protobuf:"bytes,10,opt,name=permanent_privacy_upgrade,json=permanentPrivacyUpgrade,proto3,oneof"`
}

type ServerParameter_TemporaryPrivacyExchange

type ServerParameter_TemporaryPrivacyExchange struct {
	TemporaryPrivacyExchange *TemporaryPrivacyExchangeServerParameter `protobuf:"bytes,9,opt,name=temporary_privacy_exchange,json=temporaryPrivacyExchange,proto3,oneof"`
}

type ServerParameter_TemporaryPrivacyTransfer

type ServerParameter_TemporaryPrivacyTransfer struct {
	TemporaryPrivacyTransfer *TemporaryPrivacyTransferServerParameter `protobuf:"bytes,8,opt,name=temporary_privacy_transfer,json=temporaryPrivacyTransfer,proto3,oneof"`
}

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"`
	// Device token for antispam measures against fake devices
	DeviceToken *v1.DeviceToken `protobuf:"bytes,6,opt,name=device_token,json=deviceToken,proto3" json:"device_token,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) GetDeviceToken

func (x *SubmitIntentRequest_SubmitActions) GetDeviceToken() *v1.DeviceToken

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 requiring signature from the
	// authority accounts.
	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=code.transaction.v2.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
	// 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=code.transaction.v2.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 SwapRequest added in v1.8.0

type SwapRequest struct {

	// Types that are assignable to Request:
	//
	//	*SwapRequest_Initiate_
	//	*SwapRequest_SubmitSignature_
	Request isSwapRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*SwapRequest) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapRequest.ProtoReflect.Descriptor instead.

func (*SwapRequest) GetInitiate added in v1.8.0

func (x *SwapRequest) GetInitiate() *SwapRequest_Initiate

func (*SwapRequest) GetRequest added in v1.8.0

func (m *SwapRequest) GetRequest() isSwapRequest_Request

func (*SwapRequest) GetSubmitSignature added in v1.8.0

func (x *SwapRequest) GetSubmitSignature() *SwapRequest_SubmitSignature

func (*SwapRequest) ProtoMessage added in v1.8.0

func (*SwapRequest) ProtoMessage()

func (*SwapRequest) ProtoReflect added in v1.8.0

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

func (*SwapRequest) Reset added in v1.8.0

func (x *SwapRequest) Reset()

func (*SwapRequest) String added in v1.8.0

func (x *SwapRequest) String() string

func (*SwapRequest) Validate added in v1.8.0

func (m *SwapRequest) Validate() error

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

type SwapRequestValidationError added in v1.8.0

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

SwapRequestValidationError is the validation error returned by SwapRequest.Validate if the designated constraints aren't met.

func (SwapRequestValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapRequestValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapRequestValidationError) ErrorName added in v1.8.0

func (e SwapRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SwapRequestValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapRequestValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapRequestValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapRequest_Initiate added in v1.8.0

type SwapRequest_Initiate struct {

	// The verified owner account public key
	Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// The user authority account that will sign to authorize the swap. Ideally,
	// this is an account derived off the owner account that is solely responsible
	// for swapping.
	SwapAuthority *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=swap_authority,json=swapAuthority,proto3" json:"swap_authority,omitempty"`
	// Maximum amount to swap from the source mint, in quarks. If value is set to zero,
	// the entire amount will be swapped.
	Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// Whether the client wants the RPC to wait for blockchain status. If false,
	// then the RPC will return Success when the swap is submitted to the blockchain.
	// Otherwise, the RPC will observe and report back the status of the transaction.
	WaitForBlockchainStatus bool `` /* 135-byte string literal not displayed */
	// The signature is of serialize(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,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapRequest_Initiate) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapRequest_Initiate.ProtoReflect.Descriptor instead.

func (*SwapRequest_Initiate) GetLimit added in v1.8.0

func (x *SwapRequest_Initiate) GetLimit() uint64

func (*SwapRequest_Initiate) GetOwner added in v1.8.0

func (x *SwapRequest_Initiate) GetOwner() *v1.SolanaAccountId

func (*SwapRequest_Initiate) GetSignature added in v1.8.0

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

func (*SwapRequest_Initiate) GetSwapAuthority added in v1.8.0

func (x *SwapRequest_Initiate) GetSwapAuthority() *v1.SolanaAccountId

func (*SwapRequest_Initiate) GetWaitForBlockchainStatus added in v1.8.0

func (x *SwapRequest_Initiate) GetWaitForBlockchainStatus() bool

func (*SwapRequest_Initiate) ProtoMessage added in v1.8.0

func (*SwapRequest_Initiate) ProtoMessage()

func (*SwapRequest_Initiate) ProtoReflect added in v1.8.0

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

func (*SwapRequest_Initiate) Reset added in v1.8.0

func (x *SwapRequest_Initiate) Reset()

func (*SwapRequest_Initiate) String added in v1.8.0

func (x *SwapRequest_Initiate) String() string

func (*SwapRequest_Initiate) Validate added in v1.8.0

func (m *SwapRequest_Initiate) Validate() error

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

type SwapRequest_InitiateValidationError added in v1.8.0

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

SwapRequest_InitiateValidationError is the validation error returned by SwapRequest_Initiate.Validate if the designated constraints aren't met.

func (SwapRequest_InitiateValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapRequest_InitiateValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapRequest_InitiateValidationError) ErrorName added in v1.8.0

ErrorName returns error name.

func (SwapRequest_InitiateValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapRequest_InitiateValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapRequest_InitiateValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapRequest_Initiate_ added in v1.8.0

type SwapRequest_Initiate_ struct {
	Initiate *SwapRequest_Initiate `protobuf:"bytes,1,opt,name=initiate,proto3,oneof"`
}

type SwapRequest_SubmitSignature added in v1.8.0

type SwapRequest_SubmitSignature struct {

	// The signature for the locally constructed swap transaction
	Signature *v1.Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapRequest_SubmitSignature) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapRequest_SubmitSignature.ProtoReflect.Descriptor instead.

func (*SwapRequest_SubmitSignature) GetSignature added in v1.8.0

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

func (*SwapRequest_SubmitSignature) ProtoMessage added in v1.8.0

func (*SwapRequest_SubmitSignature) ProtoMessage()

func (*SwapRequest_SubmitSignature) ProtoReflect added in v1.8.0

func (*SwapRequest_SubmitSignature) Reset added in v1.8.0

func (x *SwapRequest_SubmitSignature) Reset()

func (*SwapRequest_SubmitSignature) String added in v1.8.0

func (x *SwapRequest_SubmitSignature) String() string

func (*SwapRequest_SubmitSignature) Validate added in v1.8.0

func (m *SwapRequest_SubmitSignature) Validate() error

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

type SwapRequest_SubmitSignatureValidationError added in v1.8.0

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

SwapRequest_SubmitSignatureValidationError is the validation error returned by SwapRequest_SubmitSignature.Validate if the designated constraints aren't met.

func (SwapRequest_SubmitSignatureValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapRequest_SubmitSignatureValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapRequest_SubmitSignatureValidationError) ErrorName added in v1.8.0

ErrorName returns error name.

func (SwapRequest_SubmitSignatureValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapRequest_SubmitSignatureValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapRequest_SubmitSignatureValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapRequest_SubmitSignature_ added in v1.8.0

type SwapRequest_SubmitSignature_ struct {
	SubmitSignature *SwapRequest_SubmitSignature `protobuf:"bytes,2,opt,name=submit_signature,json=submitSignature,proto3,oneof"`
}

type SwapResponse added in v1.8.0

type SwapResponse struct {

	// Types that are assignable to Response:
	//
	//	*SwapResponse_ServerParameters_
	//	*SwapResponse_Success_
	//	*SwapResponse_Error_
	Response isSwapResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*SwapResponse) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapResponse.ProtoReflect.Descriptor instead.

func (*SwapResponse) GetError added in v1.8.0

func (x *SwapResponse) GetError() *SwapResponse_Error

func (*SwapResponse) GetResponse added in v1.8.0

func (m *SwapResponse) GetResponse() isSwapResponse_Response

func (*SwapResponse) GetServerParameters added in v1.10.0

func (x *SwapResponse) GetServerParameters() *SwapResponse_ServerParameters

func (*SwapResponse) GetSuccess added in v1.8.0

func (x *SwapResponse) GetSuccess() *SwapResponse_Success

func (*SwapResponse) ProtoMessage added in v1.8.0

func (*SwapResponse) ProtoMessage()

func (*SwapResponse) ProtoReflect added in v1.8.0

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

func (*SwapResponse) Reset added in v1.8.0

func (x *SwapResponse) Reset()

func (*SwapResponse) String added in v1.8.0

func (x *SwapResponse) String() string

func (*SwapResponse) Validate added in v1.8.0

func (m *SwapResponse) Validate() error

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

type SwapResponseValidationError added in v1.8.0

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

SwapResponseValidationError is the validation error returned by SwapResponse.Validate if the designated constraints aren't met.

func (SwapResponseValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapResponseValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapResponseValidationError) ErrorName added in v1.8.0

func (e SwapResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SwapResponseValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapResponseValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapResponseValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapResponse_Error added in v1.8.0

type SwapResponse_Error struct {
	Code         SwapResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=code.transaction.v2.SwapResponse_Error_Code" json:"code,omitempty"`
	ErrorDetails []*ErrorDetails         `protobuf:"bytes,2,rep,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapResponse_Error) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapResponse_Error.ProtoReflect.Descriptor instead.

func (*SwapResponse_Error) GetCode added in v1.8.0

func (*SwapResponse_Error) GetErrorDetails added in v1.8.0

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

func (*SwapResponse_Error) ProtoMessage added in v1.8.0

func (*SwapResponse_Error) ProtoMessage()

func (*SwapResponse_Error) ProtoReflect added in v1.8.0

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

func (*SwapResponse_Error) Reset added in v1.8.0

func (x *SwapResponse_Error) Reset()

func (*SwapResponse_Error) String added in v1.8.0

func (x *SwapResponse_Error) String() string

func (*SwapResponse_Error) Validate added in v1.8.0

func (m *SwapResponse_Error) Validate() error

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

type SwapResponse_ErrorValidationError added in v1.8.0

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

SwapResponse_ErrorValidationError is the validation error returned by SwapResponse_Error.Validate if the designated constraints aren't met.

func (SwapResponse_ErrorValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapResponse_ErrorValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapResponse_ErrorValidationError) ErrorName added in v1.8.0

ErrorName returns error name.

func (SwapResponse_ErrorValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapResponse_ErrorValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapResponse_ErrorValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapResponse_Error_ added in v1.8.0

type SwapResponse_Error_ struct {
	Error *SwapResponse_Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type SwapResponse_Error_Code added in v1.8.0

type SwapResponse_Error_Code int32
const (
	// Denied by a guard (spam, money laundering, etc)
	SwapResponse_Error_DENIED SwapResponse_Error_Code = 0
	// There is an issue with the provided signature.
	SwapResponse_Error_SIGNATURE_ERROR SwapResponse_Error_Code = 2
	// The swap failed server-side validation
	SwapResponse_Error_INVALID_SWAP SwapResponse_Error_Code = 3
	// The submitted swap transaction failed. Attempt the swap again.
	SwapResponse_Error_SWAP_FAILED SwapResponse_Error_Code = 4
)

func (SwapResponse_Error_Code) Descriptor added in v1.8.0

func (SwapResponse_Error_Code) Enum added in v1.8.0

func (SwapResponse_Error_Code) EnumDescriptor deprecated added in v1.8.0

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

Deprecated: Use SwapResponse_Error_Code.Descriptor instead.

func (SwapResponse_Error_Code) Number added in v1.8.0

func (SwapResponse_Error_Code) String added in v1.8.0

func (x SwapResponse_Error_Code) String() string

func (SwapResponse_Error_Code) Type added in v1.8.0

type SwapResponse_ServerParameters added in v1.8.0

type SwapResponse_ServerParameters struct {

	// Subisdizer account that will be paying for the swap
	Payer *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
	// Recent blockhash
	RecentBlockhash *v1.Blockhash `protobuf:"bytes,2,opt,name=recent_blockhash,json=recentBlockhash,proto3" json:"recent_blockhash,omitempty"`
	// Compute unit limit provided to the ComputeBudget::SetComputeUnitLimit
	// instruction. If the value is 0, then the instruction can be omitted.
	ComputeUnitLimit uint32 `protobuf:"varint,3,opt,name=compute_unit_limit,json=computeUnitLimit,proto3" json:"compute_unit_limit,omitempty"`
	// Compute unit price provided in the ComputeBudget::SetComputeUnitPrice
	// instruction. If the value is 0, then the instruction can be omitted.
	ComputeUnitPrice uint64 `protobuf:"varint,4,opt,name=compute_unit_price,json=computeUnitPrice,proto3" json:"compute_unit_price,omitempty"`
	// On-chain program that will be performing the swap
	SwapProgram *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=swap_program,json=swapProgram,proto3" json:"swap_program,omitempty"`
	// Accounts provided to the swap instruction
	SwapIxnAccounts []*v1.InstructionAccount `protobuf:"bytes,6,rep,name=swap_ixn_accounts,json=swapIxnAccounts,proto3" json:"swap_ixn_accounts,omitempty"`
	// Instruction data for the swap instruction
	SwapIxnData []byte `protobuf:"bytes,7,opt,name=swap_ixn_data,json=swapIxnData,proto3" json:"swap_ixn_data,omitempty"`
	// Maximum quarks that will be sent out of the source account after
	// executing the swap. If not, the validation instruction will cause
	// the transaction to fail.
	MaxToSend uint64 `protobuf:"varint,8,opt,name=max_to_send,json=maxToSend,proto3" json:"max_to_send,omitempty"`
	// Minimum quarks that will be received into the destination account
	// after executing the swap. If not, the validation instruction will
	// cause the transaction to fail.
	MinToReceive uint64 `protobuf:"varint,9,opt,name=min_to_receive,json=minToReceive,proto3" json:"min_to_receive,omitempty"`
	// Nonce to use in swap validator state account PDA
	Nonce *v1.SolanaAccountId `protobuf:"bytes,10,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapResponse_ServerParameters) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapResponse_ServerParameters.ProtoReflect.Descriptor instead.

func (*SwapResponse_ServerParameters) GetComputeUnitLimit added in v1.8.0

func (x *SwapResponse_ServerParameters) GetComputeUnitLimit() uint32

func (*SwapResponse_ServerParameters) GetComputeUnitPrice added in v1.8.0

func (x *SwapResponse_ServerParameters) GetComputeUnitPrice() uint64

func (*SwapResponse_ServerParameters) GetMaxToSend added in v1.8.0

func (x *SwapResponse_ServerParameters) GetMaxToSend() uint64

func (*SwapResponse_ServerParameters) GetMinToReceive added in v1.8.0

func (x *SwapResponse_ServerParameters) GetMinToReceive() uint64

func (*SwapResponse_ServerParameters) GetNonce added in v1.8.0

func (*SwapResponse_ServerParameters) GetPayer added in v1.8.0

func (*SwapResponse_ServerParameters) GetRecentBlockhash added in v1.8.0

func (x *SwapResponse_ServerParameters) GetRecentBlockhash() *v1.Blockhash

func (*SwapResponse_ServerParameters) GetSwapIxnAccounts added in v1.8.0

func (x *SwapResponse_ServerParameters) GetSwapIxnAccounts() []*v1.InstructionAccount

func (*SwapResponse_ServerParameters) GetSwapIxnData added in v1.8.0

func (x *SwapResponse_ServerParameters) GetSwapIxnData() []byte

func (*SwapResponse_ServerParameters) GetSwapProgram added in v1.8.0

func (x *SwapResponse_ServerParameters) GetSwapProgram() *v1.SolanaAccountId

func (*SwapResponse_ServerParameters) ProtoMessage added in v1.8.0

func (*SwapResponse_ServerParameters) ProtoMessage()

func (*SwapResponse_ServerParameters) ProtoReflect added in v1.8.0

func (*SwapResponse_ServerParameters) Reset added in v1.8.0

func (x *SwapResponse_ServerParameters) Reset()

func (*SwapResponse_ServerParameters) String added in v1.8.0

func (*SwapResponse_ServerParameters) Validate added in v1.8.0

func (m *SwapResponse_ServerParameters) Validate() error

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

type SwapResponse_ServerParametersValidationError added in v1.8.0

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

SwapResponse_ServerParametersValidationError is the validation error returned by SwapResponse_ServerParameters.Validate if the designated constraints aren't met.

func (SwapResponse_ServerParametersValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapResponse_ServerParametersValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapResponse_ServerParametersValidationError) ErrorName added in v1.8.0

ErrorName returns error name.

func (SwapResponse_ServerParametersValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapResponse_ServerParametersValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapResponse_ServerParametersValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapResponse_ServerParameters_ added in v1.10.0

type SwapResponse_ServerParameters_ struct {
	ServerParameters *SwapResponse_ServerParameters `protobuf:"bytes,1,opt,name=server_parameters,json=serverParameters,proto3,oneof"`
}

type SwapResponse_Success added in v1.8.0

type SwapResponse_Success struct {
	Code SwapResponse_Success_Code `protobuf:"varint,1,opt,name=code,proto3,enum=code.transaction.v2.SwapResponse_Success_Code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapResponse_Success) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SwapResponse_Success.ProtoReflect.Descriptor instead.

func (*SwapResponse_Success) GetCode added in v1.8.0

func (*SwapResponse_Success) ProtoMessage added in v1.8.0

func (*SwapResponse_Success) ProtoMessage()

func (*SwapResponse_Success) ProtoReflect added in v1.8.0

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

func (*SwapResponse_Success) Reset added in v1.8.0

func (x *SwapResponse_Success) Reset()

func (*SwapResponse_Success) String added in v1.8.0

func (x *SwapResponse_Success) String() string

func (*SwapResponse_Success) Validate added in v1.8.0

func (m *SwapResponse_Success) Validate() error

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

type SwapResponse_SuccessValidationError added in v1.8.0

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

SwapResponse_SuccessValidationError is the validation error returned by SwapResponse_Success.Validate if the designated constraints aren't met.

func (SwapResponse_SuccessValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (SwapResponse_SuccessValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (SwapResponse_SuccessValidationError) ErrorName added in v1.8.0

ErrorName returns error name.

func (SwapResponse_SuccessValidationError) Field added in v1.8.0

Field function returns field value.

func (SwapResponse_SuccessValidationError) Key added in v1.8.0

Key function returns key value.

func (SwapResponse_SuccessValidationError) Reason added in v1.8.0

Reason function returns reason value.

type SwapResponse_Success_ added in v1.8.0

type SwapResponse_Success_ struct {
	Success *SwapResponse_Success `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type SwapResponse_Success_Code added in v1.8.0

type SwapResponse_Success_Code int32
const (
	// The swap was submitted to the blockchain.
	SwapResponse_Success_SWAP_SUBMITTED SwapResponse_Success_Code = 0
	// The swap was finalized on the blockchain.
	SwapResponse_Success_SWAP_FINALIZED SwapResponse_Success_Code = 1
)

func (SwapResponse_Success_Code) Descriptor added in v1.8.0

func (SwapResponse_Success_Code) Enum added in v1.8.0

func (SwapResponse_Success_Code) EnumDescriptor deprecated added in v1.8.0

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

Deprecated: Use SwapResponse_Success_Code.Descriptor instead.

func (SwapResponse_Success_Code) Number added in v1.8.0

func (SwapResponse_Success_Code) String added in v1.8.0

func (x SwapResponse_Success_Code) String() string

func (SwapResponse_Success_Code) Type added in v1.8.0

type TemporaryPrivacyExchangeAction

type TemporaryPrivacyExchangeAction 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 exchanged from
	Source *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// The destination account where funds are exchanged to
	Destination *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
	// The Kin quark amount to exchange
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. splitter::TransferWithCommitment (treasury -> destination)
Client Signature Required: No

Transaction 2

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::TransferWithAuthority (source -> commitment)
Client Signature Required: Yes

func (*TemporaryPrivacyExchangeAction) Descriptor deprecated

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

Deprecated: Use TemporaryPrivacyExchangeAction.ProtoReflect.Descriptor instead.

func (*TemporaryPrivacyExchangeAction) GetAmount

func (x *TemporaryPrivacyExchangeAction) GetAmount() uint64

func (*TemporaryPrivacyExchangeAction) GetAuthority

func (*TemporaryPrivacyExchangeAction) GetDestination

func (x *TemporaryPrivacyExchangeAction) GetDestination() *v1.SolanaAccountId

func (*TemporaryPrivacyExchangeAction) GetSource

func (*TemporaryPrivacyExchangeAction) ProtoMessage

func (*TemporaryPrivacyExchangeAction) ProtoMessage()

func (*TemporaryPrivacyExchangeAction) ProtoReflect

func (*TemporaryPrivacyExchangeAction) Reset

func (x *TemporaryPrivacyExchangeAction) Reset()

func (*TemporaryPrivacyExchangeAction) String

func (*TemporaryPrivacyExchangeAction) Validate

func (m *TemporaryPrivacyExchangeAction) Validate() error

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

type TemporaryPrivacyExchangeActionValidationError

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

TemporaryPrivacyExchangeActionValidationError is the validation error returned by TemporaryPrivacyExchangeAction.Validate if the designated constraints aren't met.

func (TemporaryPrivacyExchangeActionValidationError) Cause

Cause function returns cause value.

func (TemporaryPrivacyExchangeActionValidationError) Error

Error satisfies the builtin error interface

func (TemporaryPrivacyExchangeActionValidationError) ErrorName

ErrorName returns error name.

func (TemporaryPrivacyExchangeActionValidationError) Field

Field function returns field value.

func (TemporaryPrivacyExchangeActionValidationError) Key

Key function returns key value.

func (TemporaryPrivacyExchangeActionValidationError) Reason

Reason function returns reason value.

type TemporaryPrivacyExchangeServerParameter

type TemporaryPrivacyExchangeServerParameter struct {

	// The treasury that will be used to split payments and provide a level of privacy
	Treasury *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=treasury,proto3" json:"treasury,omitempty"`
	// A recent root server observed from the treasury
	RecentRoot *v1.Hash `protobuf:"bytes,2,opt,name=recent_root,json=recentRoot,proto3" json:"recent_root,omitempty"`
	// contains filtered or unexported fields
}

func (*TemporaryPrivacyExchangeServerParameter) Descriptor deprecated

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

Deprecated: Use TemporaryPrivacyExchangeServerParameter.ProtoReflect.Descriptor instead.

func (*TemporaryPrivacyExchangeServerParameter) GetRecentRoot

func (x *TemporaryPrivacyExchangeServerParameter) GetRecentRoot() *v1.Hash

func (*TemporaryPrivacyExchangeServerParameter) GetTreasury

func (*TemporaryPrivacyExchangeServerParameter) ProtoMessage

func (*TemporaryPrivacyExchangeServerParameter) ProtoReflect

func (*TemporaryPrivacyExchangeServerParameter) Reset

func (*TemporaryPrivacyExchangeServerParameter) String

func (*TemporaryPrivacyExchangeServerParameter) Validate

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

type TemporaryPrivacyExchangeServerParameterValidationError

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

TemporaryPrivacyExchangeServerParameterValidationError is the validation error returned by TemporaryPrivacyExchangeServerParameter.Validate if the designated constraints aren't met.

func (TemporaryPrivacyExchangeServerParameterValidationError) Cause

Cause function returns cause value.

func (TemporaryPrivacyExchangeServerParameterValidationError) Error

Error satisfies the builtin error interface

func (TemporaryPrivacyExchangeServerParameterValidationError) ErrorName

ErrorName returns error name.

func (TemporaryPrivacyExchangeServerParameterValidationError) Field

Field function returns field value.

func (TemporaryPrivacyExchangeServerParameterValidationError) Key

Key function returns key value.

func (TemporaryPrivacyExchangeServerParameterValidationError) Reason

Reason function returns reason value.

type TemporaryPrivacyTransferAction

type TemporaryPrivacyTransferAction 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 Kin quark amount to transfer
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Transaction 1

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. splitter::TransferWithCommitment (treasury -> destination)
Client Signature Required: No

Transaction 2

Instructions:
  1. system::AdvanceNonce
  2. memo::Memo
  3. timelock::TransferWithAuthority (source -> commitment)
Client Signature Required: Yes

func (*TemporaryPrivacyTransferAction) Descriptor deprecated

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

Deprecated: Use TemporaryPrivacyTransferAction.ProtoReflect.Descriptor instead.

func (*TemporaryPrivacyTransferAction) GetAmount

func (x *TemporaryPrivacyTransferAction) GetAmount() uint64

func (*TemporaryPrivacyTransferAction) GetAuthority

func (*TemporaryPrivacyTransferAction) GetDestination

func (x *TemporaryPrivacyTransferAction) GetDestination() *v1.SolanaAccountId

func (*TemporaryPrivacyTransferAction) GetSource

func (*TemporaryPrivacyTransferAction) ProtoMessage

func (*TemporaryPrivacyTransferAction) ProtoMessage()

func (*TemporaryPrivacyTransferAction) ProtoReflect

func (*TemporaryPrivacyTransferAction) Reset

func (x *TemporaryPrivacyTransferAction) Reset()

func (*TemporaryPrivacyTransferAction) String

func (*TemporaryPrivacyTransferAction) Validate

func (m *TemporaryPrivacyTransferAction) Validate() error

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

type TemporaryPrivacyTransferActionValidationError

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

TemporaryPrivacyTransferActionValidationError is the validation error returned by TemporaryPrivacyTransferAction.Validate if the designated constraints aren't met.

func (TemporaryPrivacyTransferActionValidationError) Cause

Cause function returns cause value.

func (TemporaryPrivacyTransferActionValidationError) Error

Error satisfies the builtin error interface

func (TemporaryPrivacyTransferActionValidationError) ErrorName

ErrorName returns error name.

func (TemporaryPrivacyTransferActionValidationError) Field

Field function returns field value.

func (TemporaryPrivacyTransferActionValidationError) Key

Key function returns key value.

func (TemporaryPrivacyTransferActionValidationError) Reason

Reason function returns reason value.

type TemporaryPrivacyTransferServerParameter

type TemporaryPrivacyTransferServerParameter struct {

	// The treasury that will be used to split payments and provide a level of privacy
	Treasury *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=treasury,proto3" json:"treasury,omitempty"`
	// A recent root server observed from the treasury
	RecentRoot *v1.Hash `protobuf:"bytes,2,opt,name=recent_root,json=recentRoot,proto3" json:"recent_root,omitempty"`
	// contains filtered or unexported fields
}

func (*TemporaryPrivacyTransferServerParameter) Descriptor deprecated

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

Deprecated: Use TemporaryPrivacyTransferServerParameter.ProtoReflect.Descriptor instead.

func (*TemporaryPrivacyTransferServerParameter) GetRecentRoot

func (x *TemporaryPrivacyTransferServerParameter) GetRecentRoot() *v1.Hash

func (*TemporaryPrivacyTransferServerParameter) GetTreasury

func (*TemporaryPrivacyTransferServerParameter) ProtoMessage

func (*TemporaryPrivacyTransferServerParameter) ProtoReflect

func (*TemporaryPrivacyTransferServerParameter) Reset

func (*TemporaryPrivacyTransferServerParameter) String

func (*TemporaryPrivacyTransferServerParameter) Validate

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

type TemporaryPrivacyTransferServerParameterValidationError

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

TemporaryPrivacyTransferServerParameterValidationError is the validation error returned by TemporaryPrivacyTransferServerParameter.Validate if the designated constraints aren't met.

func (TemporaryPrivacyTransferServerParameterValidationError) Cause

Cause function returns cause value.

func (TemporaryPrivacyTransferServerParameterValidationError) Error

Error satisfies the builtin error interface

func (TemporaryPrivacyTransferServerParameterValidationError) ErrorName

ErrorName returns error name.

func (TemporaryPrivacyTransferServerParameterValidationError) Field

Field function returns field value.

func (TemporaryPrivacyTransferServerParameterValidationError) Key

Key function returns key value.

func (TemporaryPrivacyTransferServerParameterValidationError) Reason

Reason function returns reason value.

type TippedUser added in v1.16.0

type TippedUser struct {
	Platform TippedUser_Platform `protobuf:"varint,1,opt,name=platform,proto3,enum=code.transaction.v2.TippedUser_Platform" json:"platform,omitempty"`
	Username string              `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*TippedUser) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TippedUser.ProtoReflect.Descriptor instead.

func (*TippedUser) GetPlatform added in v1.16.0

func (x *TippedUser) GetPlatform() TippedUser_Platform

func (*TippedUser) GetUsername added in v1.16.0

func (x *TippedUser) GetUsername() string

func (*TippedUser) ProtoMessage added in v1.16.0

func (*TippedUser) ProtoMessage()

func (*TippedUser) ProtoReflect added in v1.16.0

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

func (*TippedUser) Reset added in v1.16.0

func (x *TippedUser) Reset()

func (*TippedUser) String added in v1.16.0

func (x *TippedUser) String() string

func (*TippedUser) Validate added in v1.16.0

func (m *TippedUser) Validate() error

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

type TippedUserValidationError added in v1.16.0

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

TippedUserValidationError is the validation error returned by TippedUser.Validate if the designated constraints aren't met.

func (TippedUserValidationError) Cause added in v1.16.0

func (e TippedUserValidationError) Cause() error

Cause function returns cause value.

func (TippedUserValidationError) Error added in v1.16.0

Error satisfies the builtin error interface

func (TippedUserValidationError) ErrorName added in v1.16.0

func (e TippedUserValidationError) ErrorName() string

ErrorName returns error name.

func (TippedUserValidationError) Field added in v1.16.0

Field function returns field value.

func (TippedUserValidationError) Key added in v1.16.0

Key function returns key value.

func (TippedUserValidationError) Reason added in v1.16.0

func (e TippedUserValidationError) Reason() string

Reason function returns reason value.

type TippedUser_Platform added in v1.16.0

type TippedUser_Platform int32
const (
	TippedUser_UNKNOWN TippedUser_Platform = 0
	TippedUser_TWITTER TippedUser_Platform = 1
)

func (TippedUser_Platform) Descriptor added in v1.16.0

func (TippedUser_Platform) Enum added in v1.16.0

func (TippedUser_Platform) EnumDescriptor deprecated added in v1.16.0

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

Deprecated: Use TippedUser_Platform.Descriptor instead.

func (TippedUser_Platform) Number added in v1.16.0

func (TippedUser_Platform) String added in v1.16.0

func (x TippedUser_Platform) String() string

func (TippedUser_Platform) Type added in v1.16.0

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 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 transaction 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 of all transactions.
	//
	// 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 requiring the user's signature, then server
	//     returns SubmitIntentResponse.ServerParameters
	//     3b. Otherwise, server returns SubmitIntentResponse.Success and closes the
	//     stream
	//  4. For each transaction 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.
	//  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)
	// GetPrivacyUpgradeStatus gets the status of a private transaction and the
	// ability to upgrade it to permanent privacy.
	GetPrivacyUpgradeStatus(ctx context.Context, in *GetPrivacyUpgradeStatusRequest, opts ...grpc.CallOption) (*GetPrivacyUpgradeStatusResponse, error)
	// GetPrioritizedIntentsForPrivacyUpgrade allows clients to get private
	// intent actions that can be upgraded in a secure and verifiable manner.
	GetPrioritizedIntentsForPrivacyUpgrade(ctx context.Context, in *GetPrioritizedIntentsForPrivacyUpgradeRequest, opts ...grpc.CallOption) (*GetPrioritizedIntentsForPrivacyUpgradeResponse, 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)
	// GetPaymentHistory gets an owner account's payment history inferred from intents
	//
	// Deprecated: Payment history has migrated to chats
	GetPaymentHistory(ctx context.Context, in *GetPaymentHistoryRequest, opts ...grpc.CallOption) (*GetPaymentHistoryResponse, 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 Kin to the requesting account
	Airdrop(ctx context.Context, in *AirdropRequest, opts ...grpc.CallOption) (*AirdropResponse, error)
	// Swap performs an on-chain swap. The high-level flow mirrors SubmitIntent
	// closely. However, due to the time-sensitive nature and unreliability of
	// swaps, they do not fit within the broader intent system. This results in
	// a few key differences:
	//   - Transactions are submitted on a best-effort basis outside of the Code
	//     Sequencer within the RPC handler
	//   - Balance changes are applied after the transaction has finalized
	//   - Transactions use recent blockhashes over a nonce
	//
	// The transaction will have the following instruction format:
	//  1. ComputeBudget::SetComputeUnitLimit
	//  2. ComputeBudget::SetComputeUnitPrice
	//  3. SwapValidator::PreSwap
	//  4. Dynamic swap instruction
	//  5. SwapValidator::PostSwap
	//
	// Note: Currently limited to swapping USDC to Kin.
	// Note: Kin is deposited into the primary account.
	Swap(ctx context.Context, opts ...grpc.CallOption) (Transaction_SwapClient, error)
	// DeclareFiatOnrampPurchaseAttempt is called whenever a user attempts to use a fiat
	// onramp to purchase crypto for use in Code.
	DeclareFiatOnrampPurchaseAttempt(ctx context.Context, in *DeclareFiatOnrampPurchaseAttemptRequest, opts ...grpc.CallOption) (*DeclareFiatOnrampPurchaseAttemptResponse, 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 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 transaction 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 of all transactions.
	//
	// 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 requiring the user's signature, then server
	//     returns SubmitIntentResponse.ServerParameters
	//     3b. Otherwise, server returns SubmitIntentResponse.Success and closes the
	//     stream
	//  4. For each transaction 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.
	//  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)
	// GetPrivacyUpgradeStatus gets the status of a private transaction and the
	// ability to upgrade it to permanent privacy.
	GetPrivacyUpgradeStatus(context.Context, *GetPrivacyUpgradeStatusRequest) (*GetPrivacyUpgradeStatusResponse, error)
	// GetPrioritizedIntentsForPrivacyUpgrade allows clients to get private
	// intent actions that can be upgraded in a secure and verifiable manner.
	GetPrioritizedIntentsForPrivacyUpgrade(context.Context, *GetPrioritizedIntentsForPrivacyUpgradeRequest) (*GetPrioritizedIntentsForPrivacyUpgradeResponse, error)
	// GetLimits gets limits for money moving intents for an owner account in an
	// identity-aware manner
	GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error)
	// GetPaymentHistory gets an owner account's payment history inferred from intents
	//
	// Deprecated: Payment history has migrated to chats
	GetPaymentHistory(context.Context, *GetPaymentHistoryRequest) (*GetPaymentHistoryResponse, 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 Kin to the requesting account
	Airdrop(context.Context, *AirdropRequest) (*AirdropResponse, error)
	// Swap performs an on-chain swap. The high-level flow mirrors SubmitIntent
	// closely. However, due to the time-sensitive nature and unreliability of
	// swaps, they do not fit within the broader intent system. This results in
	// a few key differences:
	//   - Transactions are submitted on a best-effort basis outside of the Code
	//     Sequencer within the RPC handler
	//   - Balance changes are applied after the transaction has finalized
	//   - Transactions use recent blockhashes over a nonce
	//
	// The transaction will have the following instruction format:
	//  1. ComputeBudget::SetComputeUnitLimit
	//  2. ComputeBudget::SetComputeUnitPrice
	//  3. SwapValidator::PreSwap
	//  4. Dynamic swap instruction
	//  5. SwapValidator::PostSwap
	//
	// Note: Currently limited to swapping USDC to Kin.
	// Note: Kin is deposited into the primary account.
	Swap(Transaction_SwapServer) error
	// DeclareFiatOnrampPurchaseAttempt is called whenever a user attempts to use a fiat
	// onramp to purchase crypto for use in Code.
	DeclareFiatOnrampPurchaseAttempt(context.Context, *DeclareFiatOnrampPurchaseAttemptRequest) (*DeclareFiatOnrampPurchaseAttemptResponse, error)
	// contains filtered or unexported methods
}

TransactionServer is the server API for Transaction service. All implementations must embed UnimplementedTransactionServer for forward compatibility

type Transaction_SubmitIntentClient

type Transaction_SubmitIntentClient interface {
	Send(*SubmitIntentRequest) error
	Recv() (*SubmitIntentResponse, error)
	grpc.ClientStream
}

type Transaction_SubmitIntentServer

type Transaction_SubmitIntentServer interface {
	Send(*SubmitIntentResponse) error
	Recv() (*SubmitIntentRequest, error)
	grpc.ServerStream
}

type Transaction_SwapClient added in v1.8.0

type Transaction_SwapClient interface {
	Send(*SwapRequest) error
	Recv() (*SwapResponse, error)
	grpc.ClientStream
}

type Transaction_SwapServer added in v1.8.0

type Transaction_SwapServer interface {
	Send(*SwapResponse) error
	Recv() (*SwapRequest, error)
	grpc.ServerStream
}

type UnimplementedTransactionServer

type UnimplementedTransactionServer struct {
}

UnimplementedTransactionServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionServer) Airdrop

func (UnimplementedTransactionServer) DeclareFiatOnrampPurchaseAttempt added in v1.12.2

func (UnimplementedTransactionServer) GetIntentMetadata

func (UnimplementedTransactionServer) GetLimits

func (UnimplementedTransactionServer) GetPaymentHistory

func (UnimplementedTransactionServer) SubmitIntent

func (UnimplementedTransactionServer) Swap added in v1.8.0

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 UpgradePrivacyMetadata

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

Upgrade existing private transactions from temporary to permanent privacy.

func (*UpgradePrivacyMetadata) Descriptor deprecated

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

Deprecated: Use UpgradePrivacyMetadata.ProtoReflect.Descriptor instead.

func (*UpgradePrivacyMetadata) ProtoMessage

func (*UpgradePrivacyMetadata) ProtoMessage()

func (*UpgradePrivacyMetadata) ProtoReflect

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

func (*UpgradePrivacyMetadata) Reset

func (x *UpgradePrivacyMetadata) Reset()

func (*UpgradePrivacyMetadata) String

func (x *UpgradePrivacyMetadata) String() string

func (*UpgradePrivacyMetadata) Validate

func (m *UpgradePrivacyMetadata) Validate() error

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

type UpgradePrivacyMetadataValidationError

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

UpgradePrivacyMetadataValidationError is the validation error returned by UpgradePrivacyMetadata.Validate if the designated constraints aren't met.

func (UpgradePrivacyMetadataValidationError) Cause

Cause function returns cause value.

func (UpgradePrivacyMetadataValidationError) Error

Error satisfies the builtin error interface

func (UpgradePrivacyMetadataValidationError) ErrorName

ErrorName returns error name.

func (UpgradePrivacyMetadataValidationError) Field

Field function returns field value.

func (UpgradePrivacyMetadataValidationError) Key

Key function returns key value.

func (UpgradePrivacyMetadataValidationError) Reason

Reason function returns reason value.

type UpgradeableIntent

type UpgradeableIntent struct {

	// The intent ID
	Id *v1.IntentId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The set of private actions that can be upgraded
	Actions []*UpgradeableIntent_UpgradeablePrivateAction `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

UpgradeableIntent is an intent whose actions can be upgraded.

func (*UpgradeableIntent) Descriptor deprecated

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

Deprecated: Use UpgradeableIntent.ProtoReflect.Descriptor instead.

func (*UpgradeableIntent) GetActions

func (*UpgradeableIntent) GetId

func (x *UpgradeableIntent) GetId() *v1.IntentId

func (*UpgradeableIntent) ProtoMessage

func (*UpgradeableIntent) ProtoMessage()

func (*UpgradeableIntent) ProtoReflect

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

func (*UpgradeableIntent) Reset

func (x *UpgradeableIntent) Reset()

func (*UpgradeableIntent) String

func (x *UpgradeableIntent) String() string

func (*UpgradeableIntent) Validate

func (m *UpgradeableIntent) Validate() error

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

type UpgradeableIntentValidationError

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

UpgradeableIntentValidationError is the validation error returned by UpgradeableIntent.Validate if the designated constraints aren't met.

func (UpgradeableIntentValidationError) Cause

Cause function returns cause value.

func (UpgradeableIntentValidationError) Error

Error satisfies the builtin error interface

func (UpgradeableIntentValidationError) ErrorName

ErrorName returns error name.

func (UpgradeableIntentValidationError) Field

Field function returns field value.

func (UpgradeableIntentValidationError) Key

Key function returns key value.

func (UpgradeableIntentValidationError) Reason

Reason function returns reason value.

type UpgradeableIntent_UpgradeablePrivateAction

type UpgradeableIntent_UpgradeablePrivateAction struct {

	// The transaction blob that was signed by the client. Clients *MUST* use
	// the source and destination account in the timelock::TransferWithAuthority
	// instruction to validate all fields provided by server by locally computing
	// the expected addresses.
	TransactionBlob *v1.Transaction `protobuf:"bytes,1,opt,name=transaction_blob,json=transactionBlob,proto3" json:"transaction_blob,omitempty"`
	// The client's signature for the transaction. Clients MUST use this to
	// locally validate the transaction blob provided by server.
	ClientSignature *v1.Signature `protobuf:"bytes,2,opt,name=client_signature,json=clientSignature,proto3" json:"client_signature,omitempty"`
	// The action ID of this transaction
	ActionId uint32 `protobuf:"varint,3,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	// The source account's type, which hints how to efficiently derive source
	SourceAccountType v1.AccountType `` /* 147-byte string literal not displayed */
	// The source account's derivation index, which hints how to efficiently derive source
	SourceDerivationIndex uint64 `` /* 127-byte string literal not displayed */
	// The original destination account that was paid by the treasury
	OriginalDestination *v1.SolanaAccountId `protobuf:"bytes,6,opt,name=original_destination,json=originalDestination,proto3" json:"original_destination,omitempty"`
	// The original quark amount for the action
	OriginalAmount uint64 `protobuf:"varint,7,opt,name=original_amount,json=originalAmount,proto3" json:"original_amount,omitempty"`
	// The treasury used for this the private action
	Treasury *v1.SolanaAccountId `protobuf:"bytes,8,opt,name=treasury,proto3" json:"treasury,omitempty"`
	// The recent root observed at the time of intent creation for this private action
	RecentRoot *v1.Hash `protobuf:"bytes,9,opt,name=recent_root,json=recentRoot,proto3" json:"recent_root,omitempty"`
	// contains filtered or unexported fields
}

func (*UpgradeableIntent_UpgradeablePrivateAction) Descriptor deprecated

Deprecated: Use UpgradeableIntent_UpgradeablePrivateAction.ProtoReflect.Descriptor instead.

func (*UpgradeableIntent_UpgradeablePrivateAction) GetActionId

func (*UpgradeableIntent_UpgradeablePrivateAction) GetClientSignature

func (x *UpgradeableIntent_UpgradeablePrivateAction) GetClientSignature() *v1.Signature

func (*UpgradeableIntent_UpgradeablePrivateAction) GetOriginalAmount

func (x *UpgradeableIntent_UpgradeablePrivateAction) GetOriginalAmount() uint64

func (*UpgradeableIntent_UpgradeablePrivateAction) GetOriginalDestination

func (x *UpgradeableIntent_UpgradeablePrivateAction) GetOriginalDestination() *v1.SolanaAccountId

func (*UpgradeableIntent_UpgradeablePrivateAction) GetRecentRoot

func (*UpgradeableIntent_UpgradeablePrivateAction) GetSourceAccountType

func (x *UpgradeableIntent_UpgradeablePrivateAction) GetSourceAccountType() v1.AccountType

func (*UpgradeableIntent_UpgradeablePrivateAction) GetSourceDerivationIndex

func (x *UpgradeableIntent_UpgradeablePrivateAction) GetSourceDerivationIndex() uint64

func (*UpgradeableIntent_UpgradeablePrivateAction) GetTransactionBlob

func (*UpgradeableIntent_UpgradeablePrivateAction) GetTreasury

func (*UpgradeableIntent_UpgradeablePrivateAction) ProtoMessage

func (*UpgradeableIntent_UpgradeablePrivateAction) ProtoReflect

func (*UpgradeableIntent_UpgradeablePrivateAction) Reset

func (*UpgradeableIntent_UpgradeablePrivateAction) String

func (*UpgradeableIntent_UpgradeablePrivateAction) Validate

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

type UpgradeableIntent_UpgradeablePrivateActionValidationError

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

UpgradeableIntent_UpgradeablePrivateActionValidationError is the validation error returned by UpgradeableIntent_UpgradeablePrivateAction.Validate if the designated constraints aren't met.

func (UpgradeableIntent_UpgradeablePrivateActionValidationError) Cause

Cause function returns cause value.

func (UpgradeableIntent_UpgradeablePrivateActionValidationError) Error

Error satisfies the builtin error interface

func (UpgradeableIntent_UpgradeablePrivateActionValidationError) ErrorName

ErrorName returns error name.

func (UpgradeableIntent_UpgradeablePrivateActionValidationError) Field

Field function returns field value.

func (UpgradeableIntent_UpgradeablePrivateActionValidationError) Key

Key function returns key value.

func (UpgradeableIntent_UpgradeablePrivateActionValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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