contract

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

From this folder we need to generate the appropriate binary, abi, and go files for the .sol smart contract.

From this folder, run generate_contract_code <smart_contract_filename_without_ext> to generate the corresponding .abi, .bin, and .go files.

Documentation

Index

Constants

View Source
const LockRedeemABI = "" /* 5444-byte string literal not displayed */

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

Variables

View Source
var LockRedeemBin = "" /* 8532-byte string literal not displayed */

LockRedeemBin is the compiled bytecode used for deploying new contracts.

View Source
var LockRedeemFuncSigs = map[string]string{
	"bfb9e9f5": "addValidatorProposals(address)",
	"0d8f6b5b": "epochBlockHeight()",
	"45dfa415": "getOLTEthAddress()",
	"6c7d13df": "getSignatureCount(address)",
	"287cc96b": "getTotalEthBalance()",
	"31b6a6d1": "hasValidatorSigned(address)",
	"facd743b": "isValidator(address)",
	"f83d08ba": "lock()",
	"0e7d275d": "newThresholdProposals(uint256)",
	"5d593f8d": "numValidators()",
	"383ea59a": "proposeAddValidator(address)",
	"e0e887d0": "proposeNewThreshold(uint256)",
	"101a8538": "proposeRemoveValidator(address)",
	"db006a75": "redeem(uint256)",
	"0d00753a": "removeValidatorProposals(address)",
	"7cacde3f": "sign(uint256,address)",
	"fa52c7d8": "validators(address)",
	"91e39868": "verifyRedeem(address)",
	"62827733": "votingThreshold()",
}

LockRedeemFuncSigs maps the 4-byte function signature to its string representation.

Functions

This section is empty.

Types

type LockRedeem

type LockRedeem struct {
	LockRedeemCaller     // Read-only binding to the contract
	LockRedeemTransactor // Write-only binding to the contract
	LockRedeemFilterer   // Log filterer for contract events
}

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

func DeployLockRedeem

func DeployLockRedeem(auth *bind.TransactOpts, backend bind.ContractBackend, initialValidators []common.Address) (common.Address, *types.Transaction, *LockRedeem, error)

DeployLockRedeem deploys a new Ethereum contract, binding an instance of LockRedeem to it.

func NewLockRedeem

func NewLockRedeem(address common.Address, backend bind.ContractBackend) (*LockRedeem, error)

NewLockRedeem creates a new instance of LockRedeem, bound to a specific deployed contract.

type LockRedeemAddValidator

