commitreveal

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const CommitrevealABI = "" /* 4523-byte string literal not displayed */

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

View Source
const CommitrevealBin = `` /* 5472-byte string literal not displayed */

CommitrevealBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commitreveal

type Commitreveal struct {
	CommitrevealCaller     // Read-only binding to the contract
	CommitrevealTransactor // Write-only binding to the contract
	CommitrevealFilterer   // Log filterer for contract events
}

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

func DeployCommitreveal

func DeployCommitreveal(auth *bind.TransactOpts, backend bind.ContractBackend, _bridgeAddr common.Address) (common.Address, *types.Transaction, *Commitreveal, error)

DeployCommitreveal deploys a new Ethereum contract, binding an instance of Commitreveal to it.

func NewCommitreveal

func NewCommitreveal(address common.Address, backend bind.ContractBackend) (*Commitreveal, error)

NewCommitreveal creates a new instance of Commitreveal, bound to a specific deployed contract.

type CommitrevealCaller

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

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

func NewCommitrevealCaller

func NewCommitrevealCaller(address common.Address, caller bind.ContractCaller) (*CommitrevealCaller, error)

NewCommitrevealCaller creates a new read-only instance of Commitreveal, bound to a specific deployed contract.

func (*CommitrevealCaller) AddressBridge

func (_Commitreveal *CommitrevealCaller) AddressBridge(opts *bind.CallOpts) (common.Address, error)

AddressBridge is a free data retrieval call binding the contract method 0x76cffa53.

Solidity: function addressBridge() constant returns(address)

func (*CommitrevealCaller) Campaigns

func (_Commitreveal *CommitrevealCaller) Campaigns(opts *bind.CallOpts, arg0 *big.Int) (struct {
	StartBlock      *big.Int
	CommitDuration  *big.Int
	RevealDuration  *big.Int
	RevealThreshold *big.Int
	CommitNum       *big.Int
	RevealNum       *big.Int
	GeneratedRandom *big.Int
}, error)

Campaigns is a free data retrieval call binding the contract method 0x141961bc.

Solidity: function campaigns( uint256) constant returns(startBlock uint256, commitDuration uint256, revealDuration uint256, revealThreshold uint256, commitNum uint256, revealNum uint256, generatedRandom uint256)

type CommitrevealCallerRaw

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

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

func (*CommitrevealCallerRaw) Call

func (_Commitreveal *CommitrevealCallerRaw) 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 CommitrevealCallerSession

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

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

func (*CommitrevealCallerSession) AddressBridge

func (_Commitreveal *CommitrevealCallerSession) AddressBridge() (common.Address, error)

AddressBridge is a free data retrieval call binding the contract method 0x76cffa53.

Solidity: function addressBridge() constant returns(address)

func (*CommitrevealCallerSession) Campaigns

func (_Commitreveal *CommitrevealCallerSession) Campaigns(arg0 *big.Int) (struct {
	StartBlock      *big.Int
	CommitDuration  *big.Int
	RevealDuration  *big.Int
	RevealThreshold *big.Int
	CommitNum       *big.Int
	RevealNum       *big.Int
	GeneratedRandom *big.Int
}, error)

Campaigns is a free data retrieval call binding the contract method 0x141961bc.

Solidity: function campaigns( uint256) constant returns(startBlock uint256, commitDuration uint256, revealDuration uint256, revealThreshold uint256, commitNum uint256, revealNum uint256, generatedRandom uint256)

type CommitrevealFilterer

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

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

func NewCommitrevealFilterer

func NewCommitrevealFilterer(address common.Address, filterer bind.ContractFilterer) (*CommitrevealFilterer, error)

NewCommitrevealFilterer creates a new log filterer instance of Commitreveal, bound to a specific deployed contract.

func (*CommitrevealFilterer) FilterLogCommit

func (_Commitreveal *CommitrevealFilterer) FilterLogCommit(opts *bind.FilterOpts) (*CommitrevealLogCommitIterator, error)

FilterLogCommit is a free log retrieval operation binding the contract event 0x918c00c65dd2a8dee4c6985d1d67f04aa8cd2c93e8d427d398a90444c7f7c75e.

Solidity: e LogCommit(cid uint256, from address, commitment bytes32)

func (*CommitrevealFilterer) FilterLogRandom

func (_Commitreveal *CommitrevealFilterer) FilterLogRandom(opts *bind.FilterOpts) (*CommitrevealLogRandomIterator, error)

FilterLogRandom is a free log retrieval operation binding the contract event 0xa34f42a90fadfe357ee14419d618438a057569fbb63bab0c5fbcca0fc2b11e8d.

