erc20_service

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package erc20_service contains

  • chaincode methods names {service_name}Chaincode_{method_name}
  • chaincode interface definition {service_name}Chaincode
  • chaincode gateway definition {service_name}}Gateway
  • chaincode service to cckit router registration func

Package erc20_service is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (

	// ERC20ChaincodeMethodPrefix allows to use multiple services with same method names in one chaincode
	ERC20ChaincodeMethodPrefix = ""

	ERC20Chaincode_Name = ERC20ChaincodeMethodPrefix + "Name"

	ERC20Chaincode_Symbol = ERC20ChaincodeMethodPrefix + "Symbol"

	ERC20Chaincode_Decimals = ERC20ChaincodeMethodPrefix + "Decimals"

	ERC20Chaincode_TotalSupply = ERC20ChaincodeMethodPrefix + "TotalSupply"

	ERC20Chaincode_BalanceOf = ERC20ChaincodeMethodPrefix + "BalanceOf"

	ERC20Chaincode_Transfer = ERC20ChaincodeMethodPrefix + "Transfer"

	ERC20Chaincode_Allowance = ERC20ChaincodeMethodPrefix + "Allowance"

	ERC20Chaincode_Approve = ERC20ChaincodeMethodPrefix + "Approve"

	ERC20Chaincode_TransferFrom = ERC20ChaincodeMethodPrefix + "TransferFrom"
)

ERC20Chaincode method names

Variables

View Source
var ERC20Swagger []byte
View Source
var File_erc20_service_erc20_proto protoreflect.FileDescriptor

Functions

func RegisterERC20Chaincode

func RegisterERC20Chaincode(r *cckit_router.Group, cc ERC20Chaincode) error

RegisterERC20Chaincode registers service methods as chaincode router handlers

func RegisterERC20Handler

func RegisterERC20Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterERC20Handler registers the http handlers for service ERC20 to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterERC20HandlerClient

func RegisterERC20HandlerClient(ctx context.Context, mux *runtime.ServeMux, client ERC20Client) error

RegisterERC20HandlerClient registers the http handlers for service ERC20 to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ERC20Client". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ERC20Client" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ERC20Client" to call the correct interceptors.

func RegisterERC20HandlerFromEndpoint

func RegisterERC20HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterERC20HandlerFromEndpoint is same as RegisterERC20Handler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterERC20HandlerServer

func RegisterERC20HandlerServer(ctx context.Context, mux *runtime.ServeMux, server ERC20Server) error

RegisterERC20HandlerServer registers the http handlers for service ERC20 to "mux". UnaryRPC :call ERC20Server 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 RegisterERC20HandlerFromEndpoint instead.

func RegisterERC20Server

func RegisterERC20Server(s *grpc.Server, srv ERC20Server)

Types

type AllowanceRequest

type AllowanceRequest struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowanceRequest) Descriptor deprecated

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

Deprecated: Use AllowanceRequest.ProtoReflect.Descriptor instead.

func (*AllowanceRequest) GetRecipientAddress

func (x *AllowanceRequest) GetRecipientAddress() string

func (*AllowanceRequest) GetSenderAddress

func (x *AllowanceRequest) GetSenderAddress() string

func (*AllowanceRequest) ProtoMessage

func (*AllowanceRequest) ProtoMessage()

func (*AllowanceRequest) ProtoReflect

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

func (*AllowanceRequest) Reset

func (x *AllowanceRequest) Reset()

func (*AllowanceRequest) String

func (x *AllowanceRequest) String() string

func (*AllowanceRequest) Validate

func (this *AllowanceRequest) Validate() error

type AllowanceResponse

type AllowanceResponse struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowanceResponse) Descriptor deprecated

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

Deprecated: Use AllowanceResponse.ProtoReflect.Descriptor instead.

func (*AllowanceResponse) GetAmount

func (x *AllowanceResponse) GetAmount() uint64

func (*AllowanceResponse) GetRecipientAddress

func (x *AllowanceResponse) GetRecipientAddress() string

func (*AllowanceResponse) GetSenderAddress

func (x *AllowanceResponse) GetSenderAddress() string

func (*AllowanceResponse) ProtoMessage

func (*AllowanceResponse) ProtoMessage()

func (*AllowanceResponse) ProtoReflect

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

func (*AllowanceResponse) Reset

func (x *AllowanceResponse) Reset()

func (*AllowanceResponse) String

func (x *AllowanceResponse) String() string

func (*AllowanceResponse) Validate

func (this *AllowanceResponse) Validate() error

