erc20

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Amount         string
	Decimals       uint64
	DstAddress     string
	Erc20Address   string
	Recipient      string
	Bridge         string
	DomainID       uint8
	ResourceID     string
	AccountAddress string
	OwnerAddress   string
	SpenderAddress string
	Minter         string
	Admin          string
)

flag vars

View Source
var (
	RecipientAddress   common.Address
	RealAmount         *big.Int
	Erc20Addr          common.Address
	MinterAddr         common.Address
	AdminAddr          common.Address
	BridgeAddr         common.Address
	ResourceIdBytesArr types.ResourceID
)

processed flag vars

View Source
var ERC20Cmd = &cobra.Command{
	Use:   "erc20",
	Short: "Set of commands for interacting with an ERC20 contract",
	Long:  "Set of commands for interacting with an ERC20 contract",
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		var err error

		url, gasLimit, gasPrice, senderKeyPair, prepare, err = flags.GlobalFlagValues(cmd)
		if err != nil {
			return fmt.Errorf("could not get global flags: %v", err)
		}
		return nil
	},
}

Functions

func AddAdminCmd

func AddAdminCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func AddMinterCmd

func AddMinterCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func AdminInfoCmd

func AdminInfoCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func ApproveCmd

func ApproveCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func BalanceCmd

func BalanceCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func BindAddAdminFlags

func BindAddAdminFlags(cmd *cobra.Command)

func BindAddMinterFlags

func BindAddMinterFlags(cmd *cobra.Command)

func BindAdminInfoFlags

func BindAdminInfoFlags(cmd *cobra.Command)

func BindApproveFlags

func BindApproveFlags(cmd *cobra.Command)

func BindBalanceFlags

func BindBalanceFlags(cmd *cobra.Command)

func BindDepositFlags

func BindDepositFlags(cmd *cobra.Command)

func BindGetAllowanceFlags

func BindGetAllowanceFlags(cmd *cobra.Command)

func BindMintFlags

func BindMintFlags(cmd *cobra.Command)

func BindMinterInfoFlags

func BindMinterInfoFlags(cmd *cobra.Command)

func BindRemoveAdminFlags

func BindRemoveAdminFlags(cmd *cobra.Command)

func BindRemoveMinterFlags

func BindRemoveMinterFlags(cmd *cobra.Command)

func DepositCmd

func DepositCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func GetAllowanceCmd

func GetAllowanceCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func MintCmd

func MintCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func MinterInfoCmd

func MinterInfoCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func ProcessAddAdminFlags

func ProcessAddAdminFlags(cmd *cobra.Command, args []string)

func ProcessAddMinterFlags

func ProcessAddMinterFlags(cmd *cobra.Command, args []string)

func ProcessAdminInfoFlags

func ProcessAdminInfoFlags(cmd *cobra.Command, args []string)

func ProcessApproveFlags

func ProcessApproveFlags(cmd *cobra.Command, args []string) error

func ProcessBalanceFlags

func ProcessBalanceFlags(cmd *cobra.Command, args []string)

func ProcessDepositFlags

func ProcessDepositFlags(cmd *cobra.Command, args []string) error

func ProcessMintFlags

func ProcessMintFlags(cmd *cobra.Command, args []string) error

func ProcessMinterInfoFlags

func ProcessMinterInfoFlags(cmd *cobra.Command, args []string)

func ProcessRemoveAdminFlags

func ProcessRemoveAdminFlags(cmd *cobra.Command, args []string)

func ProcessRemoveMinterFlags

func ProcessRemoveMinterFlags(cmd *cobra.Command, args []string)

func RemoveAdminCmd

func RemoveAdminCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func RemoveMinterCmd

func RemoveMinterCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error

func ValidateAddAdminFlags

func ValidateAddAdminFlags(cmd *cobra.Command, args []string) error

func ValidateAddMinterFlags

func ValidateAddMinterFlags(cmd *cobra.Command, args []string) error

func ValidateAdminInfoFlags

func ValidateAdminInfoFlags(cmd *cobra.Command, args []string) error

func ValidateApproveFlags

func ValidateApproveFlags(cmd *cobra.Command, args []string) error

func ValidateBalanceFlags

func ValidateBalanceFlags(cmd *cobra.Command, args []string) error

func ValidateDepositFlags

func ValidateDepositFlags(cmd *cobra.Command, args []string) error

func ValidateGetAllowanceFlags

func ValidateGetAllowanceFlags(cmd *cobra.Command, args []string) error

func ValidateMintFlags

func ValidateMintFlags(cmd *cobra.Command, args []string) error

func ValidateMinterInfoFlags

func ValidateMinterInfoFlags(cmd *cobra.Command, args []string) error

func ValidateRemoveAdminFlags

func ValidateRemoveAdminFlags(cmd *cobra.Command, args []string) error

func ValidateRemoveMinterFlags

func ValidateRemoveMinterFlags(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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