reserve

package
v0.0.0-...-2a5f981 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ReserveABI = "" /* 1488-byte string literal not displayed */

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

View Source
const ReserveBin = `` /* 6902-byte string literal not displayed */

ReserveBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reserve

type Reserve struct {
	ReserveCaller     // Read-only binding to the contract
	ReserveTransactor // Write-only binding to the contract
	ReserveFilterer   // Log filterer for contract events
}

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

func DeployReserve

func DeployReserve(auth *bind.TransactOpts, backend bind.ContractBackend, ether_token_addr common.Address, market_token_addr common.Address, p11r_addr common.Address) (common.Address, *types.Transaction, *Reserve, error)

DeployReserve deploys a new Ethereum contract, binding an instance of Reserve to it.

func NewReserve

func NewReserve(address common.Address, backend bind.ContractBackend) (*Reserve, error)

NewReserve creates a new instance of Reserve, bound to a specific deployed contract.

type ReserveCaller

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

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

func NewReserveCaller

func NewReserveCaller(address common.Address, caller bind.ContractCaller) (*ReserveCaller, error)

NewReserveCaller creates a new read-only instance of Reserve, bound to a specific deployed contract.

func (*ReserveCaller) GetSupportPrice

func (_Reserve *ReserveCaller) GetSupportPrice(opts *bind.CallOpts) (*big.Int, error)

GetSupportPrice is a free data retrieval call binding the contract method 0xa056a5b9.

Solidity: function getSupportPrice() constant returns(uint256 out)

func (*ReserveCaller) GetWithdrawalProceeds

func (_Reserve *ReserveCaller) GetWithdrawalProceeds(opts *bind.CallOpts, addr common.Address) (*big.Int, error)

GetWithdrawalProceeds is a free data retrieval call binding the contract method 0x4633020d.

Solidity: function getWithdrawalProceeds(address addr) constant returns(uint256 out)

type ReserveCallerRaw

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

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

func (*ReserveCallerRaw) Call

func (_Reserve *ReserveCallerRaw) 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 ReserveCallerSession

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

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

func (*ReserveCallerSession) GetSupportPrice

func (_Reserve *ReserveCallerSession) GetSupportPrice() (*big.Int, error)

GetSupportPrice is a free data retrieval call binding the contract method 0xa056a5b9.

Solidity: function getSupportPrice() constant returns(uint256 out)

func (*ReserveCallerSession) GetWithdrawalProceeds

func (_Reserve *ReserveCallerSession) GetWithdrawalProceeds(addr common.Address) (*big.Int, error)

GetWithdrawalProceeds is a free data retrieval call binding the contract method 0x4633020d.

Solidity: function getWithdrawalProceeds(address addr) constant returns(uint256 out)

type ReserveFilterer

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

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

func NewReserveFilterer

func NewReserveFilterer(address common.Address, filterer bind.ContractFilterer) (*ReserveFilterer, error)

NewReserveFilterer creates a new log filterer instance of Reserve, bound to a specific deployed contract.

func (*ReserveFilterer) FilterSupported

func (_Reserve *ReserveFilterer) FilterSupported(opts *bind.FilterOpts, owner []common.Address) (*ReserveSupportedIterator, error)

FilterSupported is a free log retrieval operation binding the contract event 0xb19981ad2efd084bc7ddcdc94541b38fd493a1c176ffe2cd1e512e6ee0c34fe9.

Solidity: event Supported(address indexed owner, uint256 offered, uint256 minted)

func (*ReserveFilterer) FilterWithdrawn

func (_Reserve *ReserveFilterer) FilterWithdrawn(opts *bind.FilterOpts, owner []common.Address) (*ReserveWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed owner, uint256 transferred)

func (*ReserveFilterer) WatchSupported

func (_Reserve *ReserveFilterer) WatchSupported(opts *bind.WatchOpts, sink chan<- *ReserveSupported, owner []common.Address) (event.Subscription, error)

WatchSupported is a free log subscription operation binding the contract event 0xb19981ad2efd084bc7ddcdc94541b38fd493a1c176ffe2cd1e512e6ee0c34fe9.

