contracts

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RewardABI = RewardMetaData.ABI

RewardABI is the input ABI used to generate the binding from. Deprecated: Use RewardMetaData.ABI instead.

View Source
var RewardMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WeeklyLimitExceeded\",\"type\":\"error\"},{\"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\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"AdminWithdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vehicleNodeId\",\"type\":\"uint256\"}],\"name\":\"DidntQualify\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vehicleNodeId\",\"type\":\"uint256\"}],\"name\":\"TokensTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ORACLE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"adminWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"vehicleIds\",\"type\":\"uint256[]\"}],\"name\":\"batchTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"calculateWeeklyLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxRewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentWeek\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentWeekLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentWeekSpent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dimoTotalSentOutByContract\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialWeeklyLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"registryContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"registryVehicleNodeType\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sanctionsContractAddress\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minimumTimeForRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardsGenesisTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newTimeInSeconds\",\"type\":\"uint256\"}],\"name\":\"setMinimumTimeForRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"forceUpdate\",\"type\":\"bool\"}],\"name\":\"updateWeek\",\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"vehicleIdLastRewardTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vehicleNodeType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

RewardMetaData contains all meta data concerning the Reward contract.

View Source
var TokenABI = TokenMetaData.ABI

TokenABI is the input ABI used to generate the binding from. Deprecated: Use TokenMetaData.ABI instead.

