Documentation ¶
Index ¶
- Variables
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountServer
- type GetTokenAccountInfosRequest
- func (*GetTokenAccountInfosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenAccountInfosRequest) GetOwner() *v1.SolanaAccountId
- func (x *GetTokenAccountInfosRequest) GetSignature() *v1.Signature
- func (*GetTokenAccountInfosRequest) ProtoMessage()
- func (x *GetTokenAccountInfosRequest) ProtoReflect() protoreflect.Message
- func (x *GetTokenAccountInfosRequest) Reset()
- func (x *GetTokenAccountInfosRequest) String() string
- func (m *GetTokenAccountInfosRequest) Validate() error
- type GetTokenAccountInfosRequestValidationError
- func (e GetTokenAccountInfosRequestValidationError) Cause() error
- func (e GetTokenAccountInfosRequestValidationError) Error() string
- func (e GetTokenAccountInfosRequestValidationError) ErrorName() string
- func (e GetTokenAccountInfosRequestValidationError) Field() string
- func (e GetTokenAccountInfosRequestValidationError) Key() bool
- func (e GetTokenAccountInfosRequestValidationError) Reason() string
- type GetTokenAccountInfosResponse
- func (*GetTokenAccountInfosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenAccountInfosResponse) GetResult() GetTokenAccountInfosResponse_Result
- func (x *GetTokenAccountInfosResponse) GetTokenAccountInfos() map[string]*TokenAccountInfo
- func (*GetTokenAccountInfosResponse) ProtoMessage()
- func (x *GetTokenAccountInfosResponse) ProtoReflect() protoreflect.Message
- func (x *GetTokenAccountInfosResponse) Reset()
- func (x *GetTokenAccountInfosResponse) String() string
- func (m *GetTokenAccountInfosResponse) Validate() error
- type GetTokenAccountInfosResponseValidationError
- func (e GetTokenAccountInfosResponseValidationError) Cause() error
- func (e GetTokenAccountInfosResponseValidationError) Error() string
- func (e GetTokenAccountInfosResponseValidationError) ErrorName() string
- func (e GetTokenAccountInfosResponseValidationError) Field() string
- func (e GetTokenAccountInfosResponseValidationError) Key() bool
- func (e GetTokenAccountInfosResponseValidationError) Reason() string
- type GetTokenAccountInfosResponse_Result
- func (GetTokenAccountInfosResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetTokenAccountInfosResponse_Result) Enum() *GetTokenAccountInfosResponse_Result
- func (GetTokenAccountInfosResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetTokenAccountInfosResponse_Result) Number() protoreflect.EnumNumber
- func (x GetTokenAccountInfosResponse_Result) String() string
- func (GetTokenAccountInfosResponse_Result) Type() protoreflect.EnumType
- type IsCodeAccountRequest
- func (*IsCodeAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsCodeAccountRequest) GetOwner() *v1.SolanaAccountId
- func (x *IsCodeAccountRequest) GetSignature() *v1.Signature
- func (*IsCodeAccountRequest) ProtoMessage()
- func (x *IsCodeAccountRequest) ProtoReflect() protoreflect.Message
- func (x *IsCodeAccountRequest) Reset()
- func (x *IsCodeAccountRequest) String() string
- func (m *IsCodeAccountRequest) Validate() error
- type IsCodeAccountRequestValidationError
- func (e IsCodeAccountRequestValidationError) Cause() error
- func (e IsCodeAccountRequestValidationError) Error() string
- func (e IsCodeAccountRequestValidationError) ErrorName() string
- func (e IsCodeAccountRequestValidationError) Field() string
- func (e IsCodeAccountRequestValidationError) Key() bool
- func (e IsCodeAccountRequestValidationError) Reason() string
- type IsCodeAccountResponse
- func (*IsCodeAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsCodeAccountResponse) GetResult() IsCodeAccountResponse_Result
- func (*IsCodeAccountResponse) ProtoMessage()
- func (x *IsCodeAccountResponse) ProtoReflect() protoreflect.Message
- func (x *IsCodeAccountResponse) Reset()
- func (x *IsCodeAccountResponse) String() string
- func (m *IsCodeAccountResponse) Validate() error
- type IsCodeAccountResponseValidationError
- func (e IsCodeAccountResponseValidationError) Cause() error
- func (e IsCodeAccountResponseValidationError) Error() string
- func (e IsCodeAccountResponseValidationError) ErrorName() string
- func (e IsCodeAccountResponseValidationError) Field() string
- func (e IsCodeAccountResponseValidationError) Key() bool
- func (e IsCodeAccountResponseValidationError) Reason() string
- type IsCodeAccountResponse_Result
- func (IsCodeAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x IsCodeAccountResponse_Result) Enum() *IsCodeAccountResponse_Result
- func (IsCodeAccountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x IsCodeAccountResponse_Result) Number() protoreflect.EnumNumber
- func (x IsCodeAccountResponse_Result) String() string
- func (IsCodeAccountResponse_Result) Type() protoreflect.EnumType
- type TokenAccountInfo
- func (*TokenAccountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TokenAccountInfo) GetAccountType() v1.AccountType
- func (x *TokenAccountInfo) GetAddress() *v1.SolanaAccountId
- func (x *TokenAccountInfo) GetAuthority() *v1.SolanaAccountId
- func (x *TokenAccountInfo) GetBalance() uint64
- func (x *TokenAccountInfo) GetBalanceSource() TokenAccountInfo_BalanceSource
- func (x *TokenAccountInfo) GetBlockchainState() TokenAccountInfo_BlockchainState
- func (x *TokenAccountInfo) GetClaimState() TokenAccountInfo_ClaimState
- func (x *TokenAccountInfo) GetIndex() uint64
- func (x *TokenAccountInfo) GetManagementState() TokenAccountInfo_ManagementState
- func (x *TokenAccountInfo) GetMint() *v1.SolanaAccountId
- func (x *TokenAccountInfo) GetMintDecimals() uint32
- func (x *TokenAccountInfo) GetMintDisplayName() string
- func (x *TokenAccountInfo) GetMustRotate() bool
- func (x *TokenAccountInfo) GetOriginalExchangeData() *v2.ExchangeData
- func (x *TokenAccountInfo) GetOwner() *v1.SolanaAccountId
- func (x *TokenAccountInfo) GetRelationship() *v1.Relationship
- func (*TokenAccountInfo) ProtoMessage()
- func (x *TokenAccountInfo) ProtoReflect() protoreflect.Message
- func (x *TokenAccountInfo) Reset()
- func (x *TokenAccountInfo) String() string
- func (m *TokenAccountInfo) Validate() error
- type TokenAccountInfoValidationError
- func (e TokenAccountInfoValidationError) Cause() error
- func (e TokenAccountInfoValidationError) Error() string
- func (e TokenAccountInfoValidationError) ErrorName() string
- func (e TokenAccountInfoValidationError) Field() string
- func (e TokenAccountInfoValidationError) Key() bool
- func (e TokenAccountInfoValidationError) Reason() string
- type TokenAccountInfo_BalanceSource
- func (TokenAccountInfo_BalanceSource) Descriptor() protoreflect.EnumDescriptor
- func (x TokenAccountInfo_BalanceSource) Enum() *TokenAccountInfo_BalanceSource
- func (TokenAccountInfo_BalanceSource) EnumDescriptor() ([]byte, []int)deprecated
- func (x TokenAccountInfo_BalanceSource) Number() protoreflect.EnumNumber
- func (x TokenAccountInfo_BalanceSource) String() string
- func (TokenAccountInfo_BalanceSource) Type() protoreflect.EnumType
- type TokenAccountInfo_BlockchainState
- func (TokenAccountInfo_BlockchainState) Descriptor() protoreflect.EnumDescriptor
- func (x TokenAccountInfo_BlockchainState) Enum() *TokenAccountInfo_BlockchainState
- func (TokenAccountInfo_BlockchainState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TokenAccountInfo_BlockchainState) Number() protoreflect.EnumNumber
- func (x TokenAccountInfo_BlockchainState) String() string
- func (TokenAccountInfo_BlockchainState) Type() protoreflect.EnumType
- type TokenAccountInfo_ClaimState
- func (TokenAccountInfo_ClaimState) Descriptor() protoreflect.EnumDescriptor
- func (x TokenAccountInfo_ClaimState) Enum() *TokenAccountInfo_ClaimState
- func (TokenAccountInfo_ClaimState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TokenAccountInfo_ClaimState) Number() protoreflect.EnumNumber
- func (x TokenAccountInfo_ClaimState) String() string
- func (TokenAccountInfo_ClaimState) Type() protoreflect.EnumType
- type TokenAccountInfo_ManagementState
- func (TokenAccountInfo_ManagementState) Descriptor() protoreflect.EnumDescriptor
- func (x TokenAccountInfo_ManagementState) Enum() *TokenAccountInfo_ManagementState
- func (TokenAccountInfo_ManagementState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TokenAccountInfo_ManagementState) Number() protoreflect.EnumNumber
- func (x TokenAccountInfo_ManagementState) String() string
- func (TokenAccountInfo_ManagementState) Type() protoreflect.EnumType
- type UnimplementedAccountServer
- type UnsafeAccountServer
Constants ¶
This section is empty.
Variables ¶
var ( IsCodeAccountResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", 2: "UNLOCKED_TIMELOCK_ACCOUNT", } IsCodeAccountResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, "UNLOCKED_TIMELOCK_ACCOUNT": 2, } )
Enum value maps for IsCodeAccountResponse_Result.
var ( GetTokenAccountInfosResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetTokenAccountInfosResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetTokenAccountInfosResponse_Result.
var ( TokenAccountInfo_BalanceSource_name = map[int32]string{ 0: "BALANCE_SOURCE_UNKNOWN", 1: "BALANCE_SOURCE_BLOCKCHAIN", 2: "BALANCE_SOURCE_CACHE", } TokenAccountInfo_BalanceSource_value = map[string]int32{ "BALANCE_SOURCE_UNKNOWN": 0, "BALANCE_SOURCE_BLOCKCHAIN": 1, "BALANCE_SOURCE_CACHE": 2, } )
Enum value maps for TokenAccountInfo_BalanceSource.
var ( TokenAccountInfo_ManagementState_name = map[int32]string{ 0: "MANAGEMENT_STATE_UNKNOWN", 1: "MANAGEMENT_STATE_NONE", 2: "MANAGEMENT_STATE_LOCKING", 3: "MANAGEMENT_STATE_LOCKED", 4: "MANAGEMENT_STATE_UNLOCKING", 5: "MANAGEMENT_STATE_UNLOCKED", 6: "MANAGEMENT_STATE_CLOSING", 7: "MANAGEMENT_STATE_CLOSED", } TokenAccountInfo_ManagementState_value = map[string]int32{ "MANAGEMENT_STATE_UNKNOWN": 0, "MANAGEMENT_STATE_NONE": 1, "MANAGEMENT_STATE_LOCKING": 2, "MANAGEMENT_STATE_LOCKED": 3, "MANAGEMENT_STATE_UNLOCKING": 4, "MANAGEMENT_STATE_UNLOCKED": 5, "MANAGEMENT_STATE_CLOSING": 6, "MANAGEMENT_STATE_CLOSED": 7, } )
Enum value maps for TokenAccountInfo_ManagementState.
var ( TokenAccountInfo_BlockchainState_name = map[int32]string{ 0: "BLOCKCHAIN_STATE_UNKNOWN", 1: "BLOCKCHAIN_STATE_DOES_NOT_EXIST", 2: "BLOCKCHAIN_STATE_EXISTS", } TokenAccountInfo_BlockchainState_value = map[string]int32{ "BLOCKCHAIN_STATE_UNKNOWN": 0, "BLOCKCHAIN_STATE_DOES_NOT_EXIST": 1, "BLOCKCHAIN_STATE_EXISTS": 2, } )
Enum value maps for TokenAccountInfo_BlockchainState.
var ( TokenAccountInfo_ClaimState_name = map[int32]string{ 0: "CLAIM_STATE_UNKNOWN", 1: "CLAIM_STATE_NOT_CLAIMED", 2: "CLAIM_STATE_CLAIMED", 3: "CLAIM_STATE_EXPIRED", } TokenAccountInfo_ClaimState_value = map[string]int32{ "CLAIM_STATE_UNKNOWN": 0, "CLAIM_STATE_NOT_CLAIMED": 1, "CLAIM_STATE_CLAIMED": 2, "CLAIM_STATE_EXPIRED": 3, } )
Enum value maps for TokenAccountInfo_ClaimState.
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "code.account.v1.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsCodeAccount", Handler: _Account_IsCodeAccount_Handler, }, { MethodName: "GetTokenAccountInfos", Handler: _Account_GetTokenAccountInfos_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/v1/account_service.proto", }
Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_account_v1_account_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { // IsCodeAccount returns whether an owner account is a Code account. This hints // to the client whether the account can be logged in, used for making payments, // etc. IsCodeAccount(ctx context.Context, in *IsCodeAccountRequest, opts ...grpc.CallOption) (*IsCodeAccountResponse, error) // GetTokenAccountInfos returns token account metadata relevant to the Code owner // account. GetTokenAccountInfos(ctx context.Context, in *GetTokenAccountInfosRequest, opts ...grpc.CallOption) (*GetTokenAccountInfosResponse, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountServer ¶
type AccountServer interface { // IsCodeAccount returns whether an owner account is a Code account. This hints // to the client whether the account can be logged in, used for making payments, // etc. IsCodeAccount(context.Context, *IsCodeAccountRequest) (*IsCodeAccountResponse, error) // GetTokenAccountInfos returns token account metadata relevant to the Code owner // account. GetTokenAccountInfos(context.Context, *GetTokenAccountInfosRequest) (*GetTokenAccountInfosResponse, error) // contains filtered or unexported methods }
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility
type GetTokenAccountInfosRequest ¶
type GetTokenAccountInfosRequest struct { // The owner account, which can also be thought of as a parent account for this // RPC that links to one or more token accounts. Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The signature is of serialize(GetTokenAccountInfosRequest) without this field set // using the private key of the owner account. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*GetTokenAccountInfosRequest) Descriptor
deprecated
func (*GetTokenAccountInfosRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenAccountInfosRequest.ProtoReflect.Descriptor instead.
func (*GetTokenAccountInfosRequest) GetOwner ¶
func (x *GetTokenAccountInfosRequest) GetOwner() *v1.SolanaAccountId
func (*GetTokenAccountInfosRequest) GetSignature ¶
func (x *GetTokenAccountInfosRequest) GetSignature() *v1.Signature
func (*GetTokenAccountInfosRequest) ProtoMessage ¶
func (*GetTokenAccountInfosRequest) ProtoMessage()
func (*GetTokenAccountInfosRequest) ProtoReflect ¶
func (x *GetTokenAccountInfosRequest) ProtoReflect() protoreflect.Message
func (*GetTokenAccountInfosRequest) Reset ¶
func (x *GetTokenAccountInfosRequest) Reset()
func (*GetTokenAccountInfosRequest) String ¶
func (x *GetTokenAccountInfosRequest) String() string
func (*GetTokenAccountInfosRequest) Validate ¶
func (m *GetTokenAccountInfosRequest) Validate() error
Validate checks the field values on GetTokenAccountInfosRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetTokenAccountInfosRequestValidationError ¶
type GetTokenAccountInfosRequestValidationError struct {
// contains filtered or unexported fields
}
GetTokenAccountInfosRequestValidationError is the validation error returned by GetTokenAccountInfosRequest.Validate if the designated constraints aren't met.
func (GetTokenAccountInfosRequestValidationError) Cause ¶
func (e GetTokenAccountInfosRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTokenAccountInfosRequestValidationError) Error ¶
func (e GetTokenAccountInfosRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenAccountInfosRequestValidationError) ErrorName ¶
func (e GetTokenAccountInfosRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenAccountInfosRequestValidationError) Field ¶
func (e GetTokenAccountInfosRequestValidationError) Field() string
Field function returns field value.
func (GetTokenAccountInfosRequestValidationError) Key ¶
func (e GetTokenAccountInfosRequestValidationError) Key() bool
Key function returns key value.
func (GetTokenAccountInfosRequestValidationError) Reason ¶
func (e GetTokenAccountInfosRequestValidationError) Reason() string
Reason function returns reason value.
type GetTokenAccountInfosResponse ¶
type GetTokenAccountInfosResponse struct { Result GetTokenAccountInfosResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.account.v1.GetTokenAccountInfosResponse_Result" json:"result,omitempty"` TokenAccountInfos map[string]*TokenAccountInfo `` /* 202-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetTokenAccountInfosResponse) Descriptor
deprecated
func (*GetTokenAccountInfosResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenAccountInfosResponse.ProtoReflect.Descriptor instead.
func (*GetTokenAccountInfosResponse) GetResult ¶
func (x *GetTokenAccountInfosResponse) GetResult() GetTokenAccountInfosResponse_Result
func (*GetTokenAccountInfosResponse) GetTokenAccountInfos ¶
func (x *GetTokenAccountInfosResponse) GetTokenAccountInfos() map[string]*TokenAccountInfo
func (*GetTokenAccountInfosResponse) ProtoMessage ¶
func (*GetTokenAccountInfosResponse) ProtoMessage()
func (*GetTokenAccountInfosResponse) ProtoReflect ¶
func (x *GetTokenAccountInfosResponse) ProtoReflect() protoreflect.Message
func (*GetTokenAccountInfosResponse) Reset ¶
func (x *GetTokenAccountInfosResponse) Reset()
func (*GetTokenAccountInfosResponse) String ¶
func (x *GetTokenAccountInfosResponse) String() string
func (*GetTokenAccountInfosResponse) Validate ¶
func (m *GetTokenAccountInfosResponse) Validate() error
Validate checks the field values on GetTokenAccountInfosResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetTokenAccountInfosResponseValidationError ¶
type GetTokenAccountInfosResponseValidationError struct {
// contains filtered or unexported fields
}
GetTokenAccountInfosResponseValidationError is the validation error returned by GetTokenAccountInfosResponse.Validate if the designated constraints aren't met.
func (GetTokenAccountInfosResponseValidationError) Cause ¶
func (e GetTokenAccountInfosResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTokenAccountInfosResponseValidationError) Error ¶
func (e GetTokenAccountInfosResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenAccountInfosResponseValidationError) ErrorName ¶
func (e GetTokenAccountInfosResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenAccountInfosResponseValidationError) Field ¶
func (e GetTokenAccountInfosResponseValidationError) Field() string
Field function returns field value.
func (GetTokenAccountInfosResponseValidationError) Key ¶
func (e GetTokenAccountInfosResponseValidationError) Key() bool
Key function returns key value.
func (GetTokenAccountInfosResponseValidationError) Reason ¶
func (e GetTokenAccountInfosResponseValidationError) Reason() string
Reason function returns reason value.
type GetTokenAccountInfosResponse_Result ¶
type GetTokenAccountInfosResponse_Result int32
const ( GetTokenAccountInfosResponse_OK GetTokenAccountInfosResponse_Result = 0 GetTokenAccountInfosResponse_NOT_FOUND GetTokenAccountInfosResponse_Result = 1 )
func (GetTokenAccountInfosResponse_Result) Descriptor ¶
func (GetTokenAccountInfosResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetTokenAccountInfosResponse_Result) Enum ¶
func (x GetTokenAccountInfosResponse_Result) Enum() *GetTokenAccountInfosResponse_Result
func (GetTokenAccountInfosResponse_Result) EnumDescriptor
deprecated
func (GetTokenAccountInfosResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetTokenAccountInfosResponse_Result.Descriptor instead.
func (GetTokenAccountInfosResponse_Result) Number ¶
func (x GetTokenAccountInfosResponse_Result) Number() protoreflect.EnumNumber
func (GetTokenAccountInfosResponse_Result) String ¶
func (x GetTokenAccountInfosResponse_Result) String() string
func (GetTokenAccountInfosResponse_Result) Type ¶
func (GetTokenAccountInfosResponse_Result) Type() protoreflect.EnumType
type IsCodeAccountRequest ¶
type IsCodeAccountRequest struct { // The owner account to check against. Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The signature is of serialize(IsCodeAccountRequest) without this field set // using the private key of the owner account. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*IsCodeAccountRequest) Descriptor
deprecated
func (*IsCodeAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsCodeAccountRequest.ProtoReflect.Descriptor instead.
func (*IsCodeAccountRequest) GetOwner ¶
func (x *IsCodeAccountRequest) GetOwner() *v1.SolanaAccountId
func (*IsCodeAccountRequest) GetSignature ¶
func (x *IsCodeAccountRequest) GetSignature() *v1.Signature
func (*IsCodeAccountRequest) ProtoMessage ¶
func (*IsCodeAccountRequest) ProtoMessage()
func (*IsCodeAccountRequest) ProtoReflect ¶
func (x *IsCodeAccountRequest) ProtoReflect() protoreflect.Message
func (*IsCodeAccountRequest) Reset ¶
func (x *IsCodeAccountRequest) Reset()
func (*IsCodeAccountRequest) String ¶
func (x *IsCodeAccountRequest) String() string
func (*IsCodeAccountRequest) Validate ¶
func (m *IsCodeAccountRequest) Validate() error
Validate checks the field values on IsCodeAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type IsCodeAccountRequestValidationError ¶
type IsCodeAccountRequestValidationError struct {
// contains filtered or unexported fields
}
IsCodeAccountRequestValidationError is the validation error returned by IsCodeAccountRequest.Validate if the designated constraints aren't met.
func (IsCodeAccountRequestValidationError) Cause ¶
func (e IsCodeAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (IsCodeAccountRequestValidationError) Error ¶
func (e IsCodeAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IsCodeAccountRequestValidationError) ErrorName ¶
func (e IsCodeAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IsCodeAccountRequestValidationError) Field ¶
func (e IsCodeAccountRequestValidationError) Field() string
Field function returns field value.
func (IsCodeAccountRequestValidationError) Key ¶
func (e IsCodeAccountRequestValidationError) Key() bool
Key function returns key value.
func (IsCodeAccountRequestValidationError) Reason ¶
func (e IsCodeAccountRequestValidationError) Reason() string
Reason function returns reason value.
type IsCodeAccountResponse ¶
type IsCodeAccountResponse struct { Result IsCodeAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.account.v1.IsCodeAccountResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*IsCodeAccountResponse) Descriptor
deprecated
func (*IsCodeAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsCodeAccountResponse.ProtoReflect.Descriptor instead.
func (*IsCodeAccountResponse) GetResult ¶
func (x *IsCodeAccountResponse) GetResult() IsCodeAccountResponse_Result
func (*IsCodeAccountResponse) ProtoMessage ¶
func (*IsCodeAccountResponse) ProtoMessage()
func (*IsCodeAccountResponse) ProtoReflect ¶
func (x *IsCodeAccountResponse) ProtoReflect() protoreflect.Message
func (*IsCodeAccountResponse) Reset ¶
func (x *IsCodeAccountResponse) Reset()
func (*IsCodeAccountResponse) String ¶
func (x *IsCodeAccountResponse) String() string
func (*IsCodeAccountResponse) Validate ¶
func (m *IsCodeAccountResponse) Validate() error
Validate checks the field values on IsCodeAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type IsCodeAccountResponseValidationError ¶
type IsCodeAccountResponseValidationError struct {
// contains filtered or unexported fields
}
IsCodeAccountResponseValidationError is the validation error returned by IsCodeAccountResponse.Validate if the designated constraints aren't met.
func (IsCodeAccountResponseValidationError) Cause ¶
func (e IsCodeAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (IsCodeAccountResponseValidationError) Error ¶
func (e IsCodeAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (IsCodeAccountResponseValidationError) ErrorName ¶
func (e IsCodeAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (IsCodeAccountResponseValidationError) Field ¶
func (e IsCodeAccountResponseValidationError) Field() string
Field function returns field value.
func (IsCodeAccountResponseValidationError) Key ¶
func (e IsCodeAccountResponseValidationError) Key() bool
Key function returns key value.
func (IsCodeAccountResponseValidationError) Reason ¶
func (e IsCodeAccountResponseValidationError) Reason() string
Reason function returns reason value.
type IsCodeAccountResponse_Result ¶
type IsCodeAccountResponse_Result int32
const ( // The account is a Code account. IsCodeAccountResponse_OK IsCodeAccountResponse_Result = 0 // The account is not a Code account. IsCodeAccountResponse_NOT_FOUND IsCodeAccountResponse_Result = 1 // The account exists, but at least one timelock account is unlocked. IsCodeAccountResponse_UNLOCKED_TIMELOCK_ACCOUNT IsCodeAccountResponse_Result = 2 )
func (IsCodeAccountResponse_Result) Descriptor ¶
func (IsCodeAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (IsCodeAccountResponse_Result) Enum ¶
func (x IsCodeAccountResponse_Result) Enum() *IsCodeAccountResponse_Result
func (IsCodeAccountResponse_Result) EnumDescriptor
deprecated
func (IsCodeAccountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use IsCodeAccountResponse_Result.Descriptor instead.
func (IsCodeAccountResponse_Result) Number ¶
func (x IsCodeAccountResponse_Result) Number() protoreflect.EnumNumber
func (IsCodeAccountResponse_Result) String ¶
func (x IsCodeAccountResponse_Result) String() string
func (IsCodeAccountResponse_Result) Type ¶
func (IsCodeAccountResponse_Result) Type() protoreflect.EnumType
type TokenAccountInfo ¶
type TokenAccountInfo struct { // The token account's address Address *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The owner of the token account, which can also be thought of as a parent // account that links to one or more token accounts. This is provided when // available. Owner *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // The token account's authority, which has access to moving funds for the // account. This can be the owner account under certain circumstances (eg. // ATA, primary account). This is provided when available. Authority *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` // The type of token account, which infers its intended use. AccountType v1.AccountType `` /* 127-byte string literal not displayed */ // The account's derivation index for applicable account types. When this field // doesn't apply, a zero value is provided. Index uint64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` // The source of truth for the balance calculation. BalanceSource TokenAccountInfo_BalanceSource `` /* 153-byte string literal not displayed */ // The balance in quarks, as observed by Code. This may not reflect the value // on the blockchain and could be non-zero even if the account hasn't been created. // Use balance_source to determine how this value was calculated. Balance uint64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"` // The state of the account as it pertains to Code's ability to manage funds. ManagementState TokenAccountInfo_ManagementState `` /* 161-byte string literal not displayed */ // The state of the account on the blockchain. BlockchainState TokenAccountInfo_BlockchainState `` /* 161-byte string literal not displayed */ // For temporary incoming accounts only. Flag indicates whether client must // actively try rotating it by issuing a ReceivePaymentsPrivately intent. In // general, clients should wait as long as possible until this flag is true // or requiring the funds to send their next payment. MustRotate bool `protobuf:"varint,10,opt,name=must_rotate,json=mustRotate,proto3" json:"must_rotate,omitempty"` // Whether an account is claimed. This only applies to relevant account types // (eg. REMOTE_SEND_GIFT_CARD). ClaimState TokenAccountInfo_ClaimState `` /* 142-byte string literal not displayed */ // For account types used as an intermediary for sending money between two // users (eg. REMOTE_SEND_GIFT_CARD), this represents the original exchange // data used to fund the account. Over time, this value will become stale: // 1. Exchange rates will fluctuate, so the total fiat amount will differ. // 2. External entities can deposit additional funds into the account, so // the balance, in quarks, may be greater than the original quark value. // 3. The balance could have been received, so the total balance can show // as zero. OriginalExchangeData *v2.ExchangeData `protobuf:"bytes,12,opt,name=original_exchange_data,json=originalExchangeData,proto3" json:"original_exchange_data,omitempty"` // The token account's mint Mint *v1.SolanaAccountId `protobuf:"bytes,13,opt,name=mint,proto3" json:"mint,omitempty"` // The number of decimals configured for the mint MintDecimals uint32 `protobuf:"varint,14,opt,name=mint_decimals,json=mintDecimals,proto3" json:"mint_decimals,omitempty"` // User-friendly display name for the mint MintDisplayName string `protobuf:"bytes,15,opt,name=mint_display_name,json=mintDisplayName,proto3" json:"mint_display_name,omitempty"` // The relationship with a third party that this account has established with. // This only applies to relevant account types (eg. RELATIONSHIP). Relationship *v1.Relationship `protobuf:"bytes,16,opt,name=relationship,proto3" json:"relationship,omitempty"` // contains filtered or unexported fields }
func (*TokenAccountInfo) Descriptor
deprecated
func (*TokenAccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use TokenAccountInfo.ProtoReflect.Descriptor instead.
func (*TokenAccountInfo) GetAccountType ¶
func (x *TokenAccountInfo) GetAccountType() v1.AccountType
func (*TokenAccountInfo) GetAddress ¶
func (x *TokenAccountInfo) GetAddress() *v1.SolanaAccountId
func (*TokenAccountInfo) GetAuthority ¶
func (x *TokenAccountInfo) GetAuthority() *v1.SolanaAccountId
func (*TokenAccountInfo) GetBalance ¶
func (x *TokenAccountInfo) GetBalance() uint64
func (*TokenAccountInfo) GetBalanceSource ¶
func (x *TokenAccountInfo) GetBalanceSource() TokenAccountInfo_BalanceSource
func (*TokenAccountInfo) GetBlockchainState ¶
func (x *TokenAccountInfo) GetBlockchainState() TokenAccountInfo_BlockchainState
func (*TokenAccountInfo) GetClaimState ¶
func (x *TokenAccountInfo) GetClaimState() TokenAccountInfo_ClaimState
func (*TokenAccountInfo) GetIndex ¶
func (x *TokenAccountInfo) GetIndex() uint64
func (*TokenAccountInfo) GetManagementState ¶
func (x *TokenAccountInfo) GetManagementState() TokenAccountInfo_ManagementState
func (*TokenAccountInfo) GetMint ¶ added in v1.2.0
func (x *TokenAccountInfo) GetMint() *v1.SolanaAccountId
func (*TokenAccountInfo) GetMintDecimals ¶ added in v1.2.0
func (x *TokenAccountInfo) GetMintDecimals() uint32
func (*TokenAccountInfo) GetMintDisplayName ¶ added in v1.2.0
func (x *TokenAccountInfo) GetMintDisplayName() string
func (*TokenAccountInfo) GetMustRotate ¶
func (x *TokenAccountInfo) GetMustRotate() bool
func (*TokenAccountInfo) GetOriginalExchangeData ¶
func (x *TokenAccountInfo) GetOriginalExchangeData() *v2.ExchangeData
func (*TokenAccountInfo) GetOwner ¶
func (x *TokenAccountInfo) GetOwner() *v1.SolanaAccountId
func (*TokenAccountInfo) GetRelationship ¶ added in v1.4.0
func (x *TokenAccountInfo) GetRelationship() *v1.Relationship
func (*TokenAccountInfo) ProtoMessage ¶
func (*TokenAccountInfo) ProtoMessage()
func (*TokenAccountInfo) ProtoReflect ¶
func (x *TokenAccountInfo) ProtoReflect() protoreflect.Message
func (*TokenAccountInfo) Reset ¶
func (x *TokenAccountInfo) Reset()
func (*TokenAccountInfo) String ¶
func (x *TokenAccountInfo) String() string
func (*TokenAccountInfo) Validate ¶
func (m *TokenAccountInfo) Validate() error
Validate checks the field values on TokenAccountInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TokenAccountInfoValidationError ¶
type TokenAccountInfoValidationError struct {
// contains filtered or unexported fields
}
TokenAccountInfoValidationError is the validation error returned by TokenAccountInfo.Validate if the designated constraints aren't met.
func (TokenAccountInfoValidationError) Cause ¶
func (e TokenAccountInfoValidationError) Cause() error
Cause function returns cause value.
func (TokenAccountInfoValidationError) Error ¶
func (e TokenAccountInfoValidationError) Error() string
Error satisfies the builtin error interface
func (TokenAccountInfoValidationError) ErrorName ¶
func (e TokenAccountInfoValidationError) ErrorName() string
ErrorName returns error name.
func (TokenAccountInfoValidationError) Field ¶
func (e TokenAccountInfoValidationError) Field() string
Field function returns field value.
func (TokenAccountInfoValidationError) Key ¶
func (e TokenAccountInfoValidationError) Key() bool
Key function returns key value.
func (TokenAccountInfoValidationError) Reason ¶
func (e TokenAccountInfoValidationError) Reason() string
Reason function returns reason value.
type TokenAccountInfo_BalanceSource ¶
type TokenAccountInfo_BalanceSource int32
const ( // The account's balance could not be determined. This may be returned when // the data source is unstable and a reliable balance cannot be determined. TokenAccountInfo_BALANCE_SOURCE_UNKNOWN TokenAccountInfo_BalanceSource = 0 // The account's balance was fetched directly from a finalized state on the // blockchain. TokenAccountInfo_BALANCE_SOURCE_BLOCKCHAIN TokenAccountInfo_BalanceSource = 1 // The account's balance was calculated using cached values in Code. Accuracy // is only guaranteed when management_state is LOCKED. TokenAccountInfo_BALANCE_SOURCE_CACHE TokenAccountInfo_BalanceSource = 2 )
func (TokenAccountInfo_BalanceSource) Descriptor ¶
func (TokenAccountInfo_BalanceSource) Descriptor() protoreflect.EnumDescriptor
func (TokenAccountInfo_BalanceSource) Enum ¶
func (x TokenAccountInfo_BalanceSource) Enum() *TokenAccountInfo_BalanceSource
func (TokenAccountInfo_BalanceSource) EnumDescriptor
deprecated
func (TokenAccountInfo_BalanceSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use TokenAccountInfo_BalanceSource.Descriptor instead.
func (TokenAccountInfo_BalanceSource) Number ¶
func (x TokenAccountInfo_BalanceSource) Number() protoreflect.EnumNumber
func (TokenAccountInfo_BalanceSource) String ¶
func (x TokenAccountInfo_BalanceSource) String() string
func (TokenAccountInfo_BalanceSource) Type ¶
func (TokenAccountInfo_BalanceSource) Type() protoreflect.EnumType
type TokenAccountInfo_BlockchainState ¶
type TokenAccountInfo_BlockchainState int32
const ( // The state of the account is unknown. This may be returned when the // data source is unstable and a reliable state cannot be determined. TokenAccountInfo_BLOCKCHAIN_STATE_UNKNOWN TokenAccountInfo_BlockchainState = 0 // The account does not exist on the blockchain. TokenAccountInfo_BLOCKCHAIN_STATE_DOES_NOT_EXIST TokenAccountInfo_BlockchainState = 1 // The account is created and exists on the blockchain. TokenAccountInfo_BLOCKCHAIN_STATE_EXISTS TokenAccountInfo_BlockchainState = 2 )
func (TokenAccountInfo_BlockchainState) Descriptor ¶
func (TokenAccountInfo_BlockchainState) Descriptor() protoreflect.EnumDescriptor
func (TokenAccountInfo_BlockchainState) Enum ¶
func (x TokenAccountInfo_BlockchainState) Enum() *TokenAccountInfo_BlockchainState
func (TokenAccountInfo_BlockchainState) EnumDescriptor
deprecated
func (TokenAccountInfo_BlockchainState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TokenAccountInfo_BlockchainState.Descriptor instead.
func (TokenAccountInfo_BlockchainState) Number ¶
func (x TokenAccountInfo_BlockchainState) Number() protoreflect.EnumNumber
func (TokenAccountInfo_BlockchainState) String ¶
func (x TokenAccountInfo_BlockchainState) String() string
func (TokenAccountInfo_BlockchainState) Type ¶
func (TokenAccountInfo_BlockchainState) Type() protoreflect.EnumType
type TokenAccountInfo_ClaimState ¶
type TokenAccountInfo_ClaimState int32
const ( // The account doesn't have a concept of being claimed, or the state // could not be fetched by server. TokenAccountInfo_CLAIM_STATE_UNKNOWN TokenAccountInfo_ClaimState = 0 // The account has not yet been claimed. TokenAccountInfo_CLAIM_STATE_NOT_CLAIMED TokenAccountInfo_ClaimState = 1 // The account is claimed. Attempting to claim it will fail. TokenAccountInfo_CLAIM_STATE_CLAIMED TokenAccountInfo_ClaimState = 2 // The account hasn't been claimed, but is expired. Funds will move // back to the issuer. Attempting to claim it will fail. TokenAccountInfo_CLAIM_STATE_EXPIRED TokenAccountInfo_ClaimState = 3 )
func (TokenAccountInfo_ClaimState) Descriptor ¶
func (TokenAccountInfo_ClaimState) Descriptor() protoreflect.EnumDescriptor
func (TokenAccountInfo_ClaimState) Enum ¶
func (x TokenAccountInfo_ClaimState) Enum() *TokenAccountInfo_ClaimState
func (TokenAccountInfo_ClaimState) EnumDescriptor
deprecated
func (TokenAccountInfo_ClaimState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TokenAccountInfo_ClaimState.Descriptor instead.
func (TokenAccountInfo_ClaimState) Number ¶
func (x TokenAccountInfo_ClaimState) Number() protoreflect.EnumNumber
func (TokenAccountInfo_ClaimState) String ¶
func (x TokenAccountInfo_ClaimState) String() string
func (TokenAccountInfo_ClaimState) Type ¶
func (TokenAccountInfo_ClaimState) Type() protoreflect.EnumType
type TokenAccountInfo_ManagementState ¶
type TokenAccountInfo_ManagementState int32
const ( // The state of the account is unknown. This may be returned when the // data source is unstable and a reliable state cannot be determined. TokenAccountInfo_MANAGEMENT_STATE_UNKNOWN TokenAccountInfo_ManagementState = 0 // Code does not maintain a management state and won't move funds for this // account. TokenAccountInfo_MANAGEMENT_STATE_NONE TokenAccountInfo_ManagementState = 1 // The account is in the process of transitioning to the LOCKED state. TokenAccountInfo_MANAGEMENT_STATE_LOCKING TokenAccountInfo_ManagementState = 2 // The account's funds are locked and Code has co-signing authority. TokenAccountInfo_MANAGEMENT_STATE_LOCKED TokenAccountInfo_ManagementState = 3 // The account is in the process of transitioning to the UNLOCKED state. TokenAccountInfo_MANAGEMENT_STATE_UNLOCKING TokenAccountInfo_ManagementState = 4 // The account's funds are unlocked and Code no longer has co-signing // authority. The account must transition to the LOCKED state to have // management capabilities. TokenAccountInfo_MANAGEMENT_STATE_UNLOCKED TokenAccountInfo_ManagementState = 5 // The account is in the process of transitioning to the CLOSED state. TokenAccountInfo_MANAGEMENT_STATE_CLOSING TokenAccountInfo_ManagementState = 6 // The account has been closed and doesn't exist on the blockchain. // Subsequently, it also has a zero balance. TokenAccountInfo_MANAGEMENT_STATE_CLOSED TokenAccountInfo_ManagementState = 7 )
func (TokenAccountInfo_ManagementState) Descriptor ¶
func (TokenAccountInfo_ManagementState) Descriptor() protoreflect.EnumDescriptor
func (TokenAccountInfo_ManagementState) Enum ¶
func (x TokenAccountInfo_ManagementState) Enum() *TokenAccountInfo_ManagementState
func (TokenAccountInfo_ManagementState) EnumDescriptor
deprecated
func (TokenAccountInfo_ManagementState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TokenAccountInfo_ManagementState.Descriptor instead.
func (TokenAccountInfo_ManagementState) Number ¶
func (x TokenAccountInfo_ManagementState) Number() protoreflect.EnumNumber
func (TokenAccountInfo_ManagementState) String ¶
func (x TokenAccountInfo_ManagementState) String() string
func (TokenAccountInfo_ManagementState) Type ¶
func (TokenAccountInfo_ManagementState) Type() protoreflect.EnumType
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServer) GetTokenAccountInfos ¶
func (UnimplementedAccountServer) GetTokenAccountInfos(context.Context, *GetTokenAccountInfosRequest) (*GetTokenAccountInfosResponse, error)
func (UnimplementedAccountServer) IsCodeAccount ¶
func (UnimplementedAccountServer) IsCodeAccount(context.Context, *IsCodeAccountRequest) (*IsCodeAccountResponse, error)
type UnsafeAccountServer ¶
type UnsafeAccountServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.