contracts

package
v1.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReferralABI = ReferralMetaData.ABI

ReferralABI is the input ABI used to generate the binding from. Deprecated: Use ReferralMetaData.ABI instead.

View Source
var ReferralMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"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\":\"destination\",\"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\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BonusChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"referee\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"ReferralComplete\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"referee\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"ReferralInvalid\",\"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\":\"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\":[],\"name\":\"bonusAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dimoToken\",\"outputs\":[{\"internalType\":\"contractIDimo\",\"name\":\"\",\"type\":\"address\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bonusAmount_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"vehicleContract_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sanctionsList_\",\"type\":\"address\"}],\"name\":\"initialize\",\"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\":[],\"name\":\"sanctionsList\",\"outputs\":[{\"internalType\":\"contractISanctionsList\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"referees\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"referrers\",\"type\":\"address[]\"}],\"name\":\"sendReferralBonuses\",\"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\":[],\"name\":\"totalSent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\":[],\"name\":\"vehicleContract\",\"outputs\":[{\"internalType\":\"contractIDimoVehicle\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ReferralMetaData contains all meta data concerning the Referral contract.

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 Referral added in v1.7.0

type Referral struct {
	ReferralCaller     // Read-only binding to the contract
	ReferralTransactor // Write-only binding to the contract
	ReferralFilterer   // Log filterer for contract events
}

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

func NewReferral added in v1.7.0

func NewReferral(address common.Address, backend bind.ContractBackend) (*Referral, error)

NewReferral creates a new instance of Referral, bound to a specific deployed contract.

type ReferralAdminChanged added in v1.7.0

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

ReferralAdminChanged represents a AdminChanged event raised by the Referral contract.

type ReferralAdminChangedIterator added in v1.7.0

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

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

func (*ReferralAdminChangedIterator) Close added in v1.7.0

func (it *ReferralAdminChangedIterator) Close() error

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

func (*ReferralAdminChangedIterator) Error added in v1.7.0

func (it *ReferralAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralAdminChangedIterator) Next added in v1.7.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 ReferralAdminWithdrawal added in v1.7.0

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

ReferralAdminWithdrawal represents a AdminWithdrawal event raised by the Referral contract.

type ReferralAdminWithdrawalIterator added in v1.7.0

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

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

func (*ReferralAdminWithdrawalIterator) Close added in v1.7.0

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

func (*ReferralAdminWithdrawalIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralAdminWithdrawalIterator) Next added in v1.7.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 ReferralBeaconUpgraded added in v1.7.0

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

ReferralBeaconUpgraded represents a BeaconUpgraded event raised by the Referral contract.

type ReferralBeaconUpgradedIterator added in v1.7.0

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

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

func (*ReferralBeaconUpgradedIterator) Close added in v1.7.0

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

func (*ReferralBeaconUpgradedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralBeaconUpgradedIterator) Next added in v1.7.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 ReferralBonusChanged added in v1.7.0

type ReferralBonusChanged struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ReferralBonusChanged represents a BonusChanged event raised by the Referral contract.

type ReferralBonusChangedIterator added in v1.7.0

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

ReferralBonusChangedIterator is returned from FilterBonusChanged and is used to iterate over the raw logs and unpacked data for BonusChanged events raised by the Referral contract.

func (*ReferralBonusChangedIterator) Close added in v1.7.0

func (it *ReferralBonusChangedIterator) Close() error

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

func (*ReferralBonusChangedIterator) Error added in v1.7.0

func (it *ReferralBonusChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralBonusChangedIterator) Next added in v1.7.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 ReferralCaller added in v1.7.0

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

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

func NewReferralCaller added in v1.7.0

func NewReferralCaller(address common.Address, caller bind.ContractCaller) (*ReferralCaller, error)

NewReferralCaller creates a new read-only instance of Referral, bound to a specific deployed contract.

func (*ReferralCaller) BonusAmount added in v1.7.0

func (_Referral *ReferralCaller) BonusAmount(opts *bind.CallOpts) (*big.Int, error)

BonusAmount is a free data retrieval call binding the contract method 0xabadaf9a.

