deposit

package
v0.0.0-...-d193b87 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DepositABI = "" /* 1096-byte string literal not displayed */

DepositABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

func PackMessage

func PackMessage(name string, args ...interface{}) string

func Withdrawal

func Withdrawal(contract, url, private string, value *big.Int) error

Types

type Deposit

type Deposit struct {
	DepositCaller     // Read-only binding to the contract
	DepositTransactor // Write-only binding to the contract
	DepositFilterer   // Log filterer for contract events
}

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

func NewDeposit

func NewDeposit(address common.Address, backend bind.ContractBackend) (*Deposit, error)

NewDeposit creates a new instance of Deposit, bound to a specific deployed contract.

type DepositCaller

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

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

func NewDepositCaller

func NewDepositCaller(address common.Address, caller bind.ContractCaller) (*DepositCaller, error)

NewDepositCaller creates a new read-only instance of Deposit, bound to a specific deployed contract.

func (*DepositCaller) Balance

func (_Deposit *DepositCaller) Balance(opts *bind.CallOpts) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0x0ef67887.

Solidity: function Balance() constant returns(uint256)

func (*DepositCaller) Owner

func (_Deposit *DepositCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

type DepositCallerRaw

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

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

func (*DepositCallerRaw) Call

func (_Deposit *DepositCallerRaw) 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 DepositCallerSession

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

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

func (*DepositCallerSession) Balance

func (_Deposit *DepositCallerSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0x0ef67887.

Solidity: function Balance() constant returns(uint256)

func (*DepositCallerSession) Owner

func (_Deposit *DepositCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

type DepositDeposit

type DepositDeposit struct {
	From  common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

DepositDeposit represents a Deposit event raised by the Deposit contract.

type DepositDepositIterator

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

DepositDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Deposit contract.

func (*DepositDepositIterator) Close

func (it *DepositDepositIterator) Close() error

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

func (*DepositDepositIterator) Error

func (it *DepositDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DepositDepositIterator) Next

func (it *DepositDepositIterator) 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 DepositFilterer

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

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

func NewDepositFilterer

func NewDepositFilterer(address common.Address, filterer bind.ContractFilterer) (*DepositFilterer, error)

NewDepositFilterer creates a new log filterer instance of Deposit, bound to a specific deployed contract.

func (*DepositFilterer) FilterDeposit

func (_Deposit *DepositFilterer) FilterDeposit(opts *bind.FilterOpts, _from []common.Address, _value []*big.Int) (*DepositDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address indexed _from, uint256 indexed _value)

func (*DepositFilterer) FilterWithdrawal

func (_Deposit *DepositFilterer) FilterWithdrawal(opts *bind.FilterOpts, _to []common.Address, _value []*big.Int) (*DepositWithdrawalIterator, error)

FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.

Solidity: event Withdrawal(address indexed _to, uint256 indexed _value)

func (*DepositFilterer) WatchDeposit

func (_Deposit *DepositFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *DepositDeposit, _from []common.Address, _value []*big.Int) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address indexed _from, uint256 indexed _value)

func (*DepositFilterer) WatchWithdrawal

func (_Deposit *DepositFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *DepositWithdrawal, _to []common.Address, _value []*big.Int) (event.Subscription, error)

WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.

Solidity: event Withdrawal(address indexed _to, uint256 indexed _value)

type DepositRaw

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

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

func (*DepositRaw) Call

func (_Deposit *DepositRaw) 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 (*DepositRaw) Transact

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

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

func (*DepositRaw) Transfer

func (_Deposit *DepositRaw) 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 DepositSession

type DepositSession struct {
	Contract     *Deposit          // 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
}

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

func (*DepositSession) Balance

func (_Deposit *DepositSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0x0ef67887.

Solidity: function Balance() constant returns(uint256)

func (*DepositSession) Owner

func (_Deposit *DepositSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*DepositSession) Withdrawal

func (_Deposit *DepositSession) Withdrawal(_value *big.Int) (*types.Transaction, error)

Withdrawal is a paid mutator transaction binding the contract method 0x835fc6ca.

Solidity: function withdrawal(uint256 _value) returns()

type DepositTransactor

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

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

func NewDepositTransactor

func NewDepositTransactor(address common.Address, transactor bind.ContractTransactor) (*DepositTransactor, error)

NewDepositTransactor creates a new write-only instance of Deposit, bound to a specific deployed contract.

func (*DepositTransactor) Withdrawal

func (_Deposit *DepositTransactor) Withdrawal(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

Withdrawal is a paid mutator transaction binding the contract method 0x835fc6ca.

Solidity: function withdrawal(uint256 _value) returns()

type DepositTransactorRaw

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

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

func (*DepositTransactorRaw) Transact

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

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

func (*DepositTransactorRaw) Transfer

func (_Deposit *DepositTransactorRaw) 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 DepositTransactorSession

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

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

func (*DepositTransactorSession) Withdrawal

func (_Deposit *DepositTransactorSession) Withdrawal(_value *big.Int) (*types.Transaction, error)

Withdrawal is a paid mutator transaction binding the contract method 0x835fc6ca.

Solidity: function withdrawal(uint256 _value) returns()

type DepositWithdrawal

type DepositWithdrawal struct {
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

DepositWithdrawal represents a Withdrawal event raised by the Deposit contract.

type DepositWithdrawalIterator

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

DepositWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the Deposit contract.

func (*DepositWithdrawalIterator) Close

func (it *DepositWithdrawalIterator) Close() error

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

func (*DepositWithdrawalIterator) Error

func (it *DepositWithdrawalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DepositWithdrawalIterator) Next

func (it *DepositWithdrawalIterator) 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.

Jump to

Keyboard shortcuts

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