Documentation
¶
Index ¶
- Variables
- func ConvertGetLatestLedgerResponseFromProto(p *GetLatestLedgerResponse) (stellarservicetypes.GetLatestLedgerResponse, error)
- func ProtoToScVal(sv *scval.ScVal) (stellarservicetypes.ScVal, error)
- func ScValToProto(sv stellarservicetypes.ScVal) (*scval.ScVal, error)
- type GetLatestLedgerRequest
- type GetLatestLedgerResponse
- func (*GetLatestLedgerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestLedgerResponse) GetHash() []byte
- func (x *GetLatestLedgerResponse) GetLedgerCloseTime() int64
- func (x *GetLatestLedgerResponse) GetLedgerHeaderXdr() []byte
- func (x *GetLatestLedgerResponse) GetLedgerMetadataXdr() []byte
- func (x *GetLatestLedgerResponse) GetProtocolVersion() uint32
- func (x *GetLatestLedgerResponse) GetSequence() uint32
- func (*GetLatestLedgerResponse) ProtoMessage()
- func (x *GetLatestLedgerResponse) ProtoReflect() protoreflect.Message
- func (x *GetLatestLedgerResponse) Reset()
- func (x *GetLatestLedgerResponse) String() string
- type ReadContractRequest
- func (*ReadContractRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadContractRequest) GetArgs() []*scval.ScVal
- func (x *ReadContractRequest) GetContractId() string
- func (x *ReadContractRequest) GetFunction() string
- func (x *ReadContractRequest) GetSourceAccount() string
- func (*ReadContractRequest) ProtoMessage()
- func (x *ReadContractRequest) ProtoReflect() protoreflect.Message
- func (x *ReadContractRequest) Reset()
- func (x *ReadContractRequest) String() string
- type ReadContractResponse
- func (*ReadContractResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadContractResponse) GetError() string
- func (x *ReadContractResponse) GetLedgerSequence() uint32
- func (x *ReadContractResponse) GetResult() string
- func (*ReadContractResponse) ProtoMessage()
- func (x *ReadContractResponse) ProtoReflect() protoreflect.Message
- func (x *ReadContractResponse) Reset()
- func (x *ReadContractResponse) String() string
- type ReceiverContractExecutionStatus
- func (ReceiverContractExecutionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReceiverContractExecutionStatus) Enum() *ReceiverContractExecutionStatus
- func (ReceiverContractExecutionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReceiverContractExecutionStatus) Number() protoreflect.EnumNumber
- func (x ReceiverContractExecutionStatus) String() string
- func (ReceiverContractExecutionStatus) Type() protoreflect.EnumType
- type TxStatus
- type WriteReportReply
- func (*WriteReportReply) Descriptor() ([]byte, []int)deprecated
- func (x *WriteReportReply) GetBlockTimestamp() uint64
- func (x *WriteReportReply) GetErrorMessage() string
- func (x *WriteReportReply) GetLedgerSequence() uint32
- func (x *WriteReportReply) GetReceiverContractExecutionStatus() ReceiverContractExecutionStatus
- func (x *WriteReportReply) GetTransactionFee() uint64
- func (x *WriteReportReply) GetTxHash() string
- func (x *WriteReportReply) GetTxStatus() TxStatus
- func (*WriteReportReply) ProtoMessage()
- func (x *WriteReportReply) ProtoReflect() protoreflect.Message
- func (x *WriteReportReply) Reset()
- func (x *WriteReportReply) String() string
- type WriteReportRequest
- func (*WriteReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteReportRequest) GetContractId() string
- func (x *WriteReportRequest) GetReport() *sdk.ReportResponse
- func (*WriteReportRequest) ProtoMessage()
- func (x *WriteReportRequest) ProtoReflect() protoreflect.Message
- func (x *WriteReportRequest) Reset()
- func (x *WriteReportRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( TxStatus_name = map[int32]string{ 0: "TX_STATUS_FATAL", 1: "TX_STATUS_REVERTED", 2: "TX_STATUS_SUCCESS", } TxStatus_value = map[string]int32{ "TX_STATUS_FATAL": 0, "TX_STATUS_REVERTED": 1, "TX_STATUS_SUCCESS": 2, } )
Enum value maps for TxStatus.
var ( ReceiverContractExecutionStatus_name = map[int32]string{ 0: "RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS", 1: "RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED", } ReceiverContractExecutionStatus_value = map[string]int32{ "RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS": 0, "RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED": 1, } )
Enum value maps for ReceiverContractExecutionStatus.
var File_capabilities_blockchain_stellar_v1alpha_client_proto protoreflect.FileDescriptor
Functions ¶
func ConvertGetLatestLedgerResponseFromProto ¶
func ConvertGetLatestLedgerResponseFromProto(p *GetLatestLedgerResponse) (stellarservicetypes.GetLatestLedgerResponse, error)
ConvertGetLatestLedgerResponseFromProto converts a proto GetLatestLedgerResponse to the domain type. Hash is returned as lowercase hex; XDR fields are returned as standard base64.
func ProtoToScVal ¶
func ProtoToScVal(sv *scval.ScVal) (stellarservicetypes.ScVal, error)
ProtoToScVal converts a proto ScVal to its domain representation. Returns an error if nesting depth exceeds 64 levels.
func ScValToProto ¶
func ScValToProto(sv stellarservicetypes.ScVal) (*scval.ScVal, error)
ScValToProto converts a domain ScVal to its proto representation. Returns an error if nesting depth exceeds 64 levels.
Types ¶
type GetLatestLedgerRequest ¶
type GetLatestLedgerRequest struct {
// contains filtered or unexported fields
}
func (*GetLatestLedgerRequest) Descriptor
deprecated
func (*GetLatestLedgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestLedgerRequest.ProtoReflect.Descriptor instead.
func (*GetLatestLedgerRequest) ProtoMessage ¶
func (*GetLatestLedgerRequest) ProtoMessage()
func (*GetLatestLedgerRequest) ProtoReflect ¶
func (x *GetLatestLedgerRequest) ProtoReflect() protoreflect.Message
func (*GetLatestLedgerRequest) Reset ¶
func (x *GetLatestLedgerRequest) Reset()
func (*GetLatestLedgerRequest) String ¶
func (x *GetLatestLedgerRequest) String() string
type GetLatestLedgerResponse ¶
type GetLatestLedgerResponse struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // 32-byte raw ledger hash
ProtocolVersion uint32 `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
Sequence uint32 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
LedgerCloseTime int64 `protobuf:"varint,4,opt,name=ledger_close_time,json=ledgerCloseTime,proto3" json:"ledger_close_time,omitempty"`
LedgerHeaderXdr []byte `protobuf:"bytes,5,opt,name=ledger_header_xdr,json=ledgerHeaderXdr,proto3" json:"ledger_header_xdr,omitempty"` // LedgerHeader binary XDR
LedgerMetadataXdr []byte `protobuf:"bytes,6,opt,name=ledger_metadata_xdr,json=ledgerMetadataXdr,proto3" json:"ledger_metadata_xdr,omitempty"` // LedgerCloseMetaV2 binary XDR
// contains filtered or unexported fields
}
func ConvertGetLatestLedgerResponseToProto ¶
func ConvertGetLatestLedgerResponseToProto(r stellarservicetypes.GetLatestLedgerResponse) (*GetLatestLedgerResponse, error)
ConvertGetLatestLedgerResponseToProto converts the domain GetLatestLedgerResponse to a proto. Hash must be a valid hex string; XDR fields must be valid standard base64.
func (*GetLatestLedgerResponse) Descriptor
deprecated
func (*GetLatestLedgerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestLedgerResponse.ProtoReflect.Descriptor instead.
func (*GetLatestLedgerResponse) GetHash ¶
func (x *GetLatestLedgerResponse) GetHash() []byte
func (*GetLatestLedgerResponse) GetLedgerCloseTime ¶
func (x *GetLatestLedgerResponse) GetLedgerCloseTime() int64
func (*GetLatestLedgerResponse) GetLedgerHeaderXdr ¶
func (x *GetLatestLedgerResponse) GetLedgerHeaderXdr() []byte
func (*GetLatestLedgerResponse) GetLedgerMetadataXdr ¶
func (x *GetLatestLedgerResponse) GetLedgerMetadataXdr() []byte
func (*GetLatestLedgerResponse) GetProtocolVersion ¶
func (x *GetLatestLedgerResponse) GetProtocolVersion() uint32
func (*GetLatestLedgerResponse) GetSequence ¶
func (x *GetLatestLedgerResponse) GetSequence() uint32
func (*GetLatestLedgerResponse) ProtoMessage ¶
func (*GetLatestLedgerResponse) ProtoMessage()
func (*GetLatestLedgerResponse) ProtoReflect ¶
func (x *GetLatestLedgerResponse) ProtoReflect() protoreflect.Message
func (*GetLatestLedgerResponse) Reset ¶
func (x *GetLatestLedgerResponse) Reset()
func (*GetLatestLedgerResponse) String ¶
func (x *GetLatestLedgerResponse) String() string
type ReadContractRequest ¶
type ReadContractRequest struct {
ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
Args []*scval.ScVal `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` // Typed Soroban contract arguments (replaces raw XDR bytes)
// Source account (G… StrKey) to simulate the call as (the invoker). Required for contracts
// whose result depends on the caller, e.g. that call require_auth or branch on the invoker.
// Leave empty for source-insensitive reads; a deterministic placeholder account is used.
SourceAccount string `protobuf:"bytes,4,opt,name=source_account,json=sourceAccount,proto3" json:"source_account,omitempty"`
// contains filtered or unexported fields
}
func (*ReadContractRequest) Descriptor
deprecated
func (*ReadContractRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadContractRequest.ProtoReflect.Descriptor instead.
func (*ReadContractRequest) GetArgs ¶
func (x *ReadContractRequest) GetArgs() []*scval.ScVal
func (*ReadContractRequest) GetContractId ¶
func (x *ReadContractRequest) GetContractId() string
func (*ReadContractRequest) GetFunction ¶
func (x *ReadContractRequest) GetFunction() string
func (*ReadContractRequest) GetSourceAccount ¶
func (x *ReadContractRequest) GetSourceAccount() string
func (*ReadContractRequest) ProtoMessage ¶
func (*ReadContractRequest) ProtoMessage()
func (*ReadContractRequest) ProtoReflect ¶
func (x *ReadContractRequest) ProtoReflect() protoreflect.Message
func (*ReadContractRequest) Reset ¶
func (x *ReadContractRequest) Reset()
func (*ReadContractRequest) String ¶
func (x *ReadContractRequest) String() string
type ReadContractResponse ¶
type ReadContractResponse struct {
// Result is a serialized base64 string - return value of the Host Function call.
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// Ledger actually used for simulation
LedgerSequence uint32 `protobuf:"varint,2,opt,name=ledger_sequence,json=ledgerSequence,proto3" json:"ledger_sequence,omitempty"`
// Response
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*ReadContractResponse) Descriptor
deprecated
func (*ReadContractResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadContractResponse.ProtoReflect.Descriptor instead.
func (*ReadContractResponse) GetError ¶
func (x *ReadContractResponse) GetError() string
func (*ReadContractResponse) GetLedgerSequence ¶
func (x *ReadContractResponse) GetLedgerSequence() uint32
func (*ReadContractResponse) GetResult ¶
func (x *ReadContractResponse) GetResult() string
func (*ReadContractResponse) ProtoMessage ¶
func (*ReadContractResponse) ProtoMessage()
func (*ReadContractResponse) ProtoReflect ¶
func (x *ReadContractResponse) ProtoReflect() protoreflect.Message
func (*ReadContractResponse) Reset ¶
func (x *ReadContractResponse) Reset()
func (*ReadContractResponse) String ¶
func (x *ReadContractResponse) String() string
type ReceiverContractExecutionStatus ¶
type ReceiverContractExecutionStatus int32
const ( ReceiverContractExecutionStatus_RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS ReceiverContractExecutionStatus = 0 ReceiverContractExecutionStatus_RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED ReceiverContractExecutionStatus = 1 )
func (ReceiverContractExecutionStatus) Descriptor ¶
func (ReceiverContractExecutionStatus) Descriptor() protoreflect.EnumDescriptor
func (ReceiverContractExecutionStatus) Enum ¶
func (x ReceiverContractExecutionStatus) Enum() *ReceiverContractExecutionStatus
func (ReceiverContractExecutionStatus) EnumDescriptor
deprecated
func (ReceiverContractExecutionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReceiverContractExecutionStatus.Descriptor instead.
func (ReceiverContractExecutionStatus) Number ¶
func (x ReceiverContractExecutionStatus) Number() protoreflect.EnumNumber
func (ReceiverContractExecutionStatus) String ¶
func (x ReceiverContractExecutionStatus) String() string
func (ReceiverContractExecutionStatus) Type ¶
func (ReceiverContractExecutionStatus) Type() protoreflect.EnumType
type TxStatus ¶
type TxStatus int32
func (TxStatus) Descriptor ¶
func (TxStatus) Descriptor() protoreflect.EnumDescriptor
func (TxStatus) EnumDescriptor
deprecated
func (TxStatus) Number ¶
func (x TxStatus) Number() protoreflect.EnumNumber
func (TxStatus) Type ¶
func (TxStatus) Type() protoreflect.EnumType
type WriteReportReply ¶
type WriteReportReply struct {
TxStatus TxStatus `` /* 140-byte string literal not displayed */
ReceiverContractExecutionStatus *ReceiverContractExecutionStatus `` /* 242-byte string literal not displayed */
TxHash *string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3,oneof" json:"tx_hash,omitempty"`
TransactionFee *uint64 `protobuf:"varint,4,opt,name=transaction_fee,json=transactionFee,proto3,oneof" json:"transaction_fee,omitempty"` // total fee paid in stroops
LedgerSequence *uint32 `protobuf:"varint,5,opt,name=ledger_sequence,json=ledgerSequence,proto3,oneof" json:"ledger_sequence,omitempty"`
ErrorMessage *string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // user-actionable failure reason
BlockTimestamp *uint64 `protobuf:"varint,7,opt,name=block_timestamp,json=blockTimestamp,proto3,oneof" json:"block_timestamp,omitempty"` // block timestamp in microseconds
// contains filtered or unexported fields
}
func (*WriteReportReply) Descriptor
deprecated
func (*WriteReportReply) Descriptor() ([]byte, []int)
Deprecated: Use WriteReportReply.ProtoReflect.Descriptor instead.
func (*WriteReportReply) GetBlockTimestamp ¶
func (x *WriteReportReply) GetBlockTimestamp() uint64
func (*WriteReportReply) GetErrorMessage ¶
func (x *WriteReportReply) GetErrorMessage() string
func (*WriteReportReply) GetLedgerSequence ¶
func (x *WriteReportReply) GetLedgerSequence() uint32
func (*WriteReportReply) GetReceiverContractExecutionStatus ¶
func (x *WriteReportReply) GetReceiverContractExecutionStatus() ReceiverContractExecutionStatus
func (*WriteReportReply) GetTransactionFee ¶
func (x *WriteReportReply) GetTransactionFee() uint64
func (*WriteReportReply) GetTxHash ¶
func (x *WriteReportReply) GetTxHash() string
func (*WriteReportReply) GetTxStatus ¶
func (x *WriteReportReply) GetTxStatus() TxStatus
func (*WriteReportReply) ProtoMessage ¶
func (*WriteReportReply) ProtoMessage()
func (*WriteReportReply) ProtoReflect ¶
func (x *WriteReportReply) ProtoReflect() protoreflect.Message
func (*WriteReportReply) Reset ¶
func (x *WriteReportReply) Reset()
func (*WriteReportReply) String ¶
func (x *WriteReportReply) String() string
type WriteReportRequest ¶
type WriteReportRequest struct {
ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // Stellar contract address (C… StrKey)
Report *sdk.ReportResponse `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` // signed report from consensus
// contains filtered or unexported fields
}
func (*WriteReportRequest) Descriptor
deprecated
func (*WriteReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteReportRequest.ProtoReflect.Descriptor instead.
func (*WriteReportRequest) GetContractId ¶
func (x *WriteReportRequest) GetContractId() string
func (*WriteReportRequest) GetReport ¶
func (x *WriteReportRequest) GetReport() *sdk.ReportResponse
func (*WriteReportRequest) ProtoMessage ¶
func (*WriteReportRequest) ProtoMessage()
func (*WriteReportRequest) ProtoReflect ¶
func (x *WriteReportRequest) ProtoReflect() protoreflect.Message
func (*WriteReportRequest) Reset ¶
func (x *WriteReportRequest) Reset()
func (*WriteReportRequest) String ¶
func (x *WriteReportRequest) String() string