rpc

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s types.RPCServer)

Init init grpc param

Types

type Grpc

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

Grpc grpc struct

func (Grpc) GetTokenBalance

func (c Grpc) GetTokenBalance(ctx context.Context, in *tokenty.ReqTokenBalance) (*types.Accounts, error)

GetTokenBalance 获取token金额(channelClient)

type Jrpc

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

Jrpc json rpc struct

func (*Jrpc) CreateRawTokenBurnTx

func (c *Jrpc) CreateRawTokenBurnTx(param *tokenty.TokenBurn, result *interface{}) error

CreateRawTokenBurnTx 创建未签名的 burn Token交易

func (*Jrpc) CreateRawTokenFinishTx

func (c *Jrpc) CreateRawTokenFinishTx(param *tokenty.TokenFinishCreate, result *interface{}) error

CreateRawTokenFinishTx 创建未签名的结束Token交易

func (*Jrpc) CreateRawTokenMintTx

func (c *Jrpc) CreateRawTokenMintTx(param *tokenty.TokenMint, result *interface{}) error

CreateRawTokenMintTx 创建未签名的mint Token交易

func (*Jrpc) CreateRawTokenPreCreateTx

func (c *Jrpc) CreateRawTokenPreCreateTx(param *tokenty.TokenPreCreate, result *interface{}) error

CreateRawTokenPreCreateTx 创建未签名的创建Token交易

func (*Jrpc) CreateRawTokenRevokeTx

func (c *Jrpc) CreateRawTokenRevokeTx(param *tokenty.TokenRevokeCreate, result *interface{}) error

CreateRawTokenRevokeTx 创建未签名的撤销Token交易

func (*Jrpc) GetTokenBalance

func (c *Jrpc) GetTokenBalance(in tokenty.ReqTokenBalance, result *interface{}) error

GetTokenBalance 获取token金额 (Jrpc)

Jump to

Keyboard shortcuts

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