Solidity: function bonusAmount() view returns(uint256)

func (*ReferralCaller) DEFAULTADMINROLE added in v1.7.0

func (_Referral *ReferralCaller) 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 (*ReferralCaller) DimoToken added in v1.7.0

func (_Referral *ReferralCaller) DimoToken(opts *bind.CallOpts) (common.Address, error)

DimoToken is a free data retrieval call binding the contract method 0x0524f28c.

Solidity: function dimoToken() view returns(address)

func (*ReferralCaller) GetRoleAdmin added in v1.7.0

func (_Referral *ReferralCaller) 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 (*ReferralCaller) HasRole added in v1.7.0

func (_Referral *ReferralCaller) 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 (*ReferralCaller) ORACLEROLE added in v1.7.0

func (_Referral *ReferralCaller) 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 (*ReferralCaller) ProxiableUUID added in v1.7.0

func (_Referral *ReferralCaller) 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 (*ReferralCaller) SanctionsList added in v1.7.0

func (_Referral *ReferralCaller) SanctionsList(opts *bind.CallOpts) (common.Address, error)

SanctionsList is a free data retrieval call binding the contract method 0xec571c6a.

Solidity: function sanctionsList() view returns(address)

func (*ReferralCaller) SupportsInterface added in v1.7.0

func (_Referral *ReferralCaller) 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 (*ReferralCaller) TotalSent added in v1.7.0

func (_Referral *ReferralCaller) TotalSent(opts *bind.CallOpts) (*big.Int, error)

TotalSent is a free data retrieval call binding the contract method 0x46f99063.

Solidity: function totalSent() view returns(uint256)

func (*ReferralCaller) VehicleContract added in v1.7.0

func (_Referral *ReferralCaller) VehicleContract(opts *bind.CallOpts) (common.Address, error)

VehicleContract is a free data retrieval call binding the contract method 0xffb70419.

Solidity: function vehicleContract() view returns(address)

type ReferralCallerRaw added in v1.7.0

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

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

func (*ReferralCallerRaw) Call added in v1.7.0

func (_Referral *ReferralCallerRaw) 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 ReferralCallerSession added in v1.7.0

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

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

func (*ReferralCallerSession) BonusAmount added in v1.7.0

func (_Referral *ReferralCallerSession) BonusAmount() (*big.Int, error)

BonusAmount is a free data retrieval call binding the contract method 0xabadaf9a.

Solidity: function bonusAmount() view returns(uint256)

func (*ReferralCallerSession) DEFAULTADMINROLE added in v1.7.0

func (_Referral *ReferralCallerSession) 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 (*ReferralCallerSession) DimoToken added in v1.7.0

func (_Referral *ReferralCallerSession) DimoToken() (common.Address, error)

DimoToken is a free data retrieval call binding the contract method 0x0524f28c.

Solidity: function dimoToken() view returns(address)

func (*ReferralCallerSession) GetRoleAdmin added in v1.7.0

func (_Referral *ReferralCallerSession) 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 (*ReferralCallerSession) HasRole added in v1.7.0

func (_Referral *ReferralCallerSession) 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 (*ReferralCallerSession) ORACLEROLE added in v1.7.0

func (_Referral *ReferralCallerSession) ORACLEROLE() ([32]byte, error)

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

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*ReferralCallerSession) ProxiableUUID added in v1.7.0

func (_Referral *ReferralCallerSession) ProxiableUUID() ([32]byte, error)

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

Solidity: function proxiableUUID() view returns(bytes32)

func (*ReferralCallerSession) SanctionsList added in v1.7.0

func (_Referral *ReferralCallerSession) SanctionsList() (common.Address, error)

SanctionsList is a free data retrieval call binding the contract method 0xec571c6a.

Solidity: function sanctionsList() view returns(address)

func (*ReferralCallerSession) SupportsInterface added in v1.7.0

func (_Referral *ReferralCallerSession) 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 (*ReferralCallerSession) TotalSent added in v1.7.0

func (_Referral *ReferralCallerSession) TotalSent() (*big.Int, error)

