account

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 19 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateAccountResponse_Result_name = map[int32]string{
	0: "OK",
	1: "EXISTS",
	2: "PAYER_REQUIRED",
	3: "BAD_NONCE",
}
View Source
var CreateAccountResponse_Result_value = map[string]int32{
	"OK":             0,
	"EXISTS":         1,
	"PAYER_REQUIRED": 2,
	"BAD_NONCE":      3,
}
View Source
var Events_Result_name = map[int32]string{
	0: "OK",
	1: "NOT_FOUND",
}
View Source
var Events_Result_value = map[string]int32{
	"OK":        0,
	"NOT_FOUND": 1,
}
View Source
var GetAccountInfoResponse_Result_name = map[int32]string{
	0: "OK",
	1: "NOT_FOUND",
}
View Source
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

Cause function returns cause value.

func (AccountInfoValidationError) Error

Error satisfies the builtin error interface

func (AccountInfoValidationError) ErrorName

func (e AccountInfoValidationError) ErrorName() string

ErrorName returns error name.

func (AccountInfoValidationError) Field

Field function returns field value.

func (AccountInfoValidationError) Key

Key function returns key value.

func (AccountInfoValidationError) Reason

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

Cause function returns cause value.

func (AccountUpdateEventValidationError) Error

Error satisfies the builtin error interface

func (AccountUpdateEventValidationError) ErrorName

ErrorName returns error name.

func (AccountUpdateEventValidationError) Field

Field function returns field value.

func (AccountUpdateEventValidationError) Key

Key function returns key value.

func (AccountUpdateEventValidationError) Reason

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

Cause function returns cause value.

func (CreateAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountRequestValidationError) Field

Field function returns field value.

func (CreateAccountRequestValidationError) Key

Key function returns key value.

func (CreateAccountRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateAccountResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountResponseValidationError) Field

Field function returns field value.

func (CreateAccountResponseValidationError) Key

Key function returns key value.

func (CreateAccountResponseValidationError) Reason

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

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

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

func (m *Event) GetType() isEvent_Type

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

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 (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_OneofWrappers

func (*Event) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

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

func (*Events) GetEvents

func (m *Events) GetEvents() []*Event

func (*Events) GetResult

func (m *Events) GetResult() Events_Result

func (*Events) ProtoMessage

func (*Events) ProtoMessage()

func (*Events) Reset

func (m *Events) Reset()

func (*Events) String

func (m *Events) String() string

func (*Events) Validate

func (m *Events) Validate() error

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 (m *Events) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Events) XXX_Merge

func (m *Events) XXX_Merge(src proto.Message)

func (*Events) XXX_Size

func (m *Events) XXX_Size() int

func (*Events) XXX_Unmarshal

func (m *Events) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (GetAccountInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAccountInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAccountInfoRequestValidationError) Field

Field function returns field value.

func (GetAccountInfoRequestValidationError) Key

Key function returns key value.

func (GetAccountInfoRequestValidationError) Reason

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

Cause function returns cause value.

func (GetAccountInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAccountInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAccountInfoResponseValidationError) Field

Field function returns field value.

func (GetAccountInfoResponseValidationError) Key

Key function returns key value.

func (GetAccountInfoResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetEventsRequestValidationError) Field

Field function returns field value.

func (GetEventsRequestValidationError) Key

Key function returns key value.

func (GetEventsRequestValidationError) Reason

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

Cause function returns cause value.

func (ResolveTokenAccountsRequestValidationError) Error

Error satisfies the builtin error interface

func (ResolveTokenAccountsRequestValidationError) ErrorName

ErrorName returns error name.

func (ResolveTokenAccountsRequestValidationError) Field

Field function returns field value.

func (ResolveTokenAccountsRequestValidationError) Key

Key function returns key value.

func (ResolveTokenAccountsRequestValidationError) Reason

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

Cause function returns cause value.

func (ResolveTokenAccountsResponseValidationError) Error

Error satisfies the builtin error interface

func (ResolveTokenAccountsResponseValidationError) ErrorName

ErrorName returns error name.

func (ResolveTokenAccountsResponseValidationError) Field

Field function returns field value.

func (ResolveTokenAccountsResponseValidationError) Key

Key function returns key value.

func (ResolveTokenAccountsResponseValidationError) Reason

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

Cause function returns cause value.

func (SimulationEventValidationError) Error added in v0.27.0

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

Field function returns field value.

func (SimulationEventValidationError) Key added in v0.27.0

Key function returns key value.

func (SimulationEventValidationError) Reason added in v0.27.0

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

Cause function returns cause value.

func (TransactionEventValidationError) Error

Error satisfies the builtin error interface

func (TransactionEventValidationError) ErrorName

ErrorName returns error name.

func (TransactionEventValidationError) Field

Field function returns field value.

func (TransactionEventValidationError) Key

Key function returns key value.

func (TransactionEventValidationError) Reason

Reason function returns reason value.

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServer) CreateAccount

func (*UnimplementedAccountServer) GetAccountInfo

func (*UnimplementedAccountServer) GetEvents

func (*UnimplementedAccountServer) ResolveTokenAccounts

Jump to

Keyboard shortcuts

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