Solidity: event Supported(address indexed owner, uint256 offered, uint256 minted)

func (*ReserveFilterer) WatchWithdrawn

func (_Reserve *ReserveFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *ReserveWithdrawn, owner []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed owner, uint256 transferred)

type ReserveRaw

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

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

func (*ReserveRaw) Call

func (_Reserve *ReserveRaw) 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 (*ReserveRaw) Transact

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

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

func (*ReserveRaw) Transfer

func (_Reserve *ReserveRaw) 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 ReserveSession

type ReserveSession struct {
	Contract     *Reserve          // 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
}

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

func (*ReserveSession) GetSupportPrice

func (_Reserve *ReserveSession) GetSupportPrice() (*big.Int, error)

GetSupportPrice is a free data retrieval call binding the contract method 0xa056a5b9.

Solidity: function getSupportPrice() constant returns(uint256 out)

func (*ReserveSession) GetWithdrawalProceeds

func (_Reserve *ReserveSession) GetWithdrawalProceeds(addr common.Address) (*big.Int, error)

GetWithdrawalProceeds is a free data retrieval call binding the contract method 0x4633020d.

Solidity: function getWithdrawalProceeds(address addr) constant returns(uint256 out)

func (*ReserveSession) Support

func (_Reserve *ReserveSession) Support(offer *big.Int) (*types.Transaction, error)

Support is a paid mutator transaction binding the contract method 0x56c9493f.

Solidity: function support(uint256 offer) returns()

func (*ReserveSession) Withdraw

func (_Reserve *ReserveSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type ReserveSupported

type ReserveSupported struct {
	Owner   common.Address
	Offered *big.Int
	Minted  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ReserveSupported represents a Supported event raised by the Reserve contract.

type ReserveSupportedIterator

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

ReserveSupportedIterator is returned from FilterSupported and is used to iterate over the raw logs and unpacked data for Supported events raised by the Reserve contract.

func (*ReserveSupportedIterator) Close

func (it *ReserveSupportedIterator) Close() error

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

func (*ReserveSupportedIterator) Error

func (it *ReserveSupportedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReserveSupportedIterator) Next

func (it *ReserveSupportedIterator) 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 ReserveTransactor

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

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

func NewReserveTransactor

func NewReserveTransactor(address common.Address, transactor bind.ContractTransactor) (*ReserveTransactor, error)

NewReserveTransactor creates a new write-only instance of Reserve, bound to a specific deployed contract.

func (*ReserveTransactor) Support

func (_Reserve *ReserveTransactor) Support(opts *bind.TransactOpts, offer *big.Int) (*types.Transaction, error)

Support is a paid mutator transaction binding the contract method 0x56c9493f.

Solidity: function support(uint256 offer) returns()

func (*ReserveTransactor) Withdraw

func (_Reserve *ReserveTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type ReserveTransactorRaw

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

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

func (*ReserveTransactorRaw) Transact

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

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

func (*ReserveTransactorRaw) Transfer

func (_Reserve *ReserveTransactorRaw) 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 ReserveTransactorSession

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

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

func (*ReserveTransactorSession) Support

func (_Reserve *ReserveTransactorSession) Support(offer *big.Int) (*types.Transaction, error)

Support is a paid mutator transaction binding the contract method 0x56c9493f.

Solidity: function support(uint256 offer) returns()

func (*ReserveTransactorSession) Withdraw

func (_Reserve *ReserveTransactorSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type ReserveWithdrawn

type ReserveWithdrawn struct {
	Owner       common.Address
	Transferred *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

ReserveWithdrawn represents a Withdrawn event raised by the Reserve contract.

type ReserveWithdrawnIterator

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

ReserveWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Reserve contract.

func (*ReserveWithdrawnIterator) Close

func (it *ReserveWithdrawnIterator) Close() error

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

func (*ReserveWithdrawnIterator) Error

func (it *ReserveWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ReserveWithdrawnIterator) Next

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