transactionpb

package
v0.0.0-...-c15509c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_transaction_transactionpb_transaction_proto protoreflect.FileDescriptor
View Source
var TransactionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "transaction.TransactionService",
	HandlerType: (*TransactionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetByHeight",
			Handler:    _TransactionService_GetByHeight_Handler,
		},
		{
			MethodName: "GetAnnotatedByHeight",
			Handler:    _TransactionService_GetAnnotatedByHeight_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/transaction/transactionpb/transaction.proto",
}

TransactionService_ServiceDesc is the grpc.ServiceDesc for TransactionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTransactionServiceServer

func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)

Types

type Annotated

type Annotated struct {
	ExtrinsicIndex int64  `protobuf:"varint,1,opt,name=extrinsic_index,json=extrinsicIndex,proto3" json:"extrinsic_index,omitempty"`
	Hash           string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Method         string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Section        string `protobuf:"bytes,4,opt,name=section,proto3" json:"section,omitempty"`
	IsSigned       bool   `protobuf:"varint,5,opt,name=is_signed,json=isSigned,proto3" json:"is_signed,omitempty"`
	Args           string `protobuf:"bytes,6,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*Annotated) Descriptor deprecated

func (*Annotated) Descriptor() ([]byte, []int)

Deprecated: Use Annotated.ProtoReflect.Descriptor instead.

func (*Annotated) GetArgs

func (x *Annotated) GetArgs() string

func (*Annotated) GetExtrinsicIndex

func (x *Annotated) GetExtrinsicIndex() int64

func (*Annotated) GetHash

func (x *Annotated) GetHash() string

func (*Annotated) GetIsSigned

func (x *Annotated) GetIsSigned() bool

func (*Annotated) GetMethod

func (x *Annotated) GetMethod() string

func (*Annotated) GetSection

func (x *Annotated) GetSection() string

func (*Annotated) ProtoMessage

func (*Annotated) ProtoMessage()

func (*Annotated) ProtoReflect

func (x *Annotated) ProtoReflect() protoreflect.Message

func (*Annotated) Reset

func (x *Annotated) Reset()

func (*Annotated) String

func (x *Annotated) String() string

type CallArg

type CallArg struct {
	Method  string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Section string `protobuf:"bytes,2,opt,name=section,proto3" json:"section,omitempty"`
	Value   string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CallArg) Descriptor deprecated

func (*CallArg) Descriptor() ([]byte, []int)

Deprecated: Use CallArg.ProtoReflect.Descriptor instead.

func (*CallArg) GetMethod

func (x *CallArg) GetMethod() string

func (*CallArg) GetSection

func (x *CallArg) GetSection() string

func (*CallArg) GetValue

func (x *CallArg) GetValue() string

func (*CallArg) ProtoMessage

func (*CallArg) ProtoMessage()

func (*CallArg) ProtoReflect

func (x *CallArg) ProtoReflect() protoreflect.Message

func (*CallArg) Reset

func (x *CallArg) Reset()

func (*CallArg) String

func (x *CallArg) String() string

type GetAnnotatedByHeightRequest

type GetAnnotatedByHeightRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAnnotatedByHeightRequest) Descriptor deprecated

func (*GetAnnotatedByHeightRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAnnotatedByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetAnnotatedByHeightRequest) GetHeight

func (x *GetAnnotatedByHeightRequest) GetHeight() int64

func (*GetAnnotatedByHeightRequest) ProtoMessage

func (*GetAnnotatedByHeightRequest) ProtoMessage()

func (*GetAnnotatedByHeightRequest) ProtoReflect

func (*GetAnnotatedByHeightRequest) Reset

func (x *GetAnnotatedByHeightRequest) Reset()

func (*GetAnnotatedByHeightRequest) String

func (x *GetAnnotatedByHeightRequest) String() string

type GetAnnotatedByHeightResponse

type GetAnnotatedByHeightResponse struct {
	Transactions []*Annotated `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAnnotatedByHeightResponse) Descriptor deprecated

func (*GetAnnotatedByHeightResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAnnotatedByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetAnnotatedByHeightResponse) GetTransactions

func (x *GetAnnotatedByHeightResponse) GetTransactions() []*Annotated

func (*GetAnnotatedByHeightResponse) ProtoMessage

func (*GetAnnotatedByHeightResponse) ProtoMessage()

func (*GetAnnotatedByHeightResponse) ProtoReflect

func (*GetAnnotatedByHeightResponse) Reset

func (x *GetAnnotatedByHeightResponse) Reset()

func (*GetAnnotatedByHeightResponse) String

type GetByHeightRequest

type GetByHeightRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByHeightRequest) Descriptor deprecated

func (*GetByHeightRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetByHeightRequest) GetHeight

func (x *GetByHeightRequest) GetHeight() int64

func (*GetByHeightRequest) ProtoMessage

func (*GetByHeightRequest) ProtoMessage()

