Documentation
¶
Index ¶
- Variables
- func RegisterAccountServer(s *grpc.Server, srv AccountServer)
- type AccountClient
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)
- func (m *AccountInfo) GetAccountId() *v4.SolanaAccountId
- func (m *AccountInfo) GetBalance() int64
- func (m *AccountInfo) GetCloseAuthority() *v4.SolanaAccountId
- func (m *AccountInfo) GetOwner() *v4.SolanaAccountId
- func (*AccountInfo) ProtoMessage()
- func (m *AccountInfo) Reset()
- func (m *AccountInfo) String() string
- func (m *AccountInfo) Validate() error
- func (m *AccountInfo) XXX_DiscardUnknown()
- func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountInfo) XXX_Merge(src proto.Message)
- func (m *AccountInfo) XXX_Size() int
- func (m *AccountInfo) XXX_Unmarshal(b []byte) error
- type AccountInfoValidationError
- func (e AccountInfoValidationError) Cause() error
- func (e AccountInfoValidationError) Error() string
- func (e AccountInfoValidationError) ErrorName() string
- func (e AccountInfoValidationError) Field() string
- func (e AccountInfoValidationError) Key() bool
- func (e AccountInfoValidationError) Reason() string
- type AccountServer
- type AccountUpdateEvent
- func (*AccountUpdateEvent) Descriptor() ([]byte, []int)
- func (m *AccountUpdateEvent) GetAccountInfo() *AccountInfo
- func (*AccountUpdateEvent) ProtoMessage()
- func (m *AccountUpdateEvent) Reset()
- func (m *AccountUpdateEvent) String() string
- func (m *AccountUpdateEvent) Validate() error
- func (m *AccountUpdateEvent) XXX_DiscardUnknown()
- func (m *AccountUpdateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountUpdateEvent) XXX_Merge(src proto.Message)
- func (m *AccountUpdateEvent) XXX_Size() int
- func (m *AccountUpdateEvent) XXX_Unmarshal(b []byte) error
- type AccountUpdateEventValidationError
- func (e AccountUpdateEventValidationError) Cause() error
- func (e AccountUpdateEventValidationError) Error() string
- func (e AccountUpdateEventValidationError) ErrorName() string
- func (e AccountUpdateEventValidationError) Field() string
- func (e AccountUpdateEventValidationError) Key() bool
- func (e AccountUpdateEventValidationError) Reason() string
- type Account_GetEventsClient
- type Account_GetEventsServer
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)
- func (m *CreateAccountRequest) GetCommitment() v4.Commitment
- func (m *CreateAccountRequest) GetTransaction() *v4.Transaction
- func (*CreateAccountRequest) ProtoMessage()
- func (m *CreateAccountRequest) Reset()
- func (m *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) Validate() error
- func (m *CreateAccountRequest) XXX_DiscardUnknown()
- func (m *CreateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAccountRequest) XXX_Merge(src proto.Message)
- func (m *CreateAccountRequest) XXX_Size() int
- func (m *CreateAccountRequest) XXX_Unmarshal(b []byte) error
- type CreateAccountRequestValidationError
- func (e CreateAccountRequestValidationError) Cause() error
- func (e CreateAccountRequestValidationError) Error() string
- func (e CreateAccountRequestValidationError) ErrorName() string
- func (e CreateAccountRequestValidationError) Field() string
- func (e CreateAccountRequestValidationError) Key() bool
- func (e CreateAccountRequestValidationError) Reason() string
- type CreateAccountResponse
- func (*CreateAccountResponse) Descriptor() ([]byte, []int)
- func (m *CreateAccountResponse) GetAccountInfo() *AccountInfo
- func (m *CreateAccountResponse) GetResult() CreateAccountResponse_Result
- func (*CreateAccountResponse) ProtoMessage()
- func (m *CreateAccountResponse) Reset()
- func (m *CreateAccountResponse) String() string
- func (m *CreateAccountResponse) Validate() error
- func (m *CreateAccountResponse) XXX_DiscardUnknown()
- func (m *CreateAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAccountResponse) XXX_Merge(src proto.Message)
- func (m *CreateAccountResponse) XXX_Size() int
- func (m *CreateAccountResponse) XXX_Unmarshal(b []byte) error
- type CreateAccountResponseValidationError
- func (e CreateAccountResponseValidationError) Cause() error
- func (e CreateAccountResponseValidationError) Error() string
- func (e CreateAccountResponseValidationError) ErrorName() string
- func (e CreateAccountResponseValidationError) Field() string
- func (e CreateAccountResponseValidationError) Key() bool
- func (e CreateAccountResponseValidationError) Reason() string
- type CreateAccountResponse_Result
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetAccountUpdateEvent() *AccountUpdateEvent
- func (m *Event) GetSimulationEvent() *SimulationEvent
- func (m *Event) GetTransactionEvent() *TransactionEvent
- func (m *Event) GetType() isEvent_Type
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) Validate() error
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (*Event) XXX_OneofWrappers() []interface{}
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventValidationError
- type Event_AccountUpdateEvent
- type Event_SimulationEvent
- type Event_TransactionEvent
- type Events
- func (*Events) Descriptor() ([]byte, []int)
- func (m *Events) GetEvents() []*Event
- func (m *Events) GetResult() Events_Result
- func (*Events) ProtoMessage()
- func (m *Events) Reset()
- func (m *Events) String() string
- func (m *Events) Validate() error
- func (m *Events) XXX_DiscardUnknown()
- func (m *Events) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Events) XXX_Merge(src proto.Message)
- func (m *Events) XXX_Size() int
- func (m *Events) XXX_Unmarshal(b []byte) error
- type EventsValidationError
- type Events_Result
- type GetAccountInfoRequest
- func (*GetAccountInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountInfoRequest) GetAccountId() *v4.SolanaAccountId
- func (m *GetAccountInfoRequest) GetCommitment() v4.Commitment
- func (*GetAccountInfoRequest) ProtoMessage()
- func (m *GetAccountInfoRequest) Reset()
- func (m *GetAccountInfoRequest) String() string
- func (m *GetAccountInfoRequest) Validate() error
- func (m *GetAccountInfoRequest) XXX_DiscardUnknown()
- func (m *GetAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountInfoRequest) XXX_Size() int
- func (m *GetAccountInfoRequest) XXX_Unmarshal(b []byte) error
- type GetAccountInfoRequestValidationError
- func (e GetAccountInfoRequestValidationError) Cause() error
- func (e GetAccountInfoRequestValidationError) Error() string
- func (e GetAccountInfoRequestValidationError) ErrorName() string
- func (e GetAccountInfoRequestValidationError) Field() string
- func (e GetAccountInfoRequestValidationError) Key() bool
- func (e GetAccountInfoRequestValidationError) Reason() string
- type GetAccountInfoResponse
- func (*GetAccountInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountInfoResponse) GetAccountInfo() *AccountInfo
- func (m *GetAccountInfoResponse) GetResult() GetAccountInfoResponse_Result
- func (*GetAccountInfoResponse) ProtoMessage()
- func (m *GetAccountInfoResponse) Reset()
- func (m *GetAccountInfoResponse) String() string
- func (m *GetAccountInfoResponse) Validate() error
- func (m *GetAccountInfoResponse) XXX_DiscardUnknown()
- func (m *GetAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetAccountInfoResponse) XXX_Size() int
- func (m *GetAccountInfoResponse) XXX_Unmarshal(b []byte) error
- type GetAccountInfoResponseValidationError
- func (e GetAccountInfoResponseValidationError) Cause() error
- func (e GetAccountInfoResponseValidationError) Error() string
- func (e GetAccountInfoResponseValidationError) ErrorName() string
- func (e GetAccountInfoResponseValidationError) Field() string
- func (e GetAccountInfoResponseValidationError) Key() bool
- func (e GetAccountInfoResponseValidationError) Reason() string
- type GetAccountInfoResponse_Result
- type GetEventsRequest
- func (*GetEventsRequest) Descriptor() ([]byte, []int)
- func (m *GetEventsRequest) GetAccountId() *v4.SolanaAccountId
- func (*GetEventsRequest) ProtoMessage()
- func (m *GetEventsRequest) Reset()
- func (m *GetEventsRequest) String() string
- func (m *GetEventsRequest) Validate() error
- func (m *GetEventsRequest) XXX_DiscardUnknown()
- func (m *GetEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEventsRequest) XXX_Merge(src proto.Message)
- func (m *GetEventsRequest) XXX_Size() int
- func (m *GetEventsRequest) XXX_Unmarshal(b []byte) error
- type GetEventsRequestValidationError
- func (e GetEventsRequestValidationError) Cause() error
- func (e GetEventsRequestValidationError) Error() string
- func (e GetEventsRequestValidationError) ErrorName() string
- func (e GetEventsRequestValidationError) Field() string
- func (e GetEventsRequestValidationError) Key() bool
- func (e GetEventsRequestValidationError) Reason() string
- type ResolveTokenAccountsRequest
- func (*ResolveTokenAccountsRequest) Descriptor() ([]byte, []int)
- func (m *ResolveTokenAccountsRequest) GetAccountId() *v4.SolanaAccountId
- func (m *ResolveTokenAccountsRequest) GetIncludeAccountInfo() bool
- func (*ResolveTokenAccountsRequest) ProtoMessage()
- func (m *ResolveTokenAccountsRequest) Reset()
- func (m *ResolveTokenAccountsRequest) String() string
- func (m *ResolveTokenAccountsRequest) Validate() error
- func (m *ResolveTokenAccountsRequest) XXX_DiscardUnknown()
- func (m *ResolveTokenAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResolveTokenAccountsRequest) XXX_Merge(src proto.Message)
- func (m *ResolveTokenAccountsRequest) XXX_Size() int
- func (m *ResolveTokenAccountsRequest) XXX_Unmarshal(b []byte) error
- type ResolveTokenAccountsRequestValidationError
- func (e ResolveTokenAccountsRequestValidationError) Cause() error
- func (e ResolveTokenAccountsRequestValidationError) Error() string
- func (e ResolveTokenAccountsRequestValidationError) ErrorName() string
- func (e ResolveTokenAccountsRequestValidationError) Field() string
- func (e ResolveTokenAccountsRequestValidationError) Key() bool
- func (e ResolveTokenAccountsRequestValidationError) Reason() string
- type ResolveTokenAccountsResponse
- func (*ResolveTokenAccountsResponse) Descriptor() ([]byte, []int)
- func (m *ResolveTokenAccountsResponse) GetTokenAccountInfos() []*AccountInfo
- func (m *ResolveTokenAccountsResponse) GetTokenAccounts() []*v4.SolanaAccountIddeprecated
- func (*ResolveTokenAccountsResponse) ProtoMessage()
- func (m *ResolveTokenAccountsResponse) Reset()
- func (m *ResolveTokenAccountsResponse) String() string
- func (m *ResolveTokenAccountsResponse) Validate() error
- func (m *ResolveTokenAccountsResponse) XXX_DiscardUnknown()
- func (m *ResolveTokenAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResolveTokenAccountsResponse) XXX_Merge(src proto.Message)
- func (m *ResolveTokenAccountsResponse) XXX_Size() int
- func (m *ResolveTokenAccountsResponse) XXX_Unmarshal(b []byte) error
- type ResolveTokenAccountsResponseValidationError
- func (e ResolveTokenAccountsResponseValidationError) Cause() error
- func (e ResolveTokenAccountsResponseValidationError) Error() string
- func (e ResolveTokenAccountsResponseValidationError) ErrorName() string
- func (e ResolveTokenAccountsResponseValidationError) Field() string
- func (e ResolveTokenAccountsResponseValidationError) Key() bool
- func (e ResolveTokenAccountsResponseValidationError) Reason() string
- type SimulationEvent
- func (*SimulationEvent) Descriptor() ([]byte, []int)
- func (m *SimulationEvent) GetTransaction() *v4.Transaction
- func (m *SimulationEvent) GetTransactionError() *v4.TransactionError
- func (*SimulationEvent) ProtoMessage()
- func (m *SimulationEvent) Reset()
- func (m *SimulationEvent) String() string
- func (m *SimulationEvent) Validate() error
- func (m *SimulationEvent) XXX_DiscardUnknown()
- func (m *SimulationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SimulationEvent) XXX_Merge(src proto.Message)
- func (m *SimulationEvent) XXX_Size() int
- func (m *SimulationEvent) XXX_Unmarshal(b []byte) error
- type SimulationEventValidationError
- func (e SimulationEventValidationError) Cause() error
- func (e SimulationEventValidationError) Error() string
- func (e SimulationEventValidationError) ErrorName() string
- func (e SimulationEventValidationError) Field() string
- func (e SimulationEventValidationError) Key() bool
- func (e SimulationEventValidationError) Reason() string
- type TransactionEvent
- func (*TransactionEvent) Descriptor() ([]byte, []int)
- func (m *TransactionEvent) GetTransaction() *v4.Transaction
- func (m *TransactionEvent) GetTransactionError() *v4.TransactionError
- func (*TransactionEvent) ProtoMessage()
- func (m *TransactionEvent) Reset()
- func (m *TransactionEvent) String() string
- func (m *TransactionEvent) Validate() error
- func (m *TransactionEvent) XXX_DiscardUnknown()
- func (m *TransactionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionEvent) XXX_Merge(src proto.Message)
- func (m *TransactionEvent) XXX_Size() int
- func (m *TransactionEvent) XXX_Unmarshal(b []byte) error
- type TransactionEventValidationError
- func (e TransactionEventValidationError) Cause() error
- func (e TransactionEventValidationError) Error() string
- func (e TransactionEventValidationError) ErrorName() string
- func (e TransactionEventValidationError) Field() string
- func (e TransactionEventValidationError) Key() bool
- func (e TransactionEventValidationError) Reason() string
- type UnimplementedAccountServer
- func (*UnimplementedAccountServer) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*CreateAccountResponse, error)
- func (*UnimplementedAccountServer) GetAccountInfo(ctx context.Context, req *GetAccountInfoRequest) (*GetAccountInfoResponse, error)
- func (*UnimplementedAccountServer) GetEvents(req *GetEventsRequest, srv Account_GetEventsServer) error
- func (*UnimplementedAccountServer) ResolveTokenAccounts(ctx context.Context, req *ResolveTokenAccountsRequest) (*ResolveTokenAccountsResponse, error)
Constants ¶
This section is empty.
Variables ¶
var CreateAccountResponse_Result_name = map[int32]string{
0: "OK",
1: "EXISTS",
2: "PAYER_REQUIRED",
3: "BAD_NONCE",
}
var CreateAccountResponse_Result_value = map[string]int32{
"OK": 0,
"EXISTS": 1,
"PAYER_REQUIRED": 2,
"BAD_NONCE": 3,
}
var Events_Result_name = map[int32]string{
0: "OK",
1: "NOT_FOUND",
}
var Events_Result_value = map[string]int32{
"OK": 0,
"NOT_FOUND": 1,
}
var GetAccountInfoResponse_Result_name = map[int32]string{
0: "OK",
1: "NOT_FOUND",
}
var GetAccountInfoResponse_Result_value = map[string]int32{
"OK": 0,
"NOT_FOUND": 1,
}
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s *grpc.Server, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { // CreateAccount creates a kin token account. CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) // GetAccountInfo returns the information of a specified account. GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, opts ...grpc.CallOption) (*GetAccountInfoResponse, error) // ResolveTokenAccounts resolves a set of Token Accounts owned by the specified account ID. ResolveTokenAccounts(ctx context.Context, in *ResolveTokenAccountsRequest, opts ...grpc.CallOption) (*ResolveTokenAccountsResponse, error) // GetEvents returns a stream of events related to the specified account. // // Note: Only events occurring after stream initiation will be returned. GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (Account_GetEventsClient, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc *grpc.ClientConn) AccountClient
type AccountInfo ¶
type AccountInfo struct { AccountId *v4.SolanaAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // The last known balance, in quarks, of the account. Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` Owner *v4.SolanaAccountId `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` CloseAuthority *v4.SolanaAccountId `protobuf:"bytes,4,opt,name=close_authority,json=closeAuthority,proto3" json:"close_authority,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountInfo) Descriptor ¶
func (*AccountInfo) Descriptor() ([]byte, []int)
func (*AccountInfo) GetAccountId ¶
func (m *AccountInfo) GetAccountId() *v4.SolanaAccountId
func (*AccountInfo) GetBalance ¶
func (m *AccountInfo) GetBalance() int64
func (*AccountInfo) GetCloseAuthority ¶ added in v0.26.0
func (m *AccountInfo) GetCloseAuthority() *v4.SolanaAccountId
func (*AccountInfo) GetOwner ¶ added in v0.26.0
func (m *AccountInfo) GetOwner() *v4.SolanaAccountId
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) Reset ¶
func (m *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (m *AccountInfo) String() string
func (*AccountInfo) Validate ¶
func (m *AccountInfo) Validate() error
Validate checks the field values on AccountInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AccountInfo) XXX_DiscardUnknown ¶
func (m *AccountInfo) XXX_DiscardUnknown()
func (*AccountInfo) XXX_Marshal ¶
func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountInfo) XXX_Merge ¶
func (m *AccountInfo) XXX_Merge(src proto.Message)
func (*AccountInfo) XXX_Size ¶
func (m *AccountInfo) XXX_Size() int
func (*AccountInfo) XXX_Unmarshal ¶
func (m *AccountInfo) XXX_Unmarshal(b []byte) error
type AccountInfoValidationError ¶
type AccountInfoValidationError struct {
// contains filtered or unexported fields
}
AccountInfoValidationError is the validation error returned by AccountInfo.Validate if the designated constraints aren't met.
func (AccountInfoValidationError) Cause ¶
func (e AccountInfoValidationError) Cause() error
Cause function returns cause value.
func (AccountInfoValidationError) Error ¶
func (e AccountInfoValidationError) Error() string
Error satisfies the builtin error interface
func (AccountInfoValidationError) ErrorName ¶
func (e AccountInfoValidationError) ErrorName() string
ErrorName returns error name.
func (AccountInfoValidationError) Field ¶
func (e AccountInfoValidationError) Field() string
Field function returns field value.
func (AccountInfoValidationError) Key ¶
func (e AccountInfoValidationError) Key() bool
Key function returns key value.
func (AccountInfoValidationError) Reason ¶
func (e AccountInfoValidationError) Reason() string
Reason function returns reason value.
type AccountServer ¶
type AccountServer interface { // CreateAccount creates a kin token account. CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) // GetAccountInfo returns the information of a specified account. GetAccountInfo(context.Context, *GetAccountInfoRequest) (*GetAccountInfoResponse, error) // ResolveTokenAccounts resolves a set of Token Accounts owned by the specified account ID. ResolveTokenAccounts(context.Context, *ResolveTokenAccountsRequest) (*ResolveTokenAccountsResponse, error) // GetEvents returns a stream of events related to the specified account. // // Note: Only events occurring after stream initiation will be returned. GetEvents(*GetEventsRequest, Account_GetEventsServer) error }
AccountServer is the server API for Account service.
type AccountUpdateEvent ¶
type AccountUpdateEvent struct { // The account information most recently obtained by the service. AccountInfo *AccountInfo `protobuf:"bytes,1,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event that gets sent when an account's information has changed.
func (*AccountUpdateEvent) Descriptor ¶
func (*AccountUpdateEvent) Descriptor() ([]byte, []int)
func (*AccountUpdateEvent) GetAccountInfo ¶
func (m *AccountUpdateEvent) GetAccountInfo() *AccountInfo
func (*AccountUpdateEvent) ProtoMessage ¶
func (*AccountUpdateEvent) ProtoMessage()
func (*AccountUpdateEvent) Reset ¶
func (m *AccountUpdateEvent) Reset()
func (*AccountUpdateEvent) String ¶
func (m *AccountUpdateEvent) String() string
func (*AccountUpdateEvent) Validate ¶
func (m *AccountUpdateEvent) Validate() error
Validate checks the field values on AccountUpdateEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AccountUpdateEvent) XXX_DiscardUnknown ¶
func (m *AccountUpdateEvent) XXX_DiscardUnknown()
func (*AccountUpdateEvent) XXX_Marshal ¶
func (m *AccountUpdateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountUpdateEvent) XXX_Merge ¶
func (m *AccountUpdateEvent) XXX_Merge(src proto.Message)
func (*AccountUpdateEvent) XXX_Size ¶
func (m *AccountUpdateEvent) XXX_Size() int
func (*AccountUpdateEvent) XXX_Unmarshal ¶
func (m *AccountUpdateEvent) XXX_Unmarshal(b []byte) error
type AccountUpdateEventValidationError ¶
type AccountUpdateEventValidationError struct {
// contains filtered or unexported fields
}
AccountUpdateEventValidationError is the validation error returned by AccountUpdateEvent.Validate if the designated constraints aren't met.
func (AccountUpdateEventValidationError) Cause ¶
func (e AccountUpdateEventValidationError) Cause() error
Cause function returns cause value.
func (AccountUpdateEventValidationError) Error ¶
func (e AccountUpdateEventValidationError) Error() string
Error satisfies the builtin error interface
func (AccountUpdateEventValidationError) ErrorName ¶
func (e AccountUpdateEventValidationError) ErrorName() string
ErrorName returns error name.
func (AccountUpdateEventValidationError) Field ¶
func (e AccountUpdateEventValidationError) Field() string
Field function returns field value.
func (AccountUpdateEventValidationError) Key ¶
func (e AccountUpdateEventValidationError) Key() bool
Key function returns key value.
func (AccountUpdateEventValidationError) Reason ¶
func (e AccountUpdateEventValidationError) Reason() string
Reason function returns reason value.
type Account_GetEventsClient ¶
type Account_GetEventsClient interface { Recv() (*Events, error) grpc.ClientStream }
type Account_GetEventsServer ¶
type Account_GetEventsServer interface { Send(*Events) error grpc.ServerStream }
type CreateAccountRequest ¶
type CreateAccountRequest struct { // CreateAccountRequest should be of one of the following forms: // Legacy: // 1. [Optional] Memo::Memo() // 2. SystemProgram::CreateAccount() // 3. SplTokenProgram::InitializeAccount() // 4. [Optional] SplTokenProgram::SetAuthority() // Standard: // 1. [Optional] Memo::Memo() // 2. SplAssociateTokenAccount::CreateAssociatedTokenAccount() // 3. [Optional] SplTokenProgram::SetAuthority() // // The SetAuthority() instruction only needs to be set if the service is // subsidizing the account creation. In that case, a SetAuthority() // instruction must be included that sets the CloseAuthority of // the account to the subsidizer. This is to prevent the farming of Sol // by creating accounts. It should be noted that an account can only // be closed if there is zero kin in the account. // // An optional memo may be provided to attribute the account // creation with an app index. This may be used for the KRE. // The memo type should be NONE. // // If the parameters are not for the Kin token, or there are // any other instructions, InvalidArgument will be returned. Transaction *v4.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` Commitment v4.Commitment `protobuf:"varint,2,opt,name=commitment,proto3,enum=kin.agora.common.v4.Commitment" json:"commitment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAccountRequest) Descriptor ¶
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
func (*CreateAccountRequest) GetCommitment ¶
func (m *CreateAccountRequest) GetCommitment() v4.Commitment
func (*CreateAccountRequest) GetTransaction ¶
func (m *CreateAccountRequest) GetTransaction() *v4.Transaction
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) Reset ¶
func (m *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (m *CreateAccountRequest) String() string
func (*CreateAccountRequest) Validate ¶
func (m *CreateAccountRequest) Validate() error
Validate checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateAccountRequest) XXX_DiscardUnknown ¶
func (m *CreateAccountRequest) XXX_DiscardUnknown()
func (*CreateAccountRequest) XXX_Marshal ¶
func (m *CreateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAccountRequest) XXX_Merge ¶
func (m *CreateAccountRequest) XXX_Merge(src proto.Message)
func (*CreateAccountRequest) XXX_Size ¶
func (m *CreateAccountRequest) XXX_Size() int
func (*CreateAccountRequest) XXX_Unmarshal ¶
func (m *CreateAccountRequest) XXX_Unmarshal(b []byte) error
type CreateAccountRequestValidationError ¶
type CreateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.
func (CreateAccountRequestValidationError) Cause ¶
func (e CreateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountRequestValidationError) Error ¶
func (e CreateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountRequestValidationError) ErrorName ¶
func (e CreateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountRequestValidationError) Field ¶
func (e CreateAccountRequestValidationError) Field() string
Field function returns field value.
func (CreateAccountRequestValidationError) Key ¶
func (e CreateAccountRequestValidationError) Key() bool
Key function returns key value.
func (CreateAccountRequestValidationError) Reason ¶
func (e CreateAccountRequestValidationError) Reason() string
Reason function returns reason value.
type CreateAccountResponse ¶
type CreateAccountResponse struct { Result CreateAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.account.v4.CreateAccountResponse_Result" json:"result,omitempty"` // Present iff the account was created or already existed. AccountInfo *AccountInfo `protobuf:"bytes,2,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAccountResponse) Descriptor ¶
func (*CreateAccountResponse) Descriptor() ([]byte, []int)
func (*CreateAccountResponse) GetAccountInfo ¶
func (m *CreateAccountResponse) GetAccountInfo() *AccountInfo
func (*CreateAccountResponse) GetResult ¶
func (m *CreateAccountResponse) GetResult() CreateAccountResponse_Result
func (*CreateAccountResponse) ProtoMessage ¶
func (*CreateAccountResponse) ProtoMessage()
func (*CreateAccountResponse) Reset ¶
func (m *CreateAccountResponse) Reset()
func (*CreateAccountResponse) String ¶
func (m *CreateAccountResponse) String() string
func (*CreateAccountResponse) Validate ¶
func (m *CreateAccountResponse) Validate() error
Validate checks the field values on CreateAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateAccountResponse) XXX_DiscardUnknown ¶
func (m *CreateAccountResponse) XXX_DiscardUnknown()
func (*CreateAccountResponse) XXX_Marshal ¶
func (m *CreateAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAccountResponse) XXX_Merge ¶
func (m *CreateAccountResponse) XXX_Merge(src proto.Message)
func (*CreateAccountResponse) XXX_Size ¶
func (m *CreateAccountResponse) XXX_Size() int
func (*CreateAccountResponse) XXX_Unmarshal ¶
func (m *CreateAccountResponse) XXX_Unmarshal(b []byte) error
type CreateAccountResponseValidationError ¶
type CreateAccountResponseValidationError struct {
// contains filtered or unexported fields
}
CreateAccountResponseValidationError is the validation error returned by CreateAccountResponse.Validate if the designated constraints aren't met.
func (CreateAccountResponseValidationError) Cause ¶
func (e CreateAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountResponseValidationError) Error ¶
func (e CreateAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountResponseValidationError) ErrorName ¶
func (e CreateAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountResponseValidationError) Field ¶
func (e CreateAccountResponseValidationError) Field() string
Field function returns field value.
func (CreateAccountResponseValidationError) Key ¶
func (e CreateAccountResponseValidationError) Key() bool
Key function returns key value.
func (CreateAccountResponseValidationError) Reason ¶
func (e CreateAccountResponseValidationError) Reason() string
Reason function returns reason value.
type CreateAccountResponse_Result ¶
type CreateAccountResponse_Result int32
const ( CreateAccountResponse_OK CreateAccountResponse_Result = 0 CreateAccountResponse_EXISTS CreateAccountResponse_Result = 1 // Indicates that the service will not subsidize the transaction, and that // the caller should fund the transaction themselves. CreateAccountResponse_PAYER_REQUIRED CreateAccountResponse_Result = 2 // Indicates the nonce/blockhash used in the transaction is invalid, and should // be refetched CreateAccountResponse_BAD_NONCE CreateAccountResponse_Result = 3 )
func (CreateAccountResponse_Result) EnumDescriptor ¶
func (CreateAccountResponse_Result) EnumDescriptor() ([]byte, []int)
func (CreateAccountResponse_Result) String ¶
func (x CreateAccountResponse_Result) String() string
type Event ¶
type Event struct { // Types that are valid to be assigned to Type: // *Event_AccountUpdateEvent // *Event_TransactionEvent // *Event_SimulationEvent Type isEvent_Type `protobuf_oneof:"type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetAccountUpdateEvent ¶
func (m *Event) GetAccountUpdateEvent() *AccountUpdateEvent
func (*Event) GetSimulationEvent ¶ added in v0.27.0
func (m *Event) GetSimulationEvent() *SimulationEvent
func (*Event) GetTransactionEvent ¶
func (m *Event) GetTransactionEvent() *TransactionEvent
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) Validate ¶
Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_OneofWrappers ¶
func (*Event) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Event) XXX_Unmarshal ¶
type EventValidationError ¶
type EventValidationError struct {
// contains filtered or unexported fields
}
EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.
func (EventValidationError) Cause ¶
func (e EventValidationError) Cause() error
Cause function returns cause value.
func (EventValidationError) Error ¶
func (e EventValidationError) Error() string
Error satisfies the builtin error interface
func (EventValidationError) ErrorName ¶
func (e EventValidationError) ErrorName() string
ErrorName returns error name.
func (EventValidationError) Field ¶
func (e EventValidationError) Field() string
Field function returns field value.
func (EventValidationError) Key ¶
func (e EventValidationError) Key() bool
Key function returns key value.
func (EventValidationError) Reason ¶
func (e EventValidationError) Reason() string
Reason function returns reason value.
type Event_AccountUpdateEvent ¶
type Event_AccountUpdateEvent struct {
AccountUpdateEvent *AccountUpdateEvent `protobuf:"bytes,1,opt,name=account_update_event,json=accountUpdateEvent,proto3,oneof"`
}
type Event_SimulationEvent ¶ added in v0.27.0
type Event_SimulationEvent struct {
SimulationEvent *SimulationEvent `protobuf:"bytes,3,opt,name=simulation_event,json=simulationEvent,proto3,oneof"`
}
type Event_TransactionEvent ¶
type Event_TransactionEvent struct {
TransactionEvent *TransactionEvent `protobuf:"bytes,2,opt,name=transaction_event,json=transactionEvent,proto3,oneof"`
}
type Events ¶
type Events struct { Result Events_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.account.v4.Events_Result" json:"result,omitempty"` Events []*Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Events) Descriptor ¶
func (*Events) GetResult ¶
func (m *Events) GetResult() Events_Result
func (*Events) ProtoMessage ¶
func (*Events) ProtoMessage()
func (*Events) Validate ¶
Validate checks the field values on Events with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Events) XXX_DiscardUnknown ¶
func (m *Events) XXX_DiscardUnknown()
func (*Events) XXX_Marshal ¶
func (*Events) XXX_Unmarshal ¶
type EventsValidationError ¶
type EventsValidationError struct {
// contains filtered or unexported fields
}
EventsValidationError is the validation error returned by Events.Validate if the designated constraints aren't met.
func (EventsValidationError) Cause ¶
func (e EventsValidationError) Cause() error
Cause function returns cause value.
func (EventsValidationError) Error ¶
func (e EventsValidationError) Error() string
Error satisfies the builtin error interface
func (EventsValidationError) ErrorName ¶
func (e EventsValidationError) ErrorName() string
ErrorName returns error name.
func (EventsValidationError) Field ¶
func (e EventsValidationError) Field() string
Field function returns field value.
func (EventsValidationError) Key ¶
func (e EventsValidationError) Key() bool
Key function returns key value.
func (EventsValidationError) Reason ¶
func (e EventsValidationError) Reason() string
Reason function returns reason value.
type Events_Result ¶
type Events_Result int32
const ( Events_OK Events_Result = 0 // The specified account could not be found. Events_NOT_FOUND Events_Result = 1 )
func (Events_Result) EnumDescriptor ¶
func (Events_Result) EnumDescriptor() ([]byte, []int)
func (Events_Result) String ¶
func (x Events_Result) String() string
type GetAccountInfoRequest ¶
type GetAccountInfoRequest struct { AccountId *v4.SolanaAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` Commitment v4.Commitment `protobuf:"varint,2,opt,name=commitment,proto3,enum=kin.agora.common.v4.Commitment" json:"commitment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountInfoRequest) Descriptor ¶
func (*GetAccountInfoRequest) Descriptor() ([]byte, []int)
func (*GetAccountInfoRequest) GetAccountId ¶
func (m *GetAccountInfoRequest) GetAccountId() *v4.SolanaAccountId
func (*GetAccountInfoRequest) GetCommitment ¶
func (m *GetAccountInfoRequest) GetCommitment() v4.Commitment
func (*GetAccountInfoRequest) ProtoMessage ¶
func (*GetAccountInfoRequest) ProtoMessage()
func (*GetAccountInfoRequest) Reset ¶
func (m *GetAccountInfoRequest) Reset()
func (*GetAccountInfoRequest) String ¶
func (m *GetAccountInfoRequest) String() string
func (*GetAccountInfoRequest) Validate ¶
func (m *GetAccountInfoRequest) Validate() error
Validate checks the field values on GetAccountInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetAccountInfoRequest) XXX_DiscardUnknown ¶
func (m *GetAccountInfoRequest) XXX_DiscardUnknown()
func (*GetAccountInfoRequest) XXX_Marshal ¶
func (m *GetAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountInfoRequest) XXX_Merge ¶
func (m *GetAccountInfoRequest) XXX_Merge(src proto.Message)
func (*GetAccountInfoRequest) XXX_Size ¶
func (m *GetAccountInfoRequest) XXX_Size() int
func (*GetAccountInfoRequest) XXX_Unmarshal ¶
func (m *GetAccountInfoRequest) XXX_Unmarshal(b []byte) error
type GetAccountInfoRequestValidationError ¶
type GetAccountInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountInfoRequestValidationError is the validation error returned by GetAccountInfoRequest.Validate if the designated constraints aren't met.
func (GetAccountInfoRequestValidationError) Cause ¶
func (e GetAccountInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountInfoRequestValidationError) Error ¶
func (e GetAccountInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountInfoRequestValidationError) ErrorName ¶
func (e GetAccountInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountInfoRequestValidationError) Field ¶
func (e GetAccountInfoRequestValidationError) Field() string
Field function returns field value.
func (GetAccountInfoRequestValidationError) Key ¶
func (e GetAccountInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountInfoRequestValidationError) Reason ¶
func (e GetAccountInfoRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountInfoResponse ¶
type GetAccountInfoResponse struct { Result GetAccountInfoResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.account.v4.GetAccountInfoResponse_Result" json:"result,omitempty"` // Present iff result == Result::OK AccountInfo *AccountInfo `protobuf:"bytes,2,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountInfoResponse) Descriptor ¶
func (*GetAccountInfoResponse) Descriptor() ([]byte, []int)
func (*GetAccountInfoResponse) GetAccountInfo ¶
func (m *GetAccountInfoResponse) GetAccountInfo() *AccountInfo
func (*GetAccountInfoResponse) GetResult ¶
func (m *GetAccountInfoResponse) GetResult() GetAccountInfoResponse_Result
func (*GetAccountInfoResponse) ProtoMessage ¶
func (*GetAccountInfoResponse) ProtoMessage()
func (*GetAccountInfoResponse) Reset ¶
func (m *GetAccountInfoResponse) Reset()
func (*GetAccountInfoResponse) String ¶
func (m *GetAccountInfoResponse) String() string
func (*GetAccountInfoResponse) Validate ¶
func (m *GetAccountInfoResponse) Validate() error
Validate checks the field values on GetAccountInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetAccountInfoResponse) XXX_DiscardUnknown ¶
func (m *GetAccountInfoResponse) XXX_DiscardUnknown()
func (*GetAccountInfoResponse) XXX_Marshal ¶
func (m *GetAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountInfoResponse) XXX_Merge ¶
func (m *GetAccountInfoResponse) XXX_Merge(src proto.Message)
func (*GetAccountInfoResponse) XXX_Size ¶
func (m *GetAccountInfoResponse) XXX_Size() int
func (*GetAccountInfoResponse) XXX_Unmarshal ¶
func (m *GetAccountInfoResponse) XXX_Unmarshal(b []byte) error
type GetAccountInfoResponseValidationError ¶
type GetAccountInfoResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountInfoResponseValidationError is the validation error returned by GetAccountInfoResponse.Validate if the designated constraints aren't met.
func (GetAccountInfoResponseValidationError) Cause ¶
func (e GetAccountInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountInfoResponseValidationError) Error ¶
func (e GetAccountInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountInfoResponseValidationError) ErrorName ¶
func (e GetAccountInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountInfoResponseValidationError) Field ¶
func (e GetAccountInfoResponseValidationError) Field() string
Field function returns field value.
func (GetAccountInfoResponseValidationError) Key ¶
func (e GetAccountInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountInfoResponseValidationError) Reason ¶
func (e GetAccountInfoResponseValidationError) Reason() string
Reason function returns reason value.
type GetAccountInfoResponse_Result ¶
type GetAccountInfoResponse_Result int32
const ( GetAccountInfoResponse_OK GetAccountInfoResponse_Result = 0 // The specified account could not be found. GetAccountInfoResponse_NOT_FOUND GetAccountInfoResponse_Result = 1 )
func (GetAccountInfoResponse_Result) EnumDescriptor ¶
func (GetAccountInfoResponse_Result) EnumDescriptor() ([]byte, []int)
func (GetAccountInfoResponse_Result) String ¶
func (x GetAccountInfoResponse_Result) String() string
type GetEventsRequest ¶
type GetEventsRequest struct { AccountId *v4.SolanaAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetEventsRequest) Descriptor ¶
func (*GetEventsRequest) Descriptor() ([]byte, []int)
func (*GetEventsRequest) GetAccountId ¶
func (m *GetEventsRequest) GetAccountId() *v4.SolanaAccountId
func (*GetEventsRequest) ProtoMessage ¶
func (*GetEventsRequest) ProtoMessage()
func (*GetEventsRequest) Reset ¶
func (m *GetEventsRequest) Reset()
func (*GetEventsRequest) String ¶
func (m *GetEventsRequest) String() string
func (*GetEventsRequest) Validate ¶
func (m *GetEventsRequest) Validate() error
Validate checks the field values on GetEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetEventsRequest) XXX_DiscardUnknown ¶
func (m *GetEventsRequest) XXX_DiscardUnknown()
func (*GetEventsRequest) XXX_Marshal ¶
func (m *GetEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetEventsRequest) XXX_Merge ¶
func (m *GetEventsRequest) XXX_Merge(src proto.Message)
func (*GetEventsRequest) XXX_Size ¶
func (m *GetEventsRequest) XXX_Size() int
func (*GetEventsRequest) XXX_Unmarshal ¶
func (m *GetEventsRequest) XXX_Unmarshal(b []byte) error
type GetEventsRequestValidationError ¶
type GetEventsRequestValidationError struct {
// contains filtered or unexported fields
}
GetEventsRequestValidationError is the validation error returned by GetEventsRequest.Validate if the designated constraints aren't met.
func (GetEventsRequestValidationError) Cause ¶
func (e GetEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetEventsRequestValidationError) Error ¶
func (e GetEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventsRequestValidationError) ErrorName ¶
func (e GetEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventsRequestValidationError) Field ¶
func (e GetEventsRequestValidationError) Field() string
Field function returns field value.
func (GetEventsRequestValidationError) Key ¶
func (e GetEventsRequestValidationError) Key() bool
Key function returns key value.
func (GetEventsRequestValidationError) Reason ¶
func (e GetEventsRequestValidationError) Reason() string
Reason function returns reason value.
type ResolveTokenAccountsRequest ¶
type ResolveTokenAccountsRequest struct { AccountId *v4.SolanaAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Specifies whether or not detailed account info for each token account should // be returned. This should only be specified if needed, as it requires extra // lookups. IncludeAccountInfo bool `protobuf:"varint,2,opt,name=include_account_info,json=includeAccountInfo,proto3" json:"include_account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResolveTokenAccountsRequest) Descriptor ¶
func (*ResolveTokenAccountsRequest) Descriptor() ([]byte, []int)
func (*ResolveTokenAccountsRequest) GetAccountId ¶
func (m *ResolveTokenAccountsRequest) GetAccountId() *v4.SolanaAccountId
func (*ResolveTokenAccountsRequest) GetIncludeAccountInfo ¶ added in v0.26.0
func (m *ResolveTokenAccountsRequest) GetIncludeAccountInfo() bool
func (*ResolveTokenAccountsRequest) ProtoMessage ¶
func (*ResolveTokenAccountsRequest) ProtoMessage()
func (*ResolveTokenAccountsRequest) Reset ¶
func (m *ResolveTokenAccountsRequest) Reset()
func (*ResolveTokenAccountsRequest) String ¶
func (m *ResolveTokenAccountsRequest) String() string
func (*ResolveTokenAccountsRequest) Validate ¶
func (m *ResolveTokenAccountsRequest) Validate() error
Validate checks the field values on ResolveTokenAccountsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ResolveTokenAccountsRequest) XXX_DiscardUnknown ¶
func (m *ResolveTokenAccountsRequest) XXX_DiscardUnknown()
func (*ResolveTokenAccountsRequest) XXX_Marshal ¶
func (m *ResolveTokenAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResolveTokenAccountsRequest) XXX_Merge ¶
func (m *ResolveTokenAccountsRequest) XXX_Merge(src proto.Message)
func (*ResolveTokenAccountsRequest) XXX_Size ¶
func (m *ResolveTokenAccountsRequest) XXX_Size() int
func (*ResolveTokenAccountsRequest) XXX_Unmarshal ¶
func (m *ResolveTokenAccountsRequest) XXX_Unmarshal(b []byte) error
type ResolveTokenAccountsRequestValidationError ¶
type ResolveTokenAccountsRequestValidationError struct {
// contains filtered or unexported fields
}
ResolveTokenAccountsRequestValidationError is the validation error returned by ResolveTokenAccountsRequest.Validate if the designated constraints aren't met.
func (ResolveTokenAccountsRequestValidationError) Cause ¶
func (e ResolveTokenAccountsRequestValidationError) Cause() error
Cause function returns cause value.
func (ResolveTokenAccountsRequestValidationError) Error ¶
func (e ResolveTokenAccountsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResolveTokenAccountsRequestValidationError) ErrorName ¶
func (e ResolveTokenAccountsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResolveTokenAccountsRequestValidationError) Field ¶
func (e ResolveTokenAccountsRequestValidationError) Field() string
Field function returns field value.
func (ResolveTokenAccountsRequestValidationError) Key ¶
func (e ResolveTokenAccountsRequestValidationError) Key() bool
Key function returns key value.
func (ResolveTokenAccountsRequestValidationError) Reason ¶
func (e ResolveTokenAccountsRequestValidationError) Reason() string
Reason function returns reason value.
type ResolveTokenAccountsResponse ¶
type ResolveTokenAccountsResponse struct { // Zero or more accounts that are owned by the provided account id. // // If the provided account is also a token account, it will be first in the list. // Otherwise, the list order should not be depended on, as there is no reliable way // to sort accounts based on creation time. // // Deprecated in favour of token_account_infos. TokenAccounts []*v4.SolanaAccountId `protobuf:"bytes,1,rep,name=token_accounts,json=tokenAccounts,proto3" json:"token_accounts,omitempty"` // Deprecated: Do not use. // Zero or more account infos that are owned by the provided account id. // // In the case where include_account_info is false, token_account_infos will // still be provided. However, they will not include any data requiring account // lookups. That is, only account_id and owner will be set. // // Note: the ordering of token_account_infos is identical to token_accounts. TokenAccountInfos []*AccountInfo `protobuf:"bytes,2,rep,name=token_account_infos,json=tokenAccountInfos,proto3" json:"token_account_infos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResolveTokenAccountsResponse) Descriptor ¶
func (*ResolveTokenAccountsResponse) Descriptor() ([]byte, []int)
func (*ResolveTokenAccountsResponse) GetTokenAccountInfos ¶ added in v0.26.0
func (m *ResolveTokenAccountsResponse) GetTokenAccountInfos() []*AccountInfo
func (*ResolveTokenAccountsResponse) GetTokenAccounts
deprecated
func (m *ResolveTokenAccountsResponse) GetTokenAccounts() []*v4.SolanaAccountId
Deprecated: Do not use.
func (*ResolveTokenAccountsResponse) ProtoMessage ¶
func (*ResolveTokenAccountsResponse) ProtoMessage()
func (*ResolveTokenAccountsResponse) Reset ¶
func (m *ResolveTokenAccountsResponse) Reset()
func (*ResolveTokenAccountsResponse) String ¶
func (m *ResolveTokenAccountsResponse) String() string
func (*ResolveTokenAccountsResponse) Validate ¶
func (m *ResolveTokenAccountsResponse) Validate() error
Validate checks the field values on ResolveTokenAccountsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ResolveTokenAccountsResponse) XXX_DiscardUnknown ¶
func (m *ResolveTokenAccountsResponse) XXX_DiscardUnknown()
func (*ResolveTokenAccountsResponse) XXX_Marshal ¶
func (m *ResolveTokenAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResolveTokenAccountsResponse) XXX_Merge ¶
func (m *ResolveTokenAccountsResponse) XXX_Merge(src proto.Message)
func (*ResolveTokenAccountsResponse) XXX_Size ¶
func (m *ResolveTokenAccountsResponse) XXX_Size() int
func (*ResolveTokenAccountsResponse) XXX_Unmarshal ¶
func (m *ResolveTokenAccountsResponse) XXX_Unmarshal(b []byte) error
type ResolveTokenAccountsResponseValidationError ¶
type ResolveTokenAccountsResponseValidationError struct {
// contains filtered or unexported fields
}
ResolveTokenAccountsResponseValidationError is the validation error returned by ResolveTokenAccountsResponse.Validate if the designated constraints aren't met.
func (ResolveTokenAccountsResponseValidationError) Cause ¶
func (e ResolveTokenAccountsResponseValidationError) Cause() error
Cause function returns cause value.
func (ResolveTokenAccountsResponseValidationError) Error ¶
func (e ResolveTokenAccountsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResolveTokenAccountsResponseValidationError) ErrorName ¶
func (e ResolveTokenAccountsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResolveTokenAccountsResponseValidationError) Field ¶
func (e ResolveTokenAccountsResponseValidationError) Field() string
Field function returns field value.
func (ResolveTokenAccountsResponseValidationError) Key ¶
func (e ResolveTokenAccountsResponseValidationError) Key() bool
Key function returns key value.
func (ResolveTokenAccountsResponseValidationError) Reason ¶
func (e ResolveTokenAccountsResponseValidationError) Reason() string
Reason function returns reason value.
type SimulationEvent ¶ added in v0.27.0
type SimulationEvent struct { Transaction *v4.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` TransactionError *v4.TransactionError `protobuf:"bytes,2,opt,name=transaction_error,json=transactionError,proto3" json:"transaction_error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event that gets sent when a transaction has completed simulation.
It does _not_ imply that the transaction was successfully submitted, however. This allows clients to optimistically start performing other actions in experimental cases.
func (*SimulationEvent) Descriptor ¶ added in v0.27.0
func (*SimulationEvent) Descriptor() ([]byte, []int)
func (*SimulationEvent) GetTransaction ¶ added in v0.27.0
func (m *SimulationEvent) GetTransaction() *v4.Transaction
func (*SimulationEvent) GetTransactionError ¶ added in v0.27.0
func (m *SimulationEvent) GetTransactionError() *v4.TransactionError
func (*SimulationEvent) ProtoMessage ¶ added in v0.27.0
func (*SimulationEvent) ProtoMessage()
func (*SimulationEvent) Reset ¶ added in v0.27.0
func (m *SimulationEvent) Reset()
func (*SimulationEvent) String ¶ added in v0.27.0
func (m *SimulationEvent) String() string
func (*SimulationEvent) Validate ¶ added in v0.27.0
func (m *SimulationEvent) Validate() error
Validate checks the field values on SimulationEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SimulationEvent) XXX_DiscardUnknown ¶ added in v0.27.0
func (m *SimulationEvent) XXX_DiscardUnknown()
func (*SimulationEvent) XXX_Marshal ¶ added in v0.27.0
func (m *SimulationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SimulationEvent) XXX_Merge ¶ added in v0.27.0
func (m *SimulationEvent) XXX_Merge(src proto.Message)
func (*SimulationEvent) XXX_Size ¶ added in v0.27.0
func (m *SimulationEvent) XXX_Size() int
func (*SimulationEvent) XXX_Unmarshal ¶ added in v0.27.0
func (m *SimulationEvent) XXX_Unmarshal(b []byte) error
type SimulationEventValidationError ¶ added in v0.27.0
type SimulationEventValidationError struct {
// contains filtered or unexported fields
}
SimulationEventValidationError is the validation error returned by SimulationEvent.Validate if the designated constraints aren't met.
func (SimulationEventValidationError) Cause ¶ added in v0.27.0
func (e SimulationEventValidationError) Cause() error
Cause function returns cause value.
func (SimulationEventValidationError) Error ¶ added in v0.27.0
func (e SimulationEventValidationError) Error() string
Error satisfies the builtin error interface
func (SimulationEventValidationError) ErrorName ¶ added in v0.27.0
func (e SimulationEventValidationError) ErrorName() string
ErrorName returns error name.
func (SimulationEventValidationError) Field ¶ added in v0.27.0
func (e SimulationEventValidationError) Field() string
Field function returns field value.
func (SimulationEventValidationError) Key ¶ added in v0.27.0
func (e SimulationEventValidationError) Key() bool
Key function returns key value.
func (SimulationEventValidationError) Reason ¶ added in v0.27.0
func (e SimulationEventValidationError) Reason() string
Reason function returns reason value.
type TransactionEvent ¶
type TransactionEvent struct { Transaction *v4.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` TransactionError *v4.TransactionError `protobuf:"bytes,2,opt,name=transaction_error,json=transactionError,proto3" json:"transaction_error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event that gets sent when a transaction related to an account has been successfully submitted to the blockchain.
func (*TransactionEvent) Descriptor ¶
func (*TransactionEvent) Descriptor() ([]byte, []int)
func (*TransactionEvent) GetTransaction ¶
func (m *TransactionEvent) GetTransaction() *v4.Transaction
func (*TransactionEvent) GetTransactionError ¶
func (m *TransactionEvent) GetTransactionError() *v4.TransactionError
func (*TransactionEvent) ProtoMessage ¶
func (*TransactionEvent) ProtoMessage()
func (*TransactionEvent) Reset ¶
func (m *TransactionEvent) Reset()
func (*TransactionEvent) String ¶
func (m *TransactionEvent) String() string
func (*TransactionEvent) Validate ¶
func (m *TransactionEvent) Validate() error
Validate checks the field values on TransactionEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*TransactionEvent) XXX_DiscardUnknown ¶
func (m *TransactionEvent) XXX_DiscardUnknown()
func (*TransactionEvent) XXX_Marshal ¶
func (m *TransactionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionEvent) XXX_Merge ¶
func (m *TransactionEvent) XXX_Merge(src proto.Message)
func (*TransactionEvent) XXX_Size ¶
func (m *TransactionEvent) XXX_Size() int
func (*TransactionEvent) XXX_Unmarshal ¶
func (m *TransactionEvent) XXX_Unmarshal(b []byte) error
type TransactionEventValidationError ¶
type TransactionEventValidationError struct {
// contains filtered or unexported fields
}
TransactionEventValidationError is the validation error returned by TransactionEvent.Validate if the designated constraints aren't met.
func (TransactionEventValidationError) Cause ¶
func (e TransactionEventValidationError) Cause() error
Cause function returns cause value.
func (TransactionEventValidationError) Error ¶
func (e TransactionEventValidationError) Error() string
Error satisfies the builtin error interface
func (TransactionEventValidationError) ErrorName ¶
func (e TransactionEventValidationError) ErrorName() string
ErrorName returns error name.
func (TransactionEventValidationError) Field ¶
func (e TransactionEventValidationError) Field() string
Field function returns field value.
func (TransactionEventValidationError) Key ¶
func (e TransactionEventValidationError) Key() bool
Key function returns key value.
func (TransactionEventValidationError) Reason ¶
func (e TransactionEventValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServer) CreateAccount ¶
func (*UnimplementedAccountServer) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*CreateAccountResponse, error)
func (*UnimplementedAccountServer) GetAccountInfo ¶
func (*UnimplementedAccountServer) GetAccountInfo(ctx context.Context, req *GetAccountInfoRequest) (*GetAccountInfoResponse, error)
func (*UnimplementedAccountServer) GetEvents ¶
func (*UnimplementedAccountServer) GetEvents(req *GetEventsRequest, srv Account_GetEventsServer) error
func (*UnimplementedAccountServer) ResolveTokenAccounts ¶
func (*UnimplementedAccountServer) ResolveTokenAccounts(ctx context.Context, req *ResolveTokenAccountsRequest) (*ResolveTokenAccountsResponse, error)