Documentation ¶
Index ¶
- func BigEndianToUin64(b []byte) uint64
- func Bytes2Hex(d []byte) string
- func BytesToAddress(b []byte) types.Address
- func CopyBytes(b []byte) (copiedBytes []byte)
- func EncodeUint256(num int) string
- func EncodingAddress(address string) string
- func EvmCall(nonce uint64, to *typec.Address, amount *big.Int, gasLimit uint64, ...) ([]byte, error)
- func FromHex(s string) []byte
- func GetAccountNonce(genesis *types.Block, account types.Address) uint64
- func GetDefaultAddressByContractType(contract types.ContractType) string
- func Hex2Bytes(str string) []byte
- func HexToAddress(s string) types.Address
- func NewTransaction(nonce uint64, to *types.Address, amount *big.Int, gasLimit uint64, ...) *types.Transaction
- func NewTransactionForCall(to types.Address, data []byte) types.Transaction
- func SetBytes(b []byte, a *types.Address)
- func Uint64ToString(item uint64) string
- type RefAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigEndianToUin64 ¶
func BytesToAddress ¶
func EncodeUint256 ¶
func EncodingAddress ¶
func FromHex ¶
FromHex returns the bytes represented by the hexadecimal string s. s may be prefixed with "0x".
func GetDefaultAddressByContractType ¶
func GetDefaultAddressByContractType(contract types.ContractType) string
func HexToAddress ¶
func NewTransaction ¶
func NewTransactionForCall ¶
func NewTransactionForCall(to types.Address, data []byte) types.Transaction
New a transaction
func Uint64ToString ¶
Types ¶
type RefAddress ¶
func NewRefAddress ¶
func NewRefAddress(addr typec.Address) *RefAddress
func (*RefAddress) Address ¶
func (self *RefAddress) Address() typec.Address
Click to show internal directories.
Click to hide internal directories.