TotalSent is a free data retrieval call binding the contract method 0x46f99063.

Solidity: function totalSent() view returns(uint256)

func (*ReferralCallerSession) VehicleContract added in v1.7.0

func (_Referral *ReferralCallerSession) VehicleContract() (common.Address, error)

VehicleContract is a free data retrieval call binding the contract method 0xffb70419.

Solidity: function vehicleContract() view returns(address)

type ReferralFilterer added in v1.7.0

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

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

func NewReferralFilterer added in v1.7.0

func NewReferralFilterer(address common.Address, filterer bind.ContractFilterer) (*ReferralFilterer, error)

NewReferralFilterer creates a new log filterer instance of Referral, bound to a specific deployed contract.

func (*ReferralFilterer) FilterAdminChanged added in v1.7.0

func (_Referral *ReferralFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*ReferralAdminChangedIterator, error)

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

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*ReferralFilterer) FilterAdminWithdrawal added in v1.7.0

func (_Referral *ReferralFilterer) FilterAdminWithdrawal(opts *bind.FilterOpts, destination []common.Address) (*ReferralAdminWithdrawalIterator, error)

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

Solidity: event AdminWithdrawal(address indexed destination, uint256 amount)

func (*ReferralFilterer) FilterBeaconUpgraded added in v1.7.0

func (_Referral *ReferralFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*ReferralBeaconUpgradedIterator, error)

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

Solidity: event BeaconUpgraded(address indexed beacon)

func (*ReferralFilterer) FilterBonusChanged added in v1.7.0

func (_Referral *ReferralFilterer) FilterBonusChanged(opts *bind.FilterOpts) (*ReferralBonusChangedIterator, error)

FilterBonusChanged is a free log retrieval operation binding the contract event 0x3004fd9893f9a32bdc520978802cadc651d89c5d9a6235f3080819aa599903b8.

Solidity: event BonusChanged(uint256 amount)

func (*ReferralFilterer) FilterInitialized added in v1.7.0

func (_Referral *ReferralFilterer) FilterInitialized(opts *bind.FilterOpts) (*ReferralInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*ReferralFilterer) FilterReferralComplete added in v1.7.0

func (_Referral *ReferralFilterer) FilterReferralComplete(opts *bind.FilterOpts, referee []common.Address, referrer []common.Address) (*ReferralReferralCompleteIterator, error)

FilterReferralComplete is a free log retrieval operation binding the contract event 0x140ec1de14f412a3a1e4295313d7c4190785ddf8930efee41722cd36f00ebb91.

Solidity: event ReferralComplete(address indexed referee, address indexed referrer)

func (*ReferralFilterer) FilterReferralInvalid added in v1.7.0

func (_Referral *ReferralFilterer) FilterReferralInvalid(opts *bind.FilterOpts, referee []common.Address, referrer []common.Address) (*ReferralReferralInvalidIterator, error)

FilterReferralInvalid is a free log retrieval operation binding the contract event 0xa8129329835c7fa9561f19f5b059d91ada3feffb6a0c10e02a4e3d294fe3a1bc.

Solidity: event ReferralInvalid(address indexed referee, address indexed referrer)

func (*ReferralFilterer) FilterRoleAdminChanged added in v1.7.0