Solidity: e LogRandom(cid uint256, random uint256)

func (*CommitrevealFilterer) FilterLogRandomFailure

func (_Commitreveal *CommitrevealFilterer) FilterLogRandomFailure(opts *bind.FilterOpts) (*CommitrevealLogRandomFailureIterator, error)

FilterLogRandomFailure is a free log retrieval operation binding the contract event 0xe888e7582d0505bce81eef694dfa216179eaaa3c1bd96b7894de8b4370d8543e.

Solidity: e LogRandomFailure(cid uint256, commitNum uint256, revealNum uint256, revealThreshold uint256)

func (*CommitrevealFilterer) FilterLogReveal

func (_Commitreveal *CommitrevealFilterer) FilterLogReveal(opts *bind.FilterOpts) (*CommitrevealLogRevealIterator, error)

FilterLogReveal is a free log retrieval operation binding the contract event 0x9141bfaedbc77aa7b8d9c989cd81909d95bb1677e556e34cfd45e50e0bea2967.

Solidity: e LogReveal(cid uint256, from address, secret uint256)

func (*CommitrevealFilterer) FilterLogStartCommitReveal

func (_Commitreveal *CommitrevealFilterer) FilterLogStartCommitReveal(opts *bind.FilterOpts) (*CommitrevealLogStartCommitRevealIterator, error)

FilterLogStartCommitReveal is a free log retrieval operation binding the contract event 0xbbfccb30e8cf1b5d88802741ceb4d63cf854fa8931eeeaec6b700f31f429dc09.

Solidity: e LogStartCommitReveal(cid uint256, startBlock uint256, commitDuration uint256, revealDuration uint256, revealThreshold uint256)

func (*CommitrevealFilterer) WatchLogCommit

func (_Commitreveal *CommitrevealFilterer) WatchLogCommit(opts *bind.WatchOpts, sink chan<- *CommitrevealLogCommit) (event.Subscription, error)

WatchLogCommit is a free log subscription operation binding the contract event 0x918c00c65dd2a8dee4c6985d1d67f04aa8cd2c93e8d427d398a90444c7f7c75e.

Solidity: e LogCommit(cid uint256, from address, commitment bytes32)

func (*CommitrevealFilterer) WatchLogRandom

func (_Commitreveal *CommitrevealFilterer) WatchLogRandom(opts *bind.WatchOpts, sink chan<- *CommitrevealLogRandom) (event.Subscription, error)

WatchLogRandom is a free log subscription operation binding the contract event 0xa34f42a90fadfe357ee14419d618438a057569fbb63bab0c5fbcca0fc2b11e8d.

Solidity: e LogRandom(cid uint256, random uint256)

func (*CommitrevealFilterer) WatchLogRandomFailure

func (_Commitreveal *CommitrevealFilterer) WatchLogRandomFailure(opts *bind.WatchOpts, sink chan<- *CommitrevealLogRandomFailure) (event.Subscription, error)

WatchLogRandomFailure is a free log subscription operation binding the contract event 0xe888e7582d0505bce81eef694dfa216179eaaa3c1bd96b7894de8b4370d8543e.

Solidity: e LogRandomFailure(cid uint256, commitNum uint256, revealNum uint256, revealThreshold uint256)

func (*CommitrevealFilterer) WatchLogReveal

func (_Commitreveal *CommitrevealFilterer) WatchLogReveal(opts *bind.WatchOpts, sink chan<- *CommitrevealLogReveal) (event.Subscription, error)

WatchLogReveal is a free log subscription operation binding the contract event 0x9141bfaedbc77aa7b8d9c989cd81909d95bb1677e556e34cfd45e50e0bea2967.

Solidity: e LogReveal(cid uint256, from address, secret uint256)

func (*CommitrevealFilterer) WatchLogStartCommitReveal

func (_Commitreveal *CommitrevealFilterer) WatchLogStartCommitReveal(opts *bind.WatchOpts, sink chan<- *CommitrevealLogStartCommitReveal) (event.Subscription, error)

WatchLogStartCommitReveal is a free log subscription operation binding the contract event 0xbbfccb30e8cf1b5d88802741ceb4d63cf854fa8931eeeaec6b700f31f429dc09.

Solidity: e LogStartCommitReveal(cid uint256, startBlock uint256, commitDuration uint256, revealDuration uint256, revealThreshold uint256)

type CommitrevealLogCommit