type LockRedeemAddValidator struct {
	Address common.Address
	Power   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

LockRedeemAddValidator represents a AddValidator event raised by the LockRedeem contract.

type LockRedeemAddValidatorIterator

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

LockRedeemAddValidatorIterator is returned from FilterAddValidator and is used to iterate over the raw logs and unpacked data for AddValidator events raised by the LockRedeem contract.

func (*LockRedeemAddValidatorIterator) Close

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

func (*LockRedeemAddValidatorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LockRedeemAddValidatorIterator) 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 LockRedeemCaller

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

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

func NewLockRedeemCaller

func NewLockRedeemCaller(address common.Address, caller bind.ContractCaller) (*LockRedeemCaller, error)

NewLockRedeemCaller creates a new read-only instance of LockRedeem, bound to a specific deployed contract.

func (*LockRedeemCaller) AddValidatorProposals

func (_LockRedeem *LockRedeemCaller) AddValidatorProposals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

AddValidatorProposals is a free data retrieval call binding the contract method 0xbfb9e9f5.

Solidity: function addValidatorProposals(address ) constant returns(uint256 voteCount)

func (*LockRedeemCaller) EpochBlockHeight

func (_LockRedeem *LockRedeemCaller) EpochBlockHeight(opts *bind.CallOpts) (*big.Int, error)

EpochBlockHeight is a free data retrieval call binding the contract method 0x0d8f6b5b.

Solidity: function epochBlockHeight() constant returns(uint256)

func (*LockRedeemCaller) GetOLTEthAddress

func (_LockRedeem *LockRedeemCaller) GetOLTEthAddress(opts *bind.CallOpts) (common.Address, error)

GetOLTEthAddress is a free data retrieval call binding the contract method 0x45dfa415.

Solidity: function getOLTEthAddress() constant returns(address)

func (*LockRedeemCaller) GetSignatureCount

func (_LockRedeem *LockRedeemCaller) GetSignatureCount(opts *bind.CallOpts, recipient_ common.Address) (*big.Int, error)

GetSignatureCount is a free data retrieval call binding the contract method 0x6c7d13df.

Solidity: function getSignatureCount(address recipient_) constant returns(uint256)

func (*LockRedeemCaller) GetTotalEthBalance

func (_LockRedeem *LockRedeemCaller) GetTotalEthBalance(opts *bind.CallOpts) (*big.Int, error)

GetTotalEthBalance is a free data retrieval call binding the contract method 0x287cc96b.

Solidity: function getTotalEthBalance() constant returns(uint256)

func (*LockRedeemCaller) HasValidatorSigned

func (_LockRedeem *LockRedeemCaller) HasValidatorSigned(opts *bind.CallOpts, recipient_ common.Address) (bool, error)

HasValidatorSigned is a free data retrieval call binding the contract method 0x31b6a6d1.

Solidity: function hasValidatorSigned(address recipient_) constant returns(bool)

func (*LockRedeemCaller) IsValidator

func (_LockRedeem *LockRedeemCaller) IsValidator(opts *bind.CallOpts, addr common.Address) (bool, error)

IsValidator is a free data retrieval call binding the contract method 0xfacd743b.

Solidity: function isValidator(address addr) constant returns(bool)

func (*LockRedeemCaller) NewThresholdProposals

func (_LockRedeem *LockRedeemCaller) NewThresholdProposals(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

NewThresholdProposals is a free data retrieval call binding the contract method 0x0e7d275d.

Solidity: function newThresholdProposals(uint256 ) constant returns(uint256 voteCount)

func (*LockRedeemCaller) NumValidators

func (_LockRedeem *LockRedeemCaller) NumValidators(opts *bind.CallOpts) (*big.Int, error)

NumValidators is a free data retrieval call binding the contract method 0x5d593f8d.

Solidity: function numValidators() constant returns(uint256)

func (*LockRedeemCaller) ProposeRemoveValidator

func (_LockRedeem *LockRedeemCaller) ProposeRemoveValidator(opts *bind.CallOpts, v common.Address) error

ProposeRemoveValidator is a free data retrieval call binding the contract method 0x101a8538.

Solidity: function proposeRemoveValidator(address v) constant returns()

func (*LockRedeemCaller) RemoveValidatorProposals

func (_LockRedeem *LockRedeemCaller) RemoveValidatorProposals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

RemoveValidatorProposals is a free data retrieval call binding the contract method 0x0d00753a.

Solidity: function removeValidatorProposals(address ) constant returns(uint256 voteCount)

func (*LockRedeemCaller) Validators

func (_LockRedeem *LockRedeemCaller) Validators(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Validators is a free data retrieval call binding the contract method 0xfa52c7d8.

Solidity: function validators(address ) constant returns(int256)

func (*LockRedeemCaller) VerifyRedeem

func (_LockRedeem *LockRedeemCaller) VerifyRedeem(opts *bind.CallOpts, recipient_ common.Address) (bool, error)

VerifyRedeem is a free data retrieval call binding the contract method 0x91e39868.

Solidity: function verifyRedeem(address recipient_) constant returns(bool)

func (*LockRedeemCaller) VotingThreshold

func (_LockRedeem *LockRedeemCaller) VotingThreshold(opts *bind.CallOpts) (*big.Int, error)

VotingThreshold is a free data retrieval call binding the contract method 0x62827733.

Solidity: function votingThreshold() constant returns(uint256)

type LockRedeemCallerRaw

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

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

func (*LockRedeemCallerRaw) Call

func (_LockRedeem *LockRedeemCallerRaw) 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 LockRedeemCallerSession

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

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

func (*LockRedeemCallerSession) AddValidatorProposals

func (_LockRedeem *LockRedeemCallerSession) AddValidatorProposals(arg0 common.Address) (*big.Int, error)

AddValidatorProposals is a free data retrieval call binding the contract method 0xbfb9e9f5.

Solidity: function addValidatorProposals(address ) constant returns(uint256 voteCount)

func (*LockRedeemCallerSession) EpochBlockHeight

func (_LockRedeem *LockRedeemCallerSession) EpochBlockHeight() (*big.Int, error)

EpochBlockHeight is a free data retrieval call binding the contract method 0x0d8f6b5b.

Solidity: function epochBlockHeight() constant returns(uint256)

func (*LockRedeemCallerSession) GetOLTEthAddress

func (_LockRedeem *LockRedeemCallerSession) GetOLTEthAddress() (common.Address, error)

GetOLTEthAddress is a free data retrieval call binding the contract method 0x45dfa415.

Solidity: function getOLTEthAddress() constant returns(address)

func (*LockRedeemCallerSession) GetSignatureCount

func (_LockRedeem *LockRedeemCallerSession) GetSignatureCount(recipient_ common.Address) (*big.Int, error)

GetSignatureCount is a free data retrieval call binding the contract method 0x6c7d13df.

Solidity: function getSignatureCount(address recipient_) constant returns(uint256)

func (*LockRedeemCallerSession) GetTotalEthBalance

func (_LockRedeem *LockRedeemCallerSession) GetTotalEthBalance() (*big.Int, error)

GetTotalEthBalance is a free data retrieval call binding the contract method 0x287cc96b.

Solidity: function getTotalEthBalance() constant returns(uint256)

func (*LockRedeemCallerSession) HasValidatorSigned

func (_LockRedeem *LockRedeemCallerSession) HasValidatorSigned(recipient_ common.Address) (bool, error)

HasValidatorSigned is a free data retrieval call binding the contract method 0x31b6a6d1.

Solidity: function hasValidatorSigned(address recipient_) constant returns(bool)

func (*LockRedeemCallerSession) IsValidator

func (_LockRedeem *LockRedeemCallerSession) IsValidator(addr common.Address) (bool, error)

IsValidator is a free data retrieval call binding the contract method 0xfacd743b.

Solidity: function isValidator(address addr) constant returns(bool)

func (*LockRedeemCallerSession) NewThresholdProposals

func (_LockRedeem *LockRedeemCallerSession) NewThresholdProposals(arg0 *big.Int) (*big.Int, error)

NewThresholdProposals is a free data retrieval call binding the contract method 0x0e7d275d.

Solidity: function newThresholdProposals(uint256 ) constant returns(uint256 voteCount)

func (*LockRedeemCallerSession) NumValidators

func (_LockRedeem *LockRedeemCallerSession) NumValidators() (*big.Int, error)

NumValidators is a free data retrieval call binding the contract method 0x5d593f8d.

Solidity: function numValidators() constant returns(uint256)

func (*LockRedeemCallerSession) ProposeRemoveValidator

func (_LockRedeem *LockRedeemCallerSession) ProposeRemoveValidator(v common.Address) error

ProposeRemoveValidator is a free data retrieval call binding the contract method 0x101a8538.

Solidity: function proposeRemoveValidator(address v) constant returns()

func (*LockRedeemCallerSession) RemoveValidatorProposals

func (_LockRedeem *LockRedeemCallerSession) RemoveValidatorProposals(arg0 common.Address) (*big.Int, error)

RemoveValidatorProposals is a free data retrieval call binding the contract method 0x0d00753a.

Solidity: function removeValidatorProposals(address ) constant returns(uint256 voteCount)

func (*LockRedeemCallerSession) Validators

func (_LockRedeem *LockRedeemCallerSession) Validators(arg0 common.Address) (*big.Int, error)

Validators is a free data retrieval call binding the contract method 0xfa52c7d8.

Solidity: function validators(address ) constant returns(int256)

func (*LockRedeemCallerSession) VerifyRedeem

func (_LockRedeem *LockRedeemCallerSession) VerifyRedeem(recipient_ common.Address) (bool, error)

VerifyRedeem is a free data retrieval call binding the contract method 0x91e39868.

Solidity: function verifyRedeem(address recipient_) constant returns(bool)

func (*LockRedeemCallerSession) VotingThreshold

func (_LockRedeem *LockRedeemCallerSession) VotingThreshold() (*big.Int, error)

VotingThreshold is a free data retrieval call binding the contract method 0x62827733.

Solidity: function votingThreshold() constant returns(uint256)

type LockRedeemDeleteValidator

type LockRedeemDeleteValidator struct {
	Address common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

LockRedeemDeleteValidator represents a DeleteValidator event raised by the LockRedeem contract.

type LockRedeemDeleteValidatorIterator

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

LockRedeemDeleteValidatorIterator is returned from FilterDeleteValidator and is used to iterate over the raw logs and unpacked data for DeleteValidator events raised by the LockRedeem contract.

func (*LockRedeemDeleteValidatorIterator) Close

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

func (*LockRedeemDeleteValidatorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LockRedeemDeleteValidatorIterator) 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 LockRedeemFilterer

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

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

func NewLockRedeemFilterer

func NewLockRedeemFilterer(address common.Address, filterer bind.ContractFilterer) (*LockRedeemFilterer, error)

NewLockRedeemFilterer creates a new log filterer instance of LockRedeem, bound to a specific deployed contract.

func (*LockRedeemFilterer) FilterAddValidator

func (_LockRedeem *LockRedeemFilterer) FilterAddValidator(opts *bind.FilterOpts, _address []common.Address) (*LockRedeemAddValidatorIterator, error)

FilterAddValidator is a free log retrieval operation binding the contract event 0xb2076c69a79e1dfb01d613dcc63b7c42ae1962daf11d4f2151352135133f824b.

Solidity: event AddValidator(address indexed _address, int256 _power)

func (*LockRedeemFilterer) FilterDeleteValidator

func (_LockRedeem *LockRedeemFilterer) FilterDeleteValidator(opts *bind.FilterOpts, _address []common.Address) (*LockRedeemDeleteValidatorIterator, error)

FilterDeleteValidator is a free log retrieval operation binding the contract event 0x6d70afad774d81e8c32f930c6412789502b16ccf0a20f21679b249bdfac060e5.

Solidity: event DeleteValidator(address indexed _address)

func (*LockRedeemFilterer) FilterLock

func (_LockRedeem *LockRedeemFilterer) FilterLock(opts *bind.FilterOpts) (*LockRedeemLockIterator, error)

FilterLock is a free log retrieval operation binding the contract event 0x625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d427.

Solidity: event Lock(address sender, uint256 amount_received)

func (*LockRedeemFilterer) FilterNewEpoch

func (_LockRedeem *LockRedeemFilterer) FilterNewEpoch(opts *bind.FilterOpts) (*LockRedeemNewEpochIterator, error)

FilterNewEpoch is a free log retrieval operation binding the contract event 0xebad8099c467528a56c98b63c8d476d251cf1ffb4c75db94b4d23fa2b6a1e335.

Solidity: event NewEpoch(uint256 epochHeight)

func (*LockRedeemFilterer) FilterNewThreshold

func (_LockRedeem *LockRedeemFilterer) FilterNewThreshold(opts *bind.FilterOpts) (*LockRedeemNewThresholdIterator, error)

FilterNewThreshold is a free log retrieval operation binding the contract event 0x7a5c0f01d83576763cde96136a1c8a8c1c05ff95d8a184db483894a9b69b8b3a.

Solidity: event NewThreshold(uint256 _prevThreshold, uint256 _newThreshold)

func (*LockRedeemFilterer) FilterRedeemRequest

func (_LockRedeem *LockRedeemFilterer) FilterRedeemRequest(opts *bind.FilterOpts, recepient []common.Address) (*LockRedeemRedeemRequestIterator, error)

FilterRedeemRequest is a free log retrieval operation binding the contract event 0x222dc200773fe9b45015bf792e8fee37d651e3590c215806a5042404b6d741d2.

Solidity: event RedeemRequest(address indexed recepient, uint256 amount_requested)

func (*LockRedeemFilterer) FilterValidatorSignedRedeem

func (_LockRedeem *LockRedeemFilterer) FilterValidatorSignedRedeem(opts *bind.FilterOpts, recipient []common.Address) (*LockRedeemValidatorSignedRedeemIterator, error)

FilterValidatorSignedRedeem is a free log retrieval operation binding the contract event 0x3b76df4bf55914fbcbc8b02f6773984cc346db1e6aef40410dcee0f94c6a05db.

Solidity: event ValidatorSignedRedeem(address indexed recipient, address validator_addresss, uint256 amount)

func (*LockRedeemFilterer) ParseAddValidator

func (_LockRedeem *LockRedeemFilterer) ParseAddValidator(log types.Log) (*LockRedeemAddValidator, error)

ParseAddValidator is a log parse operation binding the contract event 0xb2076c69a79e1dfb01d613dcc63b7c42ae1962daf11d4f2151352135133f824b.

Solidity: event AddValidator(address indexed _address, int256 _power)

func (*LockRedeemFilterer) ParseDeleteValidator

func (_LockRedeem *LockRedeemFilterer) ParseDeleteValidator(log types.Log) (*LockRedeemDeleteValidator, error)

ParseDeleteValidator is a log parse operation binding the contract event 0x6d70afad774d81e8c32f930c6412789502b16ccf0a20f21679b249bdfac060e5.

Solidity: event DeleteValidator(address indexed _address)

func (*LockRedeemFilterer) ParseLock

func (_LockRedeem *LockRedeemFilterer) ParseLock(log types.Log) (*LockRedeemLock, error)

ParseLock is a log parse operation binding the contract event 0x625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d427.

Solidity: event Lock(address sender, uint256 amount_received)

func (*LockRedeemFilterer) ParseNewEpoch

func (_LockRedeem *LockRedeemFilterer) ParseNewEpoch(log types.Log) (*LockRedeemNewEpoch, error)

ParseNewEpoch is a log parse operation binding the contract event 0xebad8099c467528a56c98b63c8d476d251cf1ffb4c75db94b4d23fa2b6a1e335.

Solidity: event NewEpoch(uint256 epochHeight)

func (*LockRedeemFilterer) ParseNewThreshold

func (_LockRedeem *LockRedeemFilterer) ParseNewThreshold(log types.Log) (*LockRedeemNewThreshold, error)

ParseNewThreshold is a log parse operation binding the contract event 0x7a5c0f01d83576763cde96136a1c8a8c1c05ff95d8a184db483894a9b69b8b3a.

Solidity: event NewThreshold(uint256 _prevThreshold, uint256 _newThreshold)

func (*LockRedeemFilterer) ParseRedeemRequest

func (_LockRedeem *LockRedeemFilterer) ParseRedeemRequest(log types.Log) (*LockRedeemRedeemRequest, error)

ParseRedeemRequest is a log parse operation binding the contract event 0x222dc200773fe9b45015bf792e8fee37d651e3590c215806a5042404b6d741d2.

Solidity: event RedeemRequest(address indexed recepient, uint256 amount_requested)

func (*LockRedeemFilterer) ParseValidatorSignedRedeem

func (_LockRedeem *LockRedeemFilterer) ParseValidatorSignedRedeem(log types.Log) (*LockRedeemValidatorSignedRedeem, error)

ParseValidatorSignedRedeem is a log parse operation binding the contract event 0x3b76df4bf55914fbcbc8b02f6773984cc346db1e6aef40410dcee0f94c6a05db.

Solidity: event ValidatorSignedRedeem(address indexed recipient, address validator_addresss, uint256 amount)

func (*LockRedeemFilterer) WatchAddValidator

func (_LockRedeem *LockRedeemFilterer) WatchAddValidator(opts *bind.WatchOpts, sink chan<- *LockRedeemAddValidator, _address []common.Address) (event.Subscription, error)

WatchAddValidator is a free log subscription operation binding the contract event 0xb2076c69a79e1dfb01d613dcc63b7c42ae1962daf11d4f2151352135133f824b.

Solidity: event AddValidator(address indexed _address, int256 _power)

func (*LockRedeemFilterer) WatchDeleteValidator

func (_LockRedeem *LockRedeemFilterer) WatchDeleteValidator(opts *bind.WatchOpts, sink chan<- *LockRedeemDeleteValidator, _address []common.Address) (event.Subscription, error)

WatchDeleteValidator is a free log subscription operation binding the contract event 0x6d70afad774d81e8c32f930c6412789502b16ccf0a20f21679b249bdfac060e5.

Solidity: event DeleteValidator(address indexed _address)

func (*LockRedeemFilterer) WatchLock

func (_LockRedeem *LockRedeemFilterer) WatchLock(opts *bind.WatchOpts, sink chan<- *LockRedeemLock) (event.Subscription, error)

WatchLock is a free log subscription operation binding the contract event 0x625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d427.

Solidity: event Lock(address sender, uint256 amount_received)

func (*LockRedeemFilterer) WatchNewEpoch

func (_LockRedeem *LockRedeemFilterer) WatchNewEpoch(opts *bind.WatchOpts, sink chan<- *LockRedeemNewEpoch) (event.Subscription, error)

WatchNewEpoch is a free log subscription operation binding the contract event 0xebad8099c467528a56c98b63c8d476d251cf1ffb4c75db94b4d23fa2b6a1e335.

Solidity: event NewEpoch(uint256 epochHeight)

func (*LockRedeemFilterer) WatchNewThreshold

func (_LockRedeem *LockRedeemFilterer) WatchNewThreshold(opts *bind.WatchOpts, sink chan<- *LockRedeemNewThreshold) (event.Subscription, error)

WatchNewThreshold is a free log subscription operation binding the contract event 0x7a5c0f01d83576763cde96136a1c8a8c1c05ff95d8a184db483894a9b69b8b3a.

Solidity: event NewThreshold(uint256 _prevThreshold, uint256 _newThreshold)

func (*LockRedeemFilterer) WatchRedeemRequest

func (_LockRedeem *LockRedeemFilterer) WatchRedeemRequest(opts *bind.WatchOpts, sink chan<- *LockRedeemRedeemRequest, recepient []common.Address) (event.Subscription, error)

WatchRedeemRequest is a free log subscription operation binding the contract event 0x222dc200773fe9b45015bf792e8fee37d651e3590c215806a5042404b6d741d2.

Solidity: event RedeemRequest(address indexed recepient, uint256 amount_requested)

func (*LockRedeemFilterer) WatchValidatorSignedRedeem

func (_LockRedeem *LockRedeemFilterer) WatchValidatorSignedRedeem(opts *bind.WatchOpts, sink chan<- *LockRedeemValidatorSignedRedeem, recipient []common.Address) (event.Subscription, error)

WatchValidatorSignedRedeem is a free log subscription operation binding the contract event 0x3b76df4bf55914fbcbc8b02f6773984cc346db1e6aef40410dcee0f94c6a05db.

Solidity: event ValidatorSignedRedeem(address indexed recipient, address validator_addresss, uint256 amount)

type LockRedeemLock

type LockRedeemLock struct {
	Sender         common.Address
	AmountReceived *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

LockRedeemLock represents a Lock event raised by the LockRedeem contract.

type LockRedeemLockIterator

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

LockRedeemLockIterator is returned from FilterLock and is used to iterate over the raw logs and unpacked data for Lock events raised by the LockRedeem contract.

func (*LockRedeemLockIterator) Close

func (it *LockRedeemLockIterator) Close() error

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

func (*LockRedeemLockIterator) Error

func (it *LockRedeemLockIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LockRedeemLockIterator) Next

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

type LockRedeemNewEpoch struct {
	EpochHeight *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

LockRedeemNewEpoch represents a NewEpoch event raised by the LockRedeem contract.

type LockRedeemNewEpochIterator

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

LockRedeemNewEpochIterator is returned from FilterNewEpoch and is used to iterate over the raw logs and unpacked data for NewEpoch events raised by the LockRedeem contract.

func (*LockRedeemNewEpochIterator) Close

func (it *LockRedeemNewEpochIterator) Close() error

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

func (*LockRedeemNewEpochIterator) Error

func (it *LockRedeemNewEpochIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LockRedeemNewEpochIterator) Next

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

type LockRedeemNewThreshold struct {
	PrevThreshold *big.Int
	NewThreshold  *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

LockRedeemNewThreshold represents a NewThreshold event raised by the LockRedeem contract.

type LockRedeemNewThresholdIterator

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

LockRedeemNewThresholdIterator is returned from FilterNewThreshold and is used to iterate over the raw logs and unpacked data for NewThreshold events raised by the LockRedeem contract.

func (*LockRedeemNewThresholdIterator) Close

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

func (*LockRedeemNewThresholdIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LockRedeemNewThresholdIterator) 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 LockRedeemRaw

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

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

func (*LockRedeemRaw) Call

func (_LockRedeem *LockRedeemRaw) 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 (*LockRedeemRaw) Transact

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

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

func (*LockRedeemRaw) Transfer

func (_LockRedeem *LockRedeemRaw) 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 LockRedeemRedeemRequest

type LockRedeemRedeemRequest struct {
	Recepient       common.Address
	AmountRequested *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

LockRedeemRedeemRequest represents a RedeemRequest event raised by the LockRedeem contract.

type LockRedeemRedeemRequestIterator

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

LockRedeemRedeemRequestIterator is returned from FilterRedeemRequest and is used to iterate over the raw logs and unpacked data for RedeemRequest events raised by the LockRedeem contract.

func (*LockRedeemRedeemRequestIterator) Close

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

func (*LockRedeemRedeemRequestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LockRedeemRedeemRequestIterator) 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 LockRedeemSession

type LockRedeemSession struct {
	Contract     *LockRedeem       // 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
}

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

func (*LockRedeemSession) AddValidatorProposals

func (_LockRedeem *LockRedeemSession) AddValidatorProposals(arg0 common.Address) (*big.Int, error)

AddValidatorProposals is a free data retrieval call binding the contract method 0xbfb9e9f5.

Solidity: function addValidatorProposals(address ) constant returns(uint256 voteCount)

func (*LockRedeemSession) EpochBlockHeight

func (_LockRedeem *LockRedeemSession) EpochBlockHeight() (*big.Int, error)

EpochBlockHeight is a free data retrieval call binding the contract method 0x0d8f6b5b.

Solidity: function epochBlockHeight() constant returns(uint256)

func (*LockRedeemSession) GetOLTEthAddress

func (_LockRedeem *LockRedeemSession) GetOLTEthAddress() (common.Address, error)

GetOLTEthAddress is a free data retrieval call binding the contract method 0x45dfa415.

Solidity: function getOLTEthAddress() constant returns(address)

func (*LockRedeemSession) GetSignatureCount

func (_LockRedeem *LockRedeemSession) GetSignatureCount(recipient_ common.Address) (*big.Int, error)

GetSignatureCount is a free data retrieval call binding the contract method 0x6c7d13df.

Solidity: function getSignatureCount(address recipient_) constant returns(uint256)

func (*LockRedeemSession) GetTotalEthBalance

func (_LockRedeem *LockRedeemSession) GetTotalEthBalance() (*big.Int, error)

GetTotalEthBalance is a free data retrieval call binding the contract method 0x287cc96b.

Solidity: function getTotalEthBalance() constant returns(uint256)

func (*LockRedeemSession) HasValidatorSigned

func (_LockRedeem *LockRedeemSession) HasValidatorSigned(recipient_ common.Address) (bool, error)

HasValidatorSigned is a free data retrieval call binding the contract method 0x31b6a6d1.

Solidity: function hasValidatorSigned(address recipient_) constant returns(bool)

func (*LockRedeemSession) IsValidator

func (_LockRedeem *LockRedeemSession) IsValidator(addr common.Address) (bool, error)

IsValidator is a free data retrieval call binding the contract method 0xfacd743b.

Solidity: function isValidator(address addr) constant returns(bool)

func (*LockRedeemSession) Lock

func (_LockRedeem *LockRedeemSession) Lock() (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0xf83d08ba.

Solidity: function lock() returns()

func (*LockRedeemSession) NewThresholdProposals

func (_LockRedeem *LockRedeemSession) NewThresholdProposals(arg0 *big.Int) (*big.Int, error)

NewThresholdProposals is a free data retrieval call binding the contract method 0x0e7d275d.

Solidity: function newThresholdProposals(uint256 ) constant returns(uint256 voteCount)

func (*LockRedeemSession) NumValidators

func (_LockRedeem *LockRedeemSession) NumValidators() (*big.Int, error)

NumValidators is a free data retrieval call binding the contract method 0x5d593f8d.

Solidity: function numValidators() constant returns(uint256)

func (*LockRedeemSession) ProposeAddValidator

func (_LockRedeem *LockRedeemSession) ProposeAddValidator(v common.Address) (*types.Transaction, error)

ProposeAddValidator is a paid mutator transaction binding the contract method 0x383ea59a.

Solidity: function proposeAddValidator(address v) returns()

func (*LockRedeemSession) ProposeNewThreshold

func (_LockRedeem *LockRedeemSession) ProposeNewThreshold(threshold *big.Int) (*types.Transaction, error)

ProposeNewThreshold is a paid mutator transaction binding the contract method 0xe0e887d0.

Solidity: function proposeNewThreshold(uint256 threshold) returns()

func (*LockRedeemSession) ProposeRemoveValidator

func (_LockRedeem *LockRedeemSession) ProposeRemoveValidator(v common.Address) error

ProposeRemoveValidator is a free data retrieval call binding the contract method 0x101a8538.

Solidity: function proposeRemoveValidator(address v) constant returns()

func (*LockRedeemSession) Redeem

func (_LockRedeem *LockRedeemSession) Redeem(amount_ *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 amount_) returns()

func (*LockRedeemSession) RemoveValidatorProposals

func (_LockRedeem *LockRedeemSession) RemoveValidatorProposals(arg0 common.Address) (*big.Int, error)

RemoveValidatorProposals is a free data retrieval call binding the contract method 0x0d00753a.

Solidity: function removeValidatorProposals(address ) constant returns(uint256 voteCount)

func (*LockRedeemSession) Sign

func (_LockRedeem *LockRedeemSession) Sign(amount_ *big.Int, recipient_ common.Address) (*types.Transaction, error)

Sign is a paid mutator transaction binding the contract method 0x7cacde3f.

Solidity: function sign(uint256 amount_, address recipient_) returns()

func (*LockRedeemSession) Validators

func (_LockRedeem *LockRedeemSession) Validators(arg0 common.Address) (*big.Int, error)

Validators is a free data retrieval call binding the contract method 0xfa52c7d8.

Solidity: function validators(address ) constant returns(int256)

func (*LockRedeemSession) VerifyRedeem

func (_LockRedeem *LockRedeemSession) VerifyRedeem(recipient_ common.Address) (bool, error)

VerifyRedeem is a free data retrieval call binding the contract method 0x91e39868.

Solidity: function verifyRedeem(address recipient_) constant returns(bool)

func (*LockRedeemSession) VotingThreshold

func (_LockRedeem *LockRedeemSession) VotingThreshold() (*big.Int, error)

VotingThreshold is a free data retrieval call binding the contract method 0x62827733.

Solidity: function votingThreshold() constant returns(uint256)

type LockRedeemTransactor

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

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

func NewLockRedeemTransactor

func NewLockRedeemTransactor(address common.Address, transactor bind.ContractTransactor) (*LockRedeemTransactor, error)

NewLockRedeemTransactor creates a new write-only instance of LockRedeem, bound to a specific deployed contract.

func (*LockRedeemTransactor) Lock

func (_LockRedeem *LockRedeemTransactor) Lock(opts *bind.TransactOpts) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0xf83d08ba.

Solidity: function lock() returns()

func (*LockRedeemTransactor) ProposeAddValidator

func (_LockRedeem *LockRedeemTransactor) ProposeAddValidator(opts *bind.TransactOpts, v common.Address) (*types.Transaction, error)

ProposeAddValidator is a paid mutator transaction binding the contract method 0x383ea59a.

Solidity: function proposeAddValidator(address v) returns()

func (*LockRedeemTransactor) ProposeNewThreshold

func (_LockRedeem *LockRedeemTransactor) ProposeNewThreshold(opts *bind.TransactOpts, threshold *big.Int) (*types.Transaction, error)

ProposeNewThreshold is a paid mutator transaction binding the contract method 0xe0e887d0.

Solidity: function proposeNewThreshold(uint256 threshold) returns()

func (*LockRedeemTransactor) Redeem

func (_LockRedeem *LockRedeemTransactor) Redeem(opts *bind.TransactOpts, amount_ *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 amount_) returns()

func (*LockRedeemTransactor) Sign

func (_LockRedeem *LockRedeemTransactor) Sign(opts *bind.TransactOpts, amount_ *big.Int, recipient_ common.Address) (*types.Transaction, error)

Sign is a paid mutator transaction binding the contract method 0x7cacde3f.

Solidity: function sign(uint256 amount_, address recipient_) returns()

type LockRedeemTransactorRaw

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

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

func (*LockRedeemTransactorRaw) Transact

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

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

func (*LockRedeemTransactorRaw) Transfer

func (_LockRedeem *LockRedeemTransactorRaw) 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 LockRedeemTransactorSession

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

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

func (*LockRedeemTransactorSession) Lock

func (_LockRedeem *LockRedeemTransactorSession) Lock() (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0xf83d08ba.

Solidity: function lock() returns()

func (*LockRedeemTransactorSession) ProposeAddValidator

func (_LockRedeem *LockRedeemTransactorSession) ProposeAddValidator(v common.Address) (*types.Transaction, error)

ProposeAddValidator is a paid mutator transaction binding the contract method 0x383ea59a.

Solidity: function proposeAddValidator(address v) returns()

func (*LockRedeemTransactorSession) ProposeNewThreshold

func (_LockRedeem *LockRedeemTransactorSession) ProposeNewThreshold(threshold *big.Int) (*types.Transaction, error)

ProposeNewThreshold is a paid mutator transaction binding the contract method 0xe0e887d0.

Solidity: function proposeNewThreshold(uint256 threshold) returns()

func (*LockRedeemTransactorSession) Redeem

func (_LockRedeem *LockRedeemTransactorSession) Redeem(amount_ *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 amount_) returns()

func (*LockRedeemTransactorSession) Sign

func (_LockRedeem *LockRedeemTransactorSession) Sign(amount_ *big.Int, recipient_ common.Address) (*types.Transaction, error)

Sign is a paid mutator transaction binding the contract method 0x7cacde3f.

Solidity: function sign(uint256 amount_, address recipient_) returns()

type LockRedeemValidatorSignedRedeem

type LockRedeemValidatorSignedRedeem struct {
	Recipient         common.Address
	ValidatorAddresss common.Address
	Amount            *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

LockRedeemValidatorSignedRedeem represents a ValidatorSignedRedeem event raised by the LockRedeem contract.

type LockRedeemValidatorSignedRedeemIterator

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

LockRedeemValidatorSignedRedeemIterator is returned from FilterValidatorSignedRedeem and is used to iterate over the raw logs and unpacked data for ValidatorSignedRedeem events raised by the LockRedeem contract.

func (*LockRedeemValidatorSignedRedeemIterator) Close

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

func (*LockRedeemValidatorSignedRedeemIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

Jump to

Keyboard shortcuts

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