contracts

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RewardABI = RewardMetaData.ABI

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

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

RewardMetaData contains all meta data concerning the Reward contract.

View Source
var TokenABI = TokenMetaData.ABI

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

View Source
var TokenMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

TokenMetaData contains all meta data concerning the Token contract.

Functions

This section is empty.

Types

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 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) 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)

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) 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)

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.

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 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) 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)

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.

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.

Jump to

Keyboard shortcuts

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