config

package
v0.0.0-...-29f768c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEFAULT_GAS_PRICE       = 0
	DEFAULT_GAS_LIMIT       = 20000
	DEFAULT_DEPLOY_GASLIMIT = 200000000
)

Variables

This section is empty.

Functions

func InitOep4

func InitOep4(sdk *goSdk.OntologySdk, acc *goSdk.Account, avmPath string)

func MultiSign

func MultiSign(tx *types.MutableTransaction, sdk *goSdk.OntologySdk, consensusAccounts []*goSdk.Account) error

func SetGasPrice

func SetGasPrice(sdk *goSdk.OntologySdk, consensusAccounts []*goSdk.Account, gasPrice uint64)

func WithdrawAsset

func WithdrawAsset(sdk *goSdk.OntologySdk, consensusAccounts []*goSdk.Account, destAcc *goSdk.Account)

Types

type Config

type Config struct {
	Wallet            string
	Password          string
	ConsensusPeerPath [][2]string
	ContractCodePath  string
	Contract          string
	To                string
	Amount            uint64
	Rpc               []string
	TxNum             uint // whole tx num is *TxFactor
	TxFactor          uint
	RoutineNum        uint // whole tx save to RoutineNum files, and one go-routine per file
	TPS               uint
	StartNonce        uint32
	BatchCount        uint32
	GasPrice          uint64
	GasLimit          uint64
	SaveTx            bool
	SendTx            bool
}

func ParseConfig

func ParseConfig(path string) (*Config, error)

type Token

type Token uint8
const (
	ONT Token = iota
	ONG
	OEP4
)

Jump to

Keyboard shortcuts

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