Documentation ¶
Index ¶
- Variables
- func RegisterTransactionServer(s *grpc.Server, srv TransactionServer)
- type Cursor
- func (*Cursor) Descriptor() ([]byte, []int)
- func (m *Cursor) GetValue() []byte
- func (*Cursor) ProtoMessage()
- func (m *Cursor) Reset()
- func (m *Cursor) String() string
- func (m *Cursor) Validate() error
- func (m *Cursor) XXX_DiscardUnknown()
- func (m *Cursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cursor) XXX_Merge(src proto.Message)
- func (m *Cursor) XXX_Size() int
- func (m *Cursor) XXX_Unmarshal(b []byte) error
- type CursorValidationError
- type GetHistoryRequest
- func (*GetHistoryRequest) Descriptor() ([]byte, []int)
- func (m *GetHistoryRequest) GetAccountId() *v3.StellarAccountId
- func (m *GetHistoryRequest) GetCursor() *Cursor
- func (m *GetHistoryRequest) GetDirection() GetHistoryRequest_Direction
- func (*GetHistoryRequest) ProtoMessage()
- func (m *GetHistoryRequest) Reset()
- func (m *GetHistoryRequest) String() string
- func (m *GetHistoryRequest) Validate() error
- func (m *GetHistoryRequest) XXX_DiscardUnknown()
- func (m *GetHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetHistoryRequest) XXX_Merge(src proto.Message)
- func (m *GetHistoryRequest) XXX_Size() int
- func (m *GetHistoryRequest) XXX_Unmarshal(b []byte) error
- type GetHistoryRequestValidationError
- func (e GetHistoryRequestValidationError) Cause() error
- func (e GetHistoryRequestValidationError) Error() string
- func (e GetHistoryRequestValidationError) ErrorName() string
- func (e GetHistoryRequestValidationError) Field() string
- func (e GetHistoryRequestValidationError) Key() bool
- func (e GetHistoryRequestValidationError) Reason() string
- type GetHistoryRequest_Direction
- type GetHistoryResponse
- func (*GetHistoryResponse) Descriptor() ([]byte, []int)
- func (m *GetHistoryResponse) GetItems() []*HistoryItem
- func (m *GetHistoryResponse) GetResult() GetHistoryResponse_Result
- func (*GetHistoryResponse) ProtoMessage()
- func (m *GetHistoryResponse) Reset()
- func (m *GetHistoryResponse) String() string
- func (m *GetHistoryResponse) Validate() error
- func (m *GetHistoryResponse) XXX_DiscardUnknown()
- func (m *GetHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetHistoryResponse) XXX_Merge(src proto.Message)
- func (m *GetHistoryResponse) XXX_Size() int
- func (m *GetHistoryResponse) XXX_Unmarshal(b []byte) error
- type GetHistoryResponseValidationError
- func (e GetHistoryResponseValidationError) Cause() error
- func (e GetHistoryResponseValidationError) Error() string
- func (e GetHistoryResponseValidationError) ErrorName() string
- func (e GetHistoryResponseValidationError) Field() string
- func (e GetHistoryResponseValidationError) Key() bool
- func (e GetHistoryResponseValidationError) Reason() string
- type GetHistoryResponse_Result
- type GetTransactionRequest
- func (*GetTransactionRequest) Descriptor() ([]byte, []int)
- func (m *GetTransactionRequest) GetTransactionHash() *v3.TransactionHash
- func (*GetTransactionRequest) ProtoMessage()
- func (m *GetTransactionRequest) Reset()
- func (m *GetTransactionRequest) String() string
- func (m *GetTransactionRequest) Validate() error
- func (m *GetTransactionRequest) XXX_DiscardUnknown()
- func (m *GetTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTransactionRequest) XXX_Merge(src proto.Message)
- func (m *GetTransactionRequest) XXX_Size() int
- func (m *GetTransactionRequest) XXX_Unmarshal(b []byte) error
- type GetTransactionRequestValidationError
- func (e GetTransactionRequestValidationError) Cause() error
- func (e GetTransactionRequestValidationError) Error() string
- func (e GetTransactionRequestValidationError) ErrorName() string
- func (e GetTransactionRequestValidationError) Field() string
- func (e GetTransactionRequestValidationError) Key() bool
- func (e GetTransactionRequestValidationError) Reason() string
- type GetTransactionResponse
- func (*GetTransactionResponse) Descriptor() ([]byte, []int)
- func (m *GetTransactionResponse) GetItem() *HistoryItem
- func (m *GetTransactionResponse) GetLedger() int64
- func (m *GetTransactionResponse) GetState() GetTransactionResponse_State
- func (*GetTransactionResponse) ProtoMessage()
- func (m *GetTransactionResponse) Reset()
- func (m *GetTransactionResponse) String() string
- func (m *GetTransactionResponse) Validate() error
- func (m *GetTransactionResponse) XXX_DiscardUnknown()
- func (m *GetTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTransactionResponse) XXX_Merge(src proto.Message)
- func (m *GetTransactionResponse) XXX_Size() int
- func (m *GetTransactionResponse) XXX_Unmarshal(b []byte) error
- type GetTransactionResponseValidationError
- func (e GetTransactionResponseValidationError) Cause() error
- func (e GetTransactionResponseValidationError) Error() string
- func (e GetTransactionResponseValidationError) ErrorName() string
- func (e GetTransactionResponseValidationError) Field() string
- func (e GetTransactionResponseValidationError) Key() bool
- func (e GetTransactionResponseValidationError) Reason() string
- type GetTransactionResponse_State
- type HistoryItem
- func (*HistoryItem) Descriptor() ([]byte, []int)
- func (m *HistoryItem) GetCursor() *Cursor
- func (m *HistoryItem) GetEnvelopeXdr() []byte
- func (m *HistoryItem) GetHash() *v3.TransactionHash
- func (m *HistoryItem) GetInvoiceList() *v3.InvoiceList
- func (m *HistoryItem) GetResultXdr() []byte
- func (*HistoryItem) ProtoMessage()
- func (m *HistoryItem) Reset()
- func (m *HistoryItem) String() string
- func (m *HistoryItem) Validate() error
- func (m *HistoryItem) XXX_DiscardUnknown()
- func (m *HistoryItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoryItem) XXX_Merge(src proto.Message)
- func (m *HistoryItem) XXX_Size() int
- func (m *HistoryItem) XXX_Unmarshal(b []byte) error
- type HistoryItemValidationError
- func (e HistoryItemValidationError) Cause() error
- func (e HistoryItemValidationError) Error() string
- func (e HistoryItemValidationError) ErrorName() string
- func (e HistoryItemValidationError) Field() string
- func (e HistoryItemValidationError) Key() bool
- func (e HistoryItemValidationError) Reason() string
- type SubmitTransactionRequest
- func (*SubmitTransactionRequest) Descriptor() ([]byte, []int)
- func (m *SubmitTransactionRequest) GetEnvelopeXdr() []byte
- func (m *SubmitTransactionRequest) GetInvoiceList() *v3.InvoiceList
- func (*SubmitTransactionRequest) ProtoMessage()
- func (m *SubmitTransactionRequest) Reset()
- func (m *SubmitTransactionRequest) String() string
- func (m *SubmitTransactionRequest) Validate() error
- func (m *SubmitTransactionRequest) XXX_DiscardUnknown()
- func (m *SubmitTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubmitTransactionRequest) XXX_Merge(src proto.Message)
- func (m *SubmitTransactionRequest) XXX_Size() int
- func (m *SubmitTransactionRequest) XXX_Unmarshal(b []byte) error
- type SubmitTransactionRequestValidationError
- func (e SubmitTransactionRequestValidationError) Cause() error
- func (e SubmitTransactionRequestValidationError) Error() string
- func (e SubmitTransactionRequestValidationError) ErrorName() string
- func (e SubmitTransactionRequestValidationError) Field() string
- func (e SubmitTransactionRequestValidationError) Key() bool
- func (e SubmitTransactionRequestValidationError) Reason() string
- type SubmitTransactionResponse
- func (*SubmitTransactionResponse) Descriptor() ([]byte, []int)
- func (m *SubmitTransactionResponse) GetHash() *v3.TransactionHash
- func (m *SubmitTransactionResponse) GetInvoiceErrors() []*v3.InvoiceError
- func (m *SubmitTransactionResponse) GetLedger() int64
- func (m *SubmitTransactionResponse) GetResult() SubmitTransactionResponse_Result
- func (m *SubmitTransactionResponse) GetResultXdr() []byte
- func (*SubmitTransactionResponse) ProtoMessage()
- func (m *SubmitTransactionResponse) Reset()
- func (m *SubmitTransactionResponse) String() string
- func (m *SubmitTransactionResponse) Validate() error
- func (m *SubmitTransactionResponse) XXX_DiscardUnknown()
- func (m *SubmitTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubmitTransactionResponse) XXX_Merge(src proto.Message)
- func (m *SubmitTransactionResponse) XXX_Size() int
- func (m *SubmitTransactionResponse) XXX_Unmarshal(b []byte) error
- type SubmitTransactionResponseValidationError
- func (e SubmitTransactionResponseValidationError) Cause() error
- func (e SubmitTransactionResponseValidationError) Error() string
- func (e SubmitTransactionResponseValidationError) ErrorName() string
- func (e SubmitTransactionResponseValidationError) Field() string
- func (e SubmitTransactionResponseValidationError) Key() bool
- func (e SubmitTransactionResponseValidationError) Reason() string
- type SubmitTransactionResponse_Result
- type TransactionClient
- type TransactionServer
- type UnimplementedTransactionServer
- func (*UnimplementedTransactionServer) GetHistory(ctx context.Context, req *GetHistoryRequest) (*GetHistoryResponse, error)
- func (*UnimplementedTransactionServer) GetTransaction(ctx context.Context, req *GetTransactionRequest) (*GetTransactionResponse, error)
- func (*UnimplementedTransactionServer) SubmitTransaction(ctx context.Context, req *SubmitTransactionRequest) (*SubmitTransactionResponse, error)
Constants ¶
This section is empty.
Variables ¶
var GetHistoryRequest_Direction_name = map[int32]string{
0: "ASC",
1: "DESC",
}
var GetHistoryRequest_Direction_value = map[string]int32{
"ASC": 0,
"DESC": 1,
}
var GetHistoryResponse_Result_name = map[int32]string{
0: "OK",
1: "NOT_FOUND",
}
var GetHistoryResponse_Result_value = map[string]int32{
"OK": 0,
"NOT_FOUND": 1,
}
var GetTransactionResponse_State_name = map[int32]string{
0: "UNKNOWN",
1: "SUCCESS",
}
var GetTransactionResponse_State_value = map[string]int32{
"UNKNOWN": 0,
"SUCCESS": 1,
}
var SubmitTransactionResponse_Result_name = map[int32]string{
0: "OK",
1: "FAILED",
2: "REJECTED",
3: "INVOICE_ERROR",
}
var SubmitTransactionResponse_Result_value = map[string]int32{
"OK": 0,
"FAILED": 1,
"REJECTED": 2,
"INVOICE_ERROR": 3,
}
Functions ¶
func RegisterTransactionServer ¶
func RegisterTransactionServer(s *grpc.Server, srv TransactionServer)
Types ¶
type Cursor ¶
type Cursor struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cursor) Descriptor ¶
func (*Cursor) ProtoMessage ¶
func (*Cursor) ProtoMessage()
func (*Cursor) Validate ¶
Validate checks the field values on Cursor with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Cursor) XXX_DiscardUnknown ¶
func (m *Cursor) XXX_DiscardUnknown()
func (*Cursor) XXX_Marshal ¶
func (*Cursor) XXX_Unmarshal ¶
type CursorValidationError ¶
type CursorValidationError struct {
// contains filtered or unexported fields
}
CursorValidationError is the validation error returned by Cursor.Validate if the designated constraints aren't met.
func (CursorValidationError) Cause ¶
func (e CursorValidationError) Cause() error
Cause function returns cause value.
func (CursorValidationError) Error ¶
func (e CursorValidationError) Error() string
Error satisfies the builtin error interface
func (CursorValidationError) ErrorName ¶
func (e CursorValidationError) ErrorName() string
ErrorName returns error name.
func (CursorValidationError) Field ¶
func (e CursorValidationError) Field() string
Field function returns field value.
func (CursorValidationError) Key ¶
func (e CursorValidationError) Key() bool
Key function returns key value.
func (CursorValidationError) Reason ¶
func (e CursorValidationError) Reason() string
Reason function returns reason value.
type GetHistoryRequest ¶
type GetHistoryRequest struct { // Account to get history for. AccountId *v3.StellarAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // An optional history cursor indicating where in // the history to 'resume' from. Cursor *Cursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` // The order in which to return history items from // the cursor. Direction GetHistoryRequest_Direction `` /* 130-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetHistoryRequest) Descriptor ¶
func (*GetHistoryRequest) Descriptor() ([]byte, []int)
func (*GetHistoryRequest) GetAccountId ¶
func (m *GetHistoryRequest) GetAccountId() *v3.StellarAccountId
func (*GetHistoryRequest) GetCursor ¶
func (m *GetHistoryRequest) GetCursor() *Cursor
func (*GetHistoryRequest) GetDirection ¶
func (m *GetHistoryRequest) GetDirection() GetHistoryRequest_Direction
func (*GetHistoryRequest) ProtoMessage ¶
func (*GetHistoryRequest) ProtoMessage()
func (*GetHistoryRequest) Reset ¶
func (m *GetHistoryRequest) Reset()
func (*GetHistoryRequest) String ¶
func (m *GetHistoryRequest) String() string
func (*GetHistoryRequest) Validate ¶
func (m *GetHistoryRequest) Validate() error
Validate checks the field values on GetHistoryRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetHistoryRequest) XXX_DiscardUnknown ¶
func (m *GetHistoryRequest) XXX_DiscardUnknown()
func (*GetHistoryRequest) XXX_Marshal ¶
func (m *GetHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHistoryRequest) XXX_Merge ¶
func (m *GetHistoryRequest) XXX_Merge(src proto.Message)
func (*GetHistoryRequest) XXX_Size ¶
func (m *GetHistoryRequest) XXX_Size() int
func (*GetHistoryRequest) XXX_Unmarshal ¶
func (m *GetHistoryRequest) XXX_Unmarshal(b []byte) error
type GetHistoryRequestValidationError ¶
type GetHistoryRequestValidationError struct {
// contains filtered or unexported fields
}
GetHistoryRequestValidationError is the validation error returned by GetHistoryRequest.Validate if the designated constraints aren't met.
func (GetHistoryRequestValidationError) Cause ¶
func (e GetHistoryRequestValidationError) Cause() error
Cause function returns cause value.
func (GetHistoryRequestValidationError) Error ¶
func (e GetHistoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetHistoryRequestValidationError) ErrorName ¶
func (e GetHistoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetHistoryRequestValidationError) Field ¶
func (e GetHistoryRequestValidationError) Field() string
Field function returns field value.
func (GetHistoryRequestValidationError) Key ¶
func (e GetHistoryRequestValidationError) Key() bool
Key function returns key value.
func (GetHistoryRequestValidationError) Reason ¶
func (e GetHistoryRequestValidationError) Reason() string
Reason function returns reason value.
type GetHistoryRequest_Direction ¶
type GetHistoryRequest_Direction int32
const ( // ASC direction returns all history items in // ascending (based on chain order) from the cursor. GetHistoryRequest_ASC GetHistoryRequest_Direction = 0 // DESC direction returns all history items in // descending (based on chain order) from _before_ the cursor. GetHistoryRequest_DESC GetHistoryRequest_Direction = 1 )
func (GetHistoryRequest_Direction) EnumDescriptor ¶
func (GetHistoryRequest_Direction) EnumDescriptor() ([]byte, []int)
func (GetHistoryRequest_Direction) String ¶
func (x GetHistoryRequest_Direction) String() string
type GetHistoryResponse ¶
type GetHistoryResponse struct { Result GetHistoryResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.transaction.v3.GetHistoryResponse_Result" json:"result,omitempty"` Items []*HistoryItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetHistoryResponse) Descriptor ¶
func (*GetHistoryResponse) Descriptor() ([]byte, []int)
func (*GetHistoryResponse) GetItems ¶
func (m *GetHistoryResponse) GetItems() []*HistoryItem
func (*GetHistoryResponse) GetResult ¶
func (m *GetHistoryResponse) GetResult() GetHistoryResponse_Result
func (*GetHistoryResponse) ProtoMessage ¶
func (*GetHistoryResponse) ProtoMessage()
func (*GetHistoryResponse) Reset ¶
func (m *GetHistoryResponse) Reset()
func (*GetHistoryResponse) String ¶
func (m *GetHistoryResponse) String() string
func (*GetHistoryResponse) Validate ¶
func (m *GetHistoryResponse) Validate() error
Validate checks the field values on GetHistoryResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetHistoryResponse) XXX_DiscardUnknown ¶
func (m *GetHistoryResponse) XXX_DiscardUnknown()
func (*GetHistoryResponse) XXX_Marshal ¶
func (m *GetHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHistoryResponse) XXX_Merge ¶
func (m *GetHistoryResponse) XXX_Merge(src proto.Message)
func (*GetHistoryResponse) XXX_Size ¶
func (m *GetHistoryResponse) XXX_Size() int
func (*GetHistoryResponse) XXX_Unmarshal ¶
func (m *GetHistoryResponse) XXX_Unmarshal(b []byte) error
type GetHistoryResponseValidationError ¶
type GetHistoryResponseValidationError struct {
// contains filtered or unexported fields
}
GetHistoryResponseValidationError is the validation error returned by GetHistoryResponse.Validate if the designated constraints aren't met.
func (GetHistoryResponseValidationError) Cause ¶
func (e GetHistoryResponseValidationError) Cause() error
Cause function returns cause value.
func (GetHistoryResponseValidationError) Error ¶
func (e GetHistoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetHistoryResponseValidationError) ErrorName ¶
func (e GetHistoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetHistoryResponseValidationError) Field ¶
func (e GetHistoryResponseValidationError) Field() string
Field function returns field value.
func (GetHistoryResponseValidationError) Key ¶
func (e GetHistoryResponseValidationError) Key() bool
Key function returns key value.
func (GetHistoryResponseValidationError) Reason ¶
func (e GetHistoryResponseValidationError) Reason() string
Reason function returns reason value.
type GetHistoryResponse_Result ¶
type GetHistoryResponse_Result int32
const ( GetHistoryResponse_OK GetHistoryResponse_Result = 0 GetHistoryResponse_NOT_FOUND GetHistoryResponse_Result = 1 )
func (GetHistoryResponse_Result) EnumDescriptor ¶
func (GetHistoryResponse_Result) EnumDescriptor() ([]byte, []int)
func (GetHistoryResponse_Result) String ¶
func (x GetHistoryResponse_Result) String() string
type GetTransactionRequest ¶
type GetTransactionRequest struct { TransactionHash *v3.TransactionHash `protobuf:"bytes,1,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionRequest) Descriptor ¶
func (*GetTransactionRequest) Descriptor() ([]byte, []int)
func (*GetTransactionRequest) GetTransactionHash ¶
func (m *GetTransactionRequest) GetTransactionHash() *v3.TransactionHash
func (*GetTransactionRequest) ProtoMessage ¶
func (*GetTransactionRequest) ProtoMessage()
func (*GetTransactionRequest) Reset ¶
func (m *GetTransactionRequest) Reset()
func (*GetTransactionRequest) String ¶
func (m *GetTransactionRequest) String() string
func (*GetTransactionRequest) Validate ¶
func (m *GetTransactionRequest) Validate() error
Validate checks the field values on GetTransactionRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetTransactionRequest) XXX_DiscardUnknown ¶
func (m *GetTransactionRequest) XXX_DiscardUnknown()
func (*GetTransactionRequest) XXX_Marshal ¶
func (m *GetTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionRequest) XXX_Merge ¶
func (m *GetTransactionRequest) XXX_Merge(src proto.Message)
func (*GetTransactionRequest) XXX_Size ¶
func (m *GetTransactionRequest) XXX_Size() int
func (*GetTransactionRequest) XXX_Unmarshal ¶
func (m *GetTransactionRequest) XXX_Unmarshal(b []byte) error
type GetTransactionRequestValidationError ¶
type GetTransactionRequestValidationError struct {
// contains filtered or unexported fields
}
GetTransactionRequestValidationError is the validation error returned by GetTransactionRequest.Validate if the designated constraints aren't met.
func (GetTransactionRequestValidationError) Cause ¶
func (e GetTransactionRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTransactionRequestValidationError) Error ¶
func (e GetTransactionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTransactionRequestValidationError) ErrorName ¶
func (e GetTransactionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTransactionRequestValidationError) Field ¶
func (e GetTransactionRequestValidationError) Field() string
Field function returns field value.
func (GetTransactionRequestValidationError) Key ¶
func (e GetTransactionRequestValidationError) Key() bool
Key function returns key value.
func (GetTransactionRequestValidationError) Reason ¶
func (e GetTransactionRequestValidationError) Reason() string
Reason function returns reason value.
type GetTransactionResponse ¶
type GetTransactionResponse struct { // The state of the transaction. The states are the same as // SubmitTransaction, with the exception of UNKNOWN, which indicates // that the system does not have a record of the transaction. This // can occur if the transaction is still pending or if it has failed. // // If the transaction state is UNKNOWN for an extended period of // time, it is likely that it was dropped. As a result, clients // should limit the total times GetTransaction is called for a // an UNKNOWN transaction. State GetTransactionResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=kin.agora.transaction.v3.GetTransactionResponse_State" json:"state,omitempty"` // Non-zero when state == State::SUCCESS Ledger int64 `protobuf:"varint,2,opt,name=ledger,proto3" json:"ledger,omitempty"` // Present when state != State::UNKNOWN Item *HistoryItem `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionResponse) Descriptor ¶
func (*GetTransactionResponse) Descriptor() ([]byte, []int)
func (*GetTransactionResponse) GetItem ¶
func (m *GetTransactionResponse) GetItem() *HistoryItem
func (*GetTransactionResponse) GetLedger ¶
func (m *GetTransactionResponse) GetLedger() int64
func (*GetTransactionResponse) GetState ¶
func (m *GetTransactionResponse) GetState() GetTransactionResponse_State
func (*GetTransactionResponse) ProtoMessage ¶
func (*GetTransactionResponse) ProtoMessage()
func (*GetTransactionResponse) Reset ¶
func (m *GetTransactionResponse) Reset()
func (*GetTransactionResponse) String ¶
func (m *GetTransactionResponse) String() string
func (*GetTransactionResponse) Validate ¶
func (m *GetTransactionResponse) Validate() error
Validate checks the field values on GetTransactionResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetTransactionResponse) XXX_DiscardUnknown ¶
func (m *GetTransactionResponse) XXX_DiscardUnknown()
func (*GetTransactionResponse) XXX_Marshal ¶
func (m *GetTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionResponse) XXX_Merge ¶
func (m *GetTransactionResponse) XXX_Merge(src proto.Message)
func (*GetTransactionResponse) XXX_Size ¶
func (m *GetTransactionResponse) XXX_Size() int
func (*GetTransactionResponse) XXX_Unmarshal ¶
func (m *GetTransactionResponse) XXX_Unmarshal(b []byte) error
type GetTransactionResponseValidationError ¶
type GetTransactionResponseValidationError struct {
// contains filtered or unexported fields
}
GetTransactionResponseValidationError is the validation error returned by GetTransactionResponse.Validate if the designated constraints aren't met.
func (GetTransactionResponseValidationError) Cause ¶
func (e GetTransactionResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTransactionResponseValidationError) Error ¶
func (e GetTransactionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTransactionResponseValidationError) ErrorName ¶
func (e GetTransactionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTransactionResponseValidationError) Field ¶
func (e GetTransactionResponseValidationError) Field() string
Field function returns field value.
func (GetTransactionResponseValidationError) Key ¶
func (e GetTransactionResponseValidationError) Key() bool
Key function returns key value.
func (GetTransactionResponseValidationError) Reason ¶
func (e GetTransactionResponseValidationError) Reason() string
Reason function returns reason value.
type GetTransactionResponse_State ¶
type GetTransactionResponse_State int32
const ( GetTransactionResponse_UNKNOWN GetTransactionResponse_State = 0 GetTransactionResponse_SUCCESS GetTransactionResponse_State = 1 )
func (GetTransactionResponse_State) EnumDescriptor ¶
func (GetTransactionResponse_State) EnumDescriptor() ([]byte, []int)
func (GetTransactionResponse_State) String ¶
func (x GetTransactionResponse_State) String() string
type HistoryItem ¶
type HistoryItem struct { // The hash of the transaction. Hash *v3.TransactionHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Contains the transaction result from when the transaction was submitted ResultXdr []byte `protobuf:"bytes,2,opt,name=result_xdr,json=resultXdr,proto3" json:"result_xdr,omitempty"` // Contains the transaction envelope for the transaction. EnvelopeXdr []byte `protobuf:"bytes,3,opt,name=envelope_xdr,json=envelopeXdr,proto3" json:"envelope_xdr,omitempty"` // The cursor position of this item. Cursor *Cursor `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"` // If an invoice list was submitted with the transaction, and the transaction // was submitted via this instance of the service, this field will be set. InvoiceList *v3.InvoiceList `protobuf:"bytes,5,opt,name=invoice_list,json=invoiceList,proto3" json:"invoice_list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HistoryItem) Descriptor ¶
func (*HistoryItem) Descriptor() ([]byte, []int)
func (*HistoryItem) GetCursor ¶
func (m *HistoryItem) GetCursor() *Cursor
func (*HistoryItem) GetEnvelopeXdr ¶
func (m *HistoryItem) GetEnvelopeXdr() []byte
func (*HistoryItem) GetHash ¶
func (m *HistoryItem) GetHash() *v3.TransactionHash
func (*HistoryItem) GetInvoiceList ¶
func (m *HistoryItem) GetInvoiceList() *v3.InvoiceList
func (*HistoryItem) GetResultXdr ¶
func (m *HistoryItem) GetResultXdr() []byte
func (*HistoryItem) ProtoMessage ¶
func (*HistoryItem) ProtoMessage()
func (*HistoryItem) Reset ¶
func (m *HistoryItem) Reset()
func (*HistoryItem) String ¶
func (m *HistoryItem) String() string
func (*HistoryItem) Validate ¶
func (m *HistoryItem) Validate() error
Validate checks the field values on HistoryItem with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HistoryItem) XXX_DiscardUnknown ¶
func (m *HistoryItem) XXX_DiscardUnknown()
func (*HistoryItem) XXX_Marshal ¶
func (m *HistoryItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoryItem) XXX_Merge ¶
func (m *HistoryItem) XXX_Merge(src proto.Message)
func (*HistoryItem) XXX_Size ¶
func (m *HistoryItem) XXX_Size() int
func (*HistoryItem) XXX_Unmarshal ¶
func (m *HistoryItem) XXX_Unmarshal(b []byte) error
type HistoryItemValidationError ¶
type HistoryItemValidationError struct {
// contains filtered or unexported fields
}
HistoryItemValidationError is the validation error returned by HistoryItem.Validate if the designated constraints aren't met.
func (HistoryItemValidationError) Cause ¶
func (e HistoryItemValidationError) Cause() error
Cause function returns cause value.
func (HistoryItemValidationError) Error ¶
func (e HistoryItemValidationError) Error() string
Error satisfies the builtin error interface
func (HistoryItemValidationError) ErrorName ¶
func (e HistoryItemValidationError) ErrorName() string
ErrorName returns error name.
func (HistoryItemValidationError) Field ¶
func (e HistoryItemValidationError) Field() string
Field function returns field value.
func (HistoryItemValidationError) Key ¶
func (e HistoryItemValidationError) Key() bool
Key function returns key value.
func (HistoryItemValidationError) Reason ¶
func (e HistoryItemValidationError) Reason() string
Reason function returns reason value.
type SubmitTransactionRequest ¶
type SubmitTransactionRequest struct { // The raw XDR bytes (not base64-encoded) of the transaction envelope. EnvelopeXdr []byte `protobuf:"bytes,1,opt,name=envelope_xdr,json=envelopeXdr,proto3" json:"envelope_xdr,omitempty"` // An optional invoice list associating each operation with an invoice. // // If an invoice list is included, it is expected that the foreign key in // the transaction memo is the SHA-224 hash of the serialized invoice list. // // The invoice list will be included in webhook calls for the application the // transaction pertains to (as specified by the memo app index). // // The submitted invoice data will only be available for retrieval from the service it // was submitted to and not directly from the blockchain nor any other deployments of // the service. InvoiceList *v3.InvoiceList `protobuf:"bytes,2,opt,name=invoice_list,json=invoiceList,proto3" json:"invoice_list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubmitTransactionRequest) Descriptor ¶
func (*SubmitTransactionRequest) Descriptor() ([]byte, []int)
func (*SubmitTransactionRequest) GetEnvelopeXdr ¶
func (m *SubmitTransactionRequest) GetEnvelopeXdr() []byte
func (*SubmitTransactionRequest) GetInvoiceList ¶
func (m *SubmitTransactionRequest) GetInvoiceList() *v3.InvoiceList
func (*SubmitTransactionRequest) ProtoMessage ¶
func (*SubmitTransactionRequest) ProtoMessage()
func (*SubmitTransactionRequest) Reset ¶
func (m *SubmitTransactionRequest) Reset()
func (*SubmitTransactionRequest) String ¶
func (m *SubmitTransactionRequest) String() string
func (*SubmitTransactionRequest) Validate ¶
func (m *SubmitTransactionRequest) Validate() error
Validate checks the field values on SubmitTransactionRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SubmitTransactionRequest) XXX_DiscardUnknown ¶
func (m *SubmitTransactionRequest) XXX_DiscardUnknown()
func (*SubmitTransactionRequest) XXX_Marshal ¶
func (m *SubmitTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubmitTransactionRequest) XXX_Merge ¶
func (m *SubmitTransactionRequest) XXX_Merge(src proto.Message)
func (*SubmitTransactionRequest) XXX_Size ¶
func (m *SubmitTransactionRequest) XXX_Size() int
func (*SubmitTransactionRequest) XXX_Unmarshal ¶
func (m *SubmitTransactionRequest) XXX_Unmarshal(b []byte) error
type SubmitTransactionRequestValidationError ¶
type SubmitTransactionRequestValidationError struct {
// contains filtered or unexported fields
}
SubmitTransactionRequestValidationError is the validation error returned by SubmitTransactionRequest.Validate if the designated constraints aren't met.
func (SubmitTransactionRequestValidationError) Cause ¶
func (e SubmitTransactionRequestValidationError) Cause() error
Cause function returns cause value.
func (SubmitTransactionRequestValidationError) Error ¶
func (e SubmitTransactionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitTransactionRequestValidationError) ErrorName ¶
func (e SubmitTransactionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitTransactionRequestValidationError) Field ¶
func (e SubmitTransactionRequestValidationError) Field() string
Field function returns field value.
func (SubmitTransactionRequestValidationError) Key ¶
func (e SubmitTransactionRequestValidationError) Key() bool
Key function returns key value.
func (SubmitTransactionRequestValidationError) Reason ¶
func (e SubmitTransactionRequestValidationError) Reason() string
Reason function returns reason value.
type SubmitTransactionResponse ¶
type SubmitTransactionResponse struct { Result SubmitTransactionResponse_Result `` /* 129-byte string literal not displayed */ // Present when result = INVOICE_ERROR. InvoiceErrors []*v3.InvoiceError `protobuf:"bytes,2,rep,name=invoice_errors,json=invoiceErrors,proto3" json:"invoice_errors,omitempty"` // The hash of the transaction, if it was submitted. // May be used for other RPCs. Hash *v3.TransactionHash `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` // The ledger in which the submitted transaction was included in. // // Non-zero on success. Ledger int64 `protobuf:"varint,4,opt,name=ledger,proto3" json:"ledger,omitempty"` // The transaction result XDR, if a transaction was submitted. ResultXdr []byte `protobuf:"bytes,5,opt,name=result_xdr,json=resultXdr,proto3" json:"result_xdr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubmitTransactionResponse) Descriptor ¶
func (*SubmitTransactionResponse) Descriptor() ([]byte, []int)
func (*SubmitTransactionResponse) GetHash ¶
func (m *SubmitTransactionResponse) GetHash() *v3.TransactionHash
func (*SubmitTransactionResponse) GetInvoiceErrors ¶
func (m *SubmitTransactionResponse) GetInvoiceErrors() []*v3.InvoiceError
func (*SubmitTransactionResponse) GetLedger ¶
func (m *SubmitTransactionResponse) GetLedger() int64
func (*SubmitTransactionResponse) GetResult ¶
func (m *SubmitTransactionResponse) GetResult() SubmitTransactionResponse_Result
func (*SubmitTransactionResponse) GetResultXdr ¶
func (m *SubmitTransactionResponse) GetResultXdr() []byte
func (*SubmitTransactionResponse) ProtoMessage ¶
func (*SubmitTransactionResponse) ProtoMessage()
func (*SubmitTransactionResponse) Reset ¶
func (m *SubmitTransactionResponse) Reset()
func (*SubmitTransactionResponse) String ¶
func (m *SubmitTransactionResponse) String() string
func (*SubmitTransactionResponse) Validate ¶
func (m *SubmitTransactionResponse) Validate() error
Validate checks the field values on SubmitTransactionResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SubmitTransactionResponse) XXX_DiscardUnknown ¶
func (m *SubmitTransactionResponse) XXX_DiscardUnknown()
func (*SubmitTransactionResponse) XXX_Marshal ¶
func (m *SubmitTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubmitTransactionResponse) XXX_Merge ¶
func (m *SubmitTransactionResponse) XXX_Merge(src proto.Message)
func (*SubmitTransactionResponse) XXX_Size ¶
func (m *SubmitTransactionResponse) XXX_Size() int
func (*SubmitTransactionResponse) XXX_Unmarshal ¶
func (m *SubmitTransactionResponse) XXX_Unmarshal(b []byte) error
type SubmitTransactionResponseValidationError ¶
type SubmitTransactionResponseValidationError struct {
// contains filtered or unexported fields
}
SubmitTransactionResponseValidationError is the validation error returned by SubmitTransactionResponse.Validate if the designated constraints aren't met.
func (SubmitTransactionResponseValidationError) Cause ¶
func (e SubmitTransactionResponseValidationError) Cause() error
Cause function returns cause value.
func (SubmitTransactionResponseValidationError) Error ¶
func (e SubmitTransactionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitTransactionResponseValidationError) ErrorName ¶
func (e SubmitTransactionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitTransactionResponseValidationError) Field ¶
func (e SubmitTransactionResponseValidationError) Field() string
Field function returns field value.
func (SubmitTransactionResponseValidationError) Key ¶
func (e SubmitTransactionResponseValidationError) Key() bool
Key function returns key value.
func (SubmitTransactionResponseValidationError) Reason ¶
func (e SubmitTransactionResponseValidationError) Reason() string
Reason function returns reason value.
type SubmitTransactionResponse_Result ¶
type SubmitTransactionResponse_Result int32
const ( SubmitTransactionResponse_OK SubmitTransactionResponse_Result = 0 // There was an issue with submitting the transaction // to the underlying chain. Clients should retry with // a rebuilt transaction in case there is temporal // issues with the transaction, such as sequence number, // or some other chain-specific errors. The detail of // the error is present in the result xdr. SubmitTransactionResponse_FAILED SubmitTransactionResponse_Result = 1 // Indicates that the configured webhook for this transaction // rejected the transaction without a specified reason. SubmitTransactionResponse_REJECTED SubmitTransactionResponse_Result = 2 // Indicates there was an error with one or more of the // supplied invoices. // // See: invoice_errors. SubmitTransactionResponse_INVOICE_ERROR SubmitTransactionResponse_Result = 3 )
func (SubmitTransactionResponse_Result) EnumDescriptor ¶
func (SubmitTransactionResponse_Result) EnumDescriptor() ([]byte, []int)
func (SubmitTransactionResponse_Result) String ¶
func (x SubmitTransactionResponse_Result) String() string
type TransactionClient ¶
type TransactionClient interface { // GetHistory returns the transaction history for an account, // with additional off-chain invoice data, if available. GetHistory(ctx context.Context, in *GetHistoryRequest, opts ...grpc.CallOption) (*GetHistoryResponse, error) // SubmitTransaction submits a transaction. // // If the memo does not conform to the Kin binary memo format, // the transaction is not eligible for whitelisting. // // If the memo _does_ conform to the Kin binary memo format, // the transaction may be whitelisted depending on app // configuration. // // See: https://github.com/kinecosystem/agora-api/blob/master/spec/memo.md SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error) // GetTransaction returns a transaction and additional off-chain // invoice data, if available. GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) }
TransactionClient is the client API for Transaction service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTransactionClient ¶
func NewTransactionClient(cc *grpc.ClientConn) TransactionClient
type TransactionServer ¶
type TransactionServer interface { // GetHistory returns the transaction history for an account, // with additional off-chain invoice data, if available. GetHistory(context.Context, *GetHistoryRequest) (*GetHistoryResponse, error) // SubmitTransaction submits a transaction. // // If the memo does not conform to the Kin binary memo format, // the transaction is not eligible for whitelisting. // // If the memo _does_ conform to the Kin binary memo format, // the transaction may be whitelisted depending on app // configuration. // // See: https://github.com/kinecosystem/agora-api/blob/master/spec/memo.md SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error) // GetTransaction returns a transaction and additional off-chain // invoice data, if available. GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) }
TransactionServer is the server API for Transaction service.
type UnimplementedTransactionServer ¶
type UnimplementedTransactionServer struct { }
UnimplementedTransactionServer can be embedded to have forward compatible implementations.
func (*UnimplementedTransactionServer) GetHistory ¶
func (*UnimplementedTransactionServer) GetHistory(ctx context.Context, req *GetHistoryRequest) (*GetHistoryResponse, error)
func (*UnimplementedTransactionServer) GetTransaction ¶
func (*UnimplementedTransactionServer) GetTransaction(ctx context.Context, req *GetTransactionRequest) (*GetTransactionResponse, error)
func (*UnimplementedTransactionServer) SubmitTransaction ¶
func (*UnimplementedTransactionServer) SubmitTransaction(ctx context.Context, req *SubmitTransactionRequest) (*SubmitTransactionResponse, error)