View Source
var TokenMetaData = &bind.MetaData{
	ABI: "[{\"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\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fromDelegate\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toDelegate\",\"type\":\"address\"}],\"name\":\"DelegateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousBalance\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"DelegateVotesChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"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\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BURNER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEPOSITOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UPGRADER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"pos\",\"type\":\"uint32\"}],\"name\":\"checkpoints\",\"outputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"fromBlock\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"votes\",\"type\":\"uint224\"}],\"internalType\":\"structERC20VotesUpgradeable.Checkpoint\",\"name\":\"\",\"type\":\"tuple\"}],\"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\":\"delegatee\",\"type\":\"address\"}],\"name\":\"delegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegatee\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"delegateBySig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"delegates\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"depositData\",\"type\":\"bytes\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getPastTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getPastVotes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getVotes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"address\",\"name\":\"user\",\"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\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"numCheckpoints\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"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\":[],\"name\":\"unpause\",\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"writeTotalSupplyCheckpoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

TokenMetaData contains all meta data concerning the Token contract.

Functions

This section is empty.

Types

type ERC20VotesUpgradeableCheckpoint added in v1.5.0

type ERC20VotesUpgradeableCheckpoint struct {
	FromBlock uint32
	Votes     *big.Int
}

ERC20VotesUpgradeableCheckpoint is an auto generated low-level Go binding around an user-defined struct.

type Reward

type Reward struct {
	RewardCaller     // Read-only binding to the contract
	RewardTransactor // Write-only binding to the contract
	RewardFilterer   // Log filterer for contract events
}

Reward is an auto generated Go binding around an Ethereum contract.

func NewReward

func NewReward(address common.Address, backend bind.ContractBackend) (*Reward, error)

NewReward creates a new instance of Reward, bound to a specific deployed contract.

type RewardAdminChanged

type RewardAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

RewardAdminChanged represents a AdminChanged event raised by the Reward contract.

type RewardAdminChangedIterator

type RewardAdminChangedIterator struct {
	Event *RewardAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Reward contract.

func (*RewardAdminChangedIterator) Close

func (it *RewardAdminChangedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardAdminChangedIterator) Error

func (it *RewardAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardAdminChangedIterator) Next

func (it *RewardAdminChangedIterator) 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 RewardAdminWithdrawal

type RewardAdminWithdrawal struct {
	User   common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RewardAdminWithdrawal represents a AdminWithdrawal event raised by the Reward contract.

type RewardAdminWithdrawalIterator

type RewardAdminWithdrawalIterator struct {
	Event *RewardAdminWithdrawal // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardAdminWithdrawalIterator is returned from FilterAdminWithdrawal and is used to iterate over the raw logs and unpacked data for AdminWithdrawal events raised by the Reward contract.

func (*RewardAdminWithdrawalIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardAdminWithdrawalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardAdminWithdrawalIterator) Next

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 RewardBeaconUpgraded

type RewardBeaconUpgraded struct {
	Beacon common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

RewardBeaconUpgraded represents a BeaconUpgraded event raised by the Reward contract.

type RewardBeaconUpgradedIterator

type RewardBeaconUpgradedIterator struct {
	Event *RewardBeaconUpgraded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Reward contract.

func (*RewardBeaconUpgradedIterator) Close

func (it *RewardBeaconUpgradedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardBeaconUpgradedIterator) Error

func (it *RewardBeaconUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardBeaconUpgradedIterator) Next

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 RewardCaller

type RewardCaller struct {
	// contains filtered or unexported fields
}

RewardCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewRewardCaller

func NewRewardCaller(address common.Address, caller bind.ContractCaller) (*RewardCaller, error)

NewRewardCaller creates a new read-only instance of Reward, bound to a specific deployed contract.

func (*RewardCaller) CalculateWeeklyLimit

func (_Reward *RewardCaller) CalculateWeeklyLimit(opts *bind.CallOpts) (*big.Int, error)

CalculateWeeklyLimit is a free data retrieval call binding the contract method 0x60e1f139.

Solidity: function calculateWeeklyLimit() view returns(uint256 maxRewards)

func (*RewardCaller) CurrentWeek

func (_Reward *RewardCaller) CurrentWeek(opts *bind.CallOpts) (*big.Int, error)

CurrentWeek is a free data retrieval call binding the contract method 0x06575c89.

Solidity: function currentWeek() view returns(uint256)

func (*RewardCaller) CurrentWeekLimit

func (_Reward *RewardCaller) CurrentWeekLimit(opts *bind.CallOpts) (*big.Int, error)

CurrentWeekLimit is a free data retrieval call binding the contract method 0x9cb12ca2.

Solidity: function currentWeekLimit() view returns(uint256)

func (*RewardCaller) CurrentWeekSpent

func (_Reward *RewardCaller) CurrentWeekSpent(opts *bind.CallOpts) (*big.Int, error)

CurrentWeekSpent is a free data retrieval call binding the contract method 0x7802674d.

Solidity: function currentWeekSpent() view returns(uint256)

func (*RewardCaller) DEFAULTADMINROLE

func (_Reward *RewardCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RewardCaller) DimoTotalSentOutByContract

func (_Reward *RewardCaller) DimoTotalSentOutByContract(opts *bind.CallOpts) (*big.Int, error)

DimoTotalSentOutByContract is a free data retrieval call binding the contract method 0x7f350fea.

Solidity: function dimoTotalSentOutByContract() view returns(uint256)

func (*RewardCaller) GetRoleAdmin

func (_Reward *RewardCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*RewardCaller) HasRole

func (_Reward *RewardCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*RewardCaller) InitialWeeklyLimit

func (_Reward *RewardCaller) InitialWeeklyLimit(opts *bind.CallOpts) (*big.Int, error)

InitialWeeklyLimit is a free data retrieval call binding the contract method 0x611fbc96.

Solidity: function initialWeeklyLimit() view returns(uint256)

func (*RewardCaller) MinimumTimeForRewards

func (_Reward *RewardCaller) MinimumTimeForRewards(opts *bind.CallOpts) (*big.Int, error)

MinimumTimeForRewards is a free data retrieval call binding the contract method 0x9084025e.

Solidity: function minimumTimeForRewards() view returns(uint256)

func (*RewardCaller) ORACLEROLE

func (_Reward *RewardCaller) ORACLEROLE(opts *bind.CallOpts) ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*RewardCaller) ProxiableUUID

func (_Reward *RewardCaller) 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 (*RewardCaller) RewardsGenesisTime

func (_Reward *RewardCaller) RewardsGenesisTime(opts *bind.CallOpts) (*big.Int, error)

RewardsGenesisTime is a free data retrieval call binding the contract method 0x7f2842b4.

Solidity: function rewardsGenesisTime() view returns(uint256)

func (*RewardCaller) SupportsInterface

func (_Reward *RewardCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*RewardCaller) VehicleIdLastRewardTime

func (_Reward *RewardCaller) VehicleIdLastRewardTime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

VehicleIdLastRewardTime is a free data retrieval call binding the contract method 0xdf959d01.

Solidity: function vehicleIdLastRewardTime(uint256 ) view returns(uint256)

func (*RewardCaller) VehicleNodeType

func (_Reward *RewardCaller) VehicleNodeType(opts *bind.CallOpts) (*big.Int, error)

VehicleNodeType is a free data retrieval call binding the contract method 0x38195d0a.

Solidity: function vehicleNodeType() view returns(uint256)

type RewardCallerRaw

type RewardCallerRaw struct {
	Contract *RewardCaller // Generic read-only contract binding to access the raw methods on
}

RewardCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*RewardCallerRaw) Call

func (_Reward *RewardCallerRaw) 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 RewardCallerSession

type RewardCallerSession struct {
	Contract *RewardCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

RewardCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*RewardCallerSession) CalculateWeeklyLimit

func (_Reward *RewardCallerSession) CalculateWeeklyLimit() (*big.Int, error)

CalculateWeeklyLimit is a free data retrieval call binding the contract method 0x60e1f139.

Solidity: function calculateWeeklyLimit() view returns(uint256 maxRewards)

func (*RewardCallerSession) CurrentWeek

func (_Reward *RewardCallerSession) CurrentWeek() (*big.Int, error)

CurrentWeek is a free data retrieval call binding the contract method 0x06575c89.

Solidity: function currentWeek() view returns(uint256)

func (*RewardCallerSession) CurrentWeekLimit

func (_Reward *RewardCallerSession) CurrentWeekLimit() (*big.Int, error)

CurrentWeekLimit is a free data retrieval call binding the contract method 0x9cb12ca2.

Solidity: function currentWeekLimit() view returns(uint256)

func (*RewardCallerSession) CurrentWeekSpent

func (_Reward *RewardCallerSession) CurrentWeekSpent() (*big.Int, error)

CurrentWeekSpent is a free data retrieval call binding the contract method 0x7802674d.

Solidity: function currentWeekSpent() view returns(uint256)

func (*RewardCallerSession) DEFAULTADMINROLE

func (_Reward *RewardCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RewardCallerSession) DimoTotalSentOutByContract

func (_Reward *RewardCallerSession) DimoTotalSentOutByContract() (*big.Int, error)

DimoTotalSentOutByContract is a free data retrieval call binding the contract method 0x7f350fea.

Solidity: function dimoTotalSentOutByContract() view returns(uint256)

func (*RewardCallerSession) GetRoleAdmin

func (_Reward *RewardCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*RewardCallerSession) HasRole

func (_Reward *RewardCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*RewardCallerSession) InitialWeeklyLimit

func (_Reward *RewardCallerSession) InitialWeeklyLimit() (*big.Int, error)

InitialWeeklyLimit is a free data retrieval call binding the contract method 0x611fbc96.

Solidity: function initialWeeklyLimit() view returns(uint256)

func (*RewardCallerSession) MinimumTimeForRewards

func (_Reward *RewardCallerSession) MinimumTimeForRewards() (*big.Int, error)

MinimumTimeForRewards is a free data retrieval call binding the contract method 0x9084025e.

Solidity: function minimumTimeForRewards() view returns(uint256)

func (*RewardCallerSession) ORACLEROLE

func (_Reward *RewardCallerSession) ORACLEROLE() ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*RewardCallerSession) ProxiableUUID

func (_Reward *RewardCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*RewardCallerSession) RewardsGenesisTime

func (_Reward *RewardCallerSession) RewardsGenesisTime() (*big.Int, error)

RewardsGenesisTime is a free data retrieval call binding the contract method 0x7f2842b4.

Solidity: function rewardsGenesisTime() view returns(uint256)

func (*RewardCallerSession) SupportsInterface

func (_Reward *RewardCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*RewardCallerSession) VehicleIdLastRewardTime

func (_Reward *RewardCallerSession) VehicleIdLastRewardTime(arg0 *big.Int) (*big.Int, error)

VehicleIdLastRewardTime is a free data retrieval call binding the contract method 0xdf959d01.

Solidity: function vehicleIdLastRewardTime(uint256 ) view returns(uint256)

func (*RewardCallerSession) VehicleNodeType

func (_Reward *RewardCallerSession) VehicleNodeType() (*big.Int, error)

VehicleNodeType is a free data retrieval call binding the contract method 0x38195d0a.

Solidity: function vehicleNodeType() view returns(uint256)

type RewardDidntQualify

type RewardDidntQualify struct {
	User          common.Address
	Amount        *big.Int
	VehicleNodeId *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

RewardDidntQualify represents a DidntQualify event raised by the Reward contract.

type RewardDidntQualifyIterator

type RewardDidntQualifyIterator struct {
	Event *RewardDidntQualify // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardDidntQualifyIterator is returned from FilterDidntQualify and is used to iterate over the raw logs and unpacked data for DidntQualify events raised by the Reward contract.

func (*RewardDidntQualifyIterator) Close

func (it *RewardDidntQualifyIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardDidntQualifyIterator) Error

func (it *RewardDidntQualifyIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardDidntQualifyIterator) Next

func (it *RewardDidntQualifyIterator) 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 RewardFilterer

type RewardFilterer struct {
	// contains filtered or unexported fields
}

RewardFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewRewardFilterer

func NewRewardFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardFilterer, error)

NewRewardFilterer creates a new log filterer instance of Reward, bound to a specific deployed contract.

func (*RewardFilterer) FilterAdminChanged

func (_Reward *RewardFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*RewardAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*RewardFilterer) FilterAdminWithdrawal

func (_Reward *RewardFilterer) FilterAdminWithdrawal(opts *bind.FilterOpts, user []common.Address) (*RewardAdminWithdrawalIterator, error)

FilterAdminWithdrawal is a free log retrieval operation binding the contract event 0x1f29bc8239df330207e019f41493b485f9c7d3ce83a795ae64603dde527ada2e.

Solidity: event AdminWithdrawal(address indexed user, uint256 _amount)

func (*RewardFilterer) FilterBeaconUpgraded

func (_Reward *RewardFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*RewardBeaconUpgradedIterator, error)

FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*RewardFilterer) FilterDidntQualify

func (_Reward *RewardFilterer) FilterDidntQualify(opts *bind.FilterOpts, user []common.Address, vehicleNodeId []*big.Int) (*RewardDidntQualifyIterator, error)

FilterDidntQualify is a free log retrieval operation binding the contract event 0xf667cbbd740351d2f58b68dc6a8ee1b1f3a853c609d7ce7eee4a3bdc94d62774.

Solidity: event DidntQualify(address indexed user, uint256 _amount, uint256 indexed vehicleNodeId)

func (*RewardFilterer) FilterInitialized

func (_Reward *RewardFilterer) FilterInitialized(opts *bind.FilterOpts) (*RewardInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RewardFilterer) FilterRoleAdminChanged

func (_Reward *RewardFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*RewardRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RewardFilterer) FilterRoleGranted

func (_Reward *RewardFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*RewardRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*RewardFilterer) FilterRoleRevoked

func (_Reward *RewardFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*RewardRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*RewardFilterer) FilterTokensTransferred

func (_Reward *RewardFilterer) FilterTokensTransferred(opts *bind.FilterOpts, user []common.Address, vehicleNodeId []*big.Int) (*RewardTokensTransferredIterator, error)

FilterTokensTransferred is a free log retrieval operation binding the contract event 0x57e1000ba5ba7b6ab6670639de9fc3db34d05ef2bbce4a09d60dda560387b0ea.

Solidity: event TokensTransferred(address indexed user, uint256 _amount, uint256 indexed vehicleNodeId)

func (*RewardFilterer) FilterUpgraded

func (_Reward *RewardFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*RewardUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*RewardFilterer) ParseAdminChanged

func (_Reward *RewardFilterer) ParseAdminChanged(log types.Log) (*RewardAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*RewardFilterer) ParseAdminWithdrawal

func (_Reward *RewardFilterer) ParseAdminWithdrawal(log types.Log) (*RewardAdminWithdrawal, error)

ParseAdminWithdrawal is a log parse operation binding the contract event 0x1f29bc8239df330207e019f41493b485f9c7d3ce83a795ae64603dde527ada2e.

Solidity: event AdminWithdrawal(address indexed user, uint256 _amount)

func (*RewardFilterer) ParseBeaconUpgraded

func (_Reward *RewardFilterer) ParseBeaconUpgraded(log types.Log) (*RewardBeaconUpgraded, error)

ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*RewardFilterer) ParseDidntQualify

func (_Reward *RewardFilterer) ParseDidntQualify(log types.Log) (*RewardDidntQualify, error)

ParseDidntQualify is a log parse operation binding the contract event 0xf667cbbd740351d2f58b68dc6a8ee1b1f3a853c609d7ce7eee4a3bdc94d62774.

Solidity: event DidntQualify(address indexed user, uint256 _amount, uint256 indexed vehicleNodeId)

func (*RewardFilterer) ParseInitialized

func (_Reward *RewardFilterer) ParseInitialized(log types.Log) (*RewardInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RewardFilterer) ParseRoleAdminChanged

func (_Reward *RewardFilterer) ParseRoleAdminChanged(log types.Log) (*RewardRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RewardFilterer) ParseRoleGranted

func (_Reward *RewardFilterer) ParseRoleGranted(log types.Log) (*RewardRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*RewardFilterer) ParseRoleRevoked

func (_Reward *RewardFilterer) ParseRoleRevoked(log types.Log) (*RewardRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*RewardFilterer) ParseTokensTransferred

func (_Reward *RewardFilterer) ParseTokensTransferred(log types.Log) (*RewardTokensTransferred, error)

ParseTokensTransferred is a log parse operation binding the contract event 0x57e1000ba5ba7b6ab6670639de9fc3db34d05ef2bbce4a09d60dda560387b0ea.

Solidity: event TokensTransferred(address indexed user, uint256 _amount, uint256 indexed vehicleNodeId)

func (*RewardFilterer) ParseUpgraded

func (_Reward *RewardFilterer) ParseUpgraded(log types.Log) (*RewardUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*RewardFilterer) WatchAdminChanged

func (_Reward *RewardFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *RewardAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*RewardFilterer) WatchAdminWithdrawal

func (_Reward *RewardFilterer) WatchAdminWithdrawal(opts *bind.WatchOpts, sink chan<- *RewardAdminWithdrawal, user []common.Address) (event.Subscription, error)

WatchAdminWithdrawal is a free log subscription operation binding the contract event 0x1f29bc8239df330207e019f41493b485f9c7d3ce83a795ae64603dde527ada2e.

Solidity: event AdminWithdrawal(address indexed user, uint256 _amount)

func (*RewardFilterer) WatchBeaconUpgraded

func (_Reward *RewardFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *RewardBeaconUpgraded, 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 (*RewardFilterer) WatchDidntQualify

func (_Reward *RewardFilterer) WatchDidntQualify(opts *bind.WatchOpts, sink chan<- *RewardDidntQualify, user []common.Address, vehicleNodeId []*big.Int) (event.Subscription, error)

WatchDidntQualify is a free log subscription operation binding the contract event 0xf667cbbd740351d2f58b68dc6a8ee1b1f3a853c609d7ce7eee4a3bdc94d62774.

Solidity: event DidntQualify(address indexed user, uint256 _amount, uint256 indexed vehicleNodeId)

func (*RewardFilterer) WatchInitialized

func (_Reward *RewardFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *RewardInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RewardFilterer) WatchRoleAdminChanged

func (_Reward *RewardFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *RewardRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RewardFilterer) WatchRoleGranted

func (_Reward *RewardFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *RewardRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*RewardFilterer) WatchRoleRevoked

func (_Reward *RewardFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *RewardRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*RewardFilterer) WatchTokensTransferred

func (_Reward *RewardFilterer) WatchTokensTransferred(opts *bind.WatchOpts, sink chan<- *RewardTokensTransferred, user []common.Address, vehicleNodeId []*big.Int) (event.Subscription, error)

WatchTokensTransferred is a free log subscription operation binding the contract event 0x57e1000ba5ba7b6ab6670639de9fc3db34d05ef2bbce4a09d60dda560387b0ea.

Solidity: event TokensTransferred(address indexed user, uint256 _amount, uint256 indexed vehicleNodeId)

func (*RewardFilterer) WatchUpgraded

func (_Reward *RewardFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *RewardUpgraded, 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 RewardInitialized

type RewardInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

RewardInitialized represents a Initialized event raised by the Reward contract.

type RewardInitializedIterator

type RewardInitializedIterator struct {
	Event *RewardInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Reward contract.

func (*RewardInitializedIterator) Close

func (it *RewardInitializedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardInitializedIterator) Error

func (it *RewardInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardInitializedIterator) Next

func (it *RewardInitializedIterator) 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 RewardRaw

type RewardRaw struct {
	Contract *Reward // Generic contract binding to access the raw methods on
}

RewardRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*RewardRaw) Call

func (_Reward *RewardRaw) 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 (*RewardRaw) Transact

func (_Reward *RewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RewardRaw) Transfer

func (_Reward *RewardRaw) 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 RewardRoleAdminChanged

type RewardRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

RewardRoleAdminChanged represents a RoleAdminChanged event raised by the Reward contract.

type RewardRoleAdminChangedIterator

type RewardRoleAdminChangedIterator struct {
	Event *RewardRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Reward contract.

func (*RewardRoleAdminChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardRoleAdminChangedIterator) Next

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 RewardRoleGranted

type RewardRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

RewardRoleGranted represents a RoleGranted event raised by the Reward contract.

type RewardRoleGrantedIterator

type RewardRoleGrantedIterator struct {
	Event *RewardRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Reward contract.

func (*RewardRoleGrantedIterator) Close

func (it *RewardRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardRoleGrantedIterator) Error

func (it *RewardRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardRoleGrantedIterator) Next

func (it *RewardRoleGrantedIterator) 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 RewardRoleRevoked

type RewardRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

RewardRoleRevoked represents a RoleRevoked event raised by the Reward contract.

type RewardRoleRevokedIterator

type RewardRoleRevokedIterator struct {
	Event *RewardRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Reward contract.

func (*RewardRoleRevokedIterator) Close

func (it *RewardRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardRoleRevokedIterator) Error

func (it *RewardRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardRoleRevokedIterator) Next

func (it *RewardRoleRevokedIterator) 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 RewardSession

type RewardSession struct {
	Contract     *Reward           // 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
}

RewardSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*RewardSession) AdminWithdraw

func (_Reward *RewardSession) AdminWithdraw(user common.Address, amount *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0x401d4482.

Solidity: function adminWithdraw(address user, uint256 amount) returns()

func (*RewardSession) BatchTransfer

func (_Reward *RewardSession) BatchTransfer(users []common.Address, values []*big.Int, vehicleIds []*big.Int) (*types.Transaction, error)

BatchTransfer is a paid mutator transaction binding the contract method 0x1ef690c4.

Solidity: function batchTransfer(address[] users, uint256[] values, uint256[] vehicleIds) returns()

func (*RewardSession) CalculateWeeklyLimit

func (_Reward *RewardSession) CalculateWeeklyLimit() (*big.Int, error)

CalculateWeeklyLimit is a free data retrieval call binding the contract method 0x60e1f139.

Solidity: function calculateWeeklyLimit() view returns(uint256 maxRewards)

func (*RewardSession) CurrentWeek

func (_Reward *RewardSession) CurrentWeek() (*big.Int, error)

CurrentWeek is a free data retrieval call binding the contract method 0x06575c89.

Solidity: function currentWeek() view returns(uint256)

func (*RewardSession) CurrentWeekLimit

func (_Reward *RewardSession) CurrentWeekLimit() (*big.Int, error)

CurrentWeekLimit is a free data retrieval call binding the contract method 0x9cb12ca2.

Solidity: function currentWeekLimit() view returns(uint256)

func (*RewardSession) CurrentWeekSpent

func (_Reward *RewardSession) CurrentWeekSpent() (*big.Int, error)

CurrentWeekSpent is a free data retrieval call binding the contract method 0x7802674d.

Solidity: function currentWeekSpent() view returns(uint256)

func (*RewardSession) DEFAULTADMINROLE

func (_Reward *RewardSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RewardSession) DimoTotalSentOutByContract

func (_Reward *RewardSession) DimoTotalSentOutByContract() (*big.Int, error)

DimoTotalSentOutByContract is a free data retrieval call binding the contract method 0x7f350fea.

Solidity: function dimoTotalSentOutByContract() view returns(uint256)

func (*RewardSession) GetRoleAdmin

func (_Reward *RewardSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*RewardSession) GrantRole

func (_Reward *RewardSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*RewardSession) HasRole

func (_Reward *RewardSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*RewardSession) InitialWeeklyLimit

func (_Reward *RewardSession) InitialWeeklyLimit() (*big.Int, error)

InitialWeeklyLimit is a free data retrieval call binding the contract method 0x611fbc96.

Solidity: function initialWeeklyLimit() view returns(uint256)

func (*RewardSession) Initialize

func (_Reward *RewardSession) Initialize(tokenAddress common.Address, registryContractAddress common.Address, registryVehicleNodeType *big.Int, sanctionsContractAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xbe203094.

Solidity: function initialize(address tokenAddress, address registryContractAddress, uint256 registryVehicleNodeType, address sanctionsContractAddress) returns()

func (*RewardSession) MinimumTimeForRewards

func (_Reward *RewardSession) MinimumTimeForRewards() (*big.Int, error)

MinimumTimeForRewards is a free data retrieval call binding the contract method 0x9084025e.

Solidity: function minimumTimeForRewards() view returns(uint256)

func (*RewardSession) ORACLEROLE

func (_Reward *RewardSession) ORACLEROLE() ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*RewardSession) ProxiableUUID

func (_Reward *RewardSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*RewardSession) RenounceRole

func (_Reward *RewardSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*RewardSession) RevokeRole

func (_Reward *RewardSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*RewardSession) RewardsGenesisTime

func (_Reward *RewardSession) RewardsGenesisTime() (*big.Int, error)

RewardsGenesisTime is a free data retrieval call binding the contract method 0x7f2842b4.

Solidity: function rewardsGenesisTime() view returns(uint256)

func (*RewardSession) SetMinimumTimeForRewards

func (_Reward *RewardSession) SetMinimumTimeForRewards(newTimeInSeconds *big.Int) (*types.Transaction, error)

SetMinimumTimeForRewards is a paid mutator transaction binding the contract method 0x066404a7.

Solidity: function setMinimumTimeForRewards(uint256 newTimeInSeconds) returns()

func (*RewardSession) SupportsInterface

func (_Reward *RewardSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*RewardSession) UpdateWeek

func (_Reward *RewardSession) UpdateWeek(forceUpdate bool) (*types.Transaction, error)

UpdateWeek is a paid mutator transaction binding the contract method 0xdf919960.

Solidity: function updateWeek(bool forceUpdate) returns()

func (*RewardSession) UpgradeTo

func (_Reward *RewardSession) 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 (*RewardSession) UpgradeToAndCall

func (_Reward *RewardSession) 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()

func (*RewardSession) VehicleIdLastRewardTime

func (_Reward *RewardSession) VehicleIdLastRewardTime(arg0 *big.Int) (*big.Int, error)

VehicleIdLastRewardTime is a free data retrieval call binding the contract method 0xdf959d01.

Solidity: function vehicleIdLastRewardTime(uint256 ) view returns(uint256)

func (*RewardSession) VehicleNodeType

func (_Reward *RewardSession) VehicleNodeType() (*big.Int, error)

VehicleNodeType is a free data retrieval call binding the contract method 0x38195d0a.

Solidity: function vehicleNodeType() view returns(uint256)

type RewardTokensTransferred

type RewardTokensTransferred struct {
	User          common.Address
	Amount        *big.Int
	VehicleNodeId *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

RewardTokensTransferred represents a TokensTransferred event raised by the Reward contract.

type RewardTokensTransferredIterator

type RewardTokensTransferredIterator struct {
	Event *RewardTokensTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardTokensTransferredIterator is returned from FilterTokensTransferred and is used to iterate over the raw logs and unpacked data for TokensTransferred events raised by the Reward contract.

func (*RewardTokensTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardTokensTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardTokensTransferredIterator) Next

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 RewardTransactor

type RewardTransactor struct {
	// contains filtered or unexported fields
}

RewardTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewRewardTransactor

func NewRewardTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardTransactor, error)

NewRewardTransactor creates a new write-only instance of Reward, bound to a specific deployed contract.

func (*RewardTransactor) AdminWithdraw

func (_Reward *RewardTransactor) AdminWithdraw(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0x401d4482.

Solidity: function adminWithdraw(address user, uint256 amount) returns()

func (*RewardTransactor) BatchTransfer

func (_Reward *RewardTransactor) BatchTransfer(opts *bind.TransactOpts, users []common.Address, values []*big.Int, vehicleIds []*big.Int) (*types.Transaction, error)

BatchTransfer is a paid mutator transaction binding the contract method 0x1ef690c4.

Solidity: function batchTransfer(address[] users, uint256[] values, uint256[] vehicleIds) returns()

func (*RewardTransactor) GrantRole

func (_Reward *RewardTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*RewardTransactor) Initialize

func (_Reward *RewardTransactor) Initialize(opts *bind.TransactOpts, tokenAddress common.Address, registryContractAddress common.Address, registryVehicleNodeType *big.Int, sanctionsContractAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xbe203094.

Solidity: function initialize(address tokenAddress, address registryContractAddress, uint256 registryVehicleNodeType, address sanctionsContractAddress) returns()

func (*RewardTransactor) RenounceRole

func (_Reward *RewardTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*RewardTransactor) RevokeRole

func (_Reward *RewardTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*RewardTransactor) SetMinimumTimeForRewards

func (_Reward *RewardTransactor) SetMinimumTimeForRewards(opts *bind.TransactOpts, newTimeInSeconds *big.Int) (*types.Transaction, error)

SetMinimumTimeForRewards is a paid mutator transaction binding the contract method 0x066404a7.

Solidity: function setMinimumTimeForRewards(uint256 newTimeInSeconds) returns()

func (*RewardTransactor) UpdateWeek

func (_Reward *RewardTransactor) UpdateWeek(opts *bind.TransactOpts, forceUpdate bool) (*types.Transaction, error)

UpdateWeek is a paid mutator transaction binding the contract method 0xdf919960.

Solidity: function updateWeek(bool forceUpdate) returns()

func (*RewardTransactor) UpgradeTo

func (_Reward *RewardTransactor) 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 (*RewardTransactor) UpgradeToAndCall

func (_Reward *RewardTransactor) 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 RewardTransactorRaw

type RewardTransactorRaw struct {
	Contract *RewardTransactor // Generic write-only contract binding to access the raw methods on
}

RewardTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*RewardTransactorRaw) Transact

func (_Reward *RewardTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RewardTransactorRaw) Transfer

func (_Reward *RewardTransactorRaw) 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 RewardTransactorSession

type RewardTransactorSession struct {
	Contract     *RewardTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RewardTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*RewardTransactorSession) AdminWithdraw

func (_Reward *RewardTransactorSession) AdminWithdraw(user common.Address, amount *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0x401d4482.

Solidity: function adminWithdraw(address user, uint256 amount) returns()

func (*RewardTransactorSession) BatchTransfer

func (_Reward *RewardTransactorSession) BatchTransfer(users []common.Address, values []*big.Int, vehicleIds []*big.Int) (*types.Transaction, error)

BatchTransfer is a paid mutator transaction binding the contract method 0x1ef690c4.

Solidity: function batchTransfer(address[] users, uint256[] values, uint256[] vehicleIds) returns()

func (*RewardTransactorSession) GrantRole

func (_Reward *RewardTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*RewardTransactorSession) Initialize

func (_Reward *RewardTransactorSession) Initialize(tokenAddress common.Address, registryContractAddress common.Address, registryVehicleNodeType *big.Int, sanctionsContractAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xbe203094.

Solidity: function initialize(address tokenAddress, address registryContractAddress, uint256 registryVehicleNodeType, address sanctionsContractAddress) returns()

func (*RewardTransactorSession) RenounceRole

func (_Reward *RewardTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*RewardTransactorSession) RevokeRole

func (_Reward *RewardTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*RewardTransactorSession) SetMinimumTimeForRewards

func (_Reward *RewardTransactorSession) SetMinimumTimeForRewards(newTimeInSeconds *big.Int) (*types.Transaction, error)

SetMinimumTimeForRewards is a paid mutator transaction binding the contract method 0x066404a7.

Solidity: function setMinimumTimeForRewards(uint256 newTimeInSeconds) returns()

func (*RewardTransactorSession) UpdateWeek

func (_Reward *RewardTransactorSession) UpdateWeek(forceUpdate bool) (*types.Transaction, error)

UpdateWeek is a paid mutator transaction binding the contract method 0xdf919960.

Solidity: function updateWeek(bool forceUpdate) returns()

func (*RewardTransactorSession) UpgradeTo

func (_Reward *RewardTransactorSession) 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 (*RewardTransactorSession) UpgradeToAndCall

func (_Reward *RewardTransactorSession) 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 RewardUpgraded

type RewardUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

RewardUpgraded represents a Upgraded event raised by the Reward contract.

type RewardUpgradedIterator

type RewardUpgradedIterator struct {
	Event *RewardUpgraded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Reward contract.

func (*RewardUpgradedIterator) Close

func (it *RewardUpgradedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardUpgradedIterator) Error

func (it *RewardUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardUpgradedIterator) Next

func (it *RewardUpgradedIterator) 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 Token added in v1.0.8

type Token struct {
	TokenCaller     // Read-only binding to the contract
	TokenTransactor // Write-only binding to the contract
	TokenFilterer   // Log filterer for contract events
}

Token is an auto generated Go binding around an Ethereum contract.

func NewToken added in v1.0.8

func NewToken(address common.Address, backend bind.ContractBackend) (*Token, error)

NewToken creates a new instance of Token, bound to a specific deployed contract.

type TokenAdminChanged added in v1.5.0

type TokenAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

TokenAdminChanged represents a AdminChanged event raised by the Token contract.

type TokenAdminChangedIterator added in v1.5.0

type TokenAdminChangedIterator struct {
	Event *TokenAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Token contract.

func (*TokenAdminChangedIterator) Close added in v1.5.0

func (it *TokenAdminChangedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenAdminChangedIterator) Error added in v1.5.0

func (it *TokenAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenAdminChangedIterator) Next added in v1.5.0

func (it *TokenAdminChangedIterator) 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 TokenApproval added in v1.5.0

type TokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TokenApproval represents a Approval event raised by the Token contract.

type TokenApprovalIterator added in v1.5.0

type TokenApprovalIterator struct {
	Event *TokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.

func (*TokenApprovalIterator) Close added in v1.5.0

func (it *TokenApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenApprovalIterator) Error added in v1.5.0

func (it *TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenApprovalIterator) Next added in v1.5.0

func (it *TokenApprovalIterator) 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 TokenBeaconUpgraded added in v1.5.0

type TokenBeaconUpgraded struct {
	Beacon common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

TokenBeaconUpgraded represents a BeaconUpgraded event raised by the Token contract.

type TokenBeaconUpgradedIterator added in v1.5.0

type TokenBeaconUpgradedIterator struct {
	Event *TokenBeaconUpgraded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Token contract.

func (*TokenBeaconUpgradedIterator) Close added in v1.5.0

func (it *TokenBeaconUpgradedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenBeaconUpgradedIterator) Error added in v1.5.0

func (it *TokenBeaconUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenBeaconUpgradedIterator) Next added in v1.5.0

func (it *TokenBeaconUpgradedIterator) 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 TokenCaller added in v1.0.8

type TokenCaller struct {
	// contains filtered or unexported fields
}

TokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewTokenCaller added in v1.0.8

func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)

NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.

func (*TokenCaller) Allowance added in v1.5.0

func (_Token *TokenCaller) 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 (*TokenCaller) BURNERROLE added in v1.5.0

func (_Token *TokenCaller) BURNERROLE(opts *bind.CallOpts) ([32]byte, error)

BURNERROLE is a free data retrieval call binding the contract method 0x282c51f3.

Solidity: function BURNER_ROLE() view returns(bytes32)

func (*TokenCaller) BalanceOf added in v1.0.8

func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*TokenCaller) Checkpoints added in v1.5.0

func (_Token *TokenCaller) Checkpoints(opts *bind.CallOpts, account common.Address, pos uint32) (ERC20VotesUpgradeableCheckpoint, error)

Checkpoints is a free data retrieval call binding the contract method 0xf1127ed8.

Solidity: function checkpoints(address account, uint32 pos) view returns((uint32,uint224))

func (*TokenCaller) DEFAULTADMINROLE added in v1.5.0

func (_Token *TokenCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*TokenCaller) DEPOSITORROLE added in v1.5.0

func (_Token *TokenCaller) DEPOSITORROLE(opts *bind.CallOpts) ([32]byte, error)

DEPOSITORROLE is a free data retrieval call binding the contract method 0xa3b0b5a3.

Solidity: function DEPOSITOR_ROLE() view returns(bytes32)

func (*TokenCaller) DOMAINSEPARATOR added in v1.5.0

func (_Token *TokenCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*TokenCaller) Decimals added in v1.5.0

func (_Token *TokenCaller) 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 (*TokenCaller) Delegates added in v1.5.0

func (_Token *TokenCaller) Delegates(opts *bind.CallOpts, account common.Address) (common.Address, error)

Delegates is a free data retrieval call binding the contract method 0x587cde1e.

Solidity: function delegates(address account) view returns(address)

func (*TokenCaller) GetPastTotalSupply added in v1.5.0

func (_Token *TokenCaller) GetPastTotalSupply(opts *bind.CallOpts, blockNumber *big.Int) (*big.Int, error)

GetPastTotalSupply is a free data retrieval call binding the contract method 0x8e539e8c.

Solidity: function getPastTotalSupply(uint256 blockNumber) view returns(uint256)

func (*TokenCaller) GetPastVotes added in v1.5.0

func (_Token *TokenCaller) GetPastVotes(opts *bind.CallOpts, account common.Address, blockNumber *big.Int) (*big.Int, error)

GetPastVotes is a free data retrieval call binding the contract method 0x3a46b1a8.

Solidity: function getPastVotes(address account, uint256 blockNumber) view returns(uint256)

func (*TokenCaller) GetRoleAdmin added in v1.5.0

func (_Token *TokenCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*TokenCaller) GetVotes added in v1.5.0

func (_Token *TokenCaller) GetVotes(opts *bind.CallOpts, account common.Address) (*big.Int, error)

GetVotes is a free data retrieval call binding the contract method 0x9ab24eb0.

Solidity: function getVotes(address account) view returns(uint256)

func (*TokenCaller) HasRole added in v1.5.0

func (_Token *TokenCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*TokenCaller) MINTERROLE added in v1.5.0

func (_Token *TokenCaller) MINTERROLE(opts *bind.CallOpts) ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*TokenCaller) Name added in v1.5.0

func (_Token *TokenCaller) 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 (*TokenCaller) Nonces added in v1.5.0

func (_Token *TokenCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*TokenCaller) NumCheckpoints added in v1.5.0

func (_Token *TokenCaller) NumCheckpoints(opts *bind.CallOpts, account common.Address) (uint32, error)

NumCheckpoints is a free data retrieval call binding the contract method 0x6fcfff45.

Solidity: function numCheckpoints(address account) view returns(uint32)

func (*TokenCaller) PAUSERROLE added in v1.5.0

func (_Token *TokenCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*TokenCaller) Paused added in v1.5.0

func (_Token *TokenCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*TokenCaller) ProxiableUUID added in v1.5.0

func (_Token *TokenCaller) 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 (*TokenCaller) SupportsInterface added in v1.5.0

func (_Token *TokenCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)

func (*TokenCaller) Symbol added in v1.5.0

func (_Token *TokenCaller) 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 (*TokenCaller) TotalSupply added in v1.5.0

func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*TokenCaller) UPGRADERROLE added in v1.5.0

func (_Token *TokenCaller) UPGRADERROLE(opts *bind.CallOpts) ([32]byte, error)

UPGRADERROLE is a free data retrieval call binding the contract method 0xf72c0d8b.

Solidity: function UPGRADER_ROLE() view returns(bytes32)

type TokenCallerRaw added in v1.0.8

type TokenCallerRaw struct {
	Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}

TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*TokenCallerRaw) Call added in v1.0.8

func (_Token *TokenCallerRaw) 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 TokenCallerSession added in v1.0.8

type TokenCallerSession struct {
	Contract *TokenCaller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*TokenCallerSession) Allowance added in v1.5.0

func (_Token *TokenCallerSession) 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 (*TokenCallerSession) BURNERROLE added in v1.5.0

func (_Token *TokenCallerSession) BURNERROLE() ([32]byte, error)

BURNERROLE is a free data retrieval call binding the contract method 0x282c51f3.

Solidity: function BURNER_ROLE() view returns(bytes32)

func (*TokenCallerSession) BalanceOf added in v1.0.8

func (_Token *TokenCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*TokenCallerSession) Checkpoints added in v1.5.0

func (_Token *TokenCallerSession) Checkpoints(account common.Address, pos uint32) (ERC20VotesUpgradeableCheckpoint, error)

Checkpoints is a free data retrieval call binding the contract method 0xf1127ed8.

Solidity: function checkpoints(address account, uint32 pos) view returns((uint32,uint224))

func (*TokenCallerSession) DEFAULTADMINROLE added in v1.5.0

func (_Token *TokenCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*TokenCallerSession) DEPOSITORROLE added in v1.5.0

func (_Token *TokenCallerSession) DEPOSITORROLE() ([32]byte, error)

DEPOSITORROLE is a free data retrieval call binding the contract method 0xa3b0b5a3.

Solidity: function DEPOSITOR_ROLE() view returns(bytes32)

func (*TokenCallerSession) DOMAINSEPARATOR added in v1.5.0

func (_Token *TokenCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*TokenCallerSession) Decimals added in v1.5.0

func (_Token *TokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenCallerSession) Delegates added in v1.5.0

func (_Token *TokenCallerSession) Delegates(account common.Address) (common.Address, error)

Delegates is a free data retrieval call binding the contract method 0x587cde1e.

Solidity: function delegates(address account) view returns(address)

func (*TokenCallerSession) GetPastTotalSupply added in v1.5.0

func (_Token *TokenCallerSession) GetPastTotalSupply(blockNumber *big.Int) (*big.Int, error)

GetPastTotalSupply is a free data retrieval call binding the contract method 0x8e539e8c.

Solidity: function getPastTotalSupply(uint256 blockNumber) view returns(uint256)

func (*TokenCallerSession) GetPastVotes added in v1.5.0

func (_Token *TokenCallerSession) GetPastVotes(account common.Address, blockNumber *big.Int) (*big.Int, error)

GetPastVotes is a free data retrieval call binding the contract method 0x3a46b1a8.

Solidity: function getPastVotes(address account, uint256 blockNumber) view returns(uint256)

func (*TokenCallerSession) GetRoleAdmin added in v1.5.0

func (_Token *TokenCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*TokenCallerSession) GetVotes added in v1.5.0

func (_Token *TokenCallerSession) GetVotes(account common.Address) (*big.Int, error)

GetVotes is a free data retrieval call binding the contract method 0x9ab24eb0.

Solidity: function getVotes(address account) view returns(uint256)

func (*TokenCallerSession) HasRole added in v1.5.0

func (_Token *TokenCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*TokenCallerSession) MINTERROLE added in v1.5.0

func (_Token *TokenCallerSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*TokenCallerSession) Name added in v1.5.0

func (_Token *TokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*TokenCallerSession) Nonces added in v1.5.0

func (_Token *TokenCallerSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*TokenCallerSession) NumCheckpoints added in v1.5.0

func (_Token *TokenCallerSession) NumCheckpoints(account common.Address) (uint32, error)

NumCheckpoints is a free data retrieval call binding the contract method 0x6fcfff45.

Solidity: function numCheckpoints(address account) view returns(uint32)

func (*TokenCallerSession) PAUSERROLE added in v1.5.0

func (_Token *TokenCallerSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*TokenCallerSession) Paused added in v1.5.0

func (_Token *TokenCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*TokenCallerSession) ProxiableUUID added in v1.5.0

func (_Token *TokenCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*TokenCallerSession) SupportsInterface added in v1.5.0

func (_Token *TokenCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)

func (*TokenCallerSession) Symbol added in v1.5.0

func (_Token *TokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*TokenCallerSession) TotalSupply added in v1.5.0

func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*TokenCallerSession) UPGRADERROLE added in v1.5.0

func (_Token *TokenCallerSession) UPGRADERROLE() ([32]byte, error)

UPGRADERROLE is a free data retrieval call binding the contract method 0xf72c0d8b.

Solidity: function UPGRADER_ROLE() view returns(bytes32)

type TokenDelegateChanged added in v1.5.0

type TokenDelegateChanged struct {
	Delegator    common.Address
	FromDelegate common.Address
	ToDelegate   common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

TokenDelegateChanged represents a DelegateChanged event raised by the Token contract.

type TokenDelegateChangedIterator added in v1.5.0

type TokenDelegateChangedIterator struct {
	Event *TokenDelegateChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenDelegateChangedIterator is returned from FilterDelegateChanged and is used to iterate over the raw logs and unpacked data for DelegateChanged events raised by the Token contract.

func (*TokenDelegateChangedIterator) Close added in v1.5.0

func (it *TokenDelegateChangedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenDelegateChangedIterator) Error added in v1.5.0

func (it *TokenDelegateChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenDelegateChangedIterator) Next added in v1.5.0

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 TokenDelegateVotesChanged added in v1.5.0

type TokenDelegateVotesChanged struct {
	Delegate        common.Address
	PreviousBalance *big.Int
	NewBalance      *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

TokenDelegateVotesChanged represents a DelegateVotesChanged event raised by the Token contract.

type TokenDelegateVotesChangedIterator added in v1.5.0

type TokenDelegateVotesChangedIterator struct {
	Event *TokenDelegateVotesChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenDelegateVotesChangedIterator is returned from FilterDelegateVotesChanged and is used to iterate over the raw logs and unpacked data for DelegateVotesChanged events raised by the Token contract.

func (*TokenDelegateVotesChangedIterator) Close added in v1.5.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenDelegateVotesChangedIterator) Error added in v1.5.0

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenDelegateVotesChangedIterator) Next added in v1.5.0

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 TokenFilterer added in v1.0.8

type TokenFilterer struct {
	// contains filtered or unexported fields
}

TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewTokenFilterer added in v1.0.8

func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)

NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.

func (*TokenFilterer) FilterAdminChanged added in v1.5.0

func (_Token *TokenFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*TokenAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*TokenFilterer) FilterApproval added in v1.5.0

func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, 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 (*TokenFilterer) FilterBeaconUpgraded added in v1.5.0

func (_Token *TokenFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*TokenBeaconUpgradedIterator, error)

FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*TokenFilterer) FilterDelegateChanged added in v1.5.0

func (_Token *TokenFilterer) FilterDelegateChanged(opts *bind.FilterOpts, delegator []common.Address, fromDelegate []common.Address, toDelegate []common.Address) (*TokenDelegateChangedIterator, error)

FilterDelegateChanged is a free log retrieval operation binding the contract event 0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f.

Solidity: event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)

func (*TokenFilterer) FilterDelegateVotesChanged added in v1.5.0

func (_Token *TokenFilterer) FilterDelegateVotesChanged(opts *bind.FilterOpts, delegate []common.Address) (*TokenDelegateVotesChangedIterator, error)

FilterDelegateVotesChanged is a free log retrieval operation binding the contract event 0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724.

Solidity: event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)

func (*TokenFilterer) FilterInitialized added in v1.5.0

func (_Token *TokenFilterer) FilterInitialized(opts *bind.FilterOpts) (*TokenInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*TokenFilterer) FilterPaused added in v1.5.0

func (_Token *TokenFilterer) FilterPaused(opts *bind.FilterOpts) (*TokenPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*TokenFilterer) FilterRoleAdminChanged added in v1.5.0

func (_Token *TokenFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*TokenRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*TokenFilterer) FilterRoleGranted added in v1.5.0

func (_Token *TokenFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*TokenRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenFilterer) FilterRoleRevoked added in v1.5.0

func (_Token *TokenFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*TokenRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenFilterer) FilterTransfer added in v1.5.0

func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, 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 (*TokenFilterer) FilterUnpaused added in v1.5.0

func (_Token *TokenFilterer) FilterUnpaused(opts *bind.FilterOpts) (*TokenUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*TokenFilterer) FilterUpgraded added in v1.5.0

func (_Token *TokenFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*TokenUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*TokenFilterer) ParseAdminChanged added in v1.5.0

func (_Token *TokenFilterer) ParseAdminChanged(log types.Log) (*TokenAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*TokenFilterer) ParseApproval added in v1.5.0

func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenFilterer) ParseBeaconUpgraded added in v1.5.0

func (_Token *TokenFilterer) ParseBeaconUpgraded(log types.Log) (*TokenBeaconUpgraded, error)

ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*TokenFilterer) ParseDelegateChanged added in v1.5.0

func (_Token *TokenFilterer) ParseDelegateChanged(log types.Log) (*TokenDelegateChanged, error)

ParseDelegateChanged is a log parse operation binding the contract event 0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f.

Solidity: event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)

func (*TokenFilterer) ParseDelegateVotesChanged added in v1.5.0

func (_Token *TokenFilterer) ParseDelegateVotesChanged(log types.Log) (*TokenDelegateVotesChanged, error)

ParseDelegateVotesChanged is a log parse operation binding the contract event 0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724.

Solidity: event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)

func (*TokenFilterer) ParseInitialized added in v1.5.0

func (_Token *TokenFilterer) ParseInitialized(log types.Log) (*TokenInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*TokenFilterer) ParsePaused added in v1.5.0

func (_Token *TokenFilterer) ParsePaused(log types.Log) (*TokenPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*TokenFilterer) ParseRoleAdminChanged added in v1.5.0

func (_Token *TokenFilterer) ParseRoleAdminChanged(log types.Log) (*TokenRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*TokenFilterer) ParseRoleGranted added in v1.5.0

func (_Token *TokenFilterer) ParseRoleGranted(log types.Log) (*TokenRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenFilterer) ParseRoleRevoked added in v1.5.0

func (_Token *TokenFilterer) ParseRoleRevoked(log types.Log) (*TokenRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenFilterer) ParseTransfer added in v1.5.0

func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*TokenFilterer) ParseUnpaused added in v1.5.0

func (_Token *TokenFilterer) ParseUnpaused(log types.Log) (*TokenUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*TokenFilterer) ParseUpgraded added in v1.5.0

func (_Token *TokenFilterer) ParseUpgraded(log types.Log) (*TokenUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*TokenFilterer) WatchAdminChanged added in v1.5.0

func (_Token *TokenFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*TokenFilterer) WatchApproval added in v1.5.0

func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, 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 (*TokenFilterer) WatchBeaconUpgraded added in v1.5.0

func (_Token *TokenFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *TokenBeaconUpgraded, 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 (*TokenFilterer) WatchDelegateChanged added in v1.5.0

func (_Token *TokenFilterer) WatchDelegateChanged(opts *bind.WatchOpts, sink chan<- *TokenDelegateChanged, delegator []common.Address, fromDelegate []common.Address, toDelegate []common.Address) (event.Subscription, error)

WatchDelegateChanged is a free log subscription operation binding the contract event 0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f.

Solidity: event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)

func (*TokenFilterer) WatchDelegateVotesChanged added in v1.5.0

func (_Token *TokenFilterer) WatchDelegateVotesChanged(opts *bind.WatchOpts, sink chan<- *TokenDelegateVotesChanged, delegate []common.Address) (event.Subscription, error)

WatchDelegateVotesChanged is a free log subscription operation binding the contract event 0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724.

Solidity: event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)

func (*TokenFilterer) WatchInitialized added in v1.5.0

func (_Token *TokenFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *TokenInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*TokenFilterer) WatchPaused added in v1.5.0

func (_Token *TokenFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *TokenPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*TokenFilterer) WatchRoleAdminChanged added in v1.5.0

func (_Token *TokenFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*TokenFilterer) WatchRoleGranted added in v1.5.0

func (_Token *TokenFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *TokenRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenFilterer) WatchRoleRevoked added in v1.5.0

func (_Token *TokenFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *TokenRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenFilterer) WatchTransfer added in v1.5.0

func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, 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 (*TokenFilterer) WatchUnpaused added in v1.5.0

func (_Token *TokenFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *TokenUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*TokenFilterer) WatchUpgraded added in v1.5.0

func (_Token *TokenFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *TokenUpgraded, 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 TokenInitialized added in v1.5.0

type TokenInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

TokenInitialized represents a Initialized event raised by the Token contract.

type TokenInitializedIterator added in v1.5.0

type TokenInitializedIterator struct {
	Event *TokenInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Token contract.

func (*TokenInitializedIterator) Close added in v1.5.0

func (it *TokenInitializedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenInitializedIterator) Error added in v1.5.0

func (it *TokenInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenInitializedIterator) Next added in v1.5.0

func (it *TokenInitializedIterator) 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 TokenPaused added in v1.5.0

type TokenPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenPaused represents a Paused event raised by the Token contract.

type TokenPausedIterator added in v1.5.0

type TokenPausedIterator struct {
	Event *TokenPaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Token contract.

func (*TokenPausedIterator) Close added in v1.5.0

func (it *TokenPausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenPausedIterator) Error added in v1.5.0

func (it *TokenPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenPausedIterator) Next added in v1.5.0

func (it *TokenPausedIterator) 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 TokenRaw added in v1.0.8

type TokenRaw struct {
	Contract *Token // Generic contract binding to access the raw methods on
}

TokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*TokenRaw) Call added in v1.0.8

func (_Token *TokenRaw) 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 (*TokenRaw) Transact added in v1.0.8

func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TokenRaw) Transfer added in v1.0.8

func (_Token *TokenRaw) 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 TokenRoleAdminChanged added in v1.5.0

type TokenRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

TokenRoleAdminChanged represents a RoleAdminChanged event raised by the Token contract.

type TokenRoleAdminChangedIterator added in v1.5.0

type TokenRoleAdminChangedIterator struct {
	Event *TokenRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Token contract.

func (*TokenRoleAdminChangedIterator) Close added in v1.5.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenRoleAdminChangedIterator) Error added in v1.5.0

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenRoleAdminChangedIterator) Next added in v1.5.0

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 TokenRoleGranted added in v1.5.0

type TokenRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenRoleGranted represents a RoleGranted event raised by the Token contract.

type TokenRoleGrantedIterator added in v1.5.0

type TokenRoleGrantedIterator struct {
	Event *TokenRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Token contract.

func (*TokenRoleGrantedIterator) Close added in v1.5.0

func (it *TokenRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenRoleGrantedIterator) Error added in v1.5.0

func (it *TokenRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenRoleGrantedIterator) Next added in v1.5.0

func (it *TokenRoleGrantedIterator) 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 TokenRoleRevoked added in v1.5.0

type TokenRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenRoleRevoked represents a RoleRevoked event raised by the Token contract.

type TokenRoleRevokedIterator added in v1.5.0

type TokenRoleRevokedIterator struct {
	Event *TokenRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Token contract.

func (*TokenRoleRevokedIterator) Close added in v1.5.0

func (it *TokenRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenRoleRevokedIterator) Error added in v1.5.0

func (it *TokenRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenRoleRevokedIterator) Next added in v1.5.0

func (it *TokenRoleRevokedIterator) 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 TokenSession added in v1.0.8

type TokenSession struct {
	Contract     *Token            // 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
}

TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*TokenSession) Allowance added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) Approve added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) BURNERROLE added in v1.5.0

func (_Token *TokenSession) BURNERROLE() ([32]byte, error)

BURNERROLE is a free data retrieval call binding the contract method 0x282c51f3.

Solidity: function BURNER_ROLE() view returns(bytes32)

func (*TokenSession) BalanceOf added in v1.0.8

func (_Token *TokenSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*TokenSession) Burn added in v1.5.0

func (_Token *TokenSession) Burn(user common.Address, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x9dc29fac.

Solidity: function burn(address user, uint256 amount) returns()

func (*TokenSession) Checkpoints added in v1.5.0

func (_Token *TokenSession) Checkpoints(account common.Address, pos uint32) (ERC20VotesUpgradeableCheckpoint, error)

Checkpoints is a free data retrieval call binding the contract method 0xf1127ed8.

Solidity: function checkpoints(address account, uint32 pos) view returns((uint32,uint224))

func (*TokenSession) DEFAULTADMINROLE added in v1.5.0

func (_Token *TokenSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*TokenSession) DEPOSITORROLE added in v1.5.0

func (_Token *TokenSession) DEPOSITORROLE() ([32]byte, error)

DEPOSITORROLE is a free data retrieval call binding the contract method 0xa3b0b5a3.

Solidity: function DEPOSITOR_ROLE() view returns(bytes32)

func (*TokenSession) DOMAINSEPARATOR added in v1.5.0

func (_Token *TokenSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*TokenSession) Decimals added in v1.5.0

func (_Token *TokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenSession) DecreaseAllowance added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) Delegate added in v1.5.0

func (_Token *TokenSession) Delegate(delegatee common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.

Solidity: function delegate(address delegatee) returns()

func (*TokenSession) DelegateBySig added in v1.5.0

func (_Token *TokenSession) DelegateBySig(delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

DelegateBySig is a paid mutator transaction binding the contract method 0xc3cda520.

Solidity: function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) returns()

func (*TokenSession) Delegates added in v1.5.0

func (_Token *TokenSession) Delegates(account common.Address) (common.Address, error)

Delegates is a free data retrieval call binding the contract method 0x587cde1e.

Solidity: function delegates(address account) view returns(address)

func (*TokenSession) Deposit added in v1.5.0

func (_Token *TokenSession) Deposit(user common.Address, depositData []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xcf2c52cb.

Solidity: function deposit(address user, bytes depositData) returns()

func (*TokenSession) GetPastTotalSupply added in v1.5.0

func (_Token *TokenSession) GetPastTotalSupply(blockNumber *big.Int) (*big.Int, error)

GetPastTotalSupply is a free data retrieval call binding the contract method 0x8e539e8c.

Solidity: function getPastTotalSupply(uint256 blockNumber) view returns(uint256)

func (*TokenSession) GetPastVotes added in v1.5.0

func (_Token *TokenSession) GetPastVotes(account common.Address, blockNumber *big.Int) (*big.Int, error)

GetPastVotes is a free data retrieval call binding the contract method 0x3a46b1a8.

Solidity: function getPastVotes(address account, uint256 blockNumber) view returns(uint256)

func (*TokenSession) GetRoleAdmin added in v1.5.0

func (_Token *TokenSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*TokenSession) GetVotes added in v1.5.0

func (_Token *TokenSession) GetVotes(account common.Address) (*big.Int, error)

GetVotes is a free data retrieval call binding the contract method 0x9ab24eb0.

Solidity: function getVotes(address account) view returns(uint256)

func (*TokenSession) GrantRole added in v1.5.0

func (_Token *TokenSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*TokenSession) HasRole added in v1.5.0

func (_Token *TokenSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*TokenSession) IncreaseAllowance added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) MINTERROLE added in v1.5.0

func (_Token *TokenSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*TokenSession) Mint added in v1.5.0

func (_Token *TokenSession) Mint(user common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address user, uint256 amount) returns()

func (*TokenSession) Name added in v1.5.0

func (_Token *TokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*TokenSession) Nonces added in v1.5.0

func (_Token *TokenSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*TokenSession) NumCheckpoints added in v1.5.0

func (_Token *TokenSession) NumCheckpoints(account common.Address) (uint32, error)

NumCheckpoints is a free data retrieval call binding the contract method 0x6fcfff45.

Solidity: function numCheckpoints(address account) view returns(uint32)

func (*TokenSession) PAUSERROLE added in v1.5.0

func (_Token *TokenSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*TokenSession) Pause added in v1.5.0

func (_Token *TokenSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*TokenSession) Paused added in v1.5.0

func (_Token *TokenSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*TokenSession) Permit added in v1.5.0

func (_Token *TokenSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TokenSession) ProxiableUUID added in v1.5.0

func (_Token *TokenSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*TokenSession) RenounceRole added in v1.5.0

func (_Token *TokenSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*TokenSession) RevokeRole added in v1.5.0

func (_Token *TokenSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*TokenSession) SupportsInterface added in v1.5.0

func (_Token *TokenSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)

func (*TokenSession) Symbol added in v1.5.0

func (_Token *TokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*TokenSession) TotalSupply added in v1.5.0

func (_Token *TokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*TokenSession) Transfer added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) TransferFrom added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) UPGRADERROLE added in v1.5.0

