transaction

package
v0.27.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetHistoryRequest_Direction_name = map[int32]string{
	0: "ASC",
	1: "DESC",
}
View Source
var GetHistoryRequest_Direction_value = map[string]int32{
	"ASC":  0,
	"DESC": 1,
}
View Source
var GetHistoryResponse_Result_name = map[int32]string{
	0: "OK",
	1: "NOT_FOUND",
}
View Source
var GetHistoryResponse_Result_value = map[string]int32{
	"OK":        0,
	"NOT_FOUND": 1,
}
View Source
var GetTransactionResponse_State_name = map[int32]string{
	0: "UNKNOWN",
	1: "SUCCESS",
}
View Source
var GetTransactionResponse_State_value = map[string]int32{
	"UNKNOWN": 0,
	"SUCCESS": 1,
}
View Source
var SubmitTransactionResponse_Result_name = map[int32]string{
	0: "OK",
	1: "FAILED",
	2: "REJECTED",
	3: "INVOICE_ERROR",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Cursor) GetValue

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

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) Reset

func (m *Cursor) Reset()

func (*Cursor) String

func (m *Cursor) String() string

func (*Cursor) Validate

func (m *Cursor) Validate() error

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

func (*Cursor) XXX_DiscardUnknown

func (m *Cursor) XXX_DiscardUnknown()

func (*Cursor) XXX_Marshal

func (m *Cursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cursor) XXX_Merge

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

func (*Cursor) XXX_Size

func (m *Cursor) XXX_Size() int

func (*Cursor) XXX_Unmarshal

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

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

Cause function returns cause value.

func (GetHistoryRequestValidationError) Error

Error satisfies the builtin error interface

func (GetHistoryRequestValidationError) ErrorName

ErrorName returns error name.

func (GetHistoryRequestValidationError) Field

Field function returns field value.

func (GetHistoryRequestValidationError) Key

Key function returns key value.

func (GetHistoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetHistoryResponseValidationError) Error

Error satisfies the builtin error interface

func (GetHistoryResponseValidationError) ErrorName

ErrorName returns error name.

func (GetHistoryResponseValidationError) Field

Field function returns field value.

func (GetHistoryResponseValidationError) Key

Key function returns key value.

func (GetHistoryResponseValidationError) Reason

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

Cause function returns cause value.

func (GetTransactionRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTransactionRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTransactionRequestValidationError) Field

Field function returns field value.

func (GetTransactionRequestValidationError) Key

Key function returns key value.

func (GetTransactionRequestValidationError) Reason

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

Cause function returns cause value.

func (GetTransactionResponseValidationError) Error

Error satisfies the builtin error interface

func (GetTransactionResponseValidationError) ErrorName

ErrorName returns error name.

func (GetTransactionResponseValidationError) Field

Field function returns field value.

func (GetTransactionResponseValidationError) Key

Key function returns key value.

func (GetTransactionResponseValidationError) Reason

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

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

Cause function returns cause value.

func (HistoryItemValidationError) Error

Error satisfies the builtin error interface

func (HistoryItemValidationError) ErrorName

func (e HistoryItemValidationError) ErrorName() string

ErrorName returns error name.

func (HistoryItemValidationError) Field

Field function returns field value.

func (HistoryItemValidationError) Key

Key function returns key value.

func (HistoryItemValidationError) Reason

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

Cause function returns cause value.

func (SubmitTransactionRequestValidationError) Error

Error satisfies the builtin error interface

func (SubmitTransactionRequestValidationError) ErrorName

ErrorName returns error name.

func (SubmitTransactionRequestValidationError) Field

Field function returns field value.

func (SubmitTransactionRequestValidationError) Key

Key function returns key value.

func (SubmitTransactionRequestValidationError) Reason

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 (*SubmitTransactionResponse) GetInvoiceErrors

func (m *SubmitTransactionResponse) GetInvoiceErrors() []*v3.InvoiceError

func (*SubmitTransactionResponse) GetLedger

func (m *SubmitTransactionResponse) GetLedger() int64

func (*SubmitTransactionResponse) GetResult

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

Cause function returns cause value.

func (SubmitTransactionResponseValidationError) Error

Error satisfies the builtin error interface

func (SubmitTransactionResponseValidationError) ErrorName

ErrorName returns error name.

func (SubmitTransactionResponseValidationError) Field

Field function returns field value.

func (SubmitTransactionResponseValidationError) Key

Key function returns key value.

func (SubmitTransactionResponseValidationError) Reason

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

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

func (*UnimplementedTransactionServer) SubmitTransaction

Jump to

Keyboard shortcuts

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