fee_pool

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeePoolABI = FeePoolMetaData.ABI

FeePoolABI is the input ABI used to generate the binding from. Deprecated: Use FeePoolMetaData.ABI instead.

View Source
var FeePoolMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"by\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"EtherWithdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawEther\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

FeePoolMetaData contains all meta data concerning the FeePool contract.

Functions

This section is empty.

Types

type FeePool

type FeePool struct {
	FeePoolCaller     // Read-only binding to the contract
	FeePoolTransactor // Write-only binding to the contract
	FeePoolFilterer   // Log filterer for contract events
}

FeePool is an auto generated Go binding around an Ethereum contract.

func NewFeePool

func NewFeePool(address common.Address, backend bind.ContractBackend) (*FeePool, error)

NewFeePool creates a new instance of FeePool, bound to a specific deployed contract.

type FeePoolCaller

type FeePoolCaller struct {
	// contains filtered or unexported fields
}

FeePoolCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewFeePoolCaller

func NewFeePoolCaller(address common.Address, caller bind.ContractCaller) (*FeePoolCaller, error)

NewFeePoolCaller creates a new read-only instance of FeePool, bound to a specific deployed contract.

func (*FeePoolCaller) Version

func (_FeePool *FeePoolCaller) Version(opts *bind.CallOpts) (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type FeePoolCallerRaw

type FeePoolCallerRaw struct {
	Contract *FeePoolCaller // Generic read-only contract binding to access the raw methods on
}

FeePoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*FeePoolCallerRaw) Call

func (_FeePool *FeePoolCallerRaw) 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 FeePoolCallerSession

type FeePoolCallerSession struct {
	Contract *FeePoolCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

FeePoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*FeePoolCallerSession) Version

func (_FeePool *FeePoolCallerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type FeePoolEtherWithdrawn

type FeePoolEtherWithdrawn struct {
	By     common.Hash
	To     common.Address
	Amount *big.Int
	Time   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

FeePoolEtherWithdrawn represents a EtherWithdrawn event raised by the FeePool contract.

type FeePoolEtherWithdrawnIterator

type FeePoolEtherWithdrawnIterator struct {
	Event *FeePoolEtherWithdrawn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FeePoolEtherWithdrawnIterator is returned from FilterEtherWithdrawn and is used to iterate over the raw logs and unpacked data for EtherWithdrawn events raised by the FeePool contract.

func (*FeePoolEtherWithdrawnIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FeePoolEtherWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeePoolEtherWithdrawnIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FeePoolFilterer

type FeePoolFilterer struct {
	// contains filtered or unexported fields
}

FeePoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewFeePoolFilterer

func NewFeePoolFilterer(address common.Address, filterer bind.ContractFilterer) (*FeePoolFilterer, error)

NewFeePoolFilterer creates a new log filterer instance of FeePool, bound to a specific deployed contract.

func (*FeePoolFilterer) FilterEtherWithdrawn

func (_FeePool *FeePoolFilterer) FilterEtherWithdrawn(opts *bind.FilterOpts, by []string, to []common.Address) (*FeePoolEtherWithdrawnIterator, error)

FilterEtherWithdrawn is a free log retrieval operation binding the contract event 0xff381a086696de98df05e634263390296dd1d097ef34a1be9a91daead07fb01d.

Solidity: event EtherWithdrawn(string indexed by, address indexed to, uint256 amount, uint256 time)

func (*FeePoolFilterer) ParseEtherWithdrawn

func (_FeePool *FeePoolFilterer) ParseEtherWithdrawn(log types.Log) (*FeePoolEtherWithdrawn, error)

ParseEtherWithdrawn is a log parse operation binding the contract event 0xff381a086696de98df05e634263390296dd1d097ef34a1be9a91daead07fb01d.

Solidity: event EtherWithdrawn(string indexed by, address indexed to, uint256 amount, uint256 time)

func (*FeePoolFilterer) WatchEtherWithdrawn

func (_FeePool *FeePoolFilterer) WatchEtherWithdrawn(opts *bind.WatchOpts, sink chan<- *FeePoolEtherWithdrawn, by []string, to []common.Address) (event.Subscription, error)

WatchEtherWithdrawn is a free log subscription operation binding the contract event 0xff381a086696de98df05e634263390296dd1d097ef34a1be9a91daead07fb01d.

Solidity: event EtherWithdrawn(string indexed by, address indexed to, uint256 amount, uint256 time)

type FeePoolRaw

type FeePoolRaw struct {
	Contract *FeePool // Generic contract binding to access the raw methods on
}

FeePoolRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*FeePoolRaw) Call

func (_FeePool *FeePoolRaw) 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 (*FeePoolRaw) Transact

func (_FeePool *FeePoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*FeePoolRaw) Transfer

func (_FeePool *FeePoolRaw) 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 FeePoolSession

type FeePoolSession struct {
	Contract     *FeePool          // 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
}

FeePoolSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*FeePoolSession) Receive

func (_FeePool *FeePoolSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*FeePoolSession) Version

func (_FeePool *FeePoolSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

func (*FeePoolSession) WithdrawEther

func (_FeePool *FeePoolSession) WithdrawEther(_to common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawEther is a paid mutator transaction binding the contract method 0x522f6815.

Solidity: function withdrawEther(address _to, uint256 _amount) returns()

type FeePoolTransactor

type FeePoolTransactor struct {
	// contains filtered or unexported fields
}

FeePoolTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewFeePoolTransactor

func NewFeePoolTransactor(address common.Address, transactor bind.ContractTransactor) (*FeePoolTransactor, error)

NewFeePoolTransactor creates a new write-only instance of FeePool, bound to a specific deployed contract.

func (*FeePoolTransactor) Receive

func (_FeePool *FeePoolTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*FeePoolTransactor) WithdrawEther

func (_FeePool *FeePoolTransactor) WithdrawEther(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawEther is a paid mutator transaction binding the contract method 0x522f6815.

Solidity: function withdrawEther(address _to, uint256 _amount) returns()

type FeePoolTransactorRaw

type FeePoolTransactorRaw struct {
	Contract *FeePoolTransactor // Generic write-only contract binding to access the raw methods on
}

FeePoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*FeePoolTransactorRaw) Transact

func (_FeePool *FeePoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*FeePoolTransactorRaw) Transfer

func (_FeePool *FeePoolTransactorRaw) 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 FeePoolTransactorSession

type FeePoolTransactorSession struct {
	Contract     *FeePoolTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

FeePoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*FeePoolTransactorSession) Receive

func (_FeePool *FeePoolTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*FeePoolTransactorSession) WithdrawEther

func (_FeePool *FeePoolTransactorSession) WithdrawEther(_to common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawEther is a paid mutator transaction binding the contract method 0x522f6815.

Solidity: function withdrawEther(address _to, uint256 _amount) returns()

Jump to

Keyboard shortcuts

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