func (_Token *TokenSession) UPGRADERROLE() ([32]byte, error)

UPGRADERROLE is a free data retrieval call binding the contract method 0xf72c0d8b.

Solidity: function UPGRADER_ROLE() view returns(bytes32)

func (*TokenSession) Unpause added in v1.5.0

func (_Token *TokenSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*TokenSession) UpgradeTo added in v1.5.0

func (_Token *TokenSession) 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 (*TokenSession) UpgradeToAndCall added in v1.5.0

func (_Token *TokenSession) 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()

func (*TokenSession) Withdraw added in v1.5.0

func (_Token *TokenSession) Withdraw(amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 amount) returns()

func (*TokenSession) WriteTotalSupplyCheckpoint added in v1.5.0

func (_Token *TokenSession) WriteTotalSupplyCheckpoint() (*types.Transaction, error)

WriteTotalSupplyCheckpoint is a paid mutator transaction binding the contract method 0x3650d841.

Solidity: function writeTotalSupplyCheckpoint() returns()

type TokenTransactor added in v1.0.8

type TokenTransactor struct {
	// contains filtered or unexported fields
}

TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewTokenTransactor added in v1.0.8

func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)

NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.

func (*TokenTransactor) Approve added in v1.5.0

func (_Token *TokenTransactor) 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 (*TokenTransactor) Burn added in v1.5.0

