Documentation ¶
Index ¶
- func AddressArrayToEth(addresses []Address) []ethcommon.Address
- func HashSliceToRaw(slice []Hash) [][32]byte
- func NewEthHashesFromHashes(a []Hash) []ethcommon.Hash
- func RandBigInt() *big.Int
- func RandBigIntBelowBound(max *big.Int) *big.Int
- func RandBytes(size int) []byte
- type Address
- type BlockId
- type Hash
- type TimeBlocks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressArrayToEth ¶ added in v0.5.0
func HashSliceToRaw ¶ added in v0.6.5
func NewEthHashesFromHashes ¶ added in v0.7.0
func RandBigInt ¶ added in v0.6.0
Types ¶
type Address ¶
type Address [20]byte
func AddressArrayFromEth ¶ added in v0.5.0
func HexToAddress ¶
func NewAddressFromEth ¶
func RandAddress ¶ added in v0.6.0
func RandAddress() Address
func (Address) ShortString ¶
func (Address) ToEthAddress ¶
type BlockId ¶
type BlockId struct { Height *TimeBlocks HeaderHash Hash }
func (*BlockId) MarshalZerologObject ¶ added in v0.8.0
type Hash ¶
type Hash [32]byte
func HashArrayFromEth ¶ added in v0.7.0
func NewHashFromEth ¶
func (Hash) ShortString ¶
type TimeBlocks ¶
func NewTimeBlocks ¶
func NewTimeBlocks(val *big.Int) *TimeBlocks
func NewTimeBlocksInt ¶
func NewTimeBlocksInt(val int64) *TimeBlocks
func (*TimeBlocks) AsInt ¶
func (tb *TimeBlocks) AsInt() *big.Int
func (*TimeBlocks) Clone ¶
func (tb *TimeBlocks) Clone() *TimeBlocks
func (*TimeBlocks) Cmp ¶
func (tb *TimeBlocks) Cmp(tb2 *TimeBlocks) int
func (*TimeBlocks) String ¶
func (tb *TimeBlocks) String() string
Click to show internal directories.
Click to hide internal directories.