func (_Referral *ReferralFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ReferralRoleAdminChangedIterator, 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 (*ReferralFilterer) FilterRoleGranted added in v1.7.0

func (_Referral *ReferralFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ReferralRoleGrantedIterator, 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 (*ReferralFilterer) FilterRoleRevoked added in v1.7.0

func (_Referral *ReferralFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ReferralRoleRevokedIterator, 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 (*ReferralFilterer) FilterUpgraded added in v1.7.0

func (_Referral *ReferralFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*ReferralUpgradedIterator, error)

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

Solidity: event Upgraded(address indexed implementation)

func (*ReferralFilterer) ParseAdminChanged added in v1.7.0

func (_Referral *ReferralFilterer) ParseAdminChanged(log types.Log) (*ReferralAdminChanged, error)

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

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*ReferralFilterer) ParseAdminWithdrawal added in v1.7.0

func (_Referral *ReferralFilterer) ParseAdminWithdrawal(log types.Log) (*ReferralAdminWithdrawal, error)

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

Solidity: event AdminWithdrawal(address indexed destination, uint256 amount)

func (*ReferralFilterer) ParseBeaconUpgraded added in v1.7.0

func (_Referral *ReferralFilterer) ParseBeaconUpgraded(log types.Log) (*ReferralBeaconUpgraded, error)

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

Solidity: event BeaconUpgraded(address indexed beacon)

func (*ReferralFilterer) ParseBonusChanged added in v1.7.0

func (_Referral *ReferralFilterer) ParseBonusChanged(log types.Log) (*ReferralBonusChanged, error)

ParseBonusChanged is a log parse operation binding the contract event 0x3004fd9893f9a32bdc520978802cadc651d89c5d9a6235f3080819aa599903b8.

Solidity: event BonusChanged(uint256 amount)

func (*ReferralFilterer) ParseInitialized added in v1.7.0

func (_Referral *ReferralFilterer) ParseInitialized(log types.Log) (*ReferralInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*ReferralFilterer) ParseReferralComplete added in v1.7.0

func (_Referral *ReferralFilterer) ParseReferralComplete(log types.Log) (*ReferralReferralComplete, error)

ParseReferralComplete is a log parse operation binding the contract event 0x140ec1de14f412a3a1e4295313d7c4190785ddf8930efee41722cd36f00ebb91.

Solidity: event ReferralComplete(address indexed referee, address indexed referrer)

func (*ReferralFilterer) ParseReferralInvalid added in v1.7.0

func (_Referral *ReferralFilterer) ParseReferralInvalid(log types.Log) (*ReferralReferralInvalid, error)

ParseReferralInvalid is a log parse operation binding the contract event 0xa8129329835c7fa9561f19f5b059d91ada3feffb6a0c10e02a4e3d294fe3a1bc.

Solidity: event ReferralInvalid(address indexed referee, address indexed referrer)

func (*ReferralFilterer) ParseRoleAdminChanged added in v1.7.0

func (_Referral *ReferralFilterer) ParseRoleAdminChanged(log types.Log) (*ReferralRoleAdminChanged, 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 (*ReferralFilterer) ParseRoleGranted added in v1.7.0

func (_Referral *ReferralFilterer) ParseRoleGranted(log types.Log) (*ReferralRoleGranted, 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 (*ReferralFilterer) ParseRoleRevoked added in v1.7.0

func (_Referral *ReferralFilterer) ParseRoleRevoked(log types.Log) (*ReferralRoleRevoked, 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 (*ReferralFilterer) ParseUpgraded added in v1.7.0

func (_Referral *ReferralFilterer) ParseUpgraded(log types.Log) (*ReferralUpgraded, error)

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

Solidity: event Upgraded(address indexed implementation)

func (*ReferralFilterer) WatchAdminChanged added in v1.7.0

func (_Referral *ReferralFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *ReferralAdminChanged) (event.Subscription, error)

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

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*ReferralFilterer) WatchAdminWithdrawal added in v1.7.0

func (_Referral *ReferralFilterer) WatchAdminWithdrawal(opts *bind.WatchOpts, sink chan<- *ReferralAdminWithdrawal, destination []common.Address) (event.Subscription, error)

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

Solidity: event AdminWithdrawal(address indexed destination, uint256 amount)

func (*ReferralFilterer) WatchBeaconUpgraded added in v1.7.0

func (_Referral *ReferralFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *ReferralBeaconUpgraded, 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 (*ReferralFilterer) WatchBonusChanged added in v1.7.0

func (_Referral *ReferralFilterer) WatchBonusChanged(opts *bind.WatchOpts, sink chan<- *ReferralBonusChanged) (event.Subscription, error)

WatchBonusChanged is a free log subscription operation binding the contract event 0x3004fd9893f9a32bdc520978802cadc651d89c5d9a6235f3080819aa599903b8.

Solidity: event BonusChanged(uint256 amount)

func (*ReferralFilterer) WatchInitialized added in v1.7.0

func (_Referral *ReferralFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ReferralInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*ReferralFilterer) WatchReferralComplete added in v1.7.0

func (_Referral *ReferralFilterer) WatchReferralComplete(opts *bind.WatchOpts, sink chan<- *ReferralReferralComplete, referee []common.Address, referrer []common.Address) (event.Subscription, error)

WatchReferralComplete is a free log subscription operation binding the contract event 0x140ec1de14f412a3a1e4295313d7c4190785ddf8930efee41722cd36f00ebb91.

Solidity: event ReferralComplete(address indexed referee, address indexed referrer)

func (*ReferralFilterer) WatchReferralInvalid added in v1.7.0

func (_Referral *ReferralFilterer) WatchReferralInvalid(opts *bind.WatchOpts, sink chan<- *ReferralReferralInvalid, referee []common.Address, referrer []common.Address) (event.Subscription, error)

WatchReferralInvalid is a free log subscription operation binding the contract event 0xa8129329835c7fa9561f19f5b059d91ada3feffb6a0c10e02a4e3d294fe3a1bc.

Solidity: event ReferralInvalid(address indexed referee, address indexed referrer)

func (*ReferralFilterer) WatchRoleAdminChanged added in v1.7.0

func (_Referral *ReferralFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ReferralRoleAdminChanged, 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 (*ReferralFilterer) WatchRoleGranted added in v1.7.0

func (_Referral *ReferralFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ReferralRoleGranted, 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 (*ReferralFilterer) WatchRoleRevoked added in v1.7.0

func (_Referral *ReferralFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ReferralRoleRevoked, 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 (*ReferralFilterer) WatchUpgraded added in v1.7.0

func (_Referral *ReferralFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *ReferralUpgraded, 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 ReferralInitialized added in v1.7.0

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

ReferralInitialized represents a Initialized event raised by the Referral contract.

type ReferralInitializedIterator added in v1.7.0

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

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

func (*ReferralInitializedIterator) Close added in v1.7.0

func (it *ReferralInitializedIterator) Close() error

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

func (*ReferralInitializedIterator) Error added in v1.7.0

func (it *ReferralInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralInitializedIterator) Next added in v1.7.0

func (it *ReferralInitializedIterator) 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 ReferralRaw added in v1.7.0

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

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

func (*ReferralRaw) Call added in v1.7.0

func (_Referral *ReferralRaw) 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 (*ReferralRaw) Transact added in v1.7.0

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

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

func (*ReferralRaw) Transfer added in v1.7.0

func (_Referral *ReferralRaw) 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 ReferralReferralComplete added in v1.7.0

type ReferralReferralComplete struct {
	Referee  common.Address
	Referrer common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ReferralReferralComplete represents a ReferralComplete event raised by the Referral contract.

type ReferralReferralCompleteIterator added in v1.7.0

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

ReferralReferralCompleteIterator is returned from FilterReferralComplete and is used to iterate over the raw logs and unpacked data for ReferralComplete events raised by the Referral contract.

func (*ReferralReferralCompleteIterator) Close added in v1.7.0

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

func (*ReferralReferralCompleteIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralReferralCompleteIterator) Next added in v1.7.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 ReferralReferralInvalid added in v1.7.0

type ReferralReferralInvalid struct {
	Referee  common.Address
	Referrer common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ReferralReferralInvalid represents a ReferralInvalid event raised by the Referral contract.

type ReferralReferralInvalidIterator added in v1.7.0

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

ReferralReferralInvalidIterator is returned from FilterReferralInvalid and is used to iterate over the raw logs and unpacked data for ReferralInvalid events raised by the Referral contract.

func (*ReferralReferralInvalidIterator) Close added in v1.7.0

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

func (*ReferralReferralInvalidIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralReferralInvalidIterator) Next added in v1.7.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 ReferralRoleAdminChanged added in v1.7.0

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

ReferralRoleAdminChanged represents a RoleAdminChanged event raised by the Referral contract.

type ReferralRoleAdminChangedIterator added in v1.7.0

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

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

func (*ReferralRoleAdminChangedIterator) Close added in v1.7.0

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

func (*ReferralRoleAdminChangedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralRoleAdminChangedIterator) Next added in v1.7.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 ReferralRoleGranted added in v1.7.0

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

ReferralRoleGranted represents a RoleGranted event raised by the Referral contract.

type ReferralRoleGrantedIterator added in v1.7.0

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

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

func (*ReferralRoleGrantedIterator) Close added in v1.7.0

func (it *ReferralRoleGrantedIterator) Close() error

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

func (*ReferralRoleGrantedIterator) Error added in v1.7.0

func (it *ReferralRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralRoleGrantedIterator) Next added in v1.7.0

func (it *ReferralRoleGrantedIterator) 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 ReferralRoleRevoked added in v1.7.0

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

ReferralRoleRevoked represents a RoleRevoked event raised by the Referral contract.

type ReferralRoleRevokedIterator added in v1.7.0

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

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

func (*ReferralRoleRevokedIterator) Close added in v1.7.0

func (it *ReferralRoleRevokedIterator) Close() error

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

func (*ReferralRoleRevokedIterator) Error added in v1.7.0

func (it *ReferralRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralRoleRevokedIterator) Next added in v1.7.0

func (it *ReferralRoleRevokedIterator) 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 ReferralSession added in v1.7.0

type ReferralSession struct {
	Contract     *Referral         // 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
}

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

func (*ReferralSession) AdminWithdraw added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) BonusAmount added in v1.7.0

func (_Referral *ReferralSession) BonusAmount() (*big.Int, error)

BonusAmount is a free data retrieval call binding the contract method 0xabadaf9a.

Solidity: function bonusAmount() view returns(uint256)

func (*ReferralSession) DEFAULTADMINROLE added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) DimoToken added in v1.7.0

func (_Referral *ReferralSession) DimoToken() (common.Address, error)

DimoToken is a free data retrieval call binding the contract method 0x0524f28c.

Solidity: function dimoToken() view returns(address)

func (*ReferralSession) GetRoleAdmin added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) GrantRole added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) HasRole added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) Initialize added in v1.7.0

func (_Referral *ReferralSession) Initialize(tokenAddress common.Address, bonusAmount_ *big.Int, vehicleContract_ common.Address, sanctionsList_ common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address tokenAddress, uint256 bonusAmount_, address vehicleContract_, address sanctionsList_) returns()

func (*ReferralSession) ORACLEROLE added in v1.7.0

func (_Referral *ReferralSession) ORACLEROLE() ([32]byte, error)

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

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*ReferralSession) ProxiableUUID added in v1.7.0

func (_Referral *ReferralSession) ProxiableUUID() ([32]byte, error)

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

Solidity: function proxiableUUID() view returns(bytes32)

func (*ReferralSession) RenounceRole added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) RevokeRole added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) SanctionsList added in v1.7.0

func (_Referral *ReferralSession) SanctionsList() (common.Address, error)

SanctionsList is a free data retrieval call binding the contract method 0xec571c6a.

Solidity: function sanctionsList() view returns(address)

func (*ReferralSession) SendReferralBonuses added in v1.7.0

func (_Referral *ReferralSession) SendReferralBonuses(referees []common.Address, referrers []common.Address) (*types.Transaction, error)

SendReferralBonuses is a paid mutator transaction binding the contract method 0xa6703aa1.

Solidity: function sendReferralBonuses(address[] referees, address[] referrers) returns()

func (*ReferralSession) SupportsInterface added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) TotalSent added in v1.7.0

func (_Referral *ReferralSession) TotalSent() (*big.Int, error)

TotalSent is a free data retrieval call binding the contract method 0x46f99063.

Solidity: function totalSent() view returns(uint256)

func (*ReferralSession) UpgradeTo added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) UpgradeToAndCall added in v1.7.0

func (_Referral *ReferralSession) 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 (*ReferralSession) VehicleContract added in v1.7.0

func (_Referral *ReferralSession) VehicleContract() (common.Address, error)

VehicleContract is a free data retrieval call binding the contract method 0xffb70419.

Solidity: function vehicleContract() view returns(address)

type ReferralTransactor added in v1.7.0

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

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

func NewReferralTransactor added in v1.7.0

func NewReferralTransactor(address common.Address, transactor bind.ContractTransactor) (*ReferralTransactor, error)

NewReferralTransactor creates a new write-only instance of Referral, bound to a specific deployed contract.

func (*ReferralTransactor) AdminWithdraw added in v1.7.0

func (_Referral *ReferralTransactor) 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 (*ReferralTransactor) GrantRole added in v1.7.0

func (_Referral *ReferralTransactor) 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 (*ReferralTransactor) Initialize added in v1.7.0

func (_Referral *ReferralTransactor) Initialize(opts *bind.TransactOpts, tokenAddress common.Address, bonusAmount_ *big.Int, vehicleContract_ common.Address, sanctionsList_ common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address tokenAddress, uint256 bonusAmount_, address vehicleContract_, address sanctionsList_) returns()

func (*ReferralTransactor) RenounceRole added in v1.7.0

func (_Referral *ReferralTransactor) 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 (*ReferralTransactor) RevokeRole added in v1.7.0

func (_Referral *ReferralTransactor) 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 (*ReferralTransactor) SendReferralBonuses added in v1.7.0

func (_Referral *ReferralTransactor) SendReferralBonuses(opts *bind.TransactOpts, referees []common.Address, referrers []common.Address) (*types.Transaction, error)

SendReferralBonuses is a paid mutator transaction binding the contract method 0xa6703aa1.

Solidity: function sendReferralBonuses(address[] referees, address[] referrers) returns()

func (*ReferralTransactor) UpgradeTo added in v1.7.0

func (_Referral *ReferralTransactor) 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 (*ReferralTransactor) UpgradeToAndCall added in v1.7.0

func (_Referral *ReferralTransactor) 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 ReferralTransactorRaw added in v1.7.0

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

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

func (*ReferralTransactorRaw) Transact added in v1.7.0

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

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

func (*ReferralTransactorRaw) Transfer added in v1.7.0

func (_Referral *ReferralTransactorRaw) 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 ReferralTransactorSession added in v1.7.0

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

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

func (*ReferralTransactorSession) AdminWithdraw added in v1.7.0

func (_Referral *ReferralTransactorSession) 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 (*ReferralTransactorSession) GrantRole added in v1.7.0

func (_Referral *ReferralTransactorSession) 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 (*ReferralTransactorSession) Initialize added in v1.7.0

func (_Referral *ReferralTransactorSession) Initialize(tokenAddress common.Address, bonusAmount_ *big.Int, vehicleContract_ common.Address, sanctionsList_ common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address tokenAddress, uint256 bonusAmount_, address vehicleContract_, address sanctionsList_) returns()

func (*ReferralTransactorSession) RenounceRole added in v1.7.0

func (_Referral *ReferralTransactorSession) 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 (*ReferralTransactorSession) RevokeRole added in v1.7.0

func (_Referral *ReferralTransactorSession) 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 (*ReferralTransactorSession) SendReferralBonuses added in v1.7.0

func (_Referral *ReferralTransactorSession) SendReferralBonuses(referees []common.Address, referrers []common.Address) (*types.Transaction, error)

SendReferralBonuses is a paid mutator transaction binding the contract method 0xa6703aa1.

Solidity: function sendReferralBonuses(address[] referees, address[] referrers) returns()

func (*ReferralTransactorSession) UpgradeTo added in v1.7.0

func (_Referral *ReferralTransactorSession) 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 (*ReferralTransactorSession) UpgradeToAndCall added in v1.7.0

func (_Referral *ReferralTransactorSession) 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 ReferralUpgraded added in v1.7.0

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

ReferralUpgraded represents a Upgraded event raised by the Referral contract.

type ReferralUpgradedIterator added in v1.7.0

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

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

func (*ReferralUpgradedIterator) Close added in v1.7.0

func (it *ReferralUpgradedIterator) Close() error

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

func (*ReferralUpgradedIterator) Error added in v1.7.0

func (it *ReferralUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReferralUpgradedIterator) Next added in v1.7.0

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