func (_Token *TokenTransactor) Burn(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x9dc29fac.

Solidity: function burn(address user, uint256 amount) returns()

func (*TokenTransactor) DecreaseAllowance added in v1.5.0

func (_Token *TokenTransactor) 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 (*TokenTransactor) Delegate added in v1.5.0

func (_Token *TokenTransactor) Delegate(opts *bind.TransactOpts, delegatee common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.

Solidity: function delegate(address delegatee) returns()

func (*TokenTransactor) DelegateBySig added in v1.5.0

func (_Token *TokenTransactor) DelegateBySig(opts *bind.TransactOpts, delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

DelegateBySig is a paid mutator transaction binding the contract method 0xc3cda520.

Solidity: function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) returns()

func (*TokenTransactor) Deposit added in v1.5.0

func (_Token *TokenTransactor) Deposit(opts *bind.TransactOpts, user common.Address, depositData []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xcf2c52cb.

Solidity: function deposit(address user, bytes depositData) returns()

func (*TokenTransactor) GrantRole added in v1.5.0

func (_Token *TokenTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*TokenTransactor) IncreaseAllowance added in v1.5.0

func (_Token *TokenTransactor) 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 (*TokenTransactor) Mint added in v1.5.0

func (_Token *TokenTransactor) Mint(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address user, uint256 amount) returns()

func (*TokenTransactor) Pause added in v1.5.0

func (_Token *TokenTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*TokenTransactor) Permit added in v1.5.0

func (_Token *TokenTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TokenTransactor) RenounceRole added in v1.5.0

func (_Token *TokenTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*TokenTransactor) RevokeRole added in v1.5.0

func (_Token *TokenTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*TokenTransactor) Transfer added in v1.5.0

func (_Token *TokenTransactor) 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 (*TokenTransactor) TransferFrom added in v1.5.0

func (_Token *TokenTransactor) 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 (*TokenTransactor) Unpause added in v1.5.0

func (_Token *TokenTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*TokenTransactor) UpgradeTo added in v1.5.0

func (_Token *TokenTransactor) 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 (*TokenTransactor) UpgradeToAndCall added in v1.5.0

func (_Token *TokenTransactor) 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()

func (*TokenTransactor) Withdraw added in v1.5.0

func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 amount) returns()

func (*TokenTransactor) WriteTotalSupplyCheckpoint added in v1.5.0

func (_Token *TokenTransactor) WriteTotalSupplyCheckpoint(opts *bind.TransactOpts) (*types.Transaction, error)

WriteTotalSupplyCheckpoint is a paid mutator transaction binding the contract method 0x3650d841.

Solidity: function writeTotalSupplyCheckpoint() returns()

type TokenTransactorRaw added in v1.0.8

type TokenTransactorRaw struct {
	Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}

TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*TokenTransactorRaw) Transact added in v1.0.8

func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TokenTransactorRaw) Transfer added in v1.0.8

