contracts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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