Documentation ¶
Overview ¶
Package contract is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterContractQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterContractQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ContractQueryClient) error
- func RegisterContractQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterContractQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ContractQueryServer) error
- func RegisterContractQueryServer(s grpc.ServiceRegistrar, srv ContractQueryServer)
- type ContractCode
- func (*ContractCode) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCode) GetContractCode() string
- func (x *ContractCode) GetContractId() string
- func (x *ContractCode) GetCreatedLedger() uint32
- func (x *ContractCode) GetCreatorAddress() string
- func (*ContractCode) ProtoMessage()
- func (x *ContractCode) ProtoReflect() protoreflect.Message
- func (x *ContractCode) Reset()
- func (x *ContractCode) String() string
- type ContractCodeRequest
- func (*ContractCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCodeRequest) GetContractId() string
- func (*ContractCodeRequest) ProtoMessage()
- func (x *ContractCodeRequest) ProtoReflect() protoreflect.Message
- func (x *ContractCodeRequest) Reset()
- func (x *ContractCodeRequest) String() string
- type ContractCodeResponse
- func (*ContractCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCodeResponse) GetContract() *ContractCode
- func (x *ContractCodeResponse) GetFound() bool
- func (*ContractCodeResponse) ProtoMessage()
- func (x *ContractCodeResponse) ProtoReflect() protoreflect.Message
- func (x *ContractCodeResponse) Reset()
- func (x *ContractCodeResponse) String() string
- type ContractCodesRequest
- func (*ContractCodesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCodesRequest) GetPage() int32
- func (x *ContractCodesRequest) GetPageSize() int32
- func (*ContractCodesRequest) ProtoMessage()
- func (x *ContractCodesRequest) ProtoReflect() protoreflect.Message
- func (x *ContractCodesRequest) Reset()
- func (x *ContractCodesRequest) String() string
- type ContractCodesResponse
- func (*ContractCodesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCodesResponse) GetData() []*ContractCode
- func (*ContractCodesResponse) ProtoMessage()
- func (x *ContractCodesResponse) ProtoReflect() protoreflect.Message
- func (x *ContractCodesResponse) Reset()
- func (x *ContractCodesResponse) String() string
- type ContractDataRequest
- func (*ContractDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractDataRequest) GetContractId() string
- func (x *ContractDataRequest) GetKeyXdr() string
- func (x *ContractDataRequest) GetLedger() uint32
- func (x *ContractDataRequest) GetPage() int32
- func (x *ContractDataRequest) GetPageSize() int32
- func (*ContractDataRequest) ProtoMessage()
- func (x *ContractDataRequest) ProtoReflect() protoreflect.Message
- func (x *ContractDataRequest) Reset()
- func (x *ContractDataRequest) String() string
- type ContractDataResponse
- func (*ContractDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractDataResponse) GetData() []*ContractEntryInfo
- func (*ContractDataResponse) ProtoMessage()
- func (x *ContractDataResponse) ProtoReflect() protoreflect.Message
- func (x *ContractDataResponse) Reset()
- func (x *ContractDataResponse) String() string
- type ContractEntry
- func (*ContractEntry) Descriptor() ([]byte, []int)deprecated
- func (x *ContractEntry) GetAccountId() string
- func (x *ContractEntry) GetContractId() string
- func (x *ContractEntry) GetDurability() string
- func (x *ContractEntry) GetEntryType() string
- func (x *ContractEntry) GetIsNewest() bool
- func (x *ContractEntry) GetKeyXdr() []byte
- func (x *ContractEntry) GetLedger() uint32
- func (x *ContractEntry) GetTxHash() string
- func (x *ContractEntry) GetValueXdr() []byte
- func (*ContractEntry) ProtoMessage()
- func (x *ContractEntry) ProtoReflect() protoreflect.Message
- func (x *ContractEntry) Reset()
- func (x *ContractEntry) String() string
- type ContractEntryInfo
- func (*ContractEntryInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ContractEntryInfo) GetKey() *structpb.Struct
- func (x *ContractEntryInfo) GetValue() *structpb.Struct
- func (*ContractEntryInfo) ProtoMessage()
- func (x *ContractEntryInfo) ProtoReflect() protoreflect.Message
- func (x *ContractEntryInfo) Reset()
- func (x *ContractEntryInfo) String() string
- type ContractEntryRequest
- func (*ContractEntryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractEntryRequest) GetContractId() string
- func (x *ContractEntryRequest) GetKeyType() string
- func (x *ContractEntryRequest) GetKeyValue() string
- func (x *ContractEntryRequest) GetLedger() uint32
- func (*ContractEntryRequest) ProtoMessage()
- func (x *ContractEntryRequest) ProtoReflect() protoreflect.Message
- func (x *ContractEntryRequest) Reset()
- func (x *ContractEntryRequest) String() string
- type ContractEntryResponse
- func (*ContractEntryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractEntryResponse) GetEntry() *ContractEntryInfo
- func (x *ContractEntryResponse) GetFound() bool
- func (*ContractEntryResponse) ProtoMessage()
- func (x *ContractEntryResponse) ProtoReflect() protoreflect.Message
- func (x *ContractEntryResponse) Reset()
- func (x *ContractEntryResponse) String() string
- type ContractInvoke
- func (*ContractInvoke) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvoke) GetArgs() []byte
- func (x *ContractInvoke) GetContractId() string
- func (x *ContractInvoke) GetFunctionName() string
- func (x *ContractInvoke) GetFunctionType() string
- func (x *ContractInvoke) GetHash() string
- func (*ContractInvoke) ProtoMessage()
- func (x *ContractInvoke) ProtoReflect() protoreflect.Message
- func (x *ContractInvoke) Reset()
- func (x *ContractInvoke) String() string
- type ContractInvokeInfo
- func (*ContractInvokeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokeInfo) GetArgs() *structpb.Struct
- func (x *ContractInvokeInfo) GetContractId() string
- func (x *ContractInvokeInfo) GetFunctionName() string
- func (x *ContractInvokeInfo) GetFunctionType() string
- func (x *ContractInvokeInfo) GetHash() string
- func (*ContractInvokeInfo) ProtoMessage()
- func (x *ContractInvokeInfo) ProtoReflect() protoreflect.Message
- func (x *ContractInvokeInfo) Reset()
- func (x *ContractInvokeInfo) String() string
- type ContractInvokeRequest
- func (*ContractInvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokeRequest) GetHash() string
- func (*ContractInvokeRequest) ProtoMessage()
- func (x *ContractInvokeRequest) ProtoReflect() protoreflect.Message
- func (x *ContractInvokeRequest) Reset()
- func (x *ContractInvokeRequest) String() string
- type ContractInvokeResponse
- func (*ContractInvokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokeResponse) GetFound() bool
- func (x *ContractInvokeResponse) GetInfo() *ContractInvokeInfo
- func (*ContractInvokeResponse) ProtoMessage()
- func (x *ContractInvokeResponse) ProtoReflect() protoreflect.Message
- func (x *ContractInvokeResponse) Reset()
- func (x *ContractInvokeResponse) String() string
- type ContractInvokesAtLedgerRequest
- func (*ContractInvokesAtLedgerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokesAtLedgerRequest) GetContractId() string
- func (x *ContractInvokesAtLedgerRequest) GetLedger() int32
- func (x *ContractInvokesAtLedgerRequest) GetPage() int32
- func (x *ContractInvokesAtLedgerRequest) GetPageSize() int32
- func (*ContractInvokesAtLedgerRequest) ProtoMessage()
- func (x *ContractInvokesAtLedgerRequest) ProtoReflect() protoreflect.Message
- func (x *ContractInvokesAtLedgerRequest) Reset()
- func (x *ContractInvokesAtLedgerRequest) String() string
- type ContractInvokesAtLedgerResponse
- func (*ContractInvokesAtLedgerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokesAtLedgerResponse) GetData() []*ContractInvokeInfo
- func (*ContractInvokesAtLedgerResponse) ProtoMessage()
- func (x *ContractInvokesAtLedgerResponse) ProtoReflect() protoreflect.Message
- func (x *ContractInvokesAtLedgerResponse) Reset()
- func (x *ContractInvokesAtLedgerResponse) String() string
- type ContractInvokesByUserRequest
- func (*ContractInvokesByUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokesByUserRequest) GetAddress() string
- func (x *ContractInvokesByUserRequest) GetContractId() string
- func (x *ContractInvokesByUserRequest) GetLedger() int32
- func (x *ContractInvokesByUserRequest) GetPage() int32
- func (x *ContractInvokesByUserRequest) GetPageSize() int32
- func (*ContractInvokesByUserRequest) ProtoMessage()
- func (x *ContractInvokesByUserRequest) ProtoReflect() protoreflect.Message
- func (x *ContractInvokesByUserRequest) Reset()
- func (x *ContractInvokesByUserRequest) String() string
- type ContractInvokesByUserResponse
- func (*ContractInvokesByUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokesByUserResponse) GetData() []*ContractInvokeInfo
- func (*ContractInvokesByUserResponse) ProtoMessage()
- func (x *ContractInvokesByUserResponse) ProtoReflect() protoreflect.Message
- func (x *ContractInvokesByUserResponse) Reset()
- func (x *ContractInvokesByUserResponse) String() string
- type ContractInvokesRequest
- func (*ContractInvokesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokesRequest) GetContractId() string
- func (x *ContractInvokesRequest) GetFunctionName() string
- func (x *ContractInvokesRequest) GetPage() int32
- func (x *ContractInvokesRequest) GetPageSize() int32
- func (*ContractInvokesRequest) ProtoMessage()
- func (x *ContractInvokesRequest) ProtoReflect() protoreflect.Message
- func (x *ContractInvokesRequest) Reset()
- func (x *ContractInvokesRequest) String() string
- type ContractInvokesResponse
- func (*ContractInvokesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractInvokesResponse) GetData() []*ContractInvokeInfo
- func (*ContractInvokesResponse) ProtoMessage()
- func (x *ContractInvokesResponse) ProtoReflect() protoreflect.Message
- func (x *ContractInvokesResponse) Reset()
- func (x *ContractInvokesResponse) String() string
- type ContractKeysRequest
- func (*ContractKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractKeysRequest) GetContractId() string
- func (x *ContractKeysRequest) GetLedger() uint32
- func (x *ContractKeysRequest) GetPage() int32
- func (x *ContractKeysRequest) GetPageSize() int32
- func (*ContractKeysRequest) ProtoMessage()
- func (x *ContractKeysRequest) ProtoReflect() protoreflect.Message
- func (x *ContractKeysRequest) Reset()
- func (x *ContractKeysRequest) String() string
- type ContractKeysResponse
- func (*ContractKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractKeysResponse) GetKeys() []*structpb.Struct
- func (*ContractKeysResponse) ProtoMessage()
- func (x *ContractKeysResponse) ProtoReflect() protoreflect.Message
- func (x *ContractKeysResponse) Reset()
- func (x *ContractKeysResponse) String() string
- type ContractQueryClient
- type ContractQueryServer
- type ContractsAtLedgerRequest
- func (*ContractsAtLedgerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractsAtLedgerRequest) GetLedger() uint32
- func (x *ContractsAtLedgerRequest) GetPage() int32
- func (x *ContractsAtLedgerRequest) GetPageSize() int32
- func (*ContractsAtLedgerRequest) ProtoMessage()
- func (x *ContractsAtLedgerRequest) ProtoReflect() protoreflect.Message
- func (x *ContractsAtLedgerRequest) Reset()
- func (x *ContractsAtLedgerRequest) String() string
- type ContractsAtLedgerResponse
- func (*ContractsAtLedgerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractsAtLedgerResponse) GetData() []*ContractCode
- func (*ContractsAtLedgerResponse) ProtoMessage()
- func (x *ContractsAtLedgerResponse) ProtoReflect() protoreflect.Message
- func (x *ContractsAtLedgerResponse) Reset()
- func (x *ContractsAtLedgerResponse) String() string
- type UnimplementedContractQueryServer
- func (UnimplementedContractQueryServer) ContractCode(context.Context, *ContractCodeRequest) (*ContractCodeResponse, error)
- func (UnimplementedContractQueryServer) ContractCodes(context.Context, *ContractCodesRequest) (*ContractCodesResponse, error)
- func (UnimplementedContractQueryServer) ContractData(context.Context, *ContractDataRequest) (*ContractDataResponse, error)
- func (UnimplementedContractQueryServer) ContractEntry(context.Context, *ContractEntryRequest) (*ContractEntryResponse, error)
- func (UnimplementedContractQueryServer) ContractInvoke(context.Context, *ContractInvokeRequest) (*ContractInvokeResponse, error)
- func (UnimplementedContractQueryServer) ContractInvokes(context.Context, *ContractInvokesRequest) (*ContractInvokesResponse, error)
- func (UnimplementedContractQueryServer) ContractInvokesAtLedger(context.Context, *ContractInvokesAtLedgerRequest) (*ContractInvokesAtLedgerResponse, error)
- func (UnimplementedContractQueryServer) ContractInvokesByUser(context.Context, *ContractInvokesByUserRequest) (*ContractInvokesByUserResponse, error)
- func (UnimplementedContractQueryServer) ContractKeys(context.Context, *ContractKeysRequest) (*ContractKeysResponse, error)
- func (UnimplementedContractQueryServer) ContractsAtLedger(context.Context, *ContractsAtLedgerRequest) (*ContractsAtLedgerResponse, error)
- func (UnimplementedContractQueryServer) UserInteractionContracts(context.Context, *UserInteractionContractsRequest) (*UserInteractionContractsResponse, error)
- func (UnimplementedContractQueryServer) Xdr(context.Context, *XdrRequest) (*XdrResponse, error)
- type UnsafeContractQueryServer
- type UserInteractionContractsRequest
- func (*UserInteractionContractsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserInteractionContractsRequest) GetAddress() string
- func (*UserInteractionContractsRequest) ProtoMessage()
- func (x *UserInteractionContractsRequest) ProtoReflect() protoreflect.Message
- func (x *UserInteractionContractsRequest) Reset()
- func (x *UserInteractionContractsRequest) String() string
- type UserInteractionContractsResponse
- func (*UserInteractionContractsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserInteractionContractsResponse) GetContracts() []string
- func (*UserInteractionContractsResponse) ProtoMessage()
- func (x *UserInteractionContractsResponse) ProtoReflect() protoreflect.Message
- func (x *UserInteractionContractsResponse) Reset()
- func (x *UserInteractionContractsResponse) String() string
- type XdrRequest
- type XdrResponse
Constants ¶
const ( ContractQuery_UserInteractionContracts_FullMethodName = "/contract.ContractQuery/UserInteractionContracts" ContractQuery_ContractKeys_FullMethodName = "/contract.ContractQuery/ContractKeys" ContractQuery_ContractEntry_FullMethodName = "/contract.ContractQuery/ContractEntry" ContractQuery_ContractData_FullMethodName = "/contract.ContractQuery/ContractData" ContractQuery_ContractCode_FullMethodName = "/contract.ContractQuery/ContractCode" ContractQuery_ContractCodes_FullMethodName = "/contract.ContractQuery/ContractCodes" ContractQuery_ContractsAtLedger_FullMethodName = "/contract.ContractQuery/ContractsAtLedger" ContractQuery_ContractInvoke_FullMethodName = "/contract.ContractQuery/ContractInvoke" ContractQuery_ContractInvokes_FullMethodName = "/contract.ContractQuery/ContractInvokes" ContractQuery_ContractInvokesAtLedger_FullMethodName = "/contract.ContractQuery/ContractInvokesAtLedger" ContractQuery_ContractInvokesByUser_FullMethodName = "/contract.ContractQuery/ContractInvokesByUser" ContractQuery_Xdr_FullMethodName = "/contract.ContractQuery/Xdr" )
Variables ¶
var ContractQuery_ServiceDesc = grpc.ServiceDesc{ ServiceName: "contract.ContractQuery", HandlerType: (*ContractQueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserInteractionContracts", Handler: _ContractQuery_UserInteractionContracts_Handler, }, { MethodName: "ContractKeys", Handler: _ContractQuery_ContractKeys_Handler, }, { MethodName: "ContractEntry", Handler: _ContractQuery_ContractEntry_Handler, }, { MethodName: "ContractData", Handler: _ContractQuery_ContractData_Handler, }, { MethodName: "ContractCode", Handler: _ContractQuery_ContractCode_Handler, }, { MethodName: "ContractCodes", Handler: _ContractQuery_ContractCodes_Handler, }, { MethodName: "ContractsAtLedger", Handler: _ContractQuery_ContractsAtLedger_Handler, }, { MethodName: "ContractInvoke", Handler: _ContractQuery_ContractInvoke_Handler, }, { MethodName: "ContractInvokes", Handler: _ContractQuery_ContractInvokes_Handler, }, { MethodName: "ContractInvokesAtLedger", Handler: _ContractQuery_ContractInvokesAtLedger_Handler, }, { MethodName: "ContractInvokesByUser", Handler: _ContractQuery_ContractInvokesByUser_Handler, }, { MethodName: "Xdr", Handler: _ContractQuery_Xdr_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "contract/query.proto", }
ContractQuery_ServiceDesc is the grpc.ServiceDesc for ContractQuery service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_contract_code_proto protoreflect.FileDescriptor
var File_contract_contract_proto protoreflect.FileDescriptor
var File_contract_invoke_proto protoreflect.FileDescriptor
var File_contract_query_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContractQueryHandler ¶
func RegisterContractQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterContractQueryHandler registers the http handlers for service ContractQuery to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterContractQueryHandlerClient ¶
func RegisterContractQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ContractQueryClient) error
RegisterContractQueryHandlerClient registers the http handlers for service ContractQuery to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ContractQueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ContractQueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ContractQueryClient" to call the correct interceptors.
func RegisterContractQueryHandlerFromEndpoint ¶
func RegisterContractQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterContractQueryHandlerFromEndpoint is same as RegisterContractQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterContractQueryHandlerServer ¶
func RegisterContractQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ContractQueryServer) error
RegisterContractQueryHandlerServer registers the http handlers for service ContractQuery to "mux". UnaryRPC :call ContractQueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterContractQueryHandlerFromEndpoint instead.
func RegisterContractQueryServer ¶
func RegisterContractQueryServer(s grpc.ServiceRegistrar, srv ContractQueryServer)
Types ¶
type ContractCode ¶
type ContractCode struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` CreatorAddress string `protobuf:"bytes,2,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address,omitempty"` ContractCode string `protobuf:"bytes,3,opt,name=contract_code,json=contractCode,proto3" json:"contract_code,omitempty"` CreatedLedger uint32 `protobuf:"varint,4,opt,name=created_ledger,json=createdLedger,proto3" json:"created_ledger,omitempty"` // contains filtered or unexported fields }
func (*ContractCode) Descriptor
deprecated
func (*ContractCode) Descriptor() ([]byte, []int)
Deprecated: Use ContractCode.ProtoReflect.Descriptor instead.
func (*ContractCode) GetContractCode ¶
func (x *ContractCode) GetContractCode() string
func (*ContractCode) GetContractId ¶
func (x *ContractCode) GetContractId() string
func (*ContractCode) GetCreatedLedger ¶
func (x *ContractCode) GetCreatedLedger() uint32
func (*ContractCode) GetCreatorAddress ¶
func (x *ContractCode) GetCreatorAddress() string
func (*ContractCode) ProtoMessage ¶
func (*ContractCode) ProtoMessage()
func (*ContractCode) ProtoReflect ¶
func (x *ContractCode) ProtoReflect() protoreflect.Message
func (*ContractCode) Reset ¶
func (x *ContractCode) Reset()
func (*ContractCode) String ¶
func (x *ContractCode) String() string
type ContractCodeRequest ¶
type ContractCodeRequest struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // contains filtered or unexported fields }
func (*ContractCodeRequest) Descriptor
deprecated
func (*ContractCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractCodeRequest.ProtoReflect.Descriptor instead.
func (*ContractCodeRequest) GetContractId ¶
func (x *ContractCodeRequest) GetContractId() string
func (*ContractCodeRequest) ProtoMessage ¶
func (*ContractCodeRequest) ProtoMessage()
func (*ContractCodeRequest) ProtoReflect ¶
func (x *ContractCodeRequest) ProtoReflect() protoreflect.Message
func (*ContractCodeRequest) Reset ¶
func (x *ContractCodeRequest) Reset()
func (*ContractCodeRequest) String ¶
func (x *ContractCodeRequest) String() string
type ContractCodeResponse ¶
type ContractCodeResponse struct { Contract *ContractCode `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"` // contains filtered or unexported fields }
func (*ContractCodeResponse) Descriptor
deprecated
func (*ContractCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractCodeResponse.ProtoReflect.Descriptor instead.
func (*ContractCodeResponse) GetContract ¶
func (x *ContractCodeResponse) GetContract() *ContractCode
func (*ContractCodeResponse) GetFound ¶
func (x *ContractCodeResponse) GetFound() bool
func (*ContractCodeResponse) ProtoMessage ¶
func (*ContractCodeResponse) ProtoMessage()
func (*ContractCodeResponse) ProtoReflect ¶
func (x *ContractCodeResponse) ProtoReflect() protoreflect.Message
func (*ContractCodeResponse) Reset ¶
func (x *ContractCodeResponse) Reset()
func (*ContractCodeResponse) String ¶
func (x *ContractCodeResponse) String() string
type ContractCodesRequest ¶
type ContractCodesRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractCodesRequest) Descriptor
deprecated
func (*ContractCodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractCodesRequest.ProtoReflect.Descriptor instead.
func (*ContractCodesRequest) GetPage ¶
func (x *ContractCodesRequest) GetPage() int32
func (*ContractCodesRequest) GetPageSize ¶
func (x *ContractCodesRequest) GetPageSize() int32
func (*ContractCodesRequest) ProtoMessage ¶
func (*ContractCodesRequest) ProtoMessage()
func (*ContractCodesRequest) ProtoReflect ¶
func (x *ContractCodesRequest) ProtoReflect() protoreflect.Message
func (*ContractCodesRequest) Reset ¶
func (x *ContractCodesRequest) Reset()
func (*ContractCodesRequest) String ¶
func (x *ContractCodesRequest) String() string
type ContractCodesResponse ¶
type ContractCodesResponse struct { Data []*ContractCode `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ContractCodesResponse) Descriptor
deprecated
func (*ContractCodesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractCodesResponse.ProtoReflect.Descriptor instead.
func (*ContractCodesResponse) GetData ¶
func (x *ContractCodesResponse) GetData() []*ContractCode
func (*ContractCodesResponse) ProtoMessage ¶
func (*ContractCodesResponse) ProtoMessage()
func (*ContractCodesResponse) ProtoReflect ¶
func (x *ContractCodesResponse) ProtoReflect() protoreflect.Message
func (*ContractCodesResponse) Reset ¶
func (x *ContractCodesResponse) Reset()
func (*ContractCodesResponse) String ¶
func (x *ContractCodesResponse) String() string
type ContractDataRequest ¶
type ContractDataRequest struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` Ledger uint32 `protobuf:"varint,2,opt,name=ledger,proto3" json:"ledger,omitempty"` KeyXdr string `protobuf:"bytes,3,opt,name=key_xdr,json=keyXdr,proto3" json:"key_xdr,omitempty"` Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractDataRequest) Descriptor
deprecated
func (*ContractDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractDataRequest.ProtoReflect.Descriptor instead.
func (*ContractDataRequest) GetContractId ¶
func (x *ContractDataRequest) GetContractId() string
func (*ContractDataRequest) GetKeyXdr ¶
func (x *ContractDataRequest) GetKeyXdr() string
func (*ContractDataRequest) GetLedger ¶
func (x *ContractDataRequest) GetLedger() uint32
func (*ContractDataRequest) GetPage ¶
func (x *ContractDataRequest) GetPage() int32
func (*ContractDataRequest) GetPageSize ¶
func (x *ContractDataRequest) GetPageSize() int32
func (*ContractDataRequest) ProtoMessage ¶
func (*ContractDataRequest) ProtoMessage()
func (*ContractDataRequest) ProtoReflect ¶
func (x *ContractDataRequest) ProtoReflect() protoreflect.Message
func (*ContractDataRequest) Reset ¶
func (x *ContractDataRequest) Reset()
func (*ContractDataRequest) String ¶
func (x *ContractDataRequest) String() string
type ContractDataResponse ¶
type ContractDataResponse struct { Data []*ContractEntryInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ContractDataResponse) Descriptor
deprecated
func (*ContractDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractDataResponse.ProtoReflect.Descriptor instead.
func (*ContractDataResponse) GetData ¶
func (x *ContractDataResponse) GetData() []*ContractEntryInfo
func (*ContractDataResponse) ProtoMessage ¶
func (*ContractDataResponse) ProtoMessage()
func (*ContractDataResponse) ProtoReflect ¶
func (x *ContractDataResponse) ProtoReflect() protoreflect.Message
func (*ContractDataResponse) Reset ¶
func (x *ContractDataResponse) Reset()
func (*ContractDataResponse) String ¶
func (x *ContractDataResponse) String() string
type ContractEntry ¶
type ContractEntry struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` EntryType string `protobuf:"bytes,3,opt,name=entry_type,json=entryType,proto3" json:"entry_type,omitempty"` KeyXdr []byte `protobuf:"bytes,4,opt,name=key_xdr,json=keyXdr,proto3" json:"key_xdr,omitempty"` ValueXdr []byte `protobuf:"bytes,5,opt,name=value_xdr,json=valueXdr,proto3" json:"value_xdr,omitempty"` Durability string `protobuf:"bytes,6,opt,name=durability,proto3" json:"durability,omitempty"` Ledger uint32 `protobuf:"varint,7,opt,name=ledger,proto3" json:"ledger,omitempty"` TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` IsNewest bool `protobuf:"varint,9,opt,name=is_newest,json=isNewest,proto3" json:"is_newest,omitempty"` // contains filtered or unexported fields }
func (*ContractEntry) Descriptor
deprecated
func (*ContractEntry) Descriptor() ([]byte, []int)
Deprecated: Use ContractEntry.ProtoReflect.Descriptor instead.
func (*ContractEntry) GetAccountId ¶
func (x *ContractEntry) GetAccountId() string
func (*ContractEntry) GetContractId ¶
func (x *ContractEntry) GetContractId() string
func (*ContractEntry) GetDurability ¶
func (x *ContractEntry) GetDurability() string
func (*ContractEntry) GetEntryType ¶
func (x *ContractEntry) GetEntryType() string
func (*ContractEntry) GetIsNewest ¶
func (x *ContractEntry) GetIsNewest() bool
func (*ContractEntry) GetKeyXdr ¶
func (x *ContractEntry) GetKeyXdr() []byte
func (*ContractEntry) GetLedger ¶
func (x *ContractEntry) GetLedger() uint32
func (*ContractEntry) GetTxHash ¶
func (x *ContractEntry) GetTxHash() string
func (*ContractEntry) GetValueXdr ¶
func (x *ContractEntry) GetValueXdr() []byte
func (*ContractEntry) ProtoMessage ¶
func (*ContractEntry) ProtoMessage()
func (*ContractEntry) ProtoReflect ¶
func (x *ContractEntry) ProtoReflect() protoreflect.Message
func (*ContractEntry) Reset ¶
func (x *ContractEntry) Reset()
func (*ContractEntry) String ¶
func (x *ContractEntry) String() string
type ContractEntryInfo ¶
type ContractEntryInfo struct { Key *structpb.Struct `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value *structpb.Struct `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ContractEntryInfo) Descriptor
deprecated
func (*ContractEntryInfo) Descriptor() ([]byte, []int)
Deprecated: Use ContractEntryInfo.ProtoReflect.Descriptor instead.
func (*ContractEntryInfo) GetKey ¶
func (x *ContractEntryInfo) GetKey() *structpb.Struct
func (*ContractEntryInfo) GetValue ¶
func (x *ContractEntryInfo) GetValue() *structpb.Struct
func (*ContractEntryInfo) ProtoMessage ¶
func (*ContractEntryInfo) ProtoMessage()
func (*ContractEntryInfo) ProtoReflect ¶
func (x *ContractEntryInfo) ProtoReflect() protoreflect.Message
func (*ContractEntryInfo) Reset ¶
func (x *ContractEntryInfo) Reset()
func (*ContractEntryInfo) String ¶
func (x *ContractEntryInfo) String() string
type ContractEntryRequest ¶
type ContractEntryRequest struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` KeyType string `protobuf:"bytes,2,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` KeyValue string `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` Ledger uint32 `protobuf:"varint,4,opt,name=ledger,proto3" json:"ledger,omitempty"` // contains filtered or unexported fields }
func (*ContractEntryRequest) Descriptor
deprecated
func (*ContractEntryRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractEntryRequest.ProtoReflect.Descriptor instead.
func (*ContractEntryRequest) GetContractId ¶
func (x *ContractEntryRequest) GetContractId() string
func (*ContractEntryRequest) GetKeyType ¶
func (x *ContractEntryRequest) GetKeyType() string
func (*ContractEntryRequest) GetKeyValue ¶
func (x *ContractEntryRequest) GetKeyValue() string
func (*ContractEntryRequest) GetLedger ¶
func (x *ContractEntryRequest) GetLedger() uint32
func (*ContractEntryRequest) ProtoMessage ¶
func (*ContractEntryRequest) ProtoMessage()
func (*ContractEntryRequest) ProtoReflect ¶
func (x *ContractEntryRequest) ProtoReflect() protoreflect.Message
func (*ContractEntryRequest) Reset ¶
func (x *ContractEntryRequest) Reset()
func (*ContractEntryRequest) String ¶
func (x *ContractEntryRequest) String() string
type ContractEntryResponse ¶
type ContractEntryResponse struct { Entry *ContractEntryInfo `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"` // contains filtered or unexported fields }
func (*ContractEntryResponse) Descriptor
deprecated
func (*ContractEntryResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractEntryResponse.ProtoReflect.Descriptor instead.
func (*ContractEntryResponse) GetEntry ¶
func (x *ContractEntryResponse) GetEntry() *ContractEntryInfo
func (*ContractEntryResponse) GetFound ¶
func (x *ContractEntryResponse) GetFound() bool
func (*ContractEntryResponse) ProtoMessage ¶
func (*ContractEntryResponse) ProtoMessage()
func (*ContractEntryResponse) ProtoReflect ¶
func (x *ContractEntryResponse) ProtoReflect() protoreflect.Message
func (*ContractEntryResponse) Reset ¶
func (x *ContractEntryResponse) Reset()
func (*ContractEntryResponse) String ¶
func (x *ContractEntryResponse) String() string
type ContractInvoke ¶
type ContractInvoke struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` FunctionName string `protobuf:"bytes,3,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` FunctionType string `protobuf:"bytes,4,opt,name=function_type,json=functionType,proto3" json:"function_type,omitempty"` Args []byte `protobuf:"bytes,5,opt,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*ContractInvoke) Descriptor
deprecated
func (*ContractInvoke) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvoke.ProtoReflect.Descriptor instead.
func (*ContractInvoke) GetArgs ¶
func (x *ContractInvoke) GetArgs() []byte
func (*ContractInvoke) GetContractId ¶
func (x *ContractInvoke) GetContractId() string
func (*ContractInvoke) GetFunctionName ¶
func (x *ContractInvoke) GetFunctionName() string
func (*ContractInvoke) GetFunctionType ¶
func (x *ContractInvoke) GetFunctionType() string
func (*ContractInvoke) GetHash ¶
func (x *ContractInvoke) GetHash() string
func (*ContractInvoke) ProtoMessage ¶
func (*ContractInvoke) ProtoMessage()
func (*ContractInvoke) ProtoReflect ¶
func (x *ContractInvoke) ProtoReflect() protoreflect.Message
func (*ContractInvoke) Reset ¶
func (x *ContractInvoke) Reset()
func (*ContractInvoke) String ¶
func (x *ContractInvoke) String() string
type ContractInvokeInfo ¶
type ContractInvokeInfo struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` FunctionName string `protobuf:"bytes,3,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` FunctionType string `protobuf:"bytes,4,opt,name=function_type,json=functionType,proto3" json:"function_type,omitempty"` Args *structpb.Struct `protobuf:"bytes,5,opt,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokeInfo) Descriptor
deprecated
func (*ContractInvokeInfo) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokeInfo.ProtoReflect.Descriptor instead.
func (*ContractInvokeInfo) GetArgs ¶
func (x *ContractInvokeInfo) GetArgs() *structpb.Struct
func (*ContractInvokeInfo) GetContractId ¶
func (x *ContractInvokeInfo) GetContractId() string
func (*ContractInvokeInfo) GetFunctionName ¶
func (x *ContractInvokeInfo) GetFunctionName() string
func (*ContractInvokeInfo) GetFunctionType ¶
func (x *ContractInvokeInfo) GetFunctionType() string
func (*ContractInvokeInfo) GetHash ¶
func (x *ContractInvokeInfo) GetHash() string
func (*ContractInvokeInfo) ProtoMessage ¶
func (*ContractInvokeInfo) ProtoMessage()
func (*ContractInvokeInfo) ProtoReflect ¶
func (x *ContractInvokeInfo) ProtoReflect() protoreflect.Message
func (*ContractInvokeInfo) Reset ¶
func (x *ContractInvokeInfo) Reset()
func (*ContractInvokeInfo) String ¶
func (x *ContractInvokeInfo) String() string
type ContractInvokeRequest ¶
type ContractInvokeRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokeRequest) Descriptor
deprecated
func (*ContractInvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokeRequest.ProtoReflect.Descriptor instead.
func (*ContractInvokeRequest) GetHash ¶
func (x *ContractInvokeRequest) GetHash() string
func (*ContractInvokeRequest) ProtoMessage ¶
func (*ContractInvokeRequest) ProtoMessage()
func (*ContractInvokeRequest) ProtoReflect ¶
func (x *ContractInvokeRequest) ProtoReflect() protoreflect.Message
func (*ContractInvokeRequest) Reset ¶
func (x *ContractInvokeRequest) Reset()
func (*ContractInvokeRequest) String ¶
func (x *ContractInvokeRequest) String() string
type ContractInvokeResponse ¶
type ContractInvokeResponse struct { Info *ContractInvokeInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokeResponse) Descriptor
deprecated
func (*ContractInvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokeResponse.ProtoReflect.Descriptor instead.
func (*ContractInvokeResponse) GetFound ¶
func (x *ContractInvokeResponse) GetFound() bool
func (*ContractInvokeResponse) GetInfo ¶
func (x *ContractInvokeResponse) GetInfo() *ContractInvokeInfo
func (*ContractInvokeResponse) ProtoMessage ¶
func (*ContractInvokeResponse) ProtoMessage()
func (*ContractInvokeResponse) ProtoReflect ¶
func (x *ContractInvokeResponse) ProtoReflect() protoreflect.Message
func (*ContractInvokeResponse) Reset ¶
func (x *ContractInvokeResponse) Reset()
func (*ContractInvokeResponse) String ¶
func (x *ContractInvokeResponse) String() string
type ContractInvokesAtLedgerRequest ¶
type ContractInvokesAtLedgerRequest struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` Ledger int32 `protobuf:"varint,2,opt,name=ledger,proto3" json:"ledger,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokesAtLedgerRequest) Descriptor
deprecated
func (*ContractInvokesAtLedgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokesAtLedgerRequest.ProtoReflect.Descriptor instead.
func (*ContractInvokesAtLedgerRequest) GetContractId ¶
func (x *ContractInvokesAtLedgerRequest) GetContractId() string
func (*ContractInvokesAtLedgerRequest) GetLedger ¶
func (x *ContractInvokesAtLedgerRequest) GetLedger() int32
func (*ContractInvokesAtLedgerRequest) GetPage ¶
func (x *ContractInvokesAtLedgerRequest) GetPage() int32
func (*ContractInvokesAtLedgerRequest) GetPageSize ¶
func (x *ContractInvokesAtLedgerRequest) GetPageSize() int32
func (*ContractInvokesAtLedgerRequest) ProtoMessage ¶
func (*ContractInvokesAtLedgerRequest) ProtoMessage()
func (*ContractInvokesAtLedgerRequest) ProtoReflect ¶
func (x *ContractInvokesAtLedgerRequest) ProtoReflect() protoreflect.Message
func (*ContractInvokesAtLedgerRequest) Reset ¶
func (x *ContractInvokesAtLedgerRequest) Reset()
func (*ContractInvokesAtLedgerRequest) String ¶
func (x *ContractInvokesAtLedgerRequest) String() string
type ContractInvokesAtLedgerResponse ¶
type ContractInvokesAtLedgerResponse struct { Data []*ContractInvokeInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokesAtLedgerResponse) Descriptor
deprecated
func (*ContractInvokesAtLedgerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokesAtLedgerResponse.ProtoReflect.Descriptor instead.
func (*ContractInvokesAtLedgerResponse) GetData ¶
func (x *ContractInvokesAtLedgerResponse) GetData() []*ContractInvokeInfo
func (*ContractInvokesAtLedgerResponse) ProtoMessage ¶
func (*ContractInvokesAtLedgerResponse) ProtoMessage()
func (*ContractInvokesAtLedgerResponse) ProtoReflect ¶
func (x *ContractInvokesAtLedgerResponse) ProtoReflect() protoreflect.Message
func (*ContractInvokesAtLedgerResponse) Reset ¶
func (x *ContractInvokesAtLedgerResponse) Reset()
func (*ContractInvokesAtLedgerResponse) String ¶
func (x *ContractInvokesAtLedgerResponse) String() string
type ContractInvokesByUserRequest ¶
type ContractInvokesByUserRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` Ledger int32 `protobuf:"varint,3,opt,name=ledger,proto3" json:"ledger,omitempty"` Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokesByUserRequest) Descriptor
deprecated
func (*ContractInvokesByUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokesByUserRequest.ProtoReflect.Descriptor instead.
func (*ContractInvokesByUserRequest) GetAddress ¶
func (x *ContractInvokesByUserRequest) GetAddress() string
func (*ContractInvokesByUserRequest) GetContractId ¶
func (x *ContractInvokesByUserRequest) GetContractId() string
func (*ContractInvokesByUserRequest) GetLedger ¶
func (x *ContractInvokesByUserRequest) GetLedger() int32
func (*ContractInvokesByUserRequest) GetPage ¶
func (x *ContractInvokesByUserRequest) GetPage() int32
func (*ContractInvokesByUserRequest) GetPageSize ¶
func (x *ContractInvokesByUserRequest) GetPageSize() int32
func (*ContractInvokesByUserRequest) ProtoMessage ¶
func (*ContractInvokesByUserRequest) ProtoMessage()
func (*ContractInvokesByUserRequest) ProtoReflect ¶
func (x *ContractInvokesByUserRequest) ProtoReflect() protoreflect.Message
func (*ContractInvokesByUserRequest) Reset ¶
func (x *ContractInvokesByUserRequest) Reset()
func (*ContractInvokesByUserRequest) String ¶
func (x *ContractInvokesByUserRequest) String() string
type ContractInvokesByUserResponse ¶
type ContractInvokesByUserResponse struct { Data []*ContractInvokeInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokesByUserResponse) Descriptor
deprecated
func (*ContractInvokesByUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokesByUserResponse.ProtoReflect.Descriptor instead.
func (*ContractInvokesByUserResponse) GetData ¶
func (x *ContractInvokesByUserResponse) GetData() []*ContractInvokeInfo
func (*ContractInvokesByUserResponse) ProtoMessage ¶
func (*ContractInvokesByUserResponse) ProtoMessage()
func (*ContractInvokesByUserResponse) ProtoReflect ¶
func (x *ContractInvokesByUserResponse) ProtoReflect() protoreflect.Message
func (*ContractInvokesByUserResponse) Reset ¶
func (x *ContractInvokesByUserResponse) Reset()
func (*ContractInvokesByUserResponse) String ¶
func (x *ContractInvokesByUserResponse) String() string
type ContractInvokesRequest ¶
type ContractInvokesRequest struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` FunctionName string `protobuf:"bytes,2,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokesRequest) Descriptor
deprecated
func (*ContractInvokesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokesRequest.ProtoReflect.Descriptor instead.
func (*ContractInvokesRequest) GetContractId ¶
func (x *ContractInvokesRequest) GetContractId() string
func (*ContractInvokesRequest) GetFunctionName ¶
func (x *ContractInvokesRequest) GetFunctionName() string
func (*ContractInvokesRequest) GetPage ¶
func (x *ContractInvokesRequest) GetPage() int32
func (*ContractInvokesRequest) GetPageSize ¶
func (x *ContractInvokesRequest) GetPageSize() int32
func (*ContractInvokesRequest) ProtoMessage ¶
func (*ContractInvokesRequest) ProtoMessage()
func (*ContractInvokesRequest) ProtoReflect ¶
func (x *ContractInvokesRequest) ProtoReflect() protoreflect.Message
func (*ContractInvokesRequest) Reset ¶
func (x *ContractInvokesRequest) Reset()
func (*ContractInvokesRequest) String ¶
func (x *ContractInvokesRequest) String() string
type ContractInvokesResponse ¶
type ContractInvokesResponse struct { Data []*ContractInvokeInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ContractInvokesResponse) Descriptor
deprecated
func (*ContractInvokesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractInvokesResponse.ProtoReflect.Descriptor instead.
func (*ContractInvokesResponse) GetData ¶
func (x *ContractInvokesResponse) GetData() []*ContractInvokeInfo
func (*ContractInvokesResponse) ProtoMessage ¶
func (*ContractInvokesResponse) ProtoMessage()
func (*ContractInvokesResponse) ProtoReflect ¶
func (x *ContractInvokesResponse) ProtoReflect() protoreflect.Message
func (*ContractInvokesResponse) Reset ¶
func (x *ContractInvokesResponse) Reset()
func (*ContractInvokesResponse) String ¶
func (x *ContractInvokesResponse) String() string
type ContractKeysRequest ¶
type ContractKeysRequest struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` Ledger uint32 `protobuf:"varint,2,opt,name=ledger,proto3" json:"ledger,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractKeysRequest) Descriptor
deprecated
func (*ContractKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractKeysRequest.ProtoReflect.Descriptor instead.
func (*ContractKeysRequest) GetContractId ¶
func (x *ContractKeysRequest) GetContractId() string
func (*ContractKeysRequest) GetLedger ¶
func (x *ContractKeysRequest) GetLedger() uint32
func (*ContractKeysRequest) GetPage ¶
func (x *ContractKeysRequest) GetPage() int32
func (*ContractKeysRequest) GetPageSize ¶
func (x *ContractKeysRequest) GetPageSize() int32
func (*ContractKeysRequest) ProtoMessage ¶
func (*ContractKeysRequest) ProtoMessage()
func (*ContractKeysRequest) ProtoReflect ¶
func (x *ContractKeysRequest) ProtoReflect() protoreflect.Message
func (*ContractKeysRequest) Reset ¶
func (x *ContractKeysRequest) Reset()
func (*ContractKeysRequest) String ¶
func (x *ContractKeysRequest) String() string
type ContractKeysResponse ¶
type ContractKeysResponse struct { Keys []*structpb.Struct `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*ContractKeysResponse) Descriptor
deprecated
func (*ContractKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractKeysResponse.ProtoReflect.Descriptor instead.
func (*ContractKeysResponse) GetKeys ¶
func (x *ContractKeysResponse) GetKeys() []*structpb.Struct
func (*ContractKeysResponse) ProtoMessage ¶
func (*ContractKeysResponse) ProtoMessage()
func (*ContractKeysResponse) ProtoReflect ¶
func (x *ContractKeysResponse) ProtoReflect() protoreflect.Message
func (*ContractKeysResponse) Reset ¶
func (x *ContractKeysResponse) Reset()
func (*ContractKeysResponse) String ¶
func (x *ContractKeysResponse) String() string
type ContractQueryClient ¶
type ContractQueryClient interface { // UserInteractionContracts queries list contracts user has interacted. UserInteractionContracts(ctx context.Context, in *UserInteractionContractsRequest, opts ...grpc.CallOption) (*UserInteractionContractsResponse, error) // ContractKeys queries list newest keys of contract ContractKeys(ctx context.Context, in *ContractKeysRequest, opts ...grpc.CallOption) (*ContractKeysResponse, error) // ContractEntry queries contract entry with the given key ContractEntry(ctx context.Context, in *ContractEntryRequest, opts ...grpc.CallOption) (*ContractEntryResponse, error) // ContractData queries list newest data entries of contract ContractData(ctx context.Context, in *ContractDataRequest, opts ...grpc.CallOption) (*ContractDataResponse, error) // ContracCode queries contract code data with the given contract id ContractCode(ctx context.Context, in *ContractCodeRequest, opts ...grpc.CallOption) (*ContractCodeResponse, error) // ContracCodes queries contract codes have been deployed ContractCodes(ctx context.Context, in *ContractCodesRequest, opts ...grpc.CallOption) (*ContractCodesResponse, error) // ContractsAtLedger queries contract codes have been deployed at the given // ledger ContractsAtLedger(ctx context.Context, in *ContractsAtLedgerRequest, opts ...grpc.CallOption) (*ContractsAtLedgerResponse, error) // ContractInvoke queries contract data have been invoked at the // given transacton hash ContractInvoke(ctx context.Context, in *ContractInvokeRequest, opts ...grpc.CallOption) (*ContractInvokeResponse, error) // ContractInvokes queries contract data have been invoked by the // given contract id ContractInvokes(ctx context.Context, in *ContractInvokesRequest, opts ...grpc.CallOption) (*ContractInvokesResponse, error) // ContractInvokesAtLedger queries contract data have been invoked at the // given ledger ContractInvokesAtLedger(ctx context.Context, in *ContractInvokesAtLedgerRequest, opts ...grpc.CallOption) (*ContractInvokesAtLedgerResponse, error) // ContractInvokesByUser queries contract data have been invoked by the // given address ContractInvokesByUser(ctx context.Context, in *ContractInvokesByUserRequest, opts ...grpc.CallOption) (*ContractInvokesByUserResponse, error) // Xdr encode data and response hex string Xdr(ctx context.Context, in *XdrRequest, opts ...grpc.CallOption) (*XdrResponse, error) }
ContractQueryClient is the client API for ContractQuery service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewContractQueryClient ¶
func NewContractQueryClient(cc grpc.ClientConnInterface) ContractQueryClient
type ContractQueryServer ¶
type ContractQueryServer interface { // UserInteractionContracts queries list contracts user has interacted. UserInteractionContracts(context.Context, *UserInteractionContractsRequest) (*UserInteractionContractsResponse, error) // ContractKeys queries list newest keys of contract ContractKeys(context.Context, *ContractKeysRequest) (*ContractKeysResponse, error) // ContractEntry queries contract entry with the given key ContractEntry(context.Context, *ContractEntryRequest) (*ContractEntryResponse, error) // ContractData queries list newest data entries of contract ContractData(context.Context, *ContractDataRequest) (*ContractDataResponse, error) // ContracCode queries contract code data with the given contract id ContractCode(context.Context, *ContractCodeRequest) (*ContractCodeResponse, error) // ContracCodes queries contract codes have been deployed ContractCodes(context.Context, *ContractCodesRequest) (*ContractCodesResponse, error) // ContractsAtLedger queries contract codes have been deployed at the given // ledger ContractsAtLedger(context.Context, *ContractsAtLedgerRequest) (*ContractsAtLedgerResponse, error) // ContractInvoke queries contract data have been invoked at the // given transacton hash ContractInvoke(context.Context, *ContractInvokeRequest) (*ContractInvokeResponse, error) // ContractInvokes queries contract data have been invoked by the // given contract id ContractInvokes(context.Context, *ContractInvokesRequest) (*ContractInvokesResponse, error) // ContractInvokesAtLedger queries contract data have been invoked at the // given ledger ContractInvokesAtLedger(context.Context, *ContractInvokesAtLedgerRequest) (*ContractInvokesAtLedgerResponse, error) // ContractInvokesByUser queries contract data have been invoked by the // given address ContractInvokesByUser(context.Context, *ContractInvokesByUserRequest) (*ContractInvokesByUserResponse, error) // Xdr encode data and response hex string Xdr(context.Context, *XdrRequest) (*XdrResponse, error) // contains filtered or unexported methods }
ContractQueryServer is the server API for ContractQuery service. All implementations must embed UnimplementedContractQueryServer for forward compatibility.
type ContractsAtLedgerRequest ¶
type ContractsAtLedgerRequest struct { Ledger uint32 `protobuf:"varint,1,opt,name=ledger,proto3" json:"ledger,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractsAtLedgerRequest) Descriptor
deprecated
func (*ContractsAtLedgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractsAtLedgerRequest.ProtoReflect.Descriptor instead.
func (*ContractsAtLedgerRequest) GetLedger ¶
func (x *ContractsAtLedgerRequest) GetLedger() uint32
func (*ContractsAtLedgerRequest) GetPage ¶
func (x *ContractsAtLedgerRequest) GetPage() int32
func (*ContractsAtLedgerRequest) GetPageSize ¶
func (x *ContractsAtLedgerRequest) GetPageSize() int32
func (*ContractsAtLedgerRequest) ProtoMessage ¶
func (*ContractsAtLedgerRequest) ProtoMessage()
func (*ContractsAtLedgerRequest) ProtoReflect ¶
func (x *ContractsAtLedgerRequest) ProtoReflect() protoreflect.Message
func (*ContractsAtLedgerRequest) Reset ¶
func (x *ContractsAtLedgerRequest) Reset()
func (*ContractsAtLedgerRequest) String ¶
func (x *ContractsAtLedgerRequest) String() string
type ContractsAtLedgerResponse ¶
type ContractsAtLedgerResponse struct { Data []*ContractCode `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ContractsAtLedgerResponse) Descriptor
deprecated
func (*ContractsAtLedgerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractsAtLedgerResponse.ProtoReflect.Descriptor instead.
func (*ContractsAtLedgerResponse) GetData ¶
func (x *ContractsAtLedgerResponse) GetData() []*ContractCode
func (*ContractsAtLedgerResponse) ProtoMessage ¶
func (*ContractsAtLedgerResponse) ProtoMessage()
func (*ContractsAtLedgerResponse) ProtoReflect ¶
func (x *ContractsAtLedgerResponse) ProtoReflect() protoreflect.Message
func (*ContractsAtLedgerResponse) Reset ¶
func (x *ContractsAtLedgerResponse) Reset()
func (*ContractsAtLedgerResponse) String ¶
func (x *ContractsAtLedgerResponse) String() string
type UnimplementedContractQueryServer ¶
type UnimplementedContractQueryServer struct{}
UnimplementedContractQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedContractQueryServer) ContractCode ¶
func (UnimplementedContractQueryServer) ContractCode(context.Context, *ContractCodeRequest) (*ContractCodeResponse, error)
func (UnimplementedContractQueryServer) ContractCodes ¶
func (UnimplementedContractQueryServer) ContractCodes(context.Context, *ContractCodesRequest) (*ContractCodesResponse, error)
func (UnimplementedContractQueryServer) ContractData ¶
func (UnimplementedContractQueryServer) ContractData(context.Context, *ContractDataRequest) (*ContractDataResponse, error)
func (UnimplementedContractQueryServer) ContractEntry ¶
func (UnimplementedContractQueryServer) ContractEntry(context.Context, *ContractEntryRequest) (*ContractEntryResponse, error)
func (UnimplementedContractQueryServer) ContractInvoke ¶
func (UnimplementedContractQueryServer) ContractInvoke(context.Context, *ContractInvokeRequest) (*ContractInvokeResponse, error)
func (UnimplementedContractQueryServer) ContractInvokes ¶
func (UnimplementedContractQueryServer) ContractInvokes(context.Context, *ContractInvokesRequest) (*ContractInvokesResponse, error)
func (UnimplementedContractQueryServer) ContractInvokesAtLedger ¶
func (UnimplementedContractQueryServer) ContractInvokesAtLedger(context.Context, *ContractInvokesAtLedgerRequest) (*ContractInvokesAtLedgerResponse, error)
func (UnimplementedContractQueryServer) ContractInvokesByUser ¶
func (UnimplementedContractQueryServer) ContractInvokesByUser(context.Context, *ContractInvokesByUserRequest) (*ContractInvokesByUserResponse, error)
func (UnimplementedContractQueryServer) ContractKeys ¶
func (UnimplementedContractQueryServer) ContractKeys(context.Context, *ContractKeysRequest) (*ContractKeysResponse, error)
func (UnimplementedContractQueryServer) ContractsAtLedger ¶
func (UnimplementedContractQueryServer) ContractsAtLedger(context.Context, *ContractsAtLedgerRequest) (*ContractsAtLedgerResponse, error)
func (UnimplementedContractQueryServer) UserInteractionContracts ¶
func (UnimplementedContractQueryServer) UserInteractionContracts(context.Context, *UserInteractionContractsRequest) (*UserInteractionContractsResponse, error)
func (UnimplementedContractQueryServer) Xdr ¶
func (UnimplementedContractQueryServer) Xdr(context.Context, *XdrRequest) (*XdrResponse, error)
type UnsafeContractQueryServer ¶
type UnsafeContractQueryServer interface {
// contains filtered or unexported methods
}
UnsafeContractQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContractQueryServer will result in compilation errors.
type UserInteractionContractsRequest ¶
type UserInteractionContractsRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*UserInteractionContractsRequest) Descriptor
deprecated
func (*UserInteractionContractsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserInteractionContractsRequest.ProtoReflect.Descriptor instead.
func (*UserInteractionContractsRequest) GetAddress ¶
func (x *UserInteractionContractsRequest) GetAddress() string
func (*UserInteractionContractsRequest) ProtoMessage ¶
func (*UserInteractionContractsRequest) ProtoMessage()
func (*UserInteractionContractsRequest) ProtoReflect ¶
func (x *UserInteractionContractsRequest) ProtoReflect() protoreflect.Message
func (*UserInteractionContractsRequest) Reset ¶
func (x *UserInteractionContractsRequest) Reset()
func (*UserInteractionContractsRequest) String ¶
func (x *UserInteractionContractsRequest) String() string
type UserInteractionContractsResponse ¶
type UserInteractionContractsResponse struct { Contracts []string `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"` // contains filtered or unexported fields }
func (*UserInteractionContractsResponse) Descriptor
deprecated
func (*UserInteractionContractsResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserInteractionContractsResponse.ProtoReflect.Descriptor instead.
func (*UserInteractionContractsResponse) GetContracts ¶
func (x *UserInteractionContractsResponse) GetContracts() []string
func (*UserInteractionContractsResponse) ProtoMessage ¶
func (*UserInteractionContractsResponse) ProtoMessage()
func (*UserInteractionContractsResponse) ProtoReflect ¶
func (x *UserInteractionContractsResponse) ProtoReflect() protoreflect.Message
func (*UserInteractionContractsResponse) Reset ¶
func (x *UserInteractionContractsResponse) Reset()
func (*UserInteractionContractsResponse) String ¶
func (x *UserInteractionContractsResponse) String() string
type XdrRequest ¶
type XdrRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*XdrRequest) Descriptor
deprecated
func (*XdrRequest) Descriptor() ([]byte, []int)
Deprecated: Use XdrRequest.ProtoReflect.Descriptor instead.
func (*XdrRequest) GetType ¶
func (x *XdrRequest) GetType() string
func (*XdrRequest) GetValue ¶
func (x *XdrRequest) GetValue() string
func (*XdrRequest) ProtoMessage ¶
func (*XdrRequest) ProtoMessage()
func (*XdrRequest) ProtoReflect ¶
func (x *XdrRequest) ProtoReflect() protoreflect.Message
func (*XdrRequest) Reset ¶
func (x *XdrRequest) Reset()
func (*XdrRequest) String ¶
func (x *XdrRequest) String() string
type XdrResponse ¶
type XdrResponse struct { Xdr string `protobuf:"bytes,1,opt,name=xdr,proto3" json:"xdr,omitempty"` // contains filtered or unexported fields }
func (*XdrResponse) Descriptor
deprecated
func (*XdrResponse) Descriptor() ([]byte, []int)
Deprecated: Use XdrResponse.ProtoReflect.Descriptor instead.
func (*XdrResponse) GetXdr ¶
func (x *XdrResponse) GetXdr() string
func (*XdrResponse) ProtoMessage ¶
func (*XdrResponse) ProtoMessage()
func (*XdrResponse) ProtoReflect ¶
func (x *XdrResponse) ProtoReflect() protoreflect.Message
func (*XdrResponse) Reset ¶
func (x *XdrResponse) Reset()
func (*XdrResponse) String ¶
func (x *XdrResponse) String() string