handlers

package
v0.0.0-...-6425a1c Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

* Copyright (C) 2018 The ZeepinChain Authors * This file is part of The ZeepinChain library. * * The ZeepinChain is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ZeepinChain is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ZeepinChain. If not, see <http://www.gnu.org/licenses/>.

* Copyright (C) 2018 The ZeepinChain Authors * This file is part of The ZeepinChain library. * * The ZeepinChain is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ZeepinChain is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ZeepinChain. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SigData

func SigData(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

func SigEmbededInvokeAbiTx

func SigEmbededInvokeAbiTx(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

func SigEmbededInvokeTx

func SigEmbededInvokeTx(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

func SigMutilRawTransaction

func SigMutilRawTransaction(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

func SigNativeInvokeTx

func SigNativeInvokeTx(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

func SigRawTransaction

func SigRawTransaction(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

func SigTransferTransaction

func SigTransferTransaction(req *clisvrcom.CliRpcRequest, resp *clisvrcom.CliRpcResponse)

Types

type SigDataReq

type SigDataReq struct {
	RawData string `json:"raw_data"`
}

type SigDataRsp

type SigDataRsp struct {
	SignedData string `json:"signed_data"`
}

type SigEmbededInvokeTxAbiReq

type SigEmbededInvokeTxAbiReq struct {
	GasPrice    uint64          `json:"gas_price"`
	GasLimit    uint64          `json:"gas_limit"`
	Address     string          `json:"address"`
	Method      string          `json:"method"`
	Params      []string        `json:"params"`
	ContractAbi json.RawMessage `json:"contract_abi"`
}

type SigEmbededInvokeTxAbiRsp

type SigEmbededInvokeTxAbiRsp struct {
	SignedTx string `json:"signed_tx"`
}

type SigEmbededInvokeTxReq

type SigEmbededInvokeTxReq struct {
	GasPrice uint64        `json:"gas_price"`
	GasLimit uint64        `json:"gas_limit"`
	Address  string        `json:"address"`
	Params   []interface{} `json:"params"`
}

type SigEmbededInvokeTxRsp

type SigEmbededInvokeTxRsp struct {
	SignedTx string `json:"signed_tx"`
}

type SigMutilRawTransactionReq

type SigMutilRawTransactionReq struct {
	RawTx   string   `json:"raw_tx"`
	M       int      `json:"m"`
	PubKeys []string `json:"pub_keys"`
}

type SigMutilRawTransactionRsp

type SigMutilRawTransactionRsp struct {
	SignedTx string `json:"signed_tx"`
}

type SigNativeInvokeTxReq

type SigNativeInvokeTxReq struct {
	GasPrice uint64        `json:"gas_price"`
	GasLimit uint64        `json:"gas_limit"`
	Address  string        `json:"address"`
	Method   string        `json:"method"`
	Params   []interface{} `json:"params"`
	Version  byte          `json:"version"`
}

type SigNativeInvokeTxRsp

type SigNativeInvokeTxRsp struct {
	SignedTx string `json:"signed_tx"`
}

type SigRawTransactionReq

type SigRawTransactionReq struct {
	RawTx string `json:"raw_tx"`
}

type SigRawTransactionRsp

type SigRawTransactionRsp struct {
	SignedTx string `json:"signed_tx"`
}

type SigTransferTransactionReq

type SigTransferTransactionReq struct {
	GasPrice uint64 `json:"gas_price"`
	GasLimit uint64 `json:"gas_limit"`
	Asset    string `json:"asset"`
	From     string `json:"from"`
	To       string `json:"to"`
	Amount   uint64 `json:"amount"`
}

type SinTransferTransactionRsp

type SinTransferTransactionRsp struct {
	SignedTx string `json:"signed_tx"`
}

Jump to

Keyboard shortcuts

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