Documentation ¶
Index ¶
- Variables
- type Tradingrewardsdistributor
- type TradingrewardsdistributorCaller
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) AmountClaimedByUser(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) BUFFERADMINWITHDRAW(opts *bind.CallOpts) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) CanClaim(opts *bind.CallOpts, user common.Address, amount *big.Int, ...) (bool, *big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) CurrentRewardRound(opts *bind.CallOpts) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) HasUserClaimedForRewardRound(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) HunterGovernanceToken(opts *bind.CallOpts) (common.Address, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) LastPausedTimestamp(opts *bind.CallOpts) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) MaximumAmountPerUserInCurrentTree(opts *bind.CallOpts) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) MerkleRootOfRewardRound(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) MerkleRootUsed(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) Paused(opts *bind.CallOpts) (bool, error)
- type TradingrewardsdistributorCallerRaw
- type TradingrewardsdistributorCallerSession
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) AmountClaimedByUser(arg0 common.Address) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) BUFFERADMINWITHDRAW() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) CanClaim(user common.Address, amount *big.Int, merkleProof [][32]byte) (bool, *big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) CurrentRewardRound() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) HasUserClaimedForRewardRound(arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) HunterGovernanceToken() (common.Address, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) LastPausedTimestamp() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) MaximumAmountPerUserInCurrentTree() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) MerkleRootOfRewardRound(arg0 *big.Int) ([32]byte, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) MerkleRootUsed(arg0 [32]byte) (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) Owner() (common.Address, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) Paused() (bool, error)
- type TradingrewardsdistributorFilterer
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*TradingrewardsdistributorOwnershipTransferredIterator, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterPaused(opts *bind.FilterOpts) (*TradingrewardsdistributorPausedIterator, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterRewardsClaim(opts *bind.FilterOpts, user []common.Address, rewardRound []*big.Int) (*TradingrewardsdistributorRewardsClaimIterator, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterTokenWithdrawnOwner(opts *bind.FilterOpts) (*TradingrewardsdistributorTokenWithdrawnOwnerIterator, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterUnpaused(opts *bind.FilterOpts) (*TradingrewardsdistributorUnpausedIterator, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterUpdateTradingRewards(opts *bind.FilterOpts, rewardRound []*big.Int) (*TradingrewardsdistributorUpdateTradingRewardsIterator, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseOwnershipTransferred(log types.Log) (*TradingrewardsdistributorOwnershipTransferred, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParsePaused(log types.Log) (*TradingrewardsdistributorPaused, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseRewardsClaim(log types.Log) (*TradingrewardsdistributorRewardsClaim, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseTokenWithdrawnOwner(log types.Log) (*TradingrewardsdistributorTokenWithdrawnOwner, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseUnpaused(log types.Log) (*TradingrewardsdistributorUnpaused, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseUpdateTradingRewards(log types.Log) (*TradingrewardsdistributorUpdateTradingRewards, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorPaused) (event.Subscription, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchRewardsClaim(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorRewardsClaim, ...) (event.Subscription, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchTokenWithdrawnOwner(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorUnpaused) (event.Subscription, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchUpdateTradingRewards(opts *bind.WatchOpts, ...) (event.Subscription, error)
- type TradingrewardsdistributorOwnershipTransferred
- type TradingrewardsdistributorOwnershipTransferredIterator
- type TradingrewardsdistributorPaused
- type TradingrewardsdistributorPausedIterator
- type TradingrewardsdistributorRaw
- func (_Tradingrewardsdistributor *TradingrewardsdistributorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Tradingrewardsdistributor *TradingrewardsdistributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TradingrewardsdistributorRewardsClaim
- type TradingrewardsdistributorRewardsClaimIterator
- type TradingrewardsdistributorSession
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) AmountClaimedByUser(arg0 common.Address) (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) BUFFERADMINWITHDRAW() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) CanClaim(user common.Address, amount *big.Int, merkleProof [][32]byte) (bool, *big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) Claim(amount *big.Int, merkleProof [][32]byte) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) CurrentRewardRound() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) HasUserClaimedForRewardRound(arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) HunterGovernanceToken() (common.Address, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) LastPausedTimestamp() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) MaximumAmountPerUserInCurrentTree() (*big.Int, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) MerkleRootOfRewardRound(arg0 *big.Int) ([32]byte, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) MerkleRootUsed(arg0 [32]byte) (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) Owner() (common.Address, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) PauseDistribution() (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) Paused() (bool, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) UnpauseDistribution() (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) UpdateTradingRewards(merkleRoot [32]byte, newMaximumAmountPerUser *big.Int) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) WithdrawTokenRewards(amount *big.Int) (*types.Transaction, error)
- type TradingrewardsdistributorTokenWithdrawnOwner
- type TradingrewardsdistributorTokenWithdrawnOwnerIterator
- type TradingrewardsdistributorTransactor
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) Claim(opts *bind.TransactOpts, amount *big.Int, merkleProof [][32]byte) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) PauseDistribution(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) UnpauseDistribution(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) UpdateTradingRewards(opts *bind.TransactOpts, merkleRoot [32]byte, newMaximumAmountPerUser *big.Int) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) WithdrawTokenRewards(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- type TradingrewardsdistributorTransactorRaw
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TradingrewardsdistributorTransactorSession
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) Claim(amount *big.Int, merkleProof [][32]byte) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) PauseDistribution() (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) UnpauseDistribution() (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) UpdateTradingRewards(merkleRoot [32]byte, newMaximumAmountPerUser *big.Int) (*types.Transaction, error)
- func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) WithdrawTokenRewards(amount *big.Int) (*types.Transaction, error)
- type TradingrewardsdistributorUnpaused
- type TradingrewardsdistributorUnpausedIterator
- type TradingrewardsdistributorUpdateTradingRewards
- type TradingrewardsdistributorUpdateTradingRewardsIterator
Constants ¶
This section is empty.
Variables ¶
var TradingrewardsdistributorABI = TradingrewardsdistributorMetaData.ABI
TradingrewardsdistributorABI is the input ABI used to generate the binding from. Deprecated: Use TradingrewardsdistributorMetaData.ABI instead.
var TradingrewardsdistributorMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"hunterGovernanceToken_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"rewardRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsClaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenWithdrawnOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"rewardRound\",\"type\":\"uint256\"}],\"name\":\"UpdateTradingRewards\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BUFFER_ADMIN_WITHDRAW\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"amountClaimedByUser\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"canClaim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRewardRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"hasUserClaimedForRewardRound\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hunterGovernanceToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastPausedTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumAmountPerUserInCurrentTree\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"merkleRootOfRewardRound\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"merkleRootUsed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseDistribution\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpauseDistribution\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"newMaximumAmountPerUser\",\"type\":\"uint256\"}],\"name\":\"updateTradingRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTokenRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
TradingrewardsdistributorMetaData contains all meta data concerning the Tradingrewardsdistributor contract.
Functions ¶
This section is empty.
Types ¶
type Tradingrewardsdistributor ¶
type Tradingrewardsdistributor struct { TradingrewardsdistributorCaller // Read-only binding to the contract TradingrewardsdistributorTransactor // Write-only binding to the contract TradingrewardsdistributorFilterer // Log filterer for contract events }
Tradingrewardsdistributor is an auto generated Go binding around an Ethereum contract.
func NewTradingrewardsdistributor ¶
func NewTradingrewardsdistributor(address common.Address, backend bind.ContractBackend) (*Tradingrewardsdistributor, error)
NewTradingrewardsdistributor creates a new instance of Tradingrewardsdistributor, bound to a specific deployed contract.
type TradingrewardsdistributorCaller ¶
type TradingrewardsdistributorCaller struct {
// contains filtered or unexported fields
}
TradingrewardsdistributorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTradingrewardsdistributorCaller ¶
func NewTradingrewardsdistributorCaller(address common.Address, caller bind.ContractCaller) (*TradingrewardsdistributorCaller, error)
NewTradingrewardsdistributorCaller creates a new read-only instance of Tradingrewardsdistributor, bound to a specific deployed contract.
func (*TradingrewardsdistributorCaller) AmountClaimedByUser ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) AmountClaimedByUser(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
AmountClaimedByUser is a free data retrieval call binding the contract method 0x3b66f49d.
Solidity: function amountClaimedByUser(address ) view returns(uint256)
func (*TradingrewardsdistributorCaller) BUFFERADMINWITHDRAW ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) BUFFERADMINWITHDRAW(opts *bind.CallOpts) (*big.Int, error)
BUFFERADMINWITHDRAW is a free data retrieval call binding the contract method 0x141fd8c8.
Solidity: function BUFFER_ADMIN_WITHDRAW() view returns(uint256)
func (*TradingrewardsdistributorCaller) CanClaim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) CanClaim(opts *bind.CallOpts, user common.Address, amount *big.Int, merkleProof [][32]byte) (bool, *big.Int, error)
CanClaim is a free data retrieval call binding the contract method 0xdc38bdb5.
Solidity: function canClaim(address user, uint256 amount, bytes32[] merkleProof) view returns(bool, uint256)
func (*TradingrewardsdistributorCaller) CurrentRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) CurrentRewardRound(opts *bind.CallOpts) (*big.Int, error)
CurrentRewardRound is a free data retrieval call binding the contract method 0x1040faf9.
Solidity: function currentRewardRound() view returns(uint256)
func (*TradingrewardsdistributorCaller) HasUserClaimedForRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) HasUserClaimedForRewardRound(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (bool, error)
HasUserClaimedForRewardRound is a free data retrieval call binding the contract method 0x9ea76f34.
Solidity: function hasUserClaimedForRewardRound(uint256 , address ) view returns(bool)
func (*TradingrewardsdistributorCaller) HunterGovernanceToken ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) HunterGovernanceToken(opts *bind.CallOpts) (common.Address, error)
HunterGovernanceToken is a free data retrieval call binding the contract method 0xf363264a.
Solidity: function hunterGovernanceToken() view returns(address)
func (*TradingrewardsdistributorCaller) LastPausedTimestamp ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) LastPausedTimestamp(opts *bind.CallOpts) (*big.Int, error)
LastPausedTimestamp is a free data retrieval call binding the contract method 0xfa461974.
Solidity: function lastPausedTimestamp() view returns(uint256)
func (*TradingrewardsdistributorCaller) MaximumAmountPerUserInCurrentTree ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) MaximumAmountPerUserInCurrentTree(opts *bind.CallOpts) (*big.Int, error)
MaximumAmountPerUserInCurrentTree is a free data retrieval call binding the contract method 0xff0a4eb0.
Solidity: function maximumAmountPerUserInCurrentTree() view returns(uint256)
func (*TradingrewardsdistributorCaller) MerkleRootOfRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) MerkleRootOfRewardRound(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
MerkleRootOfRewardRound is a free data retrieval call binding the contract method 0x84483c86.
Solidity: function merkleRootOfRewardRound(uint256 ) view returns(bytes32)
func (*TradingrewardsdistributorCaller) MerkleRootUsed ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCaller) MerkleRootUsed(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
MerkleRootUsed is a free data retrieval call binding the contract method 0xba42590d.
Solidity: function merkleRootUsed(bytes32 ) view returns(bool)
type TradingrewardsdistributorCallerRaw ¶
type TradingrewardsdistributorCallerRaw struct {
Contract *TradingrewardsdistributorCaller // Generic read-only contract binding to access the raw methods on
}
TradingrewardsdistributorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TradingrewardsdistributorCallerRaw) Call ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerRaw) 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 TradingrewardsdistributorCallerSession ¶
type TradingrewardsdistributorCallerSession struct { Contract *TradingrewardsdistributorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TradingrewardsdistributorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TradingrewardsdistributorCallerSession) AmountClaimedByUser ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) AmountClaimedByUser(arg0 common.Address) (*big.Int, error)
AmountClaimedByUser is a free data retrieval call binding the contract method 0x3b66f49d.
Solidity: function amountClaimedByUser(address ) view returns(uint256)
func (*TradingrewardsdistributorCallerSession) BUFFERADMINWITHDRAW ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) BUFFERADMINWITHDRAW() (*big.Int, error)
BUFFERADMINWITHDRAW is a free data retrieval call binding the contract method 0x141fd8c8.
Solidity: function BUFFER_ADMIN_WITHDRAW() view returns(uint256)
func (*TradingrewardsdistributorCallerSession) CanClaim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) CanClaim(user common.Address, amount *big.Int, merkleProof [][32]byte) (bool, *big.Int, error)
CanClaim is a free data retrieval call binding the contract method 0xdc38bdb5.
Solidity: function canClaim(address user, uint256 amount, bytes32[] merkleProof) view returns(bool, uint256)
func (*TradingrewardsdistributorCallerSession) CurrentRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) CurrentRewardRound() (*big.Int, error)
CurrentRewardRound is a free data retrieval call binding the contract method 0x1040faf9.
Solidity: function currentRewardRound() view returns(uint256)
func (*TradingrewardsdistributorCallerSession) HasUserClaimedForRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) HasUserClaimedForRewardRound(arg0 *big.Int, arg1 common.Address) (bool, error)
HasUserClaimedForRewardRound is a free data retrieval call binding the contract method 0x9ea76f34.
Solidity: function hasUserClaimedForRewardRound(uint256 , address ) view returns(bool)
func (*TradingrewardsdistributorCallerSession) HunterGovernanceToken ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) HunterGovernanceToken() (common.Address, error)
HunterGovernanceToken is a free data retrieval call binding the contract method 0xf363264a.
Solidity: function hunterGovernanceToken() view returns(address)
func (*TradingrewardsdistributorCallerSession) LastPausedTimestamp ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) LastPausedTimestamp() (*big.Int, error)
LastPausedTimestamp is a free data retrieval call binding the contract method 0xfa461974.
Solidity: function lastPausedTimestamp() view returns(uint256)
func (*TradingrewardsdistributorCallerSession) MaximumAmountPerUserInCurrentTree ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) MaximumAmountPerUserInCurrentTree() (*big.Int, error)
MaximumAmountPerUserInCurrentTree is a free data retrieval call binding the contract method 0xff0a4eb0.
Solidity: function maximumAmountPerUserInCurrentTree() view returns(uint256)
func (*TradingrewardsdistributorCallerSession) MerkleRootOfRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) MerkleRootOfRewardRound(arg0 *big.Int) ([32]byte, error)
MerkleRootOfRewardRound is a free data retrieval call binding the contract method 0x84483c86.
Solidity: function merkleRootOfRewardRound(uint256 ) view returns(bytes32)
func (*TradingrewardsdistributorCallerSession) MerkleRootUsed ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) MerkleRootUsed(arg0 [32]byte) (bool, error)
MerkleRootUsed is a free data retrieval call binding the contract method 0xba42590d.
Solidity: function merkleRootUsed(bytes32 ) view returns(bool)
func (*TradingrewardsdistributorCallerSession) Owner ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*TradingrewardsdistributorCallerSession) Paused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
type TradingrewardsdistributorFilterer ¶
type TradingrewardsdistributorFilterer struct {
// contains filtered or unexported fields
}
TradingrewardsdistributorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTradingrewardsdistributorFilterer ¶
func NewTradingrewardsdistributorFilterer(address common.Address, filterer bind.ContractFilterer) (*TradingrewardsdistributorFilterer, error)
NewTradingrewardsdistributorFilterer creates a new log filterer instance of Tradingrewardsdistributor, bound to a specific deployed contract.
func (*TradingrewardsdistributorFilterer) FilterOwnershipTransferred ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TradingrewardsdistributorOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*TradingrewardsdistributorFilterer) FilterPaused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterPaused(opts *bind.FilterOpts) (*TradingrewardsdistributorPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*TradingrewardsdistributorFilterer) FilterRewardsClaim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterRewardsClaim(opts *bind.FilterOpts, user []common.Address, rewardRound []*big.Int) (*TradingrewardsdistributorRewardsClaimIterator, error)
FilterRewardsClaim is a free log retrieval operation binding the contract event 0xe8dbd8c18906df11a70832fe7c874d1fddf6952cee2320658d66925618387999.
Solidity: event RewardsClaim(address indexed user, uint256 indexed rewardRound, uint256 amount)
func (*TradingrewardsdistributorFilterer) FilterTokenWithdrawnOwner ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterTokenWithdrawnOwner(opts *bind.FilterOpts) (*TradingrewardsdistributorTokenWithdrawnOwnerIterator, error)
FilterTokenWithdrawnOwner is a free log retrieval operation binding the contract event 0xb4cd5c4a08bbed33abfe773ece179d156730e39629e065b7dcd8263027387c1d.
Solidity: event TokenWithdrawnOwner(uint256 amount)
func (*TradingrewardsdistributorFilterer) FilterUnpaused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterUnpaused(opts *bind.FilterOpts) (*TradingrewardsdistributorUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*TradingrewardsdistributorFilterer) FilterUpdateTradingRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) FilterUpdateTradingRewards(opts *bind.FilterOpts, rewardRound []*big.Int) (*TradingrewardsdistributorUpdateTradingRewardsIterator, error)
FilterUpdateTradingRewards is a free log retrieval operation binding the contract event 0x0b1d6b49e69d133866d064a73f0181e1e35aa94fde3ef0095587d7ebd0423caa.
Solidity: event UpdateTradingRewards(uint256 indexed rewardRound)
func (*TradingrewardsdistributorFilterer) ParseOwnershipTransferred ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseOwnershipTransferred(log types.Log) (*TradingrewardsdistributorOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*TradingrewardsdistributorFilterer) ParsePaused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParsePaused(log types.Log) (*TradingrewardsdistributorPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*TradingrewardsdistributorFilterer) ParseRewardsClaim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseRewardsClaim(log types.Log) (*TradingrewardsdistributorRewardsClaim, error)
ParseRewardsClaim is a log parse operation binding the contract event 0xe8dbd8c18906df11a70832fe7c874d1fddf6952cee2320658d66925618387999.
Solidity: event RewardsClaim(address indexed user, uint256 indexed rewardRound, uint256 amount)
func (*TradingrewardsdistributorFilterer) ParseTokenWithdrawnOwner ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseTokenWithdrawnOwner(log types.Log) (*TradingrewardsdistributorTokenWithdrawnOwner, error)
ParseTokenWithdrawnOwner is a log parse operation binding the contract event 0xb4cd5c4a08bbed33abfe773ece179d156730e39629e065b7dcd8263027387c1d.
Solidity: event TokenWithdrawnOwner(uint256 amount)
func (*TradingrewardsdistributorFilterer) ParseUnpaused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseUnpaused(log types.Log) (*TradingrewardsdistributorUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*TradingrewardsdistributorFilterer) ParseUpdateTradingRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) ParseUpdateTradingRewards(log types.Log) (*TradingrewardsdistributorUpdateTradingRewards, error)
ParseUpdateTradingRewards is a log parse operation binding the contract event 0x0b1d6b49e69d133866d064a73f0181e1e35aa94fde3ef0095587d7ebd0423caa.
Solidity: event UpdateTradingRewards(uint256 indexed rewardRound)
func (*TradingrewardsdistributorFilterer) WatchOwnershipTransferred ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*TradingrewardsdistributorFilterer) WatchPaused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*TradingrewardsdistributorFilterer) WatchRewardsClaim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchRewardsClaim(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorRewardsClaim, user []common.Address, rewardRound []*big.Int) (event.Subscription, error)
WatchRewardsClaim is a free log subscription operation binding the contract event 0xe8dbd8c18906df11a70832fe7c874d1fddf6952cee2320658d66925618387999.
Solidity: event RewardsClaim(address indexed user, uint256 indexed rewardRound, uint256 amount)
func (*TradingrewardsdistributorFilterer) WatchTokenWithdrawnOwner ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchTokenWithdrawnOwner(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorTokenWithdrawnOwner) (event.Subscription, error)
WatchTokenWithdrawnOwner is a free log subscription operation binding the contract event 0xb4cd5c4a08bbed33abfe773ece179d156730e39629e065b7dcd8263027387c1d.
Solidity: event TokenWithdrawnOwner(uint256 amount)
func (*TradingrewardsdistributorFilterer) WatchUnpaused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*TradingrewardsdistributorFilterer) WatchUpdateTradingRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorFilterer) WatchUpdateTradingRewards(opts *bind.WatchOpts, sink chan<- *TradingrewardsdistributorUpdateTradingRewards, rewardRound []*big.Int) (event.Subscription, error)
WatchUpdateTradingRewards is a free log subscription operation binding the contract event 0x0b1d6b49e69d133866d064a73f0181e1e35aa94fde3ef0095587d7ebd0423caa.
Solidity: event UpdateTradingRewards(uint256 indexed rewardRound)
type TradingrewardsdistributorOwnershipTransferred ¶
type TradingrewardsdistributorOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
TradingrewardsdistributorOwnershipTransferred represents a OwnershipTransferred event raised by the Tradingrewardsdistributor contract.
type TradingrewardsdistributorOwnershipTransferredIterator ¶
type TradingrewardsdistributorOwnershipTransferredIterator struct { Event *TradingrewardsdistributorOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TradingrewardsdistributorOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Tradingrewardsdistributor contract.
func (*TradingrewardsdistributorOwnershipTransferredIterator) Close ¶
func (it *TradingrewardsdistributorOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TradingrewardsdistributorOwnershipTransferredIterator) Error ¶
func (it *TradingrewardsdistributorOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TradingrewardsdistributorOwnershipTransferredIterator) Next ¶
func (it *TradingrewardsdistributorOwnershipTransferredIterator) 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 TradingrewardsdistributorPaused ¶
type TradingrewardsdistributorPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
TradingrewardsdistributorPaused represents a Paused event raised by the Tradingrewardsdistributor contract.
type TradingrewardsdistributorPausedIterator ¶
type TradingrewardsdistributorPausedIterator struct { Event *TradingrewardsdistributorPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TradingrewardsdistributorPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Tradingrewardsdistributor contract.
func (*TradingrewardsdistributorPausedIterator) Close ¶
func (it *TradingrewardsdistributorPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TradingrewardsdistributorPausedIterator) Error ¶
func (it *TradingrewardsdistributorPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TradingrewardsdistributorPausedIterator) Next ¶
func (it *TradingrewardsdistributorPausedIterator) 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 TradingrewardsdistributorRaw ¶
type TradingrewardsdistributorRaw struct {
Contract *Tradingrewardsdistributor // Generic contract binding to access the raw methods on
}
TradingrewardsdistributorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TradingrewardsdistributorRaw) Call ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorRaw) 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 (*TradingrewardsdistributorRaw) Transact ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TradingrewardsdistributorRaw) Transfer ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorRaw) 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 TradingrewardsdistributorRewardsClaim ¶
type TradingrewardsdistributorRewardsClaim struct { User common.Address RewardRound *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TradingrewardsdistributorRewardsClaim represents a RewardsClaim event raised by the Tradingrewardsdistributor contract.
type TradingrewardsdistributorRewardsClaimIterator ¶
type TradingrewardsdistributorRewardsClaimIterator struct { Event *TradingrewardsdistributorRewardsClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TradingrewardsdistributorRewardsClaimIterator is returned from FilterRewardsClaim and is used to iterate over the raw logs and unpacked data for RewardsClaim events raised by the Tradingrewardsdistributor contract.
func (*TradingrewardsdistributorRewardsClaimIterator) Close ¶
func (it *TradingrewardsdistributorRewardsClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TradingrewardsdistributorRewardsClaimIterator) Error ¶
func (it *TradingrewardsdistributorRewardsClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TradingrewardsdistributorRewardsClaimIterator) Next ¶
func (it *TradingrewardsdistributorRewardsClaimIterator) 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 TradingrewardsdistributorSession ¶
type TradingrewardsdistributorSession struct { Contract *Tradingrewardsdistributor // 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 }
TradingrewardsdistributorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TradingrewardsdistributorSession) AmountClaimedByUser ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) AmountClaimedByUser(arg0 common.Address) (*big.Int, error)
AmountClaimedByUser is a free data retrieval call binding the contract method 0x3b66f49d.
Solidity: function amountClaimedByUser(address ) view returns(uint256)
func (*TradingrewardsdistributorSession) BUFFERADMINWITHDRAW ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) BUFFERADMINWITHDRAW() (*big.Int, error)
BUFFERADMINWITHDRAW is a free data retrieval call binding the contract method 0x141fd8c8.
Solidity: function BUFFER_ADMIN_WITHDRAW() view returns(uint256)
func (*TradingrewardsdistributorSession) CanClaim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) CanClaim(user common.Address, amount *big.Int, merkleProof [][32]byte) (bool, *big.Int, error)
CanClaim is a free data retrieval call binding the contract method 0xdc38bdb5.
Solidity: function canClaim(address user, uint256 amount, bytes32[] merkleProof) view returns(bool, uint256)
func (*TradingrewardsdistributorSession) Claim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) Claim(amount *big.Int, merkleProof [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2f52ebb7.
Solidity: function claim(uint256 amount, bytes32[] merkleProof) returns()
func (*TradingrewardsdistributorSession) CurrentRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) CurrentRewardRound() (*big.Int, error)
CurrentRewardRound is a free data retrieval call binding the contract method 0x1040faf9.
Solidity: function currentRewardRound() view returns(uint256)
func (*TradingrewardsdistributorSession) HasUserClaimedForRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) HasUserClaimedForRewardRound(arg0 *big.Int, arg1 common.Address) (bool, error)
HasUserClaimedForRewardRound is a free data retrieval call binding the contract method 0x9ea76f34.
Solidity: function hasUserClaimedForRewardRound(uint256 , address ) view returns(bool)
func (*TradingrewardsdistributorSession) HunterGovernanceToken ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) HunterGovernanceToken() (common.Address, error)
HunterGovernanceToken is a free data retrieval call binding the contract method 0xf363264a.
Solidity: function hunterGovernanceToken() view returns(address)
func (*TradingrewardsdistributorSession) LastPausedTimestamp ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) LastPausedTimestamp() (*big.Int, error)
LastPausedTimestamp is a free data retrieval call binding the contract method 0xfa461974.
Solidity: function lastPausedTimestamp() view returns(uint256)
func (*TradingrewardsdistributorSession) MaximumAmountPerUserInCurrentTree ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) MaximumAmountPerUserInCurrentTree() (*big.Int, error)
MaximumAmountPerUserInCurrentTree is a free data retrieval call binding the contract method 0xff0a4eb0.
Solidity: function maximumAmountPerUserInCurrentTree() view returns(uint256)
func (*TradingrewardsdistributorSession) MerkleRootOfRewardRound ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) MerkleRootOfRewardRound(arg0 *big.Int) ([32]byte, error)
MerkleRootOfRewardRound is a free data retrieval call binding the contract method 0x84483c86.
Solidity: function merkleRootOfRewardRound(uint256 ) view returns(bytes32)
func (*TradingrewardsdistributorSession) MerkleRootUsed ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) MerkleRootUsed(arg0 [32]byte) (bool, error)
MerkleRootUsed is a free data retrieval call binding the contract method 0xba42590d.
Solidity: function merkleRootUsed(bytes32 ) view returns(bool)
func (*TradingrewardsdistributorSession) Owner ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*TradingrewardsdistributorSession) PauseDistribution ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) PauseDistribution() (*types.Transaction, error)
PauseDistribution is a paid mutator transaction binding the contract method 0x31cec7a3.
Solidity: function pauseDistribution() returns()
func (*TradingrewardsdistributorSession) Paused ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*TradingrewardsdistributorSession) RenounceOwnership ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*TradingrewardsdistributorSession) TransferOwnership ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*TradingrewardsdistributorSession) UnpauseDistribution ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) UnpauseDistribution() (*types.Transaction, error)
UnpauseDistribution is a paid mutator transaction binding the contract method 0xb94ec9d0.
Solidity: function unpauseDistribution() returns()
func (*TradingrewardsdistributorSession) UpdateTradingRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) UpdateTradingRewards(merkleRoot [32]byte, newMaximumAmountPerUser *big.Int) (*types.Transaction, error)
UpdateTradingRewards is a paid mutator transaction binding the contract method 0x847fadca.
Solidity: function updateTradingRewards(bytes32 merkleRoot, uint256 newMaximumAmountPerUser) returns()
func (*TradingrewardsdistributorSession) WithdrawTokenRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorSession) WithdrawTokenRewards(amount *big.Int) (*types.Transaction, error)
WithdrawTokenRewards is a paid mutator transaction binding the contract method 0x8923e2f7.
Solidity: function withdrawTokenRewards(uint256 amount) returns()
type TradingrewardsdistributorTokenWithdrawnOwner ¶
type TradingrewardsdistributorTokenWithdrawnOwner struct { Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TradingrewardsdistributorTokenWithdrawnOwner represents a TokenWithdrawnOwner event raised by the Tradingrewardsdistributor contract.
type TradingrewardsdistributorTokenWithdrawnOwnerIterator ¶
type TradingrewardsdistributorTokenWithdrawnOwnerIterator struct { Event *TradingrewardsdistributorTokenWithdrawnOwner // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TradingrewardsdistributorTokenWithdrawnOwnerIterator is returned from FilterTokenWithdrawnOwner and is used to iterate over the raw logs and unpacked data for TokenWithdrawnOwner events raised by the Tradingrewardsdistributor contract.
func (*TradingrewardsdistributorTokenWithdrawnOwnerIterator) Close ¶
func (it *TradingrewardsdistributorTokenWithdrawnOwnerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TradingrewardsdistributorTokenWithdrawnOwnerIterator) Error ¶
func (it *TradingrewardsdistributorTokenWithdrawnOwnerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TradingrewardsdistributorTokenWithdrawnOwnerIterator) Next ¶
func (it *TradingrewardsdistributorTokenWithdrawnOwnerIterator) 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 TradingrewardsdistributorTransactor ¶
type TradingrewardsdistributorTransactor struct {
// contains filtered or unexported fields
}
TradingrewardsdistributorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTradingrewardsdistributorTransactor ¶
func NewTradingrewardsdistributorTransactor(address common.Address, transactor bind.ContractTransactor) (*TradingrewardsdistributorTransactor, error)
NewTradingrewardsdistributorTransactor creates a new write-only instance of Tradingrewardsdistributor, bound to a specific deployed contract.
func (*TradingrewardsdistributorTransactor) Claim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) Claim(opts *bind.TransactOpts, amount *big.Int, merkleProof [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2f52ebb7.
Solidity: function claim(uint256 amount, bytes32[] merkleProof) returns()
func (*TradingrewardsdistributorTransactor) PauseDistribution ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) PauseDistribution(opts *bind.TransactOpts) (*types.Transaction, error)
PauseDistribution is a paid mutator transaction binding the contract method 0x31cec7a3.
Solidity: function pauseDistribution() returns()
func (*TradingrewardsdistributorTransactor) RenounceOwnership ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*TradingrewardsdistributorTransactor) TransferOwnership ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*TradingrewardsdistributorTransactor) UnpauseDistribution ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) UnpauseDistribution(opts *bind.TransactOpts) (*types.Transaction, error)
UnpauseDistribution is a paid mutator transaction binding the contract method 0xb94ec9d0.
Solidity: function unpauseDistribution() returns()
func (*TradingrewardsdistributorTransactor) UpdateTradingRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) UpdateTradingRewards(opts *bind.TransactOpts, merkleRoot [32]byte, newMaximumAmountPerUser *big.Int) (*types.Transaction, error)
UpdateTradingRewards is a paid mutator transaction binding the contract method 0x847fadca.
Solidity: function updateTradingRewards(bytes32 merkleRoot, uint256 newMaximumAmountPerUser) returns()
func (*TradingrewardsdistributorTransactor) WithdrawTokenRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactor) WithdrawTokenRewards(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
WithdrawTokenRewards is a paid mutator transaction binding the contract method 0x8923e2f7.
Solidity: function withdrawTokenRewards(uint256 amount) returns()
type TradingrewardsdistributorTransactorRaw ¶
type TradingrewardsdistributorTransactorRaw struct {
Contract *TradingrewardsdistributorTransactor // Generic write-only contract binding to access the raw methods on
}
TradingrewardsdistributorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TradingrewardsdistributorTransactorRaw) Transact ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TradingrewardsdistributorTransactorRaw) Transfer ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorRaw) 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 TradingrewardsdistributorTransactorSession ¶
type TradingrewardsdistributorTransactorSession struct { Contract *TradingrewardsdistributorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TradingrewardsdistributorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TradingrewardsdistributorTransactorSession) Claim ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) Claim(amount *big.Int, merkleProof [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2f52ebb7.
Solidity: function claim(uint256 amount, bytes32[] merkleProof) returns()
func (*TradingrewardsdistributorTransactorSession) PauseDistribution ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) PauseDistribution() (*types.Transaction, error)
PauseDistribution is a paid mutator transaction binding the contract method 0x31cec7a3.
Solidity: function pauseDistribution() returns()
func (*TradingrewardsdistributorTransactorSession) RenounceOwnership ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*TradingrewardsdistributorTransactorSession) TransferOwnership ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*TradingrewardsdistributorTransactorSession) UnpauseDistribution ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) UnpauseDistribution() (*types.Transaction, error)
UnpauseDistribution is a paid mutator transaction binding the contract method 0xb94ec9d0.
Solidity: function unpauseDistribution() returns()
func (*TradingrewardsdistributorTransactorSession) UpdateTradingRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) UpdateTradingRewards(merkleRoot [32]byte, newMaximumAmountPerUser *big.Int) (*types.Transaction, error)
UpdateTradingRewards is a paid mutator transaction binding the contract method 0x847fadca.
Solidity: function updateTradingRewards(bytes32 merkleRoot, uint256 newMaximumAmountPerUser) returns()
func (*TradingrewardsdistributorTransactorSession) WithdrawTokenRewards ¶
func (_Tradingrewardsdistributor *TradingrewardsdistributorTransactorSession) WithdrawTokenRewards(amount *big.Int) (*types.Transaction, error)
WithdrawTokenRewards is a paid mutator transaction binding the contract method 0x8923e2f7.
Solidity: function withdrawTokenRewards(uint256 amount) returns()
type TradingrewardsdistributorUnpaused ¶
type TradingrewardsdistributorUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
TradingrewardsdistributorUnpaused represents a Unpaused event raised by the Tradingrewardsdistributor contract.
type TradingrewardsdistributorUnpausedIterator ¶
type TradingrewardsdistributorUnpausedIterator struct { Event *TradingrewardsdistributorUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TradingrewardsdistributorUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Tradingrewardsdistributor contract.
func (*TradingrewardsdistributorUnpausedIterator) Close ¶
func (it *TradingrewardsdistributorUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TradingrewardsdistributorUnpausedIterator) Error ¶
func (it *TradingrewardsdistributorUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TradingrewardsdistributorUnpausedIterator) Next ¶
func (it *TradingrewardsdistributorUnpausedIterator) 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 TradingrewardsdistributorUpdateTradingRewards ¶
type TradingrewardsdistributorUpdateTradingRewards struct { RewardRound *big.Int Raw types.Log // Blockchain specific contextual infos }
TradingrewardsdistributorUpdateTradingRewards represents a UpdateTradingRewards event raised by the Tradingrewardsdistributor contract.
type TradingrewardsdistributorUpdateTradingRewardsIterator ¶
type TradingrewardsdistributorUpdateTradingRewardsIterator struct { Event *TradingrewardsdistributorUpdateTradingRewards // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TradingrewardsdistributorUpdateTradingRewardsIterator is returned from FilterUpdateTradingRewards and is used to iterate over the raw logs and unpacked data for UpdateTradingRewards events raised by the Tradingrewardsdistributor contract.
func (*TradingrewardsdistributorUpdateTradingRewardsIterator) Close ¶
func (it *TradingrewardsdistributorUpdateTradingRewardsIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TradingrewardsdistributorUpdateTradingRewardsIterator) Error ¶
func (it *TradingrewardsdistributorUpdateTradingRewardsIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TradingrewardsdistributorUpdateTradingRewardsIterator) Next ¶
func (it *TradingrewardsdistributorUpdateTradingRewardsIterator) 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.