stafi_ether

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StafiEtherABI = StafiEtherMetaData.ABI

StafiEtherABI is the input ABI used to generate the binding from. Deprecated: Use StafiEtherMetaData.ABI instead.

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

StafiEtherMetaData contains all meta data concerning the StafiEther contract.

Functions

This section is empty.

Types

type StafiEther

type StafiEther struct {
	StafiEtherCaller     // Read-only binding to the contract
	StafiEtherTransactor // Write-only binding to the contract
	StafiEtherFilterer   // Log filterer for contract events
}

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

func NewStafiEther

func NewStafiEther(address common.Address, backend bind.ContractBackend) (*StafiEther, error)

NewStafiEther creates a new instance of StafiEther, bound to a specific deployed contract.

type StafiEtherCaller

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

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

func NewStafiEtherCaller

func NewStafiEtherCaller(address common.Address, caller bind.ContractCaller) (*StafiEtherCaller, error)

NewStafiEtherCaller creates a new read-only instance of StafiEther, bound to a specific deployed contract.

func (*StafiEtherCaller) BalanceOf

func (_StafiEther *StafiEtherCaller) BalanceOf(opts *bind.CallOpts, _contractAddress common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _contractAddress) view returns(uint256)

func (*StafiEtherCaller) Version

func (_StafiEther *StafiEtherCaller) 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 StafiEtherCallerRaw

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

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

func (*StafiEtherCallerRaw) Call

func (_StafiEther *StafiEtherCallerRaw) 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 StafiEtherCallerSession

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

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

func (*StafiEtherCallerSession) BalanceOf

func (_StafiEther *StafiEtherCallerSession) BalanceOf(_contractAddress common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _contractAddress) view returns(uint256)

func (*StafiEtherCallerSession) Version

func (_StafiEther *StafiEtherCallerSession) Version() (uint8, error)

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

Solidity: function version() view returns(uint8)

type StafiEtherEtherDeposited