func (*GetByHeightRequest) ProtoReflect

func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message

func (*GetByHeightRequest) Reset

func (x *GetByHeightRequest) Reset()

func (*GetByHeightRequest) String

func (x *GetByHeightRequest) String() string

type GetByHeightResponse

type GetByHeightResponse struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByHeightResponse) Descriptor deprecated

func (*GetByHeightResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetByHeightResponse) GetTransactions

func (x *GetByHeightResponse) GetTransactions() []*Transaction

func (*GetByHeightResponse) ProtoMessage

func (*GetByHeightResponse) ProtoMessage()

func (*GetByHeightResponse) ProtoReflect

func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message

func (*GetByHeightResponse) Reset

func (x *GetByHeightResponse) Reset()

func (*GetByHeightResponse) String

func (x *GetByHeightResponse) String() string

type Transaction

type Transaction struct {
	ExtrinsicIndex      int64            `protobuf:"varint,1,opt,name=extrinsic_index,json=extrinsicIndex,proto3" json:"extrinsic_index,omitempty"`
	Hash                string           `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Time                string           `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	Signature           string           `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	Signer              string           `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty"`
	Nonce               int64            `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Method              string           `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"`
	Section             string           `protobuf:"bytes,8,opt,name=section,proto3" json:"section,omitempty"`
	Args                string           `protobuf:"bytes,9,opt,name=args,proto3" json:"args,omitempty"`
	IsSuccess           bool             `protobuf:"varint,10,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`
	PartialFee          string           `protobuf:"bytes,11,opt,name=partial_fee,json=partialFee,proto3" json:"partial_fee,omitempty"`
	Tip                 string           `protobuf:"bytes,12,opt,name=tip,proto3" json:"tip,omitempty"`
	Raw                 string           `protobuf:"bytes,13,opt,name=raw,proto3" json:"raw,omitempty"`
	Events              []*eventpb.Event `protobuf:"bytes,14,rep,name=events,proto3" json:"events,omitempty"`
	IsSignedTransaction bool             `protobuf:"varint,15,opt,name=is_signed_transaction,json=isSignedTransaction,proto3" json:"is_signed_transaction,omitempty"`
	CallArgs            []*CallArg       `protobuf:"bytes,16,rep,name=callArgs,proto3" json:"callArgs,omitempty"`
	Epoch               string           `protobuf:"bytes,17,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetArgs

func (x *Transaction) GetArgs() string

func (*Transaction) GetCallArgs

func (x *Transaction) GetCallArgs() []*CallArg

func (*Transaction) GetEpoch

func (x *Transaction) GetEpoch() string

func (*Transaction) GetEvents

func (x *Transaction) GetEvents() []*eventpb.Event

func (*Transaction) GetExtrinsicIndex

func (x *Transaction) GetExtrinsicIndex() int64

func (*Transaction) GetHash

func (x *Transaction) GetHash() string

func (*Transaction) GetIsSignedTransaction

func (x *Transaction) GetIsSignedTransaction() bool

func (*Transaction) GetIsSuccess

func (x *Transaction) GetIsSuccess() bool

func (*Transaction) GetMethod

func (x *Transaction) GetMethod() string

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() int64

func (*Transaction) GetPartialFee

func (x *Transaction) GetPartialFee() string

func (*Transaction) GetRaw

func (x *Transaction) GetRaw() string

func (*Transaction) GetSection

func (x *Transaction) GetSection() string

func (*Transaction) GetSignature

func (x *Transaction) GetSignature() string

func (*Transaction) GetSigner

func (x *Transaction) GetSigner() string

func (*Transaction) GetTime

func (x *Transaction) GetTime() string

func (*Transaction) GetTip

func (x *Transaction) GetTip() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionServiceClient

type TransactionServiceClient interface {
	GetByHeight(ctx context.Context, in *GetByHeightRequest, opts ...grpc.CallOption) (*GetByHeightResponse, error)
	GetAnnotatedByHeight(ctx context.Context, in *GetAnnotatedByHeightRequest, opts ...grpc.CallOption) (*GetAnnotatedByHeightResponse, error)
}

TransactionServiceClient is the client API for TransactionService 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.

type TransactionServiceServer

type TransactionServiceServer interface {
	GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error)
	GetAnnotatedByHeight(context.Context, *GetAnnotatedByHeightRequest) (*GetAnnotatedByHeightResponse, error)
	// contains filtered or unexported methods
}

TransactionServiceServer is the server API for TransactionService service. All implementations must embed UnimplementedTransactionServiceServer for forward compatibility

type UnimplementedTransactionServiceServer

type UnimplementedTransactionServiceServer struct {
}

UnimplementedTransactionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionServiceServer) GetAnnotatedByHeight

func (UnimplementedTransactionServiceServer) GetByHeight

type UnsafeTransactionServiceServer

type UnsafeTransactionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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