Documentation
¶
Index ¶
- Variables
- type Main
- type MainAdminChanged
- type MainAdminChangedIterator
- type MainApproval
- type MainApprovalIterator
- type MainBeaconUpgraded
- type MainBeaconUpgradedIterator
- type MainCaller
- func (_Main *MainCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_Main *MainCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_Main *MainCaller) Cap(opts *bind.CallOpts) (*big.Int, error)
- func (_Main *MainCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Main *MainCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Main *MainCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Main *MainCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
- func (_Main *MainCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Main *MainCaller) TOKENCAP(opts *bind.CallOpts) (*big.Int, error)
- func (_Main *MainCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type MainCallerRaw
- type MainCallerSession
- func (_Main *MainCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Main *MainCallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Main *MainCallerSession) Cap() (*big.Int, error)
- func (_Main *MainCallerSession) Decimals() (uint8, error)
- func (_Main *MainCallerSession) Name() (string, error)
- func (_Main *MainCallerSession) Owner() (common.Address, error)
- func (_Main *MainCallerSession) ProxiableUUID() ([32]byte, error)
- func (_Main *MainCallerSession) Symbol() (string, error)
- func (_Main *MainCallerSession) TOKENCAP() (*big.Int, error)
- func (_Main *MainCallerSession) TotalSupply() (*big.Int, error)
- type MainFilterer
- func (_Main *MainFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*MainAdminChangedIterator, error)
- func (_Main *MainFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MainApprovalIterator, error)
- func (_Main *MainFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*MainBeaconUpgradedIterator, error)
- func (_Main *MainFilterer) FilterInitialized(opts *bind.FilterOpts) (*MainInitializedIterator, error)
- func (_Main *MainFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*MainOwnershipTransferredIterator, error)
- func (_Main *MainFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MainTransferIterator, error)
- func (_Main *MainFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*MainUpgradedIterator, error)
- func (_Main *MainFilterer) ParseAdminChanged(log types.Log) (*MainAdminChanged, error)
- func (_Main *MainFilterer) ParseApproval(log types.Log) (*MainApproval, error)
- func (_Main *MainFilterer) ParseBeaconUpgraded(log types.Log) (*MainBeaconUpgraded, error)
- func (_Main *MainFilterer) ParseInitialized(log types.Log) (*MainInitialized, error)
- func (_Main *MainFilterer) ParseOwnershipTransferred(log types.Log) (*MainOwnershipTransferred, error)
- func (_Main *MainFilterer) ParseTransfer(log types.Log) (*MainTransfer, error)
- func (_Main *MainFilterer) ParseUpgraded(log types.Log) (*MainUpgraded, error)
- func (_Main *MainFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *MainAdminChanged) (event.Subscription, error)
- func (_Main *MainFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MainApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Main *MainFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *MainBeaconUpgraded, beacon []common.Address) (event.Subscription, error)
- func (_Main *MainFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MainInitialized) (event.Subscription, error)
- func (_Main *MainFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MainOwnershipTransferred, ...) (event.Subscription, error)
- func (_Main *MainFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MainTransfer, from []common.Address, ...) (event.Subscription, error)
- func (_Main *MainFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *MainUpgraded, ...) (event.Subscription, error)
- type MainInitialized
- type MainInitializedIterator
- type MainOwnershipTransferred
- type MainOwnershipTransferredIterator
- type MainRaw
- func (_Main *MainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Main *MainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Main *MainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MainSession
- func (_Main *MainSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Main *MainSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Main *MainSession) Cap() (*big.Int, error)
- func (_Main *MainSession) Decimals() (uint8, error)
- func (_Main *MainSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Main *MainSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Main *MainSession) Initialize() (*types.Transaction, error)
- func (_Main *MainSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainSession) Name() (string, error)
- func (_Main *MainSession) Owner() (common.Address, error)
- func (_Main *MainSession) ProxiableUUID() ([32]byte, error)
- func (_Main *MainSession) RenounceOwnership() (*types.Transaction, error)
- func (_Main *MainSession) Symbol() (string, error)
- func (_Main *MainSession) TOKENCAP() (*big.Int, error)
- func (_Main *MainSession) TotalSupply() (*big.Int, error)
- func (_Main *MainSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Main *MainSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_Main *MainSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- type MainTransactor
- func (_Main *MainTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Main *MainTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Main *MainTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Main *MainTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Main *MainTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
- func (_Main *MainTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
- type MainTransactorRaw
- type MainTransactorSession
- func (_Main *MainTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactorSession) Initialize() (*types.Transaction, error)
- func (_Main *MainTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Main *MainTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Main *MainTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Main *MainTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_Main *MainTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- type MainTransfer
- type MainTransferIterator
- type MainUpgraded
- type MainUpgradedIterator
- type Option
- type Stub
Constants ¶
This section is empty.
Variables ¶
var MainABI = MainMetaData.ABI
MainABI is the input ABI used to generate the binding from. Deprecated: Use MainMetaData.ABI instead.
var MainMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"TOKEN_CAP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}
MainMetaData contains all meta data concerning the Main contract.
Functions ¶
This section is empty.
Types ¶
type Main ¶
type Main struct { MainCaller // Read-only binding to the contract MainTransactor // Write-only binding to the contract MainFilterer // Log filterer for contract events }
Main is an auto generated Go binding around an Ethereum contract.
type MainAdminChanged ¶
type MainAdminChanged struct { PreviousAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
MainAdminChanged represents a AdminChanged event raised by the Main contract.
type MainAdminChangedIterator ¶
type MainAdminChangedIterator struct { Event *MainAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Main contract.
func (*MainAdminChangedIterator) Close ¶
func (it *MainAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainAdminChangedIterator) Error ¶
func (it *MainAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainAdminChangedIterator) Next ¶
func (it *MainAdminChangedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MainApproval ¶
type MainApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
MainApproval represents a Approval event raised by the Main contract.
type MainApprovalIterator ¶
type MainApprovalIterator struct { Event *MainApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Main contract.
func (*MainApprovalIterator) Close ¶
func (it *MainApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainApprovalIterator) Error ¶
func (it *MainApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainApprovalIterator) Next ¶
func (it *MainApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MainBeaconUpgraded ¶
type MainBeaconUpgraded struct { Beacon common.Address Raw types.Log // Blockchain specific contextual infos }
MainBeaconUpgraded represents a BeaconUpgraded event raised by the Main contract.
type MainBeaconUpgradedIterator ¶
type MainBeaconUpgradedIterator struct { Event *MainBeaconUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Main contract.
func (*MainBeaconUpgradedIterator) Close ¶
func (it *MainBeaconUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainBeaconUpgradedIterator) Error ¶
func (it *MainBeaconUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainBeaconUpgradedIterator) Next ¶
func (it *MainBeaconUpgradedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MainCaller ¶
type MainCaller struct {
// contains filtered or unexported fields
}
MainCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMainCaller ¶
func NewMainCaller(address common.Address, caller bind.ContractCaller) (*MainCaller, error)
NewMainCaller creates a new read-only instance of Main, bound to a specific deployed contract.
func (*MainCaller) Allowance ¶
func (_Main *MainCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*MainCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MainCaller) Cap ¶
Cap is a free data retrieval call binding the contract method 0x355274ea.
Solidity: function cap() view returns(uint256)
func (*MainCaller) Decimals ¶
func (_Main *MainCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MainCaller) Name ¶
func (_Main *MainCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MainCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MainCaller) ProxiableUUID ¶
func (_Main *MainCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*MainCaller) Symbol ¶
func (_Main *MainCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MainCaller) TOKENCAP ¶
TOKENCAP is a free data retrieval call binding the contract method 0x9a6524f1.
Solidity: function TOKEN_CAP() view returns(uint256)
func (*MainCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type MainCallerRaw ¶
type MainCallerRaw struct {
Contract *MainCaller // Generic read-only contract binding to access the raw methods on
}
MainCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MainCallerRaw) Call ¶
func (_Main *MainCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type MainCallerSession ¶
type MainCallerSession struct { Contract *MainCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MainCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MainCallerSession) Allowance ¶
func (_Main *MainCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*MainCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MainCallerSession) Cap ¶
func (_Main *MainCallerSession) Cap() (*big.Int, error)
Cap is a free data retrieval call binding the contract method 0x355274ea.
Solidity: function cap() view returns(uint256)
func (*MainCallerSession) Decimals ¶
func (_Main *MainCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MainCallerSession) Name ¶
func (_Main *MainCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MainCallerSession) Owner ¶
func (_Main *MainCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MainCallerSession) ProxiableUUID ¶
func (_Main *MainCallerSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*MainCallerSession) Symbol ¶
func (_Main *MainCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MainCallerSession) TOKENCAP ¶
func (_Main *MainCallerSession) TOKENCAP() (*big.Int, error)
TOKENCAP is a free data retrieval call binding the contract method 0x9a6524f1.
Solidity: function TOKEN_CAP() view returns(uint256)
func (*MainCallerSession) TotalSupply ¶
func (_Main *MainCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type MainFilterer ¶
type MainFilterer struct {
// contains filtered or unexported fields
}
MainFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMainFilterer ¶
func NewMainFilterer(address common.Address, filterer bind.ContractFilterer) (*MainFilterer, error)
NewMainFilterer creates a new log filterer instance of Main, bound to a specific deployed contract.
func (*MainFilterer) FilterAdminChanged ¶
func (_Main *MainFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*MainAdminChangedIterator, error)
FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*MainFilterer) FilterApproval ¶
func (_Main *MainFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MainApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MainFilterer) FilterBeaconUpgraded ¶
func (_Main *MainFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*MainBeaconUpgradedIterator, error)
FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*MainFilterer) FilterInitialized ¶
func (_Main *MainFilterer) FilterInitialized(opts *bind.FilterOpts) (*MainInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*MainFilterer) FilterOwnershipTransferred ¶
func (_Main *MainFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MainOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MainFilterer) FilterTransfer ¶
func (_Main *MainFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MainTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MainFilterer) FilterUpgraded ¶
func (_Main *MainFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*MainUpgradedIterator, error)
FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*MainFilterer) ParseAdminChanged ¶
func (_Main *MainFilterer) ParseAdminChanged(log types.Log) (*MainAdminChanged, error)
ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*MainFilterer) ParseApproval ¶
func (_Main *MainFilterer) ParseApproval(log types.Log) (*MainApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MainFilterer) ParseBeaconUpgraded ¶
func (_Main *MainFilterer) ParseBeaconUpgraded(log types.Log) (*MainBeaconUpgraded, error)
ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*MainFilterer) ParseInitialized ¶
func (_Main *MainFilterer) ParseInitialized(log types.Log) (*MainInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*MainFilterer) ParseOwnershipTransferred ¶
func (_Main *MainFilterer) ParseOwnershipTransferred(log types.Log) (*MainOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MainFilterer) ParseTransfer ¶
func (_Main *MainFilterer) ParseTransfer(log types.Log) (*MainTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MainFilterer) ParseUpgraded ¶
func (_Main *MainFilterer) ParseUpgraded(log types.Log) (*MainUpgraded, error)
ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*MainFilterer) WatchAdminChanged ¶
func (_Main *MainFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *MainAdminChanged) (event.Subscription, error)
WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*MainFilterer) WatchApproval ¶
func (_Main *MainFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MainApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MainFilterer) WatchBeaconUpgraded ¶
func (_Main *MainFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *MainBeaconUpgraded, beacon []common.Address) (event.Subscription, error)
WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
Solidity: event BeaconUpgraded(address indexed beacon)
func (*MainFilterer) WatchInitialized ¶
func (_Main *MainFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MainInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*MainFilterer) WatchOwnershipTransferred ¶
func (_Main *MainFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MainOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MainFilterer) WatchTransfer ¶
func (_Main *MainFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MainTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MainFilterer) WatchUpgraded ¶
func (_Main *MainFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *MainUpgraded, implementation []common.Address) (event.Subscription, error)
WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
type MainInitialized ¶
MainInitialized represents a Initialized event raised by the Main contract.
type MainInitializedIterator ¶
type MainInitializedIterator struct { Event *MainInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Main contract.
func (*MainInitializedIterator) Close ¶
func (it *MainInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainInitializedIterator) Error ¶
func (it *MainInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainInitializedIterator) Next ¶
func (it *MainInitializedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MainOwnershipTransferred ¶
type MainOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
MainOwnershipTransferred represents a OwnershipTransferred event raised by the Main contract.
type MainOwnershipTransferredIterator ¶
type MainOwnershipTransferredIterator struct { Event *MainOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Main contract.
func (*MainOwnershipTransferredIterator) Close ¶
func (it *MainOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainOwnershipTransferredIterator) Error ¶
func (it *MainOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainOwnershipTransferredIterator) Next ¶
func (it *MainOwnershipTransferredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MainRaw ¶
type MainRaw struct {
Contract *Main // Generic contract binding to access the raw methods on
}
MainRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MainRaw) Call ¶
func (_Main *MainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*MainRaw) Transact ¶
func (_Main *MainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MainRaw) Transfer ¶
func (_Main *MainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MainSession ¶
type MainSession struct { Contract *Main // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MainSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MainSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*MainSession) Approve ¶
func (_Main *MainSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*MainSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MainSession) Cap ¶
func (_Main *MainSession) Cap() (*big.Int, error)
Cap is a free data retrieval call binding the contract method 0x355274ea.
Solidity: function cap() view returns(uint256)
func (*MainSession) Decimals ¶
func (_Main *MainSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MainSession) DecreaseAllowance ¶
func (_Main *MainSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*MainSession) IncreaseAllowance ¶
func (_Main *MainSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*MainSession) Initialize ¶
func (_Main *MainSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*MainSession) Mint ¶
func (_Main *MainSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address to, uint256 amount) returns()
func (*MainSession) Name ¶
func (_Main *MainSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MainSession) Owner ¶
func (_Main *MainSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MainSession) ProxiableUUID ¶
func (_Main *MainSession) ProxiableUUID() ([32]byte, error)
ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.
Solidity: function proxiableUUID() view returns(bytes32)
func (*MainSession) RenounceOwnership ¶
func (_Main *MainSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MainSession) Symbol ¶
func (_Main *MainSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MainSession) TOKENCAP ¶
func (_Main *MainSession) TOKENCAP() (*big.Int, error)
TOKENCAP is a free data retrieval call binding the contract method 0x9a6524f1.
Solidity: function TOKEN_CAP() view returns(uint256)
func (*MainSession) TotalSupply ¶
func (_Main *MainSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*MainSession) Transfer ¶
func (_Main *MainSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 amount) returns(bool)
func (*MainSession) TransferFrom ¶
func (_Main *MainSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)
func (*MainSession) TransferOwnership ¶
func (_Main *MainSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*MainSession) UpgradeTo ¶
func (_Main *MainSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*MainSession) UpgradeToAndCall ¶
func (_Main *MainSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
type MainTransactor ¶
type MainTransactor struct {
// contains filtered or unexported fields
}
MainTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMainTransactor ¶
func NewMainTransactor(address common.Address, transactor bind.ContractTransactor) (*MainTransactor, error)
NewMainTransactor creates a new write-only instance of Main, bound to a specific deployed contract.
func (*MainTransactor) Approve ¶
func (_Main *MainTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*MainTransactor) DecreaseAllowance ¶
func (_Main *MainTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*MainTransactor) IncreaseAllowance ¶
func (_Main *MainTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*MainTransactor) Initialize ¶
func (_Main *MainTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*MainTransactor) Mint ¶
func (_Main *MainTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address to, uint256 amount) returns()
func (*MainTransactor) RenounceOwnership ¶
func (_Main *MainTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MainTransactor) Transfer ¶
func (_Main *MainTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 amount) returns(bool)
func (*MainTransactor) TransferFrom ¶
func (_Main *MainTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)
func (*MainTransactor) TransferOwnership ¶
func (_Main *MainTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*MainTransactor) UpgradeTo ¶
func (_Main *MainTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*MainTransactor) UpgradeToAndCall ¶
func (_Main *MainTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
type MainTransactorRaw ¶
type MainTransactorRaw struct {
Contract *MainTransactor // Generic write-only contract binding to access the raw methods on
}
MainTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MainTransactorRaw) Transact ¶
func (_Main *MainTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MainTransactorRaw) Transfer ¶
func (_Main *MainTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MainTransactorSession ¶
type MainTransactorSession struct { Contract *MainTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MainTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MainTransactorSession) Approve ¶
func (_Main *MainTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*MainTransactorSession) DecreaseAllowance ¶
func (_Main *MainTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*MainTransactorSession) IncreaseAllowance ¶
func (_Main *MainTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*MainTransactorSession) Initialize ¶
func (_Main *MainTransactorSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*MainTransactorSession) Mint ¶
func (_Main *MainTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address to, uint256 amount) returns()
func (*MainTransactorSession) RenounceOwnership ¶
func (_Main *MainTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MainTransactorSession) Transfer ¶
func (_Main *MainTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 amount) returns(bool)
func (*MainTransactorSession) TransferFrom ¶
func (_Main *MainTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)
func (*MainTransactorSession) TransferOwnership ¶
func (_Main *MainTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*MainTransactorSession) UpgradeTo ¶
func (_Main *MainTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*MainTransactorSession) UpgradeToAndCall ¶
func (_Main *MainTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
type MainTransfer ¶
type MainTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
MainTransfer represents a Transfer event raised by the Main contract.
type MainTransferIterator ¶
type MainTransferIterator struct { Event *MainTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Main contract.
func (*MainTransferIterator) Close ¶
func (it *MainTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainTransferIterator) Error ¶
func (it *MainTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainTransferIterator) Next ¶
func (it *MainTransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MainUpgraded ¶
type MainUpgraded struct { Implementation common.Address Raw types.Log // Blockchain specific contextual infos }
MainUpgraded represents a Upgraded event raised by the Main contract.
type MainUpgradedIterator ¶
type MainUpgradedIterator struct { Event *MainUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MainUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Main contract.
func (*MainUpgradedIterator) Close ¶
func (it *MainUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MainUpgradedIterator) Error ¶
func (it *MainUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MainUpgradedIterator) Next ¶
func (it *MainUpgradedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.