type StafiEtherEtherDeposited struct {
	By     [32]byte
	Amount *big.Int
	Time   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StafiEtherEtherDeposited represents a EtherDeposited event raised by the StafiEther contract.

type StafiEtherEtherDepositedIterator

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

StafiEtherEtherDepositedIterator is returned from FilterEtherDeposited and is used to iterate over the raw logs and unpacked data for EtherDeposited events raised by the StafiEther contract.

func (*StafiEtherEtherDepositedIterator) Close

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

func (*StafiEtherEtherDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StafiEtherEtherDepositedIterator) 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 StafiEtherEtherWithdrawn

type StafiEtherEtherWithdrawn struct {
	By     [32]byte
	Amount *big.Int
	Time   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StafiEtherEtherWithdrawn represents a EtherWithdrawn event raised by the StafiEther contract.

type StafiEtherEtherWithdrawnIterator

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

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

func (*StafiEtherEtherWithdrawnIterator) Close

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

func (*StafiEtherEtherWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StafiEtherEtherWithdrawnIterator) 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 StafiEtherFilterer

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

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

func NewStafiEtherFilterer

func NewStafiEtherFilterer(address common.Address, filterer bind.ContractFilterer) (*StafiEtherFilterer, error)

NewStafiEtherFilterer creates a new log filterer instance of StafiEther, bound to a specific deployed contract.

func (*StafiEtherFilterer) FilterEtherDeposited

func (_StafiEther *StafiEtherFilterer) FilterEtherDeposited(opts *bind.FilterOpts, by [][32]byte) (*StafiEtherEtherDepositedIterator, error)

FilterEtherDeposited is a free log retrieval operation binding the contract event 0x2c7d80ba9bc6395644b4ff4a878353ac20adeed6e23cead48c8cec7a58b6e719.

Solidity: event EtherDeposited(bytes32 indexed by, uint256 amount, uint256 time)

func (*StafiEtherFilterer) FilterEtherWithdrawn

func (_StafiEther *StafiEtherFilterer) FilterEtherWithdrawn(opts *bind.FilterOpts, by [][32]byte) (*StafiEtherEtherWithdrawnIterator, error)

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

Solidity: event EtherWithdrawn(bytes32 indexed by, uint256 amount, uint256 time)

func (*StafiEtherFilterer) ParseEtherDeposited

func (_StafiEther *StafiEtherFilterer) ParseEtherDeposited(log types.Log) (*StafiEtherEtherDeposited, error)

ParseEtherDeposited is a log parse operation binding the contract event 0x2c7d80ba9bc6395644b4ff4a878353ac20adeed6e23cead48c8cec7a58b6e719.

Solidity: event EtherDeposited(bytes32 indexed by, uint256 amount, uint256 time)

func (*StafiEtherFilterer) ParseEtherWithdrawn

func (_StafiEther *StafiEtherFilterer) ParseEtherWithdrawn(log types.Log) (*StafiEtherEtherWithdrawn, error)

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

Solidity: event EtherWithdrawn(bytes32 indexed by, uint256 amount, uint256 time)

func (*StafiEtherFilterer) WatchEtherDeposited

func (_StafiEther *StafiEtherFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *StafiEtherEtherDeposited, by [][32]byte) (event.Subscription, error)

WatchEtherDeposited is a free log subscription operation binding the contract event 0x2c7d80ba9bc6395644b4ff4a878353ac20adeed6e23cead48c8cec7a58b6e719.

Solidity: event EtherDeposited(bytes32 indexed by, uint256 amount, uint256 time)

func (*StafiEtherFilterer) WatchEtherWithdrawn

func (_StafiEther *StafiEtherFilterer) WatchEtherWithdrawn(opts *bind.WatchOpts, sink chan<- *StafiEtherEtherWithdrawn, by [][32]byte) (event.Subscription, error)

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

Solidity: event EtherWithdrawn(bytes32 indexed by, uint256 amount, uint256 time)

type StafiEtherRaw

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

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

func (*StafiEtherRaw) Call

func (_StafiEther *StafiEtherRaw) 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 (*StafiEtherRaw) Transact

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

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

func (*StafiEtherRaw) Transfer

func (_StafiEther *StafiEtherRaw) 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 StafiEtherSession

type StafiEtherSession struct {
	Contract     *StafiEther       // 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
}

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

func (*StafiEtherSession) BalanceOf

func (_StafiEther *StafiEtherSession) BalanceOf(_contractAddress common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _contractAddress) view returns(uint256)

func (*StafiEtherSession) DepositEther

func (_StafiEther *StafiEtherSession) DepositEther() (*types.Transaction, error)

DepositEther is a paid mutator transaction binding the contract method 0x98ea5fca.

Solidity: function depositEther() payable returns()

func (*StafiEtherSession) Version

func (_StafiEther *StafiEtherSession) Version() (uint8, error)

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

Solidity: function version() view returns(uint8)

func (*StafiEtherSession) WithdrawEther

func (_StafiEther *StafiEtherSession) WithdrawEther(_amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdrawEther(uint256 _amount) returns()

type StafiEtherTransactor

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

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

func NewStafiEtherTransactor

func NewStafiEtherTransactor(address common.Address, transactor bind.ContractTransactor) (*StafiEtherTransactor, error)

NewStafiEtherTransactor creates a new write-only instance of StafiEther, bound to a specific deployed contract.

func (*StafiEtherTransactor) DepositEther

func (_StafiEther *StafiEtherTransactor) DepositEther(opts *bind.TransactOpts) (*types.Transaction, error)

DepositEther is a paid mutator transaction binding the contract method 0x98ea5fca.

Solidity: function depositEther() payable returns()

func (*StafiEtherTransactor) WithdrawEther

func (_StafiEther *StafiEtherTransactor) WithdrawEther(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdrawEther(uint256 _amount) returns()

type StafiEtherTransactorRaw

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

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

func (*StafiEtherTransactorRaw) Transact

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

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

func (*StafiEtherTransactorRaw) Transfer

func (_StafiEther *StafiEtherTransactorRaw) 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 StafiEtherTransactorSession

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

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

func (*StafiEtherTransactorSession) DepositEther

func (_StafiEther *StafiEtherTransactorSession) DepositEther() (*types.Transaction, error)

DepositEther is a paid mutator transaction binding the contract method 0x98ea5fca.

Solidity: function depositEther() payable returns()

func (*StafiEtherTransactorSession) WithdrawEther

func (_StafiEther *StafiEtherTransactorSession) WithdrawEther(_amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdrawEther(uint256 _amount) returns()

Jump to

Keyboard shortcuts

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