common

package
v0.0.0-...-b400eb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigToUint256

func BigToUint256(number *big.Int) *types.Uint256

func BytesToAddress

func BytesToAddress(data [20]byte) common.Address

func BytesToOrAddress

func BytesToOrAddress(data [20]byte) *types.Address

func BytesToUint256

func BytesToUint256(data [32]byte) *types.Uint256

func GetSecret

func GetSecret(uri string) string

GetSecret retrieves a secret from various supported secret stores

func HexToAddress

func HexToAddress(addressHex string) (*types.Address, error)

func HexToAssetData

func HexToAssetData(assetDataHex string) (types.AssetData, error)

func HexToBytes

func HexToBytes(hexString string) ([20]byte, error)

func Int64ToUint256

func Int64ToUint256(number int64) *types.Uint256

func ToERC20AssetData

func ToERC20AssetData(address *types.Address) types.AssetData

func ToERC721AssetData

func ToERC721AssetData(address *types.Address, tokenID *types.Uint256) types.AssetData

func ToGethAddress

func ToGethAddress(data *types.Address) common.Address

Types

type Semaphore

type Semaphore chan empty

func NewSemaphore

func NewSemaphore(count int) Semaphore

func (Semaphore) Acquire

func (sem Semaphore) Acquire()

func (Semaphore) Release

func (sem Semaphore) Release()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL