cita

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QUOTA = uint64(10000000)
	Value = []byte{0x0}
)

Functions

func BytesCombine

func BytesCombine(pBytes ...[]byte) []byte

func NewTransaction

func NewTransaction(nonce string, to common.Address, quota uint64, validUntilBlock uint64, value []byte, chainId string, data []byte, version uint32) *pb.Transaction

func ParseMethod

func ParseMethod(data []byte, contractabi string, sm bool) (funcName string, constant bool, err error)

func SignData

func SignData(tx *pb.Transaction, priKey key.PrivateKeyProvider, isSM bool) ([]byte, error)

func String16

func String16(x *big.Int) string

func ToBytes32

func ToBytes32(b []byte) ([]byte, error)

func TransData

func TransData(contractabi, contractAddress string, funcName string, args []interface{}, blockLimit uint64, chainId string, version uint32, smcrypto bool, privKey key.PrivateKeyProvider) (string, bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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