type ApprovalEvent

type ApprovalEvent struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ApprovalEvent) Descriptor deprecated

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

Deprecated: Use ApprovalEvent.ProtoReflect.Descriptor instead.

func (*ApprovalEvent) GetAmount

func (x *ApprovalEvent) GetAmount() uint64

func (*ApprovalEvent) GetRecipientAddress

func (x *ApprovalEvent) GetRecipientAddress() string

func (*ApprovalEvent) GetSenderAddress

func (x *ApprovalEvent) GetSenderAddress() string

func (*ApprovalEvent) ProtoMessage

func (*ApprovalEvent) ProtoMessage()

func (*ApprovalEvent) ProtoReflect

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

func (*ApprovalEvent) Reset

func (x *ApprovalEvent) Reset()

func (*ApprovalEvent) String

func (x *ApprovalEvent) String() string

func (*ApprovalEvent) Validate

func (this *ApprovalEvent) Validate() error

type ApproveRequest

type ApproveRequest struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ApproveRequest) Descriptor deprecated

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

Deprecated: Use ApproveRequest.ProtoReflect.Descriptor instead.

func (*ApproveRequest) GetAmount

func (x *ApproveRequest) GetAmount() uint64

func (*ApproveRequest) GetRecipientAddress

func (x *ApproveRequest) GetRecipientAddress() string

func (*ApproveRequest) GetSenderAddress

func (x *ApproveRequest) GetSenderAddress() string

func (*ApproveRequest) ProtoMessage

func (*ApproveRequest) ProtoMessage()

func (*ApproveRequest) ProtoReflect

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

func (*ApproveRequest) Reset

func (x *ApproveRequest) Reset()

func (*ApproveRequest) String

func (x *ApproveRequest) String() string

func (*ApproveRequest) Validate

func (this *ApproveRequest) Validate() error

type ApproveResponse

type ApproveResponse struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ApproveResponse) Descriptor deprecated

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

Deprecated: Use ApproveResponse.ProtoReflect.Descriptor instead.

func (*ApproveResponse) GetAmount

func (x *ApproveResponse) GetAmount() uint64

func (*ApproveResponse) GetRecipientAddress

func (x *ApproveResponse) GetRecipientAddress() string

func (*ApproveResponse) GetSenderAddress

func (x *ApproveResponse) GetSenderAddress() string

func (*ApproveResponse) ProtoMessage

func (*ApproveResponse) ProtoMessage()

func (*ApproveResponse) ProtoReflect

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

func (*ApproveResponse) Reset

func (x *ApproveResponse) Reset()

func (*ApproveResponse) String

func (x *ApproveResponse) String() string

func (*ApproveResponse) Validate

func (this *ApproveResponse) Validate() error

type BalanceOfRequest

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

func (*BalanceOfRequest) Descriptor deprecated

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

Deprecated: Use BalanceOfRequest.ProtoReflect.Descriptor instead.

func (*BalanceOfRequest) GetAddress

func (x *BalanceOfRequest) GetAddress() string

func (*BalanceOfRequest) ProtoMessage

func (*BalanceOfRequest) ProtoMessage()

func (*BalanceOfRequest) ProtoReflect

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

func (*BalanceOfRequest) Reset

func (x *BalanceOfRequest) Reset()

func (*BalanceOfRequest) String

func (x *BalanceOfRequest) String() string

func (*BalanceOfRequest) Validate

func (this *BalanceOfRequest) Validate() error

type BalanceOfResponse

type BalanceOfResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*BalanceOfResponse) Descriptor deprecated

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

Deprecated: Use BalanceOfResponse.ProtoReflect.Descriptor instead.

func (*BalanceOfResponse) GetAddress

func (x *BalanceOfResponse) GetAddress() string

func (*BalanceOfResponse) GetBalance

func (x *BalanceOfResponse) GetBalance() uint64

func (*BalanceOfResponse) ProtoMessage

func (*BalanceOfResponse) ProtoMessage()

func (*BalanceOfResponse) ProtoReflect

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

func (*BalanceOfResponse) Reset

func (x *BalanceOfResponse) Reset()

func (*BalanceOfResponse) String

func (x *BalanceOfResponse) String() string

func (*BalanceOfResponse) Validate

func (this *BalanceOfResponse) Validate() error

type DecimalsResponse

