Documentation ¶
Index ¶
- Variables
- type Distributor
- type DistributorCaller
- func (_Distributor *DistributorCaller) GetCurrentNodeDepositAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_Distributor *DistributorCaller) GetDistributeFeeDealedHeight(opts *bind.CallOpts) (*big.Int, error)
- func (_Distributor *DistributorCaller) GetDistributeSlashDealedHeight(opts *bind.CallOpts) (*big.Int, error)
- func (_Distributor *DistributorCaller) GetDistributeSuperNodeFeeDealedHeight(opts *bind.CallOpts) (*big.Int, error)
- func (_Distributor *DistributorCaller) GetMerkleDealedEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_Distributor *DistributorCaller) GetMerkleRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_Distributor *DistributorCaller) GetTotalClaimedDeposit(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
- func (_Distributor *DistributorCaller) GetTotalClaimedReward(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
- func (_Distributor *DistributorCaller) Version(opts *bind.CallOpts) (uint8, error)
- type DistributorCallerRaw
- type DistributorCallerSession
- func (_Distributor *DistributorCallerSession) GetCurrentNodeDepositAmount() (*big.Int, error)
- func (_Distributor *DistributorCallerSession) GetDistributeFeeDealedHeight() (*big.Int, error)
- func (_Distributor *DistributorCallerSession) GetDistributeSlashDealedHeight() (*big.Int, error)
- func (_Distributor *DistributorCallerSession) GetDistributeSuperNodeFeeDealedHeight() (*big.Int, error)
- func (_Distributor *DistributorCallerSession) GetMerkleDealedEpoch() (*big.Int, error)
- func (_Distributor *DistributorCallerSession) GetMerkleRoot() ([32]byte, error)
- func (_Distributor *DistributorCallerSession) GetTotalClaimedDeposit(_account common.Address) (*big.Int, error)
- func (_Distributor *DistributorCallerSession) GetTotalClaimedReward(_account common.Address) (*big.Int, error)
- func (_Distributor *DistributorCallerSession) Version() (uint8, error)
- type DistributorClaimed
- type DistributorClaimedIterator
- type DistributorDistributeFee
- type DistributorDistributeFeeIterator
- type DistributorDistributeSlash
- type DistributorDistributeSlashIterator
- type DistributorDistributeSuperNodeFee
- type DistributorDistributeSuperNodeFeeIterator
- type DistributorFilterer
- func (_Distributor *DistributorFilterer) FilterClaimed(opts *bind.FilterOpts) (*DistributorClaimedIterator, error)
- func (_Distributor *DistributorFilterer) FilterDistributeFee(opts *bind.FilterOpts) (*DistributorDistributeFeeIterator, error)
- func (_Distributor *DistributorFilterer) FilterDistributeSlash(opts *bind.FilterOpts) (*DistributorDistributeSlashIterator, error)
- func (_Distributor *DistributorFilterer) FilterDistributeSuperNodeFee(opts *bind.FilterOpts) (*DistributorDistributeSuperNodeFeeIterator, error)
- func (_Distributor *DistributorFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*DistributorProposalExecutedIterator, error)
- func (_Distributor *DistributorFilterer) FilterSetMerkleRoot(opts *bind.FilterOpts) (*DistributorSetMerkleRootIterator, error)
- func (_Distributor *DistributorFilterer) FilterVoteProposal(opts *bind.FilterOpts, proposalId [][32]byte) (*DistributorVoteProposalIterator, error)
- func (_Distributor *DistributorFilterer) ParseClaimed(log types.Log) (*DistributorClaimed, error)
- func (_Distributor *DistributorFilterer) ParseDistributeFee(log types.Log) (*DistributorDistributeFee, error)
- func (_Distributor *DistributorFilterer) ParseDistributeSlash(log types.Log) (*DistributorDistributeSlash, error)
- func (_Distributor *DistributorFilterer) ParseDistributeSuperNodeFee(log types.Log) (*DistributorDistributeSuperNodeFee, error)
- func (_Distributor *DistributorFilterer) ParseProposalExecuted(log types.Log) (*DistributorProposalExecuted, error)
- func (_Distributor *DistributorFilterer) ParseSetMerkleRoot(log types.Log) (*DistributorSetMerkleRoot, error)
- func (_Distributor *DistributorFilterer) ParseVoteProposal(log types.Log) (*DistributorVoteProposal, error)
- func (_Distributor *DistributorFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *DistributorClaimed) (event.Subscription, error)
- func (_Distributor *DistributorFilterer) WatchDistributeFee(opts *bind.WatchOpts, sink chan<- *DistributorDistributeFee) (event.Subscription, error)
- func (_Distributor *DistributorFilterer) WatchDistributeSlash(opts *bind.WatchOpts, sink chan<- *DistributorDistributeSlash) (event.Subscription, error)
- func (_Distributor *DistributorFilterer) WatchDistributeSuperNodeFee(opts *bind.WatchOpts, sink chan<- *DistributorDistributeSuperNodeFee) (event.Subscription, error)
- func (_Distributor *DistributorFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *DistributorProposalExecuted, ...) (event.Subscription, error)
- func (_Distributor *DistributorFilterer) WatchSetMerkleRoot(opts *bind.WatchOpts, sink chan<- *DistributorSetMerkleRoot) (event.Subscription, error)
- func (_Distributor *DistributorFilterer) WatchVoteProposal(opts *bind.WatchOpts, sink chan<- *DistributorVoteProposal, ...) (event.Subscription, error)
- type DistributorProposalExecuted
- type DistributorProposalExecutedIterator
- type DistributorRaw
- func (_Distributor *DistributorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Distributor *DistributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Distributor *DistributorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DistributorSession
- func (_Distributor *DistributorSession) Claim(_index *big.Int, _account common.Address, _totalRewardAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeSlashAmount(_dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeSuperNodeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeWithdrawals() (*types.Transaction, error)
- func (_Distributor *DistributorSession) GetCurrentNodeDepositAmount() (*big.Int, error)
- func (_Distributor *DistributorSession) GetDistributeFeeDealedHeight() (*big.Int, error)
- func (_Distributor *DistributorSession) GetDistributeSlashDealedHeight() (*big.Int, error)
- func (_Distributor *DistributorSession) GetDistributeSuperNodeFeeDealedHeight() (*big.Int, error)
- func (_Distributor *DistributorSession) GetMerkleDealedEpoch() (*big.Int, error)
- func (_Distributor *DistributorSession) GetMerkleRoot() ([32]byte, error)
- func (_Distributor *DistributorSession) GetTotalClaimedDeposit(_account common.Address) (*big.Int, error)
- func (_Distributor *DistributorSession) GetTotalClaimedReward(_account common.Address) (*big.Int, error)
- func (_Distributor *DistributorSession) Receive() (*types.Transaction, error)
- func (_Distributor *DistributorSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
- func (_Distributor *DistributorSession) SetMerkleRoot(_dealedEpoch *big.Int, _merkleRoot [32]byte) (*types.Transaction, error)
- func (_Distributor *DistributorSession) UpdateMerkleRoot(_merkleRoot [32]byte) (*types.Transaction, error)
- func (_Distributor *DistributorSession) Version() (uint8, error)
- type DistributorSetMerkleRoot
- type DistributorSetMerkleRootIterator
- type DistributorTransactor
- func (_Distributor *DistributorTransactor) Claim(opts *bind.TransactOpts, _index *big.Int, _account common.Address, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) DistributeFee(opts *bind.TransactOpts, _dealedHeight *big.Int, _userAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) DistributeSlashAmount(opts *bind.TransactOpts, _dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) DistributeSuperNodeFee(opts *bind.TransactOpts, _dealedHeight *big.Int, _userAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) DistributeWithdrawals(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) ReceiveEtherWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) SetMerkleRoot(opts *bind.TransactOpts, _dealedEpoch *big.Int, _merkleRoot [32]byte) (*types.Transaction, error)
- func (_Distributor *DistributorTransactor) UpdateMerkleRoot(opts *bind.TransactOpts, _merkleRoot [32]byte) (*types.Transaction, error)
- type DistributorTransactorRaw
- type DistributorTransactorSession
- func (_Distributor *DistributorTransactorSession) Claim(_index *big.Int, _account common.Address, _totalRewardAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeSlashAmount(_dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeSuperNodeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeWithdrawals() (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) Receive() (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) SetMerkleRoot(_dealedEpoch *big.Int, _merkleRoot [32]byte) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) UpdateMerkleRoot(_merkleRoot [32]byte) (*types.Transaction, error)
- type DistributorVoteProposal
- type DistributorVoteProposalIterator
Constants ¶
This section is empty.
Variables ¶
var DistributorABI = DistributorMetaData.ABI
DistributorABI is the input ABI used to generate the binding from. Deprecated: Use DistributorMetaData.ABI instead.
var DistributorMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"claimableReward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"claimableDeposit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumClaimType\",\"name\":\"claimType\",\"type\":\"uint8\"}],\"name\":\"Claimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dealedHeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"userAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nodeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"platformAmount\",\"type\":\"uint256\"}],\"name\":\"DistributeFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dealedHeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"slashAmount\",\"type\":\"uint256\"}],\"name\":\"DistributeSlash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dealedHeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"userAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nodeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"platformAmount\",\"type\":\"uint256\"}],\"name\":\"DistributeSuperNodeFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"proposalId\",\"type\":\"bytes32\"}],\"name\":\"ProposalExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dealedEpoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"SetMerkleRoot\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"proposalId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"VoteProposal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_totalRewardAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_totalExitDepositAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"enumClaimType\",\"name\":\"_claimType\",\"type\":\"uint8\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_dealedHeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_userAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_platformAmount\",\"type\":\"uint256\"}],\"name\":\"distributeFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_dealedHeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"distributeSlashAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_dealedHeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_userAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_platformAmount\",\"type\":\"uint256\"}],\"name\":\"distributeSuperNodeFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distributeWithdrawals\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentNodeDepositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDistributeFeeDealedHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDistributeSlashDealedHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDistributeSuperNodeFeeDealedHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMerkleDealedEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMerkleRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getTotalClaimedDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getTotalClaimedReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"receiveEtherWithdrawal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_dealedEpoch\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"setMerkleRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_merkleRoot\",\"type\":\"bytes32\"}],\"name\":\"updateMerkleRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
DistributorMetaData contains all meta data concerning the Distributor contract.
Functions ¶
This section is empty.
Types ¶
type Distributor ¶
type Distributor struct { DistributorCaller // Read-only binding to the contract DistributorTransactor // Write-only binding to the contract DistributorFilterer // Log filterer for contract events }
Distributor is an auto generated Go binding around an Ethereum contract.
func NewDistributor ¶
func NewDistributor(address common.Address, backend bind.ContractBackend) (*Distributor, error)
NewDistributor creates a new instance of Distributor, bound to a specific deployed contract.
type DistributorCaller ¶
type DistributorCaller struct {
// contains filtered or unexported fields
}
DistributorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDistributorCaller ¶
func NewDistributorCaller(address common.Address, caller bind.ContractCaller) (*DistributorCaller, error)
NewDistributorCaller creates a new read-only instance of Distributor, bound to a specific deployed contract.
func (*DistributorCaller) GetCurrentNodeDepositAmount ¶
func (_Distributor *DistributorCaller) GetCurrentNodeDepositAmount(opts *bind.CallOpts) (*big.Int, error)
GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (*DistributorCaller) GetDistributeFeeDealedHeight ¶
func (_Distributor *DistributorCaller) GetDistributeFeeDealedHeight(opts *bind.CallOpts) (*big.Int, error)
GetDistributeFeeDealedHeight is a free data retrieval call binding the contract method 0xf1e26b0d.
Solidity: function getDistributeFeeDealedHeight() view returns(uint256)
func (*DistributorCaller) GetDistributeSlashDealedHeight ¶
func (_Distributor *DistributorCaller) GetDistributeSlashDealedHeight(opts *bind.CallOpts) (*big.Int, error)
GetDistributeSlashDealedHeight is a free data retrieval call binding the contract method 0xb56fab8b.
Solidity: function getDistributeSlashDealedHeight() view returns(uint256)
func (*DistributorCaller) GetDistributeSuperNodeFeeDealedHeight ¶
func (_Distributor *DistributorCaller) GetDistributeSuperNodeFeeDealedHeight(opts *bind.CallOpts) (*big.Int, error)
GetDistributeSuperNodeFeeDealedHeight is a free data retrieval call binding the contract method 0xad4a473a.
Solidity: function getDistributeSuperNodeFeeDealedHeight() view returns(uint256)
func (*DistributorCaller) GetMerkleDealedEpoch ¶
GetMerkleDealedEpoch is a free data retrieval call binding the contract method 0x7cd1fc9d.
Solidity: function getMerkleDealedEpoch() view returns(uint256)
func (*DistributorCaller) GetMerkleRoot ¶
func (_Distributor *DistributorCaller) GetMerkleRoot(opts *bind.CallOpts) ([32]byte, error)
GetMerkleRoot is a free data retrieval call binding the contract method 0x49590657.
Solidity: function getMerkleRoot() view returns(bytes32)
func (*DistributorCaller) GetTotalClaimedDeposit ¶
func (_Distributor *DistributorCaller) GetTotalClaimedDeposit(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
GetTotalClaimedDeposit is a free data retrieval call binding the contract method 0x1a94fbdf.
Solidity: function getTotalClaimedDeposit(address _account) view returns(uint256)
func (*DistributorCaller) GetTotalClaimedReward ¶
func (_Distributor *DistributorCaller) GetTotalClaimedReward(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
GetTotalClaimedReward is a free data retrieval call binding the contract method 0x1f6c9fc0.
Solidity: function getTotalClaimedReward(address _account) view returns(uint256)
type DistributorCallerRaw ¶
type DistributorCallerRaw struct {
Contract *DistributorCaller // Generic read-only contract binding to access the raw methods on
}
DistributorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DistributorCallerRaw) Call ¶
func (_Distributor *DistributorCallerRaw) 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 DistributorCallerSession ¶
type DistributorCallerSession struct { Contract *DistributorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DistributorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DistributorCallerSession) GetCurrentNodeDepositAmount ¶
func (_Distributor *DistributorCallerSession) GetCurrentNodeDepositAmount() (*big.Int, error)
GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (*DistributorCallerSession) GetDistributeFeeDealedHeight ¶
func (_Distributor *DistributorCallerSession) GetDistributeFeeDealedHeight() (*big.Int, error)
GetDistributeFeeDealedHeight is a free data retrieval call binding the contract method 0xf1e26b0d.
Solidity: function getDistributeFeeDealedHeight() view returns(uint256)
func (*DistributorCallerSession) GetDistributeSlashDealedHeight ¶
func (_Distributor *DistributorCallerSession) GetDistributeSlashDealedHeight() (*big.Int, error)
GetDistributeSlashDealedHeight is a free data retrieval call binding the contract method 0xb56fab8b.
Solidity: function getDistributeSlashDealedHeight() view returns(uint256)
func (*DistributorCallerSession) GetDistributeSuperNodeFeeDealedHeight ¶
func (_Distributor *DistributorCallerSession) GetDistributeSuperNodeFeeDealedHeight() (*big.Int, error)
GetDistributeSuperNodeFeeDealedHeight is a free data retrieval call binding the contract method 0xad4a473a.
Solidity: function getDistributeSuperNodeFeeDealedHeight() view returns(uint256)
func (*DistributorCallerSession) GetMerkleDealedEpoch ¶
func (_Distributor *DistributorCallerSession) GetMerkleDealedEpoch() (*big.Int, error)
GetMerkleDealedEpoch is a free data retrieval call binding the contract method 0x7cd1fc9d.
Solidity: function getMerkleDealedEpoch() view returns(uint256)
func (*DistributorCallerSession) GetMerkleRoot ¶
func (_Distributor *DistributorCallerSession) GetMerkleRoot() ([32]byte, error)
GetMerkleRoot is a free data retrieval call binding the contract method 0x49590657.
Solidity: function getMerkleRoot() view returns(bytes32)
func (*DistributorCallerSession) GetTotalClaimedDeposit ¶
func (_Distributor *DistributorCallerSession) GetTotalClaimedDeposit(_account common.Address) (*big.Int, error)
GetTotalClaimedDeposit is a free data retrieval call binding the contract method 0x1a94fbdf.
Solidity: function getTotalClaimedDeposit(address _account) view returns(uint256)
func (*DistributorCallerSession) GetTotalClaimedReward ¶
func (_Distributor *DistributorCallerSession) GetTotalClaimedReward(_account common.Address) (*big.Int, error)
GetTotalClaimedReward is a free data retrieval call binding the contract method 0x1f6c9fc0.
Solidity: function getTotalClaimedReward(address _account) view returns(uint256)
func (*DistributorCallerSession) Version ¶
func (_Distributor *DistributorCallerSession) Version() (uint8, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(uint8)
type DistributorClaimed ¶
type DistributorClaimed struct { Index *big.Int Account common.Address ClaimableReward *big.Int ClaimableDeposit *big.Int ClaimType uint8 Raw types.Log // Blockchain specific contextual infos }
DistributorClaimed represents a Claimed event raised by the Distributor contract.
type DistributorClaimedIterator ¶
type DistributorClaimedIterator struct { Event *DistributorClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorClaimedIterator is returned from FilterClaimed and is used to iterate over the raw logs and unpacked data for Claimed events raised by the Distributor contract.
func (*DistributorClaimedIterator) Close ¶
func (it *DistributorClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorClaimedIterator) Error ¶
func (it *DistributorClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorClaimedIterator) Next ¶
func (it *DistributorClaimedIterator) 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 DistributorDistributeFee ¶
type DistributorDistributeFee struct { DealedHeight *big.Int UserAmount *big.Int NodeAmount *big.Int PlatformAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
DistributorDistributeFee represents a DistributeFee event raised by the Distributor contract.
type DistributorDistributeFeeIterator ¶
type DistributorDistributeFeeIterator struct { Event *DistributorDistributeFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorDistributeFeeIterator is returned from FilterDistributeFee and is used to iterate over the raw logs and unpacked data for DistributeFee events raised by the Distributor contract.
func (*DistributorDistributeFeeIterator) Close ¶
func (it *DistributorDistributeFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorDistributeFeeIterator) Error ¶
func (it *DistributorDistributeFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorDistributeFeeIterator) Next ¶
func (it *DistributorDistributeFeeIterator) 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 DistributorDistributeSlash ¶
type DistributorDistributeSlash struct { DealedHeight *big.Int SlashAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
DistributorDistributeSlash represents a DistributeSlash event raised by the Distributor contract.
type DistributorDistributeSlashIterator ¶
type DistributorDistributeSlashIterator struct { Event *DistributorDistributeSlash // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorDistributeSlashIterator is returned from FilterDistributeSlash and is used to iterate over the raw logs and unpacked data for DistributeSlash events raised by the Distributor contract.
func (*DistributorDistributeSlashIterator) Close ¶
func (it *DistributorDistributeSlashIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorDistributeSlashIterator) Error ¶
func (it *DistributorDistributeSlashIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorDistributeSlashIterator) Next ¶
func (it *DistributorDistributeSlashIterator) 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 DistributorDistributeSuperNodeFee ¶
type DistributorDistributeSuperNodeFee struct { DealedHeight *big.Int UserAmount *big.Int NodeAmount *big.Int PlatformAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
DistributorDistributeSuperNodeFee represents a DistributeSuperNodeFee event raised by the Distributor contract.
type DistributorDistributeSuperNodeFeeIterator ¶
type DistributorDistributeSuperNodeFeeIterator struct { Event *DistributorDistributeSuperNodeFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorDistributeSuperNodeFeeIterator is returned from FilterDistributeSuperNodeFee and is used to iterate over the raw logs and unpacked data for DistributeSuperNodeFee events raised by the Distributor contract.
func (*DistributorDistributeSuperNodeFeeIterator) Close ¶
func (it *DistributorDistributeSuperNodeFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorDistributeSuperNodeFeeIterator) Error ¶
func (it *DistributorDistributeSuperNodeFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorDistributeSuperNodeFeeIterator) Next ¶
func (it *DistributorDistributeSuperNodeFeeIterator) 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 DistributorFilterer ¶
type DistributorFilterer struct {
// contains filtered or unexported fields
}
DistributorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDistributorFilterer ¶
func NewDistributorFilterer(address common.Address, filterer bind.ContractFilterer) (*DistributorFilterer, error)
NewDistributorFilterer creates a new log filterer instance of Distributor, bound to a specific deployed contract.
func (*DistributorFilterer) FilterClaimed ¶
func (_Distributor *DistributorFilterer) FilterClaimed(opts *bind.FilterOpts) (*DistributorClaimedIterator, error)
FilterClaimed is a free log retrieval operation binding the contract event 0x805593669516ad95e9aa092bd501707436d9563eac1ef7c017cd6639eb29f8ee.
Solidity: event Claimed(uint256 index, address account, uint256 claimableReward, uint256 claimableDeposit, uint8 claimType)
func (*DistributorFilterer) FilterDistributeFee ¶
func (_Distributor *DistributorFilterer) FilterDistributeFee(opts *bind.FilterOpts) (*DistributorDistributeFeeIterator, error)
FilterDistributeFee is a free log retrieval operation binding the contract event 0x21c58bec2fee2b8fa31ce6802a99242adf6226b7ca63d69966c2036047374382.
Solidity: event DistributeFee(uint256 dealedHeight, uint256 userAmount, uint256 nodeAmount, uint256 platformAmount)
func (*DistributorFilterer) FilterDistributeSlash ¶
func (_Distributor *DistributorFilterer) FilterDistributeSlash(opts *bind.FilterOpts) (*DistributorDistributeSlashIterator, error)
FilterDistributeSlash is a free log retrieval operation binding the contract event 0x92cfd04ead0f32488c7f490c6afce1b145630dfcc9c3ed06b2ab0d0696a4bcef.
Solidity: event DistributeSlash(uint256 dealedHeight, uint256 slashAmount)
func (*DistributorFilterer) FilterDistributeSuperNodeFee ¶
func (_Distributor *DistributorFilterer) FilterDistributeSuperNodeFee(opts *bind.FilterOpts) (*DistributorDistributeSuperNodeFeeIterator, error)
FilterDistributeSuperNodeFee is a free log retrieval operation binding the contract event 0x4b6a75e8741caebe2695484108d8f5df71d33d430e453b66f68aa802f172edf7.
Solidity: event DistributeSuperNodeFee(uint256 dealedHeight, uint256 userAmount, uint256 nodeAmount, uint256 platformAmount)
func (*DistributorFilterer) FilterProposalExecuted ¶
func (_Distributor *DistributorFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*DistributorProposalExecutedIterator, error)
FilterProposalExecuted is a free log retrieval operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.
Solidity: event ProposalExecuted(bytes32 indexed proposalId)
func (*DistributorFilterer) FilterSetMerkleRoot ¶
func (_Distributor *DistributorFilterer) FilterSetMerkleRoot(opts *bind.FilterOpts) (*DistributorSetMerkleRootIterator, error)
FilterSetMerkleRoot is a free log retrieval operation binding the contract event 0x06300242dd77c603f351a5b575426a902d850335fbeb7c1aa2aaa83e64df395b.
Solidity: event SetMerkleRoot(uint256 dealedEpoch, bytes32 merkleRoot)
func (*DistributorFilterer) FilterVoteProposal ¶
func (_Distributor *DistributorFilterer) FilterVoteProposal(opts *bind.FilterOpts, proposalId [][32]byte) (*DistributorVoteProposalIterator, error)
FilterVoteProposal is a free log retrieval operation binding the contract event 0x3b58f01618556cdc5e9f7b0f1f6dccbac40024bc1043f589bd4a324e3414cfad.
Solidity: event VoteProposal(bytes32 indexed proposalId, address voter)
func (*DistributorFilterer) ParseClaimed ¶
func (_Distributor *DistributorFilterer) ParseClaimed(log types.Log) (*DistributorClaimed, error)
ParseClaimed is a log parse operation binding the contract event 0x805593669516ad95e9aa092bd501707436d9563eac1ef7c017cd6639eb29f8ee.
Solidity: event Claimed(uint256 index, address account, uint256 claimableReward, uint256 claimableDeposit, uint8 claimType)
func (*DistributorFilterer) ParseDistributeFee ¶
func (_Distributor *DistributorFilterer) ParseDistributeFee(log types.Log) (*DistributorDistributeFee, error)
ParseDistributeFee is a log parse operation binding the contract event 0x21c58bec2fee2b8fa31ce6802a99242adf6226b7ca63d69966c2036047374382.
Solidity: event DistributeFee(uint256 dealedHeight, uint256 userAmount, uint256 nodeAmount, uint256 platformAmount)
func (*DistributorFilterer) ParseDistributeSlash ¶
func (_Distributor *DistributorFilterer) ParseDistributeSlash(log types.Log) (*DistributorDistributeSlash, error)
ParseDistributeSlash is a log parse operation binding the contract event 0x92cfd04ead0f32488c7f490c6afce1b145630dfcc9c3ed06b2ab0d0696a4bcef.
Solidity: event DistributeSlash(uint256 dealedHeight, uint256 slashAmount)
func (*DistributorFilterer) ParseDistributeSuperNodeFee ¶
func (_Distributor *DistributorFilterer) ParseDistributeSuperNodeFee(log types.Log) (*DistributorDistributeSuperNodeFee, error)
ParseDistributeSuperNodeFee is a log parse operation binding the contract event 0x4b6a75e8741caebe2695484108d8f5df71d33d430e453b66f68aa802f172edf7.
Solidity: event DistributeSuperNodeFee(uint256 dealedHeight, uint256 userAmount, uint256 nodeAmount, uint256 platformAmount)
func (*DistributorFilterer) ParseProposalExecuted ¶
func (_Distributor *DistributorFilterer) ParseProposalExecuted(log types.Log) (*DistributorProposalExecuted, error)
ParseProposalExecuted is a log parse operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.
Solidity: event ProposalExecuted(bytes32 indexed proposalId)
func (*DistributorFilterer) ParseSetMerkleRoot ¶
func (_Distributor *DistributorFilterer) ParseSetMerkleRoot(log types.Log) (*DistributorSetMerkleRoot, error)
ParseSetMerkleRoot is a log parse operation binding the contract event 0x06300242dd77c603f351a5b575426a902d850335fbeb7c1aa2aaa83e64df395b.
Solidity: event SetMerkleRoot(uint256 dealedEpoch, bytes32 merkleRoot)
func (*DistributorFilterer) ParseVoteProposal ¶
func (_Distributor *DistributorFilterer) ParseVoteProposal(log types.Log) (*DistributorVoteProposal, error)
ParseVoteProposal is a log parse operation binding the contract event 0x3b58f01618556cdc5e9f7b0f1f6dccbac40024bc1043f589bd4a324e3414cfad.
Solidity: event VoteProposal(bytes32 indexed proposalId, address voter)
func (*DistributorFilterer) WatchClaimed ¶
func (_Distributor *DistributorFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *DistributorClaimed) (event.Subscription, error)
WatchClaimed is a free log subscription operation binding the contract event 0x805593669516ad95e9aa092bd501707436d9563eac1ef7c017cd6639eb29f8ee.
Solidity: event Claimed(uint256 index, address account, uint256 claimableReward, uint256 claimableDeposit, uint8 claimType)
func (*DistributorFilterer) WatchDistributeFee ¶
func (_Distributor *DistributorFilterer) WatchDistributeFee(opts *bind.WatchOpts, sink chan<- *DistributorDistributeFee) (event.Subscription, error)
WatchDistributeFee is a free log subscription operation binding the contract event 0x21c58bec2fee2b8fa31ce6802a99242adf6226b7ca63d69966c2036047374382.
Solidity: event DistributeFee(uint256 dealedHeight, uint256 userAmount, uint256 nodeAmount, uint256 platformAmount)
func (*DistributorFilterer) WatchDistributeSlash ¶
func (_Distributor *DistributorFilterer) WatchDistributeSlash(opts *bind.WatchOpts, sink chan<- *DistributorDistributeSlash) (event.Subscription, error)
WatchDistributeSlash is a free log subscription operation binding the contract event 0x92cfd04ead0f32488c7f490c6afce1b145630dfcc9c3ed06b2ab0d0696a4bcef.
Solidity: event DistributeSlash(uint256 dealedHeight, uint256 slashAmount)
func (*DistributorFilterer) WatchDistributeSuperNodeFee ¶
func (_Distributor *DistributorFilterer) WatchDistributeSuperNodeFee(opts *bind.WatchOpts, sink chan<- *DistributorDistributeSuperNodeFee) (event.Subscription, error)
WatchDistributeSuperNodeFee is a free log subscription operation binding the contract event 0x4b6a75e8741caebe2695484108d8f5df71d33d430e453b66f68aa802f172edf7.
Solidity: event DistributeSuperNodeFee(uint256 dealedHeight, uint256 userAmount, uint256 nodeAmount, uint256 platformAmount)
func (*DistributorFilterer) WatchProposalExecuted ¶
func (_Distributor *DistributorFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *DistributorProposalExecuted, proposalId [][32]byte) (event.Subscription, error)
WatchProposalExecuted is a free log subscription operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.
Solidity: event ProposalExecuted(bytes32 indexed proposalId)
func (*DistributorFilterer) WatchSetMerkleRoot ¶
func (_Distributor *DistributorFilterer) WatchSetMerkleRoot(opts *bind.WatchOpts, sink chan<- *DistributorSetMerkleRoot) (event.Subscription, error)
WatchSetMerkleRoot is a free log subscription operation binding the contract event 0x06300242dd77c603f351a5b575426a902d850335fbeb7c1aa2aaa83e64df395b.
Solidity: event SetMerkleRoot(uint256 dealedEpoch, bytes32 merkleRoot)
func (*DistributorFilterer) WatchVoteProposal ¶
func (_Distributor *DistributorFilterer) WatchVoteProposal(opts *bind.WatchOpts, sink chan<- *DistributorVoteProposal, proposalId [][32]byte) (event.Subscription, error)
WatchVoteProposal is a free log subscription operation binding the contract event 0x3b58f01618556cdc5e9f7b0f1f6dccbac40024bc1043f589bd4a324e3414cfad.
Solidity: event VoteProposal(bytes32 indexed proposalId, address voter)
type DistributorProposalExecuted ¶
type DistributorProposalExecuted struct { ProposalId [32]byte Raw types.Log // Blockchain specific contextual infos }
DistributorProposalExecuted represents a ProposalExecuted event raised by the Distributor contract.
type DistributorProposalExecutedIterator ¶
type DistributorProposalExecutedIterator struct { Event *DistributorProposalExecuted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorProposalExecutedIterator is returned from FilterProposalExecuted and is used to iterate over the raw logs and unpacked data for ProposalExecuted events raised by the Distributor contract.
func (*DistributorProposalExecutedIterator) Close ¶
func (it *DistributorProposalExecutedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorProposalExecutedIterator) Error ¶
func (it *DistributorProposalExecutedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorProposalExecutedIterator) Next ¶
func (it *DistributorProposalExecutedIterator) 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 DistributorRaw ¶
type DistributorRaw struct {
Contract *Distributor // Generic contract binding to access the raw methods on
}
DistributorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DistributorRaw) Call ¶
func (_Distributor *DistributorRaw) 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 (*DistributorRaw) Transact ¶
func (_Distributor *DistributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DistributorRaw) Transfer ¶
func (_Distributor *DistributorRaw) 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 DistributorSession ¶
type DistributorSession struct { Contract *Distributor // 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 }
DistributorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DistributorSession) Claim ¶
func (_Distributor *DistributorSession) Claim(_index *big.Int, _account common.Address, _totalRewardAmount *big.Int, _totalExitDepositAmount *big.Int, _merkleProof [][32]byte, _claimType uint8) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x92333d90.
Solidity: function claim(uint256 _index, address _account, uint256 _totalRewardAmount, uint256 _totalExitDepositAmount, bytes32[] _merkleProof, uint8 _claimType) returns()
func (*DistributorSession) DistributeFee ¶
func (_Distributor *DistributorSession) DistributeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int) (*types.Transaction, error)
DistributeFee is a paid mutator transaction binding the contract method 0x897a980c.
Solidity: function distributeFee(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount) returns()
func (*DistributorSession) DistributeSlashAmount ¶
func (_Distributor *DistributorSession) DistributeSlashAmount(_dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
DistributeSlashAmount is a paid mutator transaction binding the contract method 0x535c47a2.
Solidity: function distributeSlashAmount(uint256 _dealedHeight, uint256 _amount) returns()
func (*DistributorSession) DistributeSuperNodeFee ¶
func (_Distributor *DistributorSession) DistributeSuperNodeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int) (*types.Transaction, error)
DistributeSuperNodeFee is a paid mutator transaction binding the contract method 0x39eddf16.
Solidity: function distributeSuperNodeFee(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount) returns()
func (*DistributorSession) DistributeWithdrawals ¶
func (_Distributor *DistributorSession) DistributeWithdrawals() (*types.Transaction, error)
DistributeWithdrawals is a paid mutator transaction binding the contract method 0x67e2c718.
Solidity: function distributeWithdrawals() payable returns()
func (*DistributorSession) GetCurrentNodeDepositAmount ¶
func (_Distributor *DistributorSession) GetCurrentNodeDepositAmount() (*big.Int, error)
GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (*DistributorSession) GetDistributeFeeDealedHeight ¶
func (_Distributor *DistributorSession) GetDistributeFeeDealedHeight() (*big.Int, error)
GetDistributeFeeDealedHeight is a free data retrieval call binding the contract method 0xf1e26b0d.
Solidity: function getDistributeFeeDealedHeight() view returns(uint256)
func (*DistributorSession) GetDistributeSlashDealedHeight ¶
func (_Distributor *DistributorSession) GetDistributeSlashDealedHeight() (*big.Int, error)
GetDistributeSlashDealedHeight is a free data retrieval call binding the contract method 0xb56fab8b.
Solidity: function getDistributeSlashDealedHeight() view returns(uint256)
func (*DistributorSession) GetDistributeSuperNodeFeeDealedHeight ¶
func (_Distributor *DistributorSession) GetDistributeSuperNodeFeeDealedHeight() (*big.Int, error)
GetDistributeSuperNodeFeeDealedHeight is a free data retrieval call binding the contract method 0xad4a473a.
Solidity: function getDistributeSuperNodeFeeDealedHeight() view returns(uint256)
func (*DistributorSession) GetMerkleDealedEpoch ¶
func (_Distributor *DistributorSession) GetMerkleDealedEpoch() (*big.Int, error)
GetMerkleDealedEpoch is a free data retrieval call binding the contract method 0x7cd1fc9d.
Solidity: function getMerkleDealedEpoch() view returns(uint256)
func (*DistributorSession) GetMerkleRoot ¶
func (_Distributor *DistributorSession) GetMerkleRoot() ([32]byte, error)
GetMerkleRoot is a free data retrieval call binding the contract method 0x49590657.
Solidity: function getMerkleRoot() view returns(bytes32)
func (*DistributorSession) GetTotalClaimedDeposit ¶
func (_Distributor *DistributorSession) GetTotalClaimedDeposit(_account common.Address) (*big.Int, error)
GetTotalClaimedDeposit is a free data retrieval call binding the contract method 0x1a94fbdf.
Solidity: function getTotalClaimedDeposit(address _account) view returns(uint256)
func (*DistributorSession) GetTotalClaimedReward ¶
func (_Distributor *DistributorSession) GetTotalClaimedReward(_account common.Address) (*big.Int, error)
GetTotalClaimedReward is a free data retrieval call binding the contract method 0x1f6c9fc0.
Solidity: function getTotalClaimedReward(address _account) view returns(uint256)
func (*DistributorSession) Receive ¶
func (_Distributor *DistributorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*DistributorSession) ReceiveEtherWithdrawal ¶
func (_Distributor *DistributorSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
Solidity: function receiveEtherWithdrawal() payable returns()
func (*DistributorSession) SetMerkleRoot ¶
func (_Distributor *DistributorSession) SetMerkleRoot(_dealedEpoch *big.Int, _merkleRoot [32]byte) (*types.Transaction, error)
SetMerkleRoot is a paid mutator transaction binding the contract method 0x18712c21.
Solidity: function setMerkleRoot(uint256 _dealedEpoch, bytes32 _merkleRoot) returns()
func (*DistributorSession) UpdateMerkleRoot ¶
func (_Distributor *DistributorSession) UpdateMerkleRoot(_merkleRoot [32]byte) (*types.Transaction, error)
UpdateMerkleRoot is a paid mutator transaction binding the contract method 0x4783f0ef.
Solidity: function updateMerkleRoot(bytes32 _merkleRoot) returns()
func (*DistributorSession) Version ¶
func (_Distributor *DistributorSession) Version() (uint8, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(uint8)
type DistributorSetMerkleRoot ¶
type DistributorSetMerkleRoot struct { DealedEpoch *big.Int MerkleRoot [32]byte Raw types.Log // Blockchain specific contextual infos }
DistributorSetMerkleRoot represents a SetMerkleRoot event raised by the Distributor contract.
type DistributorSetMerkleRootIterator ¶
type DistributorSetMerkleRootIterator struct { Event *DistributorSetMerkleRoot // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorSetMerkleRootIterator is returned from FilterSetMerkleRoot and is used to iterate over the raw logs and unpacked data for SetMerkleRoot events raised by the Distributor contract.
func (*DistributorSetMerkleRootIterator) Close ¶
func (it *DistributorSetMerkleRootIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorSetMerkleRootIterator) Error ¶
func (it *DistributorSetMerkleRootIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorSetMerkleRootIterator) Next ¶
func (it *DistributorSetMerkleRootIterator) 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 DistributorTransactor ¶
type DistributorTransactor struct {
// contains filtered or unexported fields
}
DistributorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDistributorTransactor ¶
func NewDistributorTransactor(address common.Address, transactor bind.ContractTransactor) (*DistributorTransactor, error)
NewDistributorTransactor creates a new write-only instance of Distributor, bound to a specific deployed contract.
func (*DistributorTransactor) Claim ¶
func (_Distributor *DistributorTransactor) Claim(opts *bind.TransactOpts, _index *big.Int, _account common.Address, _totalRewardAmount *big.Int, _totalExitDepositAmount *big.Int, _merkleProof [][32]byte, _claimType uint8) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x92333d90.
Solidity: function claim(uint256 _index, address _account, uint256 _totalRewardAmount, uint256 _totalExitDepositAmount, bytes32[] _merkleProof, uint8 _claimType) returns()
func (*DistributorTransactor) DistributeFee ¶
func (_Distributor *DistributorTransactor) DistributeFee(opts *bind.TransactOpts, _dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int) (*types.Transaction, error)
DistributeFee is a paid mutator transaction binding the contract method 0x897a980c.
Solidity: function distributeFee(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount) returns()
func (*DistributorTransactor) DistributeSlashAmount ¶
func (_Distributor *DistributorTransactor) DistributeSlashAmount(opts *bind.TransactOpts, _dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
DistributeSlashAmount is a paid mutator transaction binding the contract method 0x535c47a2.
Solidity: function distributeSlashAmount(uint256 _dealedHeight, uint256 _amount) returns()
func (*DistributorTransactor) DistributeSuperNodeFee ¶
func (_Distributor *DistributorTransactor) DistributeSuperNodeFee(opts *bind.TransactOpts, _dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int) (*types.Transaction, error)
DistributeSuperNodeFee is a paid mutator transaction binding the contract method 0x39eddf16.
Solidity: function distributeSuperNodeFee(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount) returns()
func (*DistributorTransactor) DistributeWithdrawals ¶
func (_Distributor *DistributorTransactor) DistributeWithdrawals(opts *bind.TransactOpts) (*types.Transaction, error)
DistributeWithdrawals is a paid mutator transaction binding the contract method 0x67e2c718.
Solidity: function distributeWithdrawals() payable returns()
func (*DistributorTransactor) Receive ¶
func (_Distributor *DistributorTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*DistributorTransactor) ReceiveEtherWithdrawal ¶
func (_Distributor *DistributorTransactor) ReceiveEtherWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
Solidity: function receiveEtherWithdrawal() payable returns()
func (*DistributorTransactor) SetMerkleRoot ¶
func (_Distributor *DistributorTransactor) SetMerkleRoot(opts *bind.TransactOpts, _dealedEpoch *big.Int, _merkleRoot [32]byte) (*types.Transaction, error)
SetMerkleRoot is a paid mutator transaction binding the contract method 0x18712c21.
Solidity: function setMerkleRoot(uint256 _dealedEpoch, bytes32 _merkleRoot) returns()
func (*DistributorTransactor) UpdateMerkleRoot ¶
func (_Distributor *DistributorTransactor) UpdateMerkleRoot(opts *bind.TransactOpts, _merkleRoot [32]byte) (*types.Transaction, error)
UpdateMerkleRoot is a paid mutator transaction binding the contract method 0x4783f0ef.
Solidity: function updateMerkleRoot(bytes32 _merkleRoot) returns()
type DistributorTransactorRaw ¶
type DistributorTransactorRaw struct {
Contract *DistributorTransactor // Generic write-only contract binding to access the raw methods on
}
DistributorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DistributorTransactorRaw) Transact ¶
func (_Distributor *DistributorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DistributorTransactorRaw) Transfer ¶
func (_Distributor *DistributorTransactorRaw) 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 DistributorTransactorSession ¶
type DistributorTransactorSession struct { Contract *DistributorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DistributorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DistributorTransactorSession) Claim ¶
func (_Distributor *DistributorTransactorSession) Claim(_index *big.Int, _account common.Address, _totalRewardAmount *big.Int, _totalExitDepositAmount *big.Int, _merkleProof [][32]byte, _claimType uint8) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x92333d90.
Solidity: function claim(uint256 _index, address _account, uint256 _totalRewardAmount, uint256 _totalExitDepositAmount, bytes32[] _merkleProof, uint8 _claimType) returns()
func (*DistributorTransactorSession) DistributeFee ¶
func (_Distributor *DistributorTransactorSession) DistributeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int) (*types.Transaction, error)
DistributeFee is a paid mutator transaction binding the contract method 0x897a980c.
Solidity: function distributeFee(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount) returns()
func (*DistributorTransactorSession) DistributeSlashAmount ¶
func (_Distributor *DistributorTransactorSession) DistributeSlashAmount(_dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
DistributeSlashAmount is a paid mutator transaction binding the contract method 0x535c47a2.
Solidity: function distributeSlashAmount(uint256 _dealedHeight, uint256 _amount) returns()
func (*DistributorTransactorSession) DistributeSuperNodeFee ¶
func (_Distributor *DistributorTransactorSession) DistributeSuperNodeFee(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int) (*types.Transaction, error)
DistributeSuperNodeFee is a paid mutator transaction binding the contract method 0x39eddf16.
Solidity: function distributeSuperNodeFee(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount) returns()
func (*DistributorTransactorSession) DistributeWithdrawals ¶
func (_Distributor *DistributorTransactorSession) DistributeWithdrawals() (*types.Transaction, error)
DistributeWithdrawals is a paid mutator transaction binding the contract method 0x67e2c718.
Solidity: function distributeWithdrawals() payable returns()
func (*DistributorTransactorSession) Receive ¶
func (_Distributor *DistributorTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*DistributorTransactorSession) ReceiveEtherWithdrawal ¶
func (_Distributor *DistributorTransactorSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
Solidity: function receiveEtherWithdrawal() payable returns()
func (*DistributorTransactorSession) SetMerkleRoot ¶
func (_Distributor *DistributorTransactorSession) SetMerkleRoot(_dealedEpoch *big.Int, _merkleRoot [32]byte) (*types.Transaction, error)
SetMerkleRoot is a paid mutator transaction binding the contract method 0x18712c21.
Solidity: function setMerkleRoot(uint256 _dealedEpoch, bytes32 _merkleRoot) returns()
func (*DistributorTransactorSession) UpdateMerkleRoot ¶
func (_Distributor *DistributorTransactorSession) UpdateMerkleRoot(_merkleRoot [32]byte) (*types.Transaction, error)
UpdateMerkleRoot is a paid mutator transaction binding the contract method 0x4783f0ef.
Solidity: function updateMerkleRoot(bytes32 _merkleRoot) returns()
type DistributorVoteProposal ¶
type DistributorVoteProposal struct { ProposalId [32]byte Voter common.Address Raw types.Log // Blockchain specific contextual infos }
DistributorVoteProposal represents a VoteProposal event raised by the Distributor contract.
type DistributorVoteProposalIterator ¶
type DistributorVoteProposalIterator struct { Event *DistributorVoteProposal // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DistributorVoteProposalIterator is returned from FilterVoteProposal and is used to iterate over the raw logs and unpacked data for VoteProposal events raised by the Distributor contract.
func (*DistributorVoteProposalIterator) Close ¶
func (it *DistributorVoteProposalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DistributorVoteProposalIterator) Error ¶
func (it *DistributorVoteProposalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DistributorVoteProposalIterator) Next ¶
func (it *DistributorVoteProposalIterator) 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.