Documentation ¶
Index ¶
- Constants
- func InitOep4(sdk *goSdk.OntologySdk, acc *goSdk.Account, avmPath string)
- func MultiSign(tx *types.MutableTransaction, sdk *goSdk.OntologySdk, ...) error
- func SetGasPrice(sdk *goSdk.OntologySdk, consensusAccounts []*goSdk.Account, gasPrice uint64)
- func WithdrawAsset(sdk *goSdk.OntologySdk, consensusAccounts []*goSdk.Account, ...)
- type Config
- type Token
Constants ¶
View Source
const ( DEFAULT_GAS_PRICE = 0 DEFAULT_GAS_LIMIT = 20000 DEFAULT_DEPLOY_GASLIMIT = 200000000 )
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 GasPrice uint64 GasLimit uint64 SaveTx bool SendTx bool }
func ParseConfig ¶
Click to show internal directories.
Click to hide internal directories.