type DecimalsResponse struct {
	Decimals uint32 `protobuf:"varint,1,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// contains filtered or unexported fields
}

func (*DecimalsResponse) Descriptor deprecated

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

Deprecated: Use DecimalsResponse.ProtoReflect.Descriptor instead.

func (*DecimalsResponse) GetDecimals

func (x *DecimalsResponse) GetDecimals() uint32

func (*DecimalsResponse) ProtoMessage

func (*DecimalsResponse) ProtoMessage()

func (*DecimalsResponse) ProtoReflect

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

func (*DecimalsResponse) Reset

func (x *DecimalsResponse) Reset()

func (*DecimalsResponse) String

func (x *DecimalsResponse) String() string

func (*DecimalsResponse) Validate

func (this *DecimalsResponse) Validate() error

type ERC20ChaincodeLocalResolver

type ERC20ChaincodeLocalResolver struct {
	// contains filtered or unexported fields
}

ERC20ChaincodeResolver interface for service resolver

func NewERC20ChaincodeLocalResolver

func NewERC20ChaincodeLocalResolver(service ERC20Chaincode) *ERC20ChaincodeLocalResolver

func (*ERC20ChaincodeLocalResolver) Resolve

type ERC20ChaincodeLocatorResolver

type ERC20ChaincodeLocatorResolver struct {
	// contains filtered or unexported fields
}

ERC20ChaincodeResolver interface for service resolver

func (*ERC20ChaincodeLocatorResolver) Resolve

type ERC20ChaincodeResolver

type ERC20ChaincodeResolver interface {
	Resolve(ctx cckit_router.Context) (ERC20Chaincode, error)
}

ERC20ChaincodeResolver interface for service resolver

type ERC20ChaincodeStubInvoker

type ERC20ChaincodeStubInvoker struct {
	Invoker cckit_gateway.ChaincodeStubInvoker
}

func NewERC20ChaincodeStubInvoker

func NewERC20ChaincodeStubInvoker(locator *cckit_gateway.ChaincodeLocator) *ERC20ChaincodeStubInvoker

func (*ERC20ChaincodeStubInvoker) Allowance

func (*ERC20ChaincodeStubInvoker) Approve

func (*ERC20ChaincodeStubInvoker) BalanceOf

func (*ERC20ChaincodeStubInvoker) Decimals

func (*ERC20ChaincodeStubInvoker) Name

func (*ERC20ChaincodeStubInvoker) Symbol

func (*ERC20ChaincodeStubInvoker) TotalSupply

func (*ERC20ChaincodeStubInvoker) Transfer

func (*ERC20ChaincodeStubInvoker) TransferFrom

type ERC20Client

type ERC20Client interface {
	// Returns the name of the token.
	Name(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NameResponse, error)
	// Returns the symbol of the token, usually a shorter version of the name.
	Symbol(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SymbolResponse, error)
	// Returns the number of decimals used to get its user representation.
	// For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2).
	Decimals(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DecimalsResponse, error)
	// Returns the amount of tokens in existence.
	TotalSupply(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TotalSupplyResponse, error)
	// Returns the amount of tokens owned by account.
	BalanceOf(ctx context.Context, in *BalanceOfRequest, opts ...grpc.CallOption) (*BalanceOfResponse, error)
	// Moves amount tokens from the caller’s account to recipient.
	// Returns a boolean value indicating whether the operation succeeded.
	Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error)
	// Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transfersender.
	// This is zero by default.
	Allowance(ctx context.Context, in *AllowanceRequest, opts ...grpc.CallOption) (*AllowanceResponse, error)
	// Sets amount as the allowance of spender over the caller’s tokens.
	// Emits an ApprovalEvent
	Approve(ctx context.Context, in *ApproveRequest, opts ...grpc.CallOption) (*ApproveResponse, error)
	// Moves amount tokens from sender to recipient using the allowance mechanism.
	// Amount is then deducted from the caller’s allowance.
	// Emits TransferEvent
	TransferFrom(ctx context.Context, in *TransferFromRequest, opts ...grpc.CallOption) (*TransferResponse, error)
}

ERC20Client is the client API for ERC20 service.

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

func NewERC20Client

func NewERC20Client(cc grpc.ClientConnInterface) ERC20Client

type ERC20Gateway

type ERC20Gateway struct {
	ChaincodeInstance cckit_gateway.ChaincodeInstance
}

gateway implementation gateway can be used as kind of SDK, GRPC or REST server ( via grpc-gateway or clay )

func NewERC20Gateway

func NewERC20Gateway(sdk cckit_sdk.SDK, channel, chaincode string, opts ...cckit_gateway.Opt) *ERC20Gateway

NewERC20Gateway creates gateway to access chaincode method via chaincode service

func NewERC20GatewayFromInstance

func NewERC20GatewayFromInstance(chaincodeInstance cckit_gateway.ChaincodeInstance) *ERC20Gateway

func (*ERC20Gateway) Allowance

func (*ERC20Gateway) Approve

func (*ERC20Gateway) BalanceOf

func (*ERC20Gateway) Decimals

func (c *ERC20Gateway) Decimals(ctx context.Context, in *emptypb.Empty) (*DecimalsResponse, error)

func (*ERC20Gateway) Invoker

func (*ERC20Gateway) Name

func (c *ERC20Gateway) Name(ctx context.Context, in *emptypb.Empty) (*NameResponse, error)

func (*ERC20Gateway) ServiceDef

func (c *ERC20Gateway) ServiceDef() cckit_gateway.ServiceDef

ServiceDef returns service definition

func (*ERC20Gateway) Symbol

func (c *ERC20Gateway) Symbol(ctx context.Context, in *emptypb.Empty) (*SymbolResponse, error)

func (*ERC20Gateway) TotalSupply

func (c *ERC20Gateway) TotalSupply(ctx context.Context, in *emptypb.Empty) (*TotalSupplyResponse, error)

func (*ERC20Gateway) Transfer

func (*ERC20Gateway) TransferFrom

func (c *ERC20Gateway) TransferFrom(ctx context.Context, in *TransferFromRequest) (*TransferResponse, error)

type ERC20Server

type ERC20Server interface {
	// Returns the name of the token.
	Name(context.Context, *emptypb.Empty) (*NameResponse, error)
	// Returns the symbol of the token, usually a shorter version of the name.
	Symbol(context.Context, *emptypb.Empty) (*SymbolResponse, error)
	// Returns the number of decimals used to get its user representation.
	// For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2).
	Decimals(context.Context, *emptypb.Empty) (*DecimalsResponse, error)
	// Returns the amount of tokens in existence.
	TotalSupply(context.Context, *emptypb.Empty) (*TotalSupplyResponse, error)
	// Returns the amount of tokens owned by account.
	BalanceOf(context.Context, *BalanceOfRequest) (*BalanceOfResponse, error)
	// Moves amount tokens from the caller’s account to recipient.
	// Returns a boolean value indicating whether the operation succeeded.
	Transfer(context.Context, *TransferRequest) (*TransferResponse, error)
	// Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transfersender.
	// This is zero by default.
	Allowance(context.Context, *AllowanceRequest) (*AllowanceResponse, error)
	// Sets amount as the allowance of spender over the caller’s tokens.
	// Emits an ApprovalEvent
	Approve(context.Context, *ApproveRequest) (*ApproveResponse, error)
	// Moves amount tokens from sender to recipient using the allowance mechanism.
	// Amount is then deducted from the caller’s allowance.
	// Emits TransferEvent
	TransferFrom(context.Context, *TransferFromRequest) (*TransferResponse, error)
}

ERC20Server is the server API for ERC20 service.

type NameResponse

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

func (*NameResponse) Descriptor deprecated

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

Deprecated: Use NameResponse.ProtoReflect.Descriptor instead.

func (*NameResponse) GetName

func (x *NameResponse) GetName() string

func (*NameResponse) ProtoMessage

func (*NameResponse) ProtoMessage()

func (*NameResponse) ProtoReflect

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

func (*NameResponse) Reset

func (x *NameResponse) Reset()

func (*NameResponse) String

func (x *NameResponse) String() string

func (*NameResponse) Validate

func (this *NameResponse) Validate() error

type SymbolResponse

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

func (*SymbolResponse) Descriptor deprecated

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

Deprecated: Use SymbolResponse.ProtoReflect.Descriptor instead.

func (*SymbolResponse) GetSymbol

func (x *SymbolResponse) GetSymbol() string

func (*SymbolResponse) ProtoMessage

func (*SymbolResponse) ProtoMessage()

func (*SymbolResponse) ProtoReflect

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

func (*SymbolResponse) Reset

func (x *SymbolResponse) Reset()

func (*SymbolResponse) String

func (x *SymbolResponse) String() string

func (*SymbolResponse) Validate

func (this *SymbolResponse) Validate() error

type TotalSupplyResponse

type TotalSupplyResponse struct {
	TotalSupply uint64 `protobuf:"varint,1,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// contains filtered or unexported fields
}

