omnitoken

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TotalSupply = new(big.Int).Mul(big.NewInt(100e6), big.NewInt(1e18))

TotalSupply is the 100M, total supply of the token.

Functions

func Deploy

func Deploy(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)

Deploy deploys a new ERC20 OMNI token contract and returns the address and receipt.

NOTE: the mainnet ERC20 OMNI token is already deployed to ETH mainnet. We use this code for test / ephemeral networks.

func DeployIfNeeded

func DeployIfNeeded(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (common.Address, *ethtypes.Receipt, error)

DeployIfNeeded deploys a new token contract if it is not already deployed. If the contract is already deployed, the receipt is nil.

func InitialSupplyRecipient

func InitialSupplyRecipient(network netconf.ID) common.Address

InitialSupplyRecipient returns the address that receives the initial supply of the token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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