Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EventSwapToNative is the name of the event emitted when swapping to native EventSwapToNative = "SwapToNative" // MethodMint is the name of the method mint of the ERC20 contract MethodMint = "mint" // MethodBurn is the name of the method burn of the ERC20 contract MethodBurn = "burn" // MethodBalanceOf is the name of the method balanceOf of the ERC20 contract MethodBalanceOf = "balanceOf" // MethodInitialize is the name of the method initialize of the ERC20 contract MethodInitialize = "initialize" // MethodUpgradeTo is the name of the method upgradeTo of the Beacon contract MethodUpgradeTo = "upgradeTo" )
Variables ¶
View Source
var ( // ERC20JSON is the json abi of the ERC20 contract //go:embed compiled_contracts/Token.json ERC20JSON []byte //nolint: golint // Generate by solc // TokenProxyJSON is the json abi of the ERC20 contract //go:embed compiled_contracts/TokenProxy.json TokenProxyJSON []byte //nolint: golint // Generate by solc // BeaconJSON is the json abi of the Beacon contract //go:embed compiled_contracts/UpgradeableBeacon.json BeaconJSON []byte //nolint: golint // Generate by solc // ERC20TokenContract is the compiled erc20 contract ERC20TokenContract types.CompiledContract // TokenProxyContract is the compiled erc20 contract proxy TokenProxyContract types.CompiledContract // BeaconContract is the compiled beacon contract proxy BeaconContract types.CompiledContract )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files
¶
- erc20.go
Click to show internal directories.
Click to hide internal directories.