func (*TotalSupplyResponse) Descriptor deprecated

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

Deprecated: Use TotalSupplyResponse.ProtoReflect.Descriptor instead.

func (*TotalSupplyResponse) GetTotalSupply

func (x *TotalSupplyResponse) GetTotalSupply() uint64

func (*TotalSupplyResponse) ProtoMessage

func (*TotalSupplyResponse) ProtoMessage()

func (*TotalSupplyResponse) ProtoReflect

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

func (*TotalSupplyResponse) Reset

func (x *TotalSupplyResponse) Reset()

func (*TotalSupplyResponse) String

func (x *TotalSupplyResponse) String() string

func (*TotalSupplyResponse) Validate

func (this *TotalSupplyResponse) Validate() error

type TransferEvent

type TransferEvent struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferEvent) Descriptor deprecated

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

Deprecated: Use TransferEvent.ProtoReflect.Descriptor instead.

func (*TransferEvent) GetAmount

func (x *TransferEvent) GetAmount() uint64

func (*TransferEvent) GetRecipientAddress

func (x *TransferEvent) GetRecipientAddress() string

func (*TransferEvent) GetSenderAddress

func (x *TransferEvent) GetSenderAddress() string

func (*TransferEvent) ProtoMessage

func (*TransferEvent) ProtoMessage()