func (_Token *TokenTransactorRaw) 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 TokenTransactorSession added in v1.0.8

type TokenTransactorSession struct {
	Contract     *TokenTransactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*TokenTransactorSession) Approve added in v1.5.0

func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) Burn added in v1.5.0

func (_Token *TokenTransactorSession) Burn(user common.Address, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x9dc29fac.

Solidity: function burn(address user, uint256 amount) returns()

func (*TokenTransactorSession) DecreaseAllowance added in v1.5.0

func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) Delegate added in v1.5.0

func (_Token *TokenTransactorSession) Delegate(delegatee common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.

Solidity: function delegate(address delegatee) returns()

func (*TokenTransactorSession) DelegateBySig added in v1.5.0

func (_Token *TokenTransactorSession) DelegateBySig(delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

DelegateBySig is a paid mutator transaction binding the contract method 0xc3cda520.

Solidity: function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) returns()

func (*TokenTransactorSession) Deposit added in v1.5.0

func (_Token *TokenTransactorSession) Deposit(user common.Address, depositData []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xcf2c52cb.

Solidity: function deposit(address user, bytes depositData) returns()

func (*TokenTransactorSession) GrantRole added in v1.5.0

func (_Token *TokenTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*TokenTransactorSession) IncreaseAllowance added in v1.5.0

func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) Mint added in v1.5.0

func (_Token *TokenTransactorSession) Mint(user common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address user, uint256 amount) returns()

func (*TokenTransactorSession) Pause added in v1.5.0

func (_Token *TokenTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*TokenTransactorSession) Permit added in v1.5.0

func (_Token *TokenTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TokenTransactorSession) RenounceRole added in v1.5.0

func (_Token *TokenTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*TokenTransactorSession) RevokeRole added in v1.5.0

func (_Token *TokenTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*TokenTransactorSession) Transfer added in v1.5.0

func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) TransferFrom added in v1.5.0