type CommitrevealLogCommit struct {
	Cid        *big.Int
	From       common.Address
	Commitment [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

CommitrevealLogCommit represents a LogCommit event raised by the Commitreveal contract.

type CommitrevealLogCommitIterator

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

CommitrevealLogCommitIterator is returned from FilterLogCommit and is used to iterate over the raw logs and unpacked data for LogCommit events raised by the Commitreveal contract.

func (*CommitrevealLogCommitIterator) Close

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

func (*CommitrevealLogCommitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommitrevealLogCommitIterator) 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 CommitrevealLogRandom

type CommitrevealLogRandom struct {
	Cid    *big.Int
	Random *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

CommitrevealLogRandom represents a LogRandom event raised by the Commitreveal contract.

type CommitrevealLogRandomFailure

type CommitrevealLogRandomFailure struct {
	Cid             *big.Int
	CommitNum       *big.Int
	RevealNum       *big.Int
	RevealThreshold *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

CommitrevealLogRandomFailure represents a LogRandomFailure event raised by the Commitreveal contract.

type CommitrevealLogRandomFailureIterator

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

CommitrevealLogRandomFailureIterator is returned from FilterLogRandomFailure and is used to iterate over the raw logs and unpacked data for LogRandomFailure events raised by the Commitreveal contract.

func (*CommitrevealLogRandomFailureIterator) Close

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

func (*CommitrevealLogRandomFailureIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommitrevealLogRandomFailureIterator) 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 CommitrevealLogRandomIterator

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

CommitrevealLogRandomIterator is returned from FilterLogRandom and is used to iterate over the raw logs and unpacked data for LogRandom events raised by the Commitreveal contract.

func (*CommitrevealLogRandomIterator) Close

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

func (*CommitrevealLogRandomIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommitrevealLogRandomIterator) 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 CommitrevealLogReveal

type CommitrevealLogReveal struct {
	Cid    *big.Int
	From   common.Address
	Secret *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

CommitrevealLogReveal represents a LogReveal event raised by the Commitreveal contract.

type CommitrevealLogRevealIterator

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

CommitrevealLogRevealIterator is returned from FilterLogReveal and is used to iterate over the raw logs and unpacked data for LogReveal events raised by the Commitreveal contract.

func (*CommitrevealLogRevealIterator) Close

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

func (*CommitrevealLogRevealIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommitrevealLogRevealIterator) 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 CommitrevealLogStartCommitReveal

type CommitrevealLogStartCommitReveal struct {
	Cid             *big.Int
	StartBlock      *big.Int
	CommitDuration  *big.Int
	RevealDuration  *big.Int
	RevealThreshold *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

CommitrevealLogStartCommitReveal represents a LogStartCommitReveal event raised by the Commitreveal contract.

type CommitrevealLogStartCommitRevealIterator

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

CommitrevealLogStartCommitRevealIterator is returned from FilterLogStartCommitReveal and is used to iterate over the raw logs and unpacked data for LogStartCommitReveal events raised by the Commitreveal contract.

func (*CommitrevealLogStartCommitRevealIterator) Close

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

func (*CommitrevealLogStartCommitRevealIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommitrevealLogStartCommitRevealIterator) 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 CommitrevealRaw

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

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

func (*CommitrevealRaw) Call

func (_Commitreveal *CommitrevealRaw) 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 (*CommitrevealRaw) Transact

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

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

func (*CommitrevealRaw) Transfer

func (_Commitreveal *CommitrevealRaw) 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 CommitrevealSession

type CommitrevealSession struct {
	Contract     *Commitreveal     // 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
}

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

func (*CommitrevealSession) AddressBridge

func (_Commitreveal *CommitrevealSession) AddressBridge() (common.Address, error)

AddressBridge is a free data retrieval call binding the contract method 0x76cffa53.

Solidity: function addressBridge() constant returns(address)

func (*CommitrevealSession) Campaigns

func (_Commitreveal *CommitrevealSession) Campaigns(arg0 *big.Int) (struct {
	StartBlock      *big.Int
	CommitDuration  *big.Int
	RevealDuration  *big.Int
	RevealThreshold *big.Int
	CommitNum       *big.Int
	RevealNum       *big.Int
	GeneratedRandom *big.Int
}, error)

Campaigns is a free data retrieval call binding the contract method 0x141961bc.

Solidity: function campaigns( uint256) constant returns(startBlock uint256, commitDuration uint256, revealDuration uint256, revealThreshold uint256, commitNum uint256, revealNum uint256, generatedRandom uint256)

func (*CommitrevealSession) Commit

func (_Commitreveal *CommitrevealSession) Commit(_cid *big.Int, _secretHash [32]byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xf2f03877.

Solidity: function commit(_cid uint256, _secretHash bytes32) returns()

func (*CommitrevealSession) GetRandom

func (_Commitreveal *CommitrevealSession) GetRandom(_cid *big.Int) (*types.Transaction, error)

GetRandom is a paid mutator transaction binding the contract method 0xcd4b6914.

Solidity: function getRandom(_cid uint256) returns(uint256)

func (*CommitrevealSession) Reveal

func (_Commitreveal *CommitrevealSession) Reveal(_cid *big.Int, _secret *big.Int) (*types.Transaction, error)

Reveal is a paid mutator transaction binding the contract method 0x9348cef7.

Solidity: function reveal(_cid uint256, _secret uint256) returns()

func (*CommitrevealSession) StartCommitReveal

func (_Commitreveal *CommitrevealSession) StartCommitReveal(_startBlock *big.Int, _commitDuration *big.Int, _revealDuration *big.Int, _revealThreshold *big.Int) (*types.Transaction, error)

StartCommitReveal is a paid mutator transaction binding the contract method 0xb917b5a5.

Solidity: function startCommitReveal(_startBlock uint256, _commitDuration uint256, _revealDuration uint256, _revealThreshold uint256) returns(uint256)

type CommitrevealTransactor

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

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

func NewCommitrevealTransactor

func NewCommitrevealTransactor(address common.Address, transactor bind.ContractTransactor) (*CommitrevealTransactor, error)

NewCommitrevealTransactor creates a new write-only instance of Commitreveal, bound to a specific deployed contract.

func (*CommitrevealTransactor) Commit

func (_Commitreveal *CommitrevealTransactor) Commit(opts *bind.TransactOpts, _cid *big.Int, _secretHash [32]byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xf2f03877.

Solidity: function commit(_cid uint256, _secretHash bytes32) returns()

func (*CommitrevealTransactor) GetRandom

func (_Commitreveal *CommitrevealTransactor) GetRandom(opts *bind.TransactOpts, _cid *big.Int) (*types.Transaction, error)

GetRandom is a paid mutator transaction binding the contract method 0xcd4b6914.

Solidity: function getRandom(_cid uint256) returns(uint256)

func (*CommitrevealTransactor) Reveal

func (_Commitreveal *CommitrevealTransactor) Reveal(opts *bind.TransactOpts, _cid *big.Int, _secret *big.Int) (*types.Transaction, error)

Reveal is a paid mutator transaction binding the contract method 0x9348cef7.

Solidity: function reveal(_cid uint256, _secret uint256) returns()

func (*CommitrevealTransactor) StartCommitReveal

func (_Commitreveal *CommitrevealTransactor) StartCommitReveal(opts *bind.TransactOpts, _startBlock *big.Int, _commitDuration *big.Int, _revealDuration *big.Int, _revealThreshold *big.Int) (*types.Transaction, error)

StartCommitReveal is a paid mutator transaction binding the contract method 0xb917b5a5.

Solidity: function startCommitReveal(_startBlock uint256, _commitDuration uint256, _revealDuration uint256, _revealThreshold uint256) returns(uint256)

type CommitrevealTransactorRaw

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

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

func (*CommitrevealTransactorRaw) Transact

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

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

func (*CommitrevealTransactorRaw) Transfer

func (_Commitreveal *CommitrevealTransactorRaw) 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 CommitrevealTransactorSession

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

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

func (*CommitrevealTransactorSession) Commit

func (_Commitreveal *CommitrevealTransactorSession) Commit(_cid *big.Int, _secretHash [32]byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xf2f03877.

Solidity: function commit(_cid uint256, _secretHash bytes32) returns()

func (*CommitrevealTransactorSession) GetRandom

func (_Commitreveal *CommitrevealTransactorSession) GetRandom(_cid *big.Int) (*types.Transaction, error)

GetRandom is a paid mutator transaction binding the contract method 0xcd4b6914.

Solidity: function getRandom(_cid uint256) returns(uint256)

func (*CommitrevealTransactorSession) Reveal

func (_Commitreveal *CommitrevealTransactorSession) Reveal(_cid *big.Int, _secret *big.Int) (*types.Transaction, error)

Reveal is a paid mutator transaction binding the contract method 0x9348cef7.

Solidity: function reveal(_cid uint256, _secret uint256) returns()

func (*CommitrevealTransactorSession) StartCommitReveal

func (_Commitreveal *CommitrevealTransactorSession) StartCommitReveal(_startBlock *big.Int, _commitDuration *big.Int, _revealDuration *big.Int, _revealThreshold *big.Int) (*types.Transaction, error)

StartCommitReveal is a paid mutator transaction binding the contract method 0xb917b5a5.

Solidity: function startCommitReveal(_startBlock uint256, _commitDuration uint256, _revealDuration uint256, _revealThreshold uint256) returns(uint256)

Jump to

Keyboard shortcuts

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