Documentation ¶
Index ¶
- Variables
- type Distributor
- type DistributorCaller
- type DistributorCallerRaw
- type DistributorCallerSession
- type DistributorClaimed
- type DistributorClaimedIterator
- type DistributorFilterer
- func (_Distributor *DistributorFilterer) FilterClaimed(opts *bind.FilterOpts) (*DistributorClaimedIterator, error)
- func (_Distributor *DistributorFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*DistributorProposalExecutedIterator, 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) ParseProposalExecuted(log types.Log) (*DistributorProposalExecuted, 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) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *DistributorProposalExecuted, ...) (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, _totalAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeFee(_amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeSlashAmount(_dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeSuperNodeFee(_amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorSession) DistributeWithdrawals() (*types.Transaction, error)
- func (_Distributor *DistributorSession) GetCurrentNodeDepositAmount() (*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) Version() (uint8, error)
- 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, _amount *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, _amount *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)
- type DistributorTransactorRaw
- type DistributorTransactorSession
- func (_Distributor *DistributorTransactorSession) Claim(_index *big.Int, _account common.Address, _totalAmount *big.Int, ...) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeFee(_amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeSlashAmount(_dealedHeight *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_Distributor *DistributorTransactorSession) DistributeSuperNodeFee(_amount *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)
- 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\":\"claimedAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"}],\"name\":\"Claimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"proposalId\",\"type\":\"bytes32\"}],\"name\":\"ProposalExecuted\",\"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\":\"_totalAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"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\":\"_amount\",\"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\":\"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\":[],\"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)
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) 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 ClaimedAmount *big.Int TotalAmount *big.Int 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 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 0xd9cb1e2714d65a111c0f20f060176ad657496bd47a3de04ec7c3d4ca232112ac.
Solidity: event Claimed(uint256 index, address account, uint256 claimedAmount, uint256 totalAmount)
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) 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 0xd9cb1e2714d65a111c0f20f060176ad657496bd47a3de04ec7c3d4ca232112ac.
Solidity: event Claimed(uint256 index, address account, uint256 claimedAmount, uint256 totalAmount)
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) 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 0xd9cb1e2714d65a111c0f20f060176ad657496bd47a3de04ec7c3d4ca232112ac.
Solidity: event Claimed(uint256 index, address account, uint256 claimedAmount, uint256 totalAmount)
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) 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, _totalAmount *big.Int, _merkleProof [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2e7ba6ef.
Solidity: function claim(uint256 _index, address _account, uint256 _totalAmount, bytes32[] _merkleProof) returns()
func (*DistributorSession) DistributeFee ¶
func (_Distributor *DistributorSession) DistributeFee(_amount *big.Int) (*types.Transaction, error)
DistributeFee is a paid mutator transaction binding the contract method 0x05cc49dd.
Solidity: function distributeFee(uint256 _amount) 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(_amount *big.Int) (*types.Transaction, error)
DistributeSuperNodeFee is a paid mutator transaction binding the contract method 0x4fdcc7cd.
Solidity: function distributeSuperNodeFee(uint256 _amount) 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) 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) 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 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, _totalAmount *big.Int, _merkleProof [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2e7ba6ef.
Solidity: function claim(uint256 _index, address _account, uint256 _totalAmount, bytes32[] _merkleProof) returns()
func (*DistributorTransactor) DistributeFee ¶
func (_Distributor *DistributorTransactor) DistributeFee(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
DistributeFee is a paid mutator transaction binding the contract method 0x05cc49dd.
Solidity: function distributeFee(uint256 _amount) 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, _amount *big.Int) (*types.Transaction, error)
DistributeSuperNodeFee is a paid mutator transaction binding the contract method 0x4fdcc7cd.
Solidity: function distributeSuperNodeFee(uint256 _amount) 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()
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, _totalAmount *big.Int, _merkleProof [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2e7ba6ef.
Solidity: function claim(uint256 _index, address _account, uint256 _totalAmount, bytes32[] _merkleProof) returns()
func (*DistributorTransactorSession) DistributeFee ¶
func (_Distributor *DistributorTransactorSession) DistributeFee(_amount *big.Int) (*types.Transaction, error)
DistributeFee is a paid mutator transaction binding the contract method 0x05cc49dd.
Solidity: function distributeFee(uint256 _amount) 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(_amount *big.Int) (*types.Transaction, error)
DistributeSuperNodeFee is a paid mutator transaction binding the contract method 0x4fdcc7cd.
Solidity: function distributeSuperNodeFee(uint256 _amount) 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()
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.