func (*TransferEvent) ProtoReflect

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

func (*TransferEvent) Reset

func (x *TransferEvent) Reset()

func (*TransferEvent) String

func (x *TransferEvent) String() string

func (*TransferEvent) Validate

func (this *TransferEvent) Validate() error

type TransferFromRequest

type TransferFromRequest struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferFromRequest) Descriptor deprecated

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

Deprecated: Use TransferFromRequest.ProtoReflect.Descriptor instead.

func (*TransferFromRequest) GetAmount

func (x *TransferFromRequest) GetAmount() uint64

func (*TransferFromRequest) GetRecipientAddress

func (x *TransferFromRequest) GetRecipientAddress() string

func (*TransferFromRequest) GetSenderAddress

func (x *TransferFromRequest) GetSenderAddress() string

func (*TransferFromRequest) ProtoMessage

func (*TransferFromRequest) ProtoMessage()

func (*TransferFromRequest) ProtoReflect

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

func (*TransferFromRequest) Reset

func (x *TransferFromRequest) Reset()

func (*TransferFromRequest) String

func (x *TransferFromRequest) String() string

func (*TransferFromRequest) Validate

func (this *TransferFromRequest) Validate() error

type TransferRequest

type TransferRequest struct {
	RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferRequest) Descriptor deprecated

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

Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.

func (*TransferRequest) GetAmount

func (x *TransferRequest) GetAmount() uint64

func (*TransferRequest) GetRecipientAddress

func (x *TransferRequest) GetRecipientAddress() string

func (*TransferRequest) ProtoMessage

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) ProtoReflect

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

func (*TransferRequest) Reset

func (x *TransferRequest) Reset()

func (*TransferRequest) String

func (x *TransferRequest) String() string

func (*TransferRequest) Validate

func (this *TransferRequest) Validate() error

type TransferResponse

type TransferResponse struct {
	SenderAddress    string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferResponse) Descriptor deprecated

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

Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead.

func (*TransferResponse) GetAmount

func (x *TransferResponse) GetAmount() uint64

func (*TransferResponse) GetRecipientAddress

func (x *TransferResponse) GetRecipientAddress() string

func (*TransferResponse) GetSenderAddress

func (x *TransferResponse) GetSenderAddress() string

func (*TransferResponse) ProtoMessage

func (*TransferResponse) ProtoMessage()

func (*TransferResponse) ProtoReflect

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

func (*TransferResponse) Reset

func (x *TransferResponse) Reset()

func (*TransferResponse) String

func (x *TransferResponse) String() string

func (*TransferResponse) Validate

func (this *TransferResponse) Validate() error

type UnimplementedERC20Server

type UnimplementedERC20Server struct {
}

UnimplementedERC20Server can be embedded to have forward compatible implementations.

func (*UnimplementedERC20Server) Allowance

func (*UnimplementedERC20Server) Approve

func (*UnimplementedERC20Server) BalanceOf

func (*UnimplementedERC20Server) Decimals

func (*UnimplementedERC20Server) Name

func (*UnimplementedERC20Server) Symbol

func (*UnimplementedERC20Server) TotalSupply

func (*UnimplementedERC20Server) Transfer

func (*UnimplementedERC20Server) TransferFrom

Jump to

Keyboard shortcuts

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