Documentation
¶
Index ¶
- Variables
- func Abs(a *big.Int) *big.Int
- func Add(a, b *big.Int) *big.Int
- func AddC(a *big.Int, b int64) *big.Int
- func Approx(a, b, _precision float64) bool
- func Clone(a *big.Int) *big.Int
- func CloneAmountSlice(input []*amount.Amount) []*amount.Amount
- func CloneSlice(input []*big.Int) []*big.Int
- func CubicFunc(a, b, c, d, x float64) float64
- func CubicRoot(a, b, c, d float64) (float64, error)
- func Div(a, b *big.Int) *big.Int
- func DivC(a *big.Int, b int64) *big.Int
- func Erc20TokenContractCreationTx(tb *testBlockChain, senderKey key.Key, initialSupply *amount.Amount) (*types.Transaction, error)
- func Exp(a, b *big.Int) *big.Int
- func IsPlus(a *big.Int) bool
- func MakeAmountSlice(size uint8) []*amount.Amount
- func MakeSlice(size uint8) []*big.Int
- func MaxInArray(a []*big.Int) (int, *big.Int)
- func Min(a, b *big.Int) *big.Int
- func MinInArray(a []*big.Int) (int, *big.Int)
- func Mul(a, b *big.Int) *big.Int
- func MulC(a *big.Int, b int64) *big.Int
- func MulDiv(a, b, denominator *big.Int) *big.Int
- func MulDivC(a, b *big.Int, denominator int64) *big.Int
- func MulDivCC(a *big.Int, b, denominator int64) *big.Int
- func MulF(a *big.Int, b float64) (*big.Int, error)
- func NewTestBlockChain(path string, deletePath bool, chainID *big.Int, version uint16, ...) (*testBlockChain, error)
- func Newtonian(a, b, c, d, x0 float64) (float64, error)
- func Pow10(a int) *big.Int
- func RegisterContracts()
- func Sqrt(a *big.Int) *big.Int
- func Sub(a, b *big.Int) *big.Int
- func SubC(a *big.Int, b int64) *big.Int
- func Sum(a []*big.Int) *big.Int
- func ToAmount(b *big.Int) *amount.Amount
- func ToAmounts(b []*big.Int) []*amount.Amount
- func ToBigInt(a float64) (*big.Int, error)
- func ToBigInts(b []*amount.Amount) []*big.Int
- func ToFloat64(a *big.Int) float64
- type Curve
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Erc20TokenContractCreationTx ¶
func Erc20TokenContractCreationTx(tb *testBlockChain, senderKey key.Key, initialSupply *amount.Amount) (*types.Transaction, error)
Erc20TokenContractCreation deploy Erc20Token contract with initialSupply(= 1 ether) source code : evm-client/contracts/ERC20Token.sol
func MakeAmountSlice ¶
func NewTestBlockChain ¶
func NewTestBlockChain(path string, deletePath bool, chainID *big.Int, version uint16, genesis *types.Context, admin *common.Address, cfg *initContextInfo) (*testBlockChain, error)
NewTestBlockChain makes new test blockchain
func RegisterContracts ¶
func RegisterContracts()
RegisterContracts creates classmap for deploying contracts ususally in genesis
Types ¶
Click to show internal directories.
Click to hide internal directories.