Documentation ¶
Index ¶
- Variables
- func AddMinterCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error
- func ApproveCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error
- func BalanceCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error
- func BindAddMinterFlags(cmd *cobra.Command)
- func BindApproveFlags(cmd *cobra.Command)
- func BindBalanceFlags(cmd *cobra.Command)
- func BindDepositFlags(cmd *cobra.Command)
- func BindGetAllowanceFlags(cmd *cobra.Command)
- func BindMintFlags(cmd *cobra.Command)
- func DepositCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error
- func GetAllowanceCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error
- func MintCmd(cmd *cobra.Command, args []string, contract *erc20.ERC20Contract) error
- func ProcessAddMinterFlags(cmd *cobra.Command, args []string)
- func ProcessApproveFlags(cmd *cobra.Command, args []string) error
- func ProcessBalanceFlags(cmd *cobra.Command, args []string)
- func ProcessDepositFlags(cmd *cobra.Command, args []string) error
- func ProcessMintFlags(cmd *cobra.Command, args []string) error
- func ValidateAddMinterFlags(cmd *cobra.Command, args []string) error
- func ValidateApproveFlags(cmd *cobra.Command, args []string) error
- func ValidateBalanceFlags(cmd *cobra.Command, args []string) error
- func ValidateDepositFlags(cmd *cobra.Command, args []string) error
- func ValidateGetAllowanceFlags(cmd *cobra.Command, args []string) error
- func ValidateMintFlags(cmd *cobra.Command, args []string) error
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 Priority string )
flag vars
View Source
var ( RecipientAddress common.Address RealAmount *big.Int Erc20Addr common.Address MinterAddr 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 AddMinterCmd ¶
func ApproveCmd ¶
func BalanceCmd ¶
func BindAddMinterFlags ¶
func BindApproveFlags ¶
func BindBalanceFlags ¶
func BindDepositFlags ¶
func BindGetAllowanceFlags ¶
func BindMintFlags ¶
func DepositCmd ¶
func GetAllowanceCmd ¶
func ProcessAddMinterFlags ¶
func ProcessBalanceFlags ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.