Documentation ¶
Index ¶
- Variables
- func CalcGasCost(gasLimit uint64, gasPrice *big.Int) *big.Int
- func IsValidAddress(iaddress interface{}) bool
- func IsZeroAddress(iaddress interface{}) bool
- func NewAccount() (*bind.TransactOpts, *ecdsa.PrivateKey, error)
- func PublicKeyBytesToAddress(publicKey []byte) common.Address
- func SigRSV(isig interface{}) ([32]byte, [32]byte, uint8)
- func ToDecimal(ivalue interface{}, decimals int) decimal.Decimal
- func ToWei(iamount interface{}, decimals int) *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MaxSupply of LEV MaxSupply = ToWei(10000000.0, 18) // TeamTokens are the amount of tokens allocated to team TeamTokens = ToWei(7500.0, 18) // TeamTokensVested are the amount of tokens team is vesting TeamTokensVested = ToWei(5625.0, 18) // VestingPeriodMonths denotes the total vesting time VestingPeriodMonths = 12 // VestingCycleMonths denotes the cyle at which individual tranches are released VestingCycleMonths = 1 )
View Source
var ( // OneEthInWei is one ETH denominated in Wei OneEthInWei = big.NewInt(1000000000000000000) )
Functions ¶
func CalcGasCost ¶
CalcGasCost calculate gas cost given gas limit (units) and gas price (wei)
func IsValidAddress ¶
func IsValidAddress(iaddress interface{}) bool
IsValidAddress validate hex address
func IsZeroAddress ¶
func IsZeroAddress(iaddress interface{}) bool
IsZeroAddress validate if it's a 0 address
func NewAccount ¶
func NewAccount() (*bind.TransactOpts, *ecdsa.PrivateKey, error)
NewAccount creates a new ethereum private key, and associated transactor
func PublicKeyBytesToAddress ¶
PublicKeyBytesToAddress ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.