Documentation ¶
Index ¶
- Variables
- func AddAccountVar(cmd *cobra.Command)
- func AddFromVar(cmd *cobra.Command)
- func AddGasPriceVar(cmd *cobra.Command)
- func CfxToEthTx(tx *cfxtypes.UnsignedTransaction) (*types.Transaction, common.Address, *big.Int)
- func EthToCfxTx(etx *types.Transaction, chainID uint32) *cfxtypes.UnsignedTransaction
- func MustGetAccount(ks *keystore.KeyStore, addr common.Address) accounts.Account
- func MustInputPassword(prompt string) string
- func MustParseAccount() *types.Address
- func MustParsePrice() *big.Int
- func MustParseValue() *big.Int
- func SetParent(parent *cobra.Command)
- func SignEthLegacyTx(ks *keystore.KeyStore, from common.Address, tx *types.Transaction, ...) *types.Transaction
- func SignEthLegacyTxWithPasswd(ks *keystore.KeyStore, from common.Address, tx *types.Transaction, ...) *types.Transaction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ValueCfx is the string representation of value in CFX. ValueCfx string // DefaultAccountManager is the default account manager under keystore folder. DefaultAccountManager *sdk.AccountManager = am )
View Source
var ErrInvalidSig = errors.New("invalid transaction v, r, s values")
Functions ¶
func AddAccountVar ¶
AddAccountVar adds account variable for specified command.
func AddFromVar ¶ added in v1.0.2
func AddGasPriceVar ¶
AddGasPriceVar addds price variable for specified command.
func CfxToEthTx ¶ added in v1.0.4
func CfxToEthTx(tx *cfxtypes.UnsignedTransaction) (*types.Transaction, common.Address, *big.Int)
func EthToCfxTx ¶ added in v1.0.4
func EthToCfxTx(etx *types.Transaction, chainID uint32) *cfxtypes.UnsignedTransaction
func MustGetAccount ¶ added in v1.0.4
func MustInputPassword ¶
MustInputPassword prompt user to input password.
func MustParseAccount ¶
MustParseAccount parse account from input parameter.
func MustParsePrice ¶
MustParsePrice parse gas price from input parameter.
func MustParseValue ¶
MustParseValue parse value in CFX from input parameter.
func SignEthLegacyTx ¶ added in v1.0.4
func SignEthLegacyTx(ks *keystore.KeyStore, from common.Address, tx *types.Transaction, chainID *big.Int) *types.Transaction
func SignEthLegacyTxWithPasswd ¶ added in v1.0.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.