pbtokenmeta

package
v0.0.0-...-efbdb50 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sf_ethereum_tokenmeta_v1_tokenmeta_proto protoreflect.FileDescriptor

Functions

func RegisterStateServer

func RegisterStateServer(s *grpc.Server, srv StateServer)

Types

type BigInt

type BigInt struct {
	Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*BigInt) Descriptor deprecated

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

Deprecated: Use BigInt.ProtoReflect.Descriptor instead.

func (*BigInt) GetBytes

func (x *BigInt) GetBytes() []byte

func (*BigInt) ProtoMessage

func (*BigInt) ProtoMessage()

func (*BigInt) ProtoReflect

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

func (*BigInt) Reset

func (x *BigInt) Reset()

func (*BigInt) String

func (x *BigInt) String() string

type GetTokenRequest

type GetTokenRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTokenRequest) Descriptor deprecated

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

Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.

func (*GetTokenRequest) GetAddress

func (x *GetTokenRequest) GetAddress() string

func (*GetTokenRequest) ProtoMessage

func (*GetTokenRequest) ProtoMessage()

func (*GetTokenRequest) ProtoReflect

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

func (*GetTokenRequest) Reset

func (x *GetTokenRequest) Reset()

func (*GetTokenRequest) String

func (x *GetTokenRequest) String() string

type StateClient

type StateClient interface {
	StreamToken(ctx context.Context, in *StreamTokenRequest, opts ...grpc.CallOption) (State_StreamTokenClient, error)
	GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*Token, error)
}

StateClient is the client API for State service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStateClient

func NewStateClient(cc grpc.ClientConnInterface) StateClient

type StateServer

type StateServer interface {
	StreamToken(*StreamTokenRequest, State_StreamTokenServer) error
	GetToken(context.Context, *GetTokenRequest) (*Token, error)
}

StateServer is the server API for State service.

type State_StreamTokenClient

type State_StreamTokenClient interface {
	Recv() (*Token, error)
	grpc.ClientStream
}

type State_StreamTokenServer

type State_StreamTokenServer interface {
	Send(*Token) error
	grpc.ServerStream
}

type StreamTokenRequest

type StreamTokenRequest struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamTokenRequest) Descriptor deprecated

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

Deprecated: Use StreamTokenRequest.ProtoReflect.Descriptor instead.

func (*StreamTokenRequest) GetAddresses

func (x *StreamTokenRequest) GetAddresses() []string

func (*StreamTokenRequest) ProtoMessage

func (*StreamTokenRequest) ProtoMessage()

func (*StreamTokenRequest) ProtoReflect

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

func (*StreamTokenRequest) Reset

func (x *StreamTokenRequest) Reset()

func (*StreamTokenRequest) String

func (x *StreamTokenRequest) String() string

type Token

type Token struct {
	Address     []byte  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Symbol      string  `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Decimals    uint32  `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	TotalSupply *BigInt `protobuf:"bytes,5,opt,name=totalSupply,proto3" json:"totalSupply,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetAddress

func (x *Token) GetAddress() []byte

func (*Token) GetDecimals

func (x *Token) GetDecimals() uint32

func (*Token) GetName

func (x *Token) GetName() string

func (*Token) GetSymbol

func (x *Token) GetSymbol() string

func (*Token) GetTotalSupply

func (x *Token) GetTotalSupply() *BigInt

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedStateServer

type UnimplementedStateServer struct {
}

UnimplementedStateServer can be embedded to have forward compatible implementations.

func (*UnimplementedStateServer) GetToken

func (*UnimplementedStateServer) StreamToken

Jump to

Keyboard shortcuts

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