Documentation ¶
Index ¶
- Variables
- type Destributor
- type DestributorCaller
- func (_Destributor *DestributorCaller) Admin(opts *bind.CallOpts) (common.Address, error)
- func (_Destributor *DestributorCaller) Claimed(opts *bind.CallOpts, i *big.Int, d *big.Int) (bool, error)
- func (_Destributor *DestributorCaller) Distribution(opts *bind.CallOpts) (*big.Int, error)
- func (_Destributor *DestributorCaller) MerkleRoot(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_Destributor *DestributorCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Destributor *DestributorCaller) Token(opts *bind.CallOpts) (common.Address, error)
- type DestributorCallerRaw
- type DestributorCallerSession
- func (_Destributor *DestributorCallerSession) Admin() (common.Address, error)
- func (_Destributor *DestributorCallerSession) Claimed(i *big.Int, d *big.Int) (bool, error)
- func (_Destributor *DestributorCallerSession) Distribution() (*big.Int, error)
- func (_Destributor *DestributorCallerSession) MerkleRoot(arg0 *big.Int) ([32]byte, error)
- func (_Destributor *DestributorCallerSession) Paused() (bool, error)
- func (_Destributor *DestributorCallerSession) Token() (common.Address, error)
- type DestributorClaim
- type DestributorClaimIterator
- type DestributorDistribute
- type DestributorDistributeIterator
- type DestributorFilterer
- func (_Destributor *DestributorFilterer) FilterClaim(opts *bind.FilterOpts) (*DestributorClaimIterator, error)
- func (_Destributor *DestributorFilterer) FilterDistribute(opts *bind.FilterOpts) (*DestributorDistributeIterator, error)
- func (_Destributor *DestributorFilterer) ParseClaim(log types.Log) (*DestributorClaim, error)
- func (_Destributor *DestributorFilterer) ParseDistribute(log types.Log) (*DestributorDistribute, error)
- func (_Destributor *DestributorFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *DestributorClaim) (event.Subscription, error)
- func (_Destributor *DestributorFilterer) WatchDistribute(opts *bind.WatchOpts, sink chan<- *DestributorDistribute) (event.Subscription, error)
- type DestributorRaw
- func (_Destributor *DestributorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Destributor *DestributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Destributor *DestributorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DestributorSession
- func (_Destributor *DestributorSession) Admin() (common.Address, error)
- func (_Destributor *DestributorSession) Claim(i *big.Int, o common.Address, a *big.Int, p [][32]byte) (*types.Transaction, error)
- func (_Destributor *DestributorSession) Claimed(i *big.Int, d *big.Int) (bool, error)
- func (_Destributor *DestributorSession) Distribute(f common.Address, t common.Address, a *big.Int, r [32]byte) (*types.Transaction, error)
- func (_Destributor *DestributorSession) Distribution() (*big.Int, error)
- func (_Destributor *DestributorSession) MerkleRoot(arg0 *big.Int) ([32]byte, error)
- func (_Destributor *DestributorSession) Pause(b bool) (*types.Transaction, error)
- func (_Destributor *DestributorSession) Paused() (bool, error)
- func (_Destributor *DestributorSession) Token() (common.Address, error)
- func (_Destributor *DestributorSession) TransferAdmin(a common.Address) (*types.Transaction, error)
- type DestributorTransactor
- func (_Destributor *DestributorTransactor) Claim(opts *bind.TransactOpts, i *big.Int, o common.Address, a *big.Int, ...) (*types.Transaction, error)
- func (_Destributor *DestributorTransactor) Distribute(opts *bind.TransactOpts, f common.Address, t common.Address, a *big.Int, ...) (*types.Transaction, error)
- func (_Destributor *DestributorTransactor) Pause(opts *bind.TransactOpts, b bool) (*types.Transaction, error)
- func (_Destributor *DestributorTransactor) TransferAdmin(opts *bind.TransactOpts, a common.Address) (*types.Transaction, error)
- type DestributorTransactorRaw
- type DestributorTransactorSession
- func (_Destributor *DestributorTransactorSession) Claim(i *big.Int, o common.Address, a *big.Int, p [][32]byte) (*types.Transaction, error)
- func (_Destributor *DestributorTransactorSession) Distribute(f common.Address, t common.Address, a *big.Int, r [32]byte) (*types.Transaction, error)
- func (_Destributor *DestributorTransactorSession) Pause(b bool) (*types.Transaction, error)
- func (_Destributor *DestributorTransactorSession) TransferAdmin(a common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var DestributorABI = DestributorMetaData.ABI
DestributorABI is the input ABI used to generate the binding from. Deprecated: Use DestributorMetaData.ABI instead.
var DestributorBin = DestributorMetaData.Bin
DestributorBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DestributorMetaData.Bin instead.
var DestributorMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"t\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"distribution\",\"type\":\"uint256\"}],\"name\":\"Distribute\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"o\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"a\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"p\",\"type\":\"bytes32[]\"}],\"name\":\"claim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"d\",\"type\":\"uint256\"}],\"name\":\"claimed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"f\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"t\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"a\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"}],\"name\":\"distribute\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distribution\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"merkleRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"b\",\"type\":\"bool\"}],\"name\":\"pause\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"transferAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60a060405234801561001057600080fd5b50604051610fe2380380610fe283398101604081905261002f9161007f565b600480546001600160a01b031916331790556001600160a01b039190911660805260008080526020527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5556100b9565b6000806040838503121561009257600080fd5b82516001600160a01b03811681146100a957600080fd5b6020939093015192949293505050565b608051610f006100e2600039600081816101dd015281816105f301526108fb0152610f006000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c806375829def11610076578063eb0edcfb1161005b578063eb0edcfb14610180578063f851a44014610193578063fc0c546a146101d857600080fd5b806375829def1461015a578063a54ab4571461016d57600080fd5b80633c70b357116100a75780633c70b357146100fe5780635c975abb1461012c5780635ee58efc1461015157600080fd5b806302329a29146100c35780632e7ba6ef146100eb575b600080fd5b6100d66100d1366004610c33565b6101ff565b60405190151581526020015b60405180910390f35b6100d66100f9366004610c80565b6102d8565b61011e61010c366004610d17565b60006020819052908152604090205481565b6040519081526020016100e2565b6004546100d69074010000000000000000000000000000000000000000900460ff1681565b61011e60035481565b6100d6610168366004610d30565b61072d565b6100d661017b366004610d4b565b6107fe565b6100d661018e366004610d6d565b610848565b6004546101b39073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e2565b6101b37f000000000000000000000000000000000000000000000000000000000000000081565b60045460009073ffffffffffffffffffffffffffffffffffffffff16338114610289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f73656e646572206d75737420626520617574686f72697a65640000000000000060448201526064015b60405180910390fd5b6004805484151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556001915050919050565b60045460009074010000000000000000000000000000000000000000900460ff1615610360576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f636c61696d696e672069732070617573656400000000000000000000000000006044820152606401610280565b61036c866003546107fe565b156103d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f646973747269627574696f6e20636c61696d65640000000000000000000000006044820152606401610280565b60035460009081526002602052604090205460ff161561044f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f646973747269627574696f6e2063616e63656c6c6564000000000000000000006044820152606401610280565b60408051602081018890527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606088901b1691810191909152605481018590526000906074016040516020818303038152906040528051906020012090506104fa84848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506003548152602081905260409020549250859150610b709050565b610560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f696e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610280565b600061056e61010089610dde565b9050600061057e6101008a610df2565b600354600090815260016020818152604080842087855290915291829020805491841b9091179055517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830152602482018a90529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af115801561063e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106629190610e06565b6106c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f7472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610280565b604080518a815273ffffffffffffffffffffffffffffffffffffffff8a1660208201529081018890527f3ed1528b0fdc7c5207c1bf935e34a667e13656b9ed165260c522be0bc544f3039060600160405180910390a150600198975050505050505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff163381146107b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f73656e646572206d75737420626520617574686f72697a6564000000000000006044820152606401610280565b6004805473ffffffffffffffffffffffffffffffffffffffff85167fffffffffffffffffffffffff00000000000000000000000000000000000000009091161790556001915050919050565b60008061080d61010085610dde565b9050600061081d61010086610df2565b600094855260016020818152604080882095885294905292909420549190931b908116149392505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff163381146108cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f73656e646572206d75737420626520617574686f72697a6564000000000000006044820152606401610280565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f00000000000000000000000000000000000000000000000000000000000000009060009073ffffffffffffffffffffffffffffffffffffffff8316906370a08231906024016020604051808303816000875af115801561095e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109829190610e23565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af11580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f9190610e06565b506040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152306024830152604482018890528316906323b872dd906064016020604051808303816000875af1158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190610e06565b50600354600081815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905580610b0481610e3c565b60008181526020819052604081208990556003829055909250610b2791506101ff565b5060408051878152602081018390527f9d30f704de5f2d6155b872bae8dcfb406d03fd551cbf6dce019b9fc8f56c2033910160405180910390a150600198975050505050505050565b825160009082825b82811015610c16576000878281518110610b9457610b94610e9b565b60200260200101519050808311610bd6576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610c03565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610c0e81610e3c565b915050610b78565b50909314949350505050565b8015158114610c3057600080fd5b50565b600060208284031215610c4557600080fd5b8135610c5081610c22565b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610c7b57600080fd5b919050565b600080600080600060808688031215610c9857600080fd5b85359450610ca860208701610c57565b935060408601359250606086013567ffffffffffffffff80821115610ccc57600080fd5b818801915088601f830112610ce057600080fd5b813581811115610cef57600080fd5b8960208260051b8501011115610d0457600080fd5b9699959850939650602001949392505050565b600060208284031215610d2957600080fd5b5035919050565b600060208284031215610d4257600080fd5b610c5082610c57565b60008060408385031215610d5e57600080fd5b50508035926020909101359150565b60008060008060808587031215610d8357600080fd5b610d8c85610c57565b9350610d9a60208601610c57565b93969395505050506040820135916060013590565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082610ded57610ded610daf565b500490565b600082610e0157610e01610daf565b500690565b600060208284031215610e1857600080fd5b8151610c5081610c22565b600060208284031215610e3557600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610e94577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212205b525df13c0e605cf46953cbdfc09884546ccc821c22c284c0ea0eae9d63195764736f6c634300080d0033",
}
DestributorMetaData contains all meta data concerning the Destributor contract.
Functions ¶
This section is empty.
Types ¶
type Destributor ¶
type Destributor struct { DestributorCaller // Read-only binding to the contract DestributorTransactor // Write-only binding to the contract DestributorFilterer // Log filterer for contract events }
Destributor is an auto generated Go binding around an Ethereum contract.
func DeployDestributor ¶
func DeployDestributor(auth *bind.TransactOpts, backend bind.ContractBackend, t common.Address, r [32]byte) (common.Address, *types.Transaction, *Destributor, error)
DeployDestributor deploys a new Ethereum contract, binding an instance of Destributor to it.
func NewDestributor ¶
func NewDestributor(address common.Address, backend bind.ContractBackend) (*Destributor, error)
NewDestributor creates a new instance of Destributor, bound to a specific deployed contract.
type DestributorCaller ¶
type DestributorCaller struct {
// contains filtered or unexported fields
}
DestributorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDestributorCaller ¶
func NewDestributorCaller(address common.Address, caller bind.ContractCaller) (*DestributorCaller, error)
NewDestributorCaller creates a new read-only instance of Destributor, bound to a specific deployed contract.
func (*DestributorCaller) Admin ¶
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*DestributorCaller) Claimed ¶
func (_Destributor *DestributorCaller) Claimed(opts *bind.CallOpts, i *big.Int, d *big.Int) (bool, error)
Claimed is a free data retrieval call binding the contract method 0xa54ab457.
Solidity: function claimed(uint256 i, uint256 d) view returns(bool)
func (*DestributorCaller) Distribution ¶
Distribution is a free data retrieval call binding the contract method 0x5ee58efc.
Solidity: function distribution() view returns(uint256)
func (*DestributorCaller) MerkleRoot ¶
func (_Destributor *DestributorCaller) MerkleRoot(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
MerkleRoot is a free data retrieval call binding the contract method 0x3c70b357.
Solidity: function merkleRoot(uint256 ) view returns(bytes32)
type DestributorCallerRaw ¶
type DestributorCallerRaw struct {
Contract *DestributorCaller // Generic read-only contract binding to access the raw methods on
}
DestributorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DestributorCallerRaw) Call ¶
func (_Destributor *DestributorCallerRaw) 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 DestributorCallerSession ¶
type DestributorCallerSession struct { Contract *DestributorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DestributorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DestributorCallerSession) Admin ¶
func (_Destributor *DestributorCallerSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*DestributorCallerSession) Claimed ¶
Claimed is a free data retrieval call binding the contract method 0xa54ab457.
Solidity: function claimed(uint256 i, uint256 d) view returns(bool)
func (*DestributorCallerSession) Distribution ¶
func (_Destributor *DestributorCallerSession) Distribution() (*big.Int, error)
Distribution is a free data retrieval call binding the contract method 0x5ee58efc.
Solidity: function distribution() view returns(uint256)
func (*DestributorCallerSession) MerkleRoot ¶
func (_Destributor *DestributorCallerSession) MerkleRoot(arg0 *big.Int) ([32]byte, error)
MerkleRoot is a free data retrieval call binding the contract method 0x3c70b357.
Solidity: function merkleRoot(uint256 ) view returns(bytes32)
func (*DestributorCallerSession) Paused ¶
func (_Destributor *DestributorCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
type DestributorClaim ¶
type DestributorClaim struct { Index *big.Int Owner common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DestributorClaim represents a Claim event raised by the Destributor contract.
type DestributorClaimIterator ¶
type DestributorClaimIterator struct { Event *DestributorClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DestributorClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the Destributor contract.
func (*DestributorClaimIterator) Close ¶
func (it *DestributorClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DestributorClaimIterator) Error ¶
func (it *DestributorClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DestributorClaimIterator) Next ¶
func (it *DestributorClaimIterator) 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 DestributorDistribute ¶
type DestributorDistribute struct { MerkleRoot [32]byte Distribution *big.Int Raw types.Log // Blockchain specific contextual infos }
DestributorDistribute represents a Distribute event raised by the Destributor contract.
type DestributorDistributeIterator ¶
type DestributorDistributeIterator struct { Event *DestributorDistribute // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DestributorDistributeIterator is returned from FilterDistribute and is used to iterate over the raw logs and unpacked data for Distribute events raised by the Destributor contract.
func (*DestributorDistributeIterator) Close ¶
func (it *DestributorDistributeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DestributorDistributeIterator) Error ¶
func (it *DestributorDistributeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DestributorDistributeIterator) Next ¶
func (it *DestributorDistributeIterator) 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 DestributorFilterer ¶
type DestributorFilterer struct {
// contains filtered or unexported fields
}
DestributorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDestributorFilterer ¶
func NewDestributorFilterer(address common.Address, filterer bind.ContractFilterer) (*DestributorFilterer, error)
NewDestributorFilterer creates a new log filterer instance of Destributor, bound to a specific deployed contract.
func (*DestributorFilterer) FilterClaim ¶
func (_Destributor *DestributorFilterer) FilterClaim(opts *bind.FilterOpts) (*DestributorClaimIterator, error)
FilterClaim is a free log retrieval operation binding the contract event 0x3ed1528b0fdc7c5207c1bf935e34a667e13656b9ed165260c522be0bc544f303.
Solidity: event Claim(uint256 index, address owner, uint256 amount)
func (*DestributorFilterer) FilterDistribute ¶
func (_Destributor *DestributorFilterer) FilterDistribute(opts *bind.FilterOpts) (*DestributorDistributeIterator, error)
FilterDistribute is a free log retrieval operation binding the contract event 0x9d30f704de5f2d6155b872bae8dcfb406d03fd551cbf6dce019b9fc8f56c2033.
Solidity: event Distribute(bytes32 merkleRoot, uint256 distribution)
func (*DestributorFilterer) ParseClaim ¶
func (_Destributor *DestributorFilterer) ParseClaim(log types.Log) (*DestributorClaim, error)
ParseClaim is a log parse operation binding the contract event 0x3ed1528b0fdc7c5207c1bf935e34a667e13656b9ed165260c522be0bc544f303.
Solidity: event Claim(uint256 index, address owner, uint256 amount)
func (*DestributorFilterer) ParseDistribute ¶
func (_Destributor *DestributorFilterer) ParseDistribute(log types.Log) (*DestributorDistribute, error)
ParseDistribute is a log parse operation binding the contract event 0x9d30f704de5f2d6155b872bae8dcfb406d03fd551cbf6dce019b9fc8f56c2033.
Solidity: event Distribute(bytes32 merkleRoot, uint256 distribution)
func (*DestributorFilterer) WatchClaim ¶
func (_Destributor *DestributorFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *DestributorClaim) (event.Subscription, error)
WatchClaim is a free log subscription operation binding the contract event 0x3ed1528b0fdc7c5207c1bf935e34a667e13656b9ed165260c522be0bc544f303.
Solidity: event Claim(uint256 index, address owner, uint256 amount)
func (*DestributorFilterer) WatchDistribute ¶
func (_Destributor *DestributorFilterer) WatchDistribute(opts *bind.WatchOpts, sink chan<- *DestributorDistribute) (event.Subscription, error)
WatchDistribute is a free log subscription operation binding the contract event 0x9d30f704de5f2d6155b872bae8dcfb406d03fd551cbf6dce019b9fc8f56c2033.
Solidity: event Distribute(bytes32 merkleRoot, uint256 distribution)
type DestributorRaw ¶
type DestributorRaw struct {
Contract *Destributor // Generic contract binding to access the raw methods on
}
DestributorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DestributorRaw) Call ¶
func (_Destributor *DestributorRaw) 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 (*DestributorRaw) Transact ¶
func (_Destributor *DestributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DestributorRaw) Transfer ¶
func (_Destributor *DestributorRaw) 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 DestributorSession ¶
type DestributorSession struct { Contract *Destributor // 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 }
DestributorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DestributorSession) Admin ¶
func (_Destributor *DestributorSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*DestributorSession) Claim ¶
func (_Destributor *DestributorSession) Claim(i *big.Int, o common.Address, a *big.Int, p [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2e7ba6ef.
Solidity: function claim(uint256 i, address o, uint256 a, bytes32[] p) returns(bool)
func (*DestributorSession) Claimed ¶
Claimed is a free data retrieval call binding the contract method 0xa54ab457.
Solidity: function claimed(uint256 i, uint256 d) view returns(bool)
func (*DestributorSession) Distribute ¶
func (_Destributor *DestributorSession) Distribute(f common.Address, t common.Address, a *big.Int, r [32]byte) (*types.Transaction, error)
Distribute is a paid mutator transaction binding the contract method 0xeb0edcfb.
Solidity: function distribute(address f, address t, uint256 a, bytes32 r) returns(bool)
func (*DestributorSession) Distribution ¶
func (_Destributor *DestributorSession) Distribution() (*big.Int, error)
Distribution is a free data retrieval call binding the contract method 0x5ee58efc.
Solidity: function distribution() view returns(uint256)
func (*DestributorSession) MerkleRoot ¶
func (_Destributor *DestributorSession) MerkleRoot(arg0 *big.Int) ([32]byte, error)
MerkleRoot is a free data retrieval call binding the contract method 0x3c70b357.
Solidity: function merkleRoot(uint256 ) view returns(bytes32)
func (*DestributorSession) Pause ¶
func (_Destributor *DestributorSession) Pause(b bool) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x02329a29.
Solidity: function pause(bool b) returns(bool)
func (*DestributorSession) Paused ¶
func (_Destributor *DestributorSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*DestributorSession) Token ¶
func (_Destributor *DestributorSession) Token() (common.Address, error)
Token is a free data retrieval call binding the contract method 0xfc0c546a.
Solidity: function token() view returns(address)
func (*DestributorSession) TransferAdmin ¶
func (_Destributor *DestributorSession) TransferAdmin(a common.Address) (*types.Transaction, error)
TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.
Solidity: function transferAdmin(address a) returns(bool)
type DestributorTransactor ¶
type DestributorTransactor struct {
// contains filtered or unexported fields
}
DestributorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDestributorTransactor ¶
func NewDestributorTransactor(address common.Address, transactor bind.ContractTransactor) (*DestributorTransactor, error)
NewDestributorTransactor creates a new write-only instance of Destributor, bound to a specific deployed contract.
func (*DestributorTransactor) Claim ¶
func (_Destributor *DestributorTransactor) Claim(opts *bind.TransactOpts, i *big.Int, o common.Address, a *big.Int, p [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2e7ba6ef.
Solidity: function claim(uint256 i, address o, uint256 a, bytes32[] p) returns(bool)
func (*DestributorTransactor) Distribute ¶
func (_Destributor *DestributorTransactor) Distribute(opts *bind.TransactOpts, f common.Address, t common.Address, a *big.Int, r [32]byte) (*types.Transaction, error)
Distribute is a paid mutator transaction binding the contract method 0xeb0edcfb.
Solidity: function distribute(address f, address t, uint256 a, bytes32 r) returns(bool)
func (*DestributorTransactor) Pause ¶
func (_Destributor *DestributorTransactor) Pause(opts *bind.TransactOpts, b bool) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x02329a29.
Solidity: function pause(bool b) returns(bool)
func (*DestributorTransactor) TransferAdmin ¶
func (_Destributor *DestributorTransactor) TransferAdmin(opts *bind.TransactOpts, a common.Address) (*types.Transaction, error)
TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.
Solidity: function transferAdmin(address a) returns(bool)
type DestributorTransactorRaw ¶
type DestributorTransactorRaw struct {
Contract *DestributorTransactor // Generic write-only contract binding to access the raw methods on
}
DestributorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DestributorTransactorRaw) Transact ¶
func (_Destributor *DestributorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DestributorTransactorRaw) Transfer ¶
func (_Destributor *DestributorTransactorRaw) 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 DestributorTransactorSession ¶
type DestributorTransactorSession struct { Contract *DestributorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DestributorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DestributorTransactorSession) Claim ¶
func (_Destributor *DestributorTransactorSession) Claim(i *big.Int, o common.Address, a *big.Int, p [][32]byte) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x2e7ba6ef.
Solidity: function claim(uint256 i, address o, uint256 a, bytes32[] p) returns(bool)
func (*DestributorTransactorSession) Distribute ¶
func (_Destributor *DestributorTransactorSession) Distribute(f common.Address, t common.Address, a *big.Int, r [32]byte) (*types.Transaction, error)
Distribute is a paid mutator transaction binding the contract method 0xeb0edcfb.
Solidity: function distribute(address f, address t, uint256 a, bytes32 r) returns(bool)
func (*DestributorTransactorSession) Pause ¶
func (_Destributor *DestributorTransactorSession) Pause(b bool) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x02329a29.
Solidity: function pause(bool b) returns(bool)
func (*DestributorTransactorSession) TransferAdmin ¶
func (_Destributor *DestributorTransactorSession) TransferAdmin(a common.Address) (*types.Transaction, error)
TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.
Solidity: function transferAdmin(address a) returns(bool)