func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) Unpause added in v1.5.0

func (_Token *TokenTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*TokenTransactorSession) UpgradeTo added in v1.5.0

func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) UpgradeToAndCall added in v1.5.0

func (_Token *TokenTransactorSession) 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()

func (*TokenTransactorSession) Withdraw added in v1.5.0

func (_Token *TokenTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 amount) returns()

func (*TokenTransactorSession) WriteTotalSupplyCheckpoint added in v1.5.0

func (_Token *TokenTransactorSession) WriteTotalSupplyCheckpoint() (*types.Transaction, error)

WriteTotalSupplyCheckpoint is a paid mutator transaction binding the contract method 0x3650d841.

Solidity: function writeTotalSupplyCheckpoint() returns()

type TokenTransfer added in v1.5.0

type TokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

TokenTransfer represents a Transfer event raised by the Token contract.

type TokenTransferIterator added in v1.5.0

type TokenTransferIterator struct {
	Event *TokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.

func (*TokenTransferIterator) Close added in v1.5.0

func (it *TokenTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenTransferIterator) Error added in v1.5.0

func (it *TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenTransferIterator) Next added in v1.5.0

func (it *TokenTransferIterator) 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 TokenUnpaused added in v1.5.0

type TokenUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenUnpaused represents a Unpaused event raised by the Token contract.

type TokenUnpausedIterator added in v1.5.0

type TokenUnpausedIterator struct {
	Event *TokenUnpaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Token contract.

func (*TokenUnpausedIterator) Close added in v1.5.0

func (it *TokenUnpausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenUnpausedIterator) Error added in v1.5.0

func (it *TokenUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenUnpausedIterator) Next added in v1.5.0

func (it *TokenUnpausedIterator) 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 TokenUpgraded added in v1.5.0

type TokenUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

TokenUpgraded represents a Upgraded event raised by the Token contract.

type TokenUpgradedIterator added in v1.5.0

type TokenUpgradedIterator struct {
	Event *TokenUpgraded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Token contract.

func (*TokenUpgradedIterator) Close added in v1.5.0

func (it *TokenUpgradedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenUpgradedIterator) Error added in v1.5.0

func (it *TokenUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenUpgradedIterator) Next added in v1.5.0

func (it *TokenUpgradedIterator) 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.

Jump to

Keyboard shortcuts

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