contracts

package
v0.0.0-...-dde17ac Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Overview

Package contracts consists of generated contracts for sharding.

Index

Constants

View Source
const VRCABI = "" /* 5395-byte string literal not displayed */

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

View Source
const VRCBin = `` /* 6908-byte string literal not displayed */

VRCBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	DeregisteredPeriod *big.Int
	PoolIndex          *big.Int
	Balance            *big.Int
	Deposited          bool
}

Registry describes the Notary Registry in the VRC.

type VRC

type VRC struct {
	VRCCaller     // Read-only binding to the contract
	VRCTransactor // Write-only binding to the contract
	VRCFilterer   // Log filterer for contract events
}

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

func DeployVRC

func DeployVRC(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *VRC, error)

DeployVRC deploys a new Ethereum contract, binding an instance of VRC to it.

func NewVRC

func NewVRC(address common.Address, backend bind.ContractBackend) (*VRC, error)

NewVRC creates a new instance of VRC, bound to a specific deployed contract.

type VRCCaller

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

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

func NewVRCCaller

func NewVRCCaller(address common.Address, caller bind.ContractCaller) (*VRCCaller, error)

NewVRCCaller creates a new read-only instance of VRC, bound to a specific deployed contract.

func (*VRCCaller) CHALLENGEPERIOD

func (_VRC *VRCCaller) CHALLENGEPERIOD(opts *bind.CallOpts) (*big.Int, error)

CHALLENGEPERIOD is a free data retrieval call binding the contract method 0xc3a079ed.

Solidity: function CHALLENGE_PERIOD() constant returns(uint256)

func (*VRCCaller) CollationRecords

func (_VRC *VRCCaller) CollationRecords(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (struct {
	ChunkRoot [32]byte
	Proposer  common.Address
	IsElected bool
	Signature [32]byte
}, error)

CollationRecords is a free data retrieval call binding the contract method 0xe9e0b683.

Solidity: function collationRecords( uint256, uint256) constant returns(chunkRoot bytes32, proposer address, isElected bool, signature bytes32)

func (*VRCCaller) CurrentVote

func (_VRC *VRCCaller) CurrentVote(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

CurrentVote is a free data retrieval call binding the contract method 0x0c8da4cc.

Solidity: function currentVote( uint256) constant returns(bytes32)

func (*VRCCaller) GetNotaryInCommittee

func (_VRC *VRCCaller) GetNotaryInCommittee(opts *bind.CallOpts, _shardId *big.Int) (common.Address, error)

GetNotaryInCommittee is a free data retrieval call binding the contract method 0x673221af.

Solidity: function getNotaryInCommittee(_shardId uint256) constant returns(address)

func (*VRCCaller) GetVoteCount

func (_VRC *VRCCaller) GetVoteCount(opts *bind.CallOpts, _shardId *big.Int) (*big.Int, error)

GetVoteCount is a free data retrieval call binding the contract method 0xb2c2f2e8.

Solidity: function getVoteCount(_shardId uint256) constant returns(uint256)

func (*VRCCaller) HasVoted

func (_VRC *VRCCaller) HasVoted(opts *bind.CallOpts, _shardId *big.Int, _index *big.Int) (bool, error)

HasVoted is a free data retrieval call binding the contract method 0x64390ff1.

Solidity: function hasVoted(_shardId uint256, _index uint256) constant returns(bool)

func (*VRCCaller) LastApprovedCollation

func (_VRC *VRCCaller) LastApprovedCollation(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

LastApprovedCollation is a free data retrieval call binding the contract method 0x97d369a2.

Solidity: function lastApprovedCollation( uint256) constant returns(uint256)

func (*VRCCaller) LastSubmittedCollation

func (_VRC *VRCCaller) LastSubmittedCollation(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

LastSubmittedCollation is a free data retrieval call binding the contract method 0x83ceeabe.

Solidity: function lastSubmittedCollation( uint256) constant returns(uint256)

func (*VRCCaller) NotaryPool

func (_VRC *VRCCaller) NotaryPool(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

NotaryPool is a free data retrieval call binding the contract method 0xa81f4510.

Solidity: function voterPool( uint256) constant returns(address)

func (*VRCCaller) NotaryPoolLength

func (_VRC *VRCCaller) NotaryPoolLength(opts *bind.CallOpts) (*big.Int, error)

NotaryPoolLength is a free data retrieval call binding the contract method 0xf6f67d36.

Solidity: function voterPoolLength() constant returns(uint256)

func (*VRCCaller) NotaryRegistry

func (_VRC *VRCCaller) NotaryRegistry(opts *bind.CallOpts, arg0 common.Address) (struct {
	DeregisteredPeriod *big.Int
	PoolIndex          *big.Int
	Balance            *big.Int
	Deposited          bool
}, error)

NotaryRegistry is a free data retrieval call binding the contract method 0x6bdd3271.

Solidity: function voterRegistry( address) constant returns(deregisteredPeriod uint256, poolIndex uint256, balance uint256, deposited bool)

func (*VRCCaller) ShardCount

func (_VRC *VRCCaller) ShardCount(opts *bind.CallOpts) (*big.Int, error)

ShardCount is a free data retrieval call binding the contract method 0x04e9c77a.

Solidity: function shardCount() constant returns(uint256)

type VRCCallerRaw

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

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

func (*VRCCallerRaw) Call

func (_VRC *VRCCallerRaw) 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 VRCCallerSession

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

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

func (*VRCCallerSession) CHALLENGEPERIOD

func (_VRC *VRCCallerSession) CHALLENGEPERIOD() (*big.Int, error)

CHALLENGEPERIOD is a free data retrieval call binding the contract method 0xc3a079ed.

Solidity: function CHALLENGE_PERIOD() constant returns(uint256)

func (*VRCCallerSession) CollationRecords

func (_VRC *VRCCallerSession) CollationRecords(arg0 *big.Int, arg1 *big.Int) (struct {
	ChunkRoot [32]byte
	Proposer  common.Address
	IsElected bool
	Signature [32]byte
}, error)

CollationRecords is a free data retrieval call binding the contract method 0xe9e0b683.

Solidity: function collationRecords( uint256, uint256) constant returns(chunkRoot bytes32, proposer address, isElected bool, signature bytes32)

func (*VRCCallerSession) CurrentVote

func (_VRC *VRCCallerSession) CurrentVote(arg0 *big.Int) ([32]byte, error)

CurrentVote is a free data retrieval call binding the contract method 0x0c8da4cc.

Solidity: function currentVote( uint256) constant returns(bytes32)

func (*VRCCallerSession) GetNotaryInCommittee

func (_VRC *VRCCallerSession) GetNotaryInCommittee(_shardId *big.Int) (common.Address, error)

GetNotaryInCommittee is a free data retrieval call binding the contract method 0x673221af.

Solidity: function getNotaryInCommittee(_shardId uint256) constant returns(address)

func (*VRCCallerSession) GetVoteCount

func (_VRC *VRCCallerSession) GetVoteCount(_shardId *big.Int) (*big.Int, error)

GetVoteCount is a free data retrieval call binding the contract method 0xb2c2f2e8.

Solidity: function getVoteCount(_shardId uint256) constant returns(uint256)

func (*VRCCallerSession) HasVoted

func (_VRC *VRCCallerSession) HasVoted(_shardId *big.Int, _index *big.Int) (bool, error)

HasVoted is a free data retrieval call binding the contract method 0x64390ff1.

Solidity: function hasVoted(_shardId uint256, _index uint256) constant returns(bool)

func (*VRCCallerSession) LastApprovedCollation

func (_VRC *VRCCallerSession) LastApprovedCollation(arg0 *big.Int) (*big.Int, error)

LastApprovedCollation is a free data retrieval call binding the contract method 0x97d369a2.

Solidity: function lastApprovedCollation( uint256) constant returns(uint256)

func (*VRCCallerSession) LastSubmittedCollation

func (_VRC *VRCCallerSession) LastSubmittedCollation(arg0 *big.Int) (*big.Int, error)

LastSubmittedCollation is a free data retrieval call binding the contract method 0x83ceeabe.

Solidity: function lastSubmittedCollation( uint256) constant returns(uint256)

func (*VRCCallerSession) NotaryPool

func (_VRC *VRCCallerSession) NotaryPool(arg0 *big.Int) (common.Address, error)

NotaryPool is a free data retrieval call binding the contract method 0xa81f4510.

Solidity: function voterPool( uint256) constant returns(address)

func (*VRCCallerSession) NotaryPoolLength

func (_VRC *VRCCallerSession) NotaryPoolLength() (*big.Int, error)

NotaryPoolLength is a free data retrieval call binding the contract method 0xf6f67d36.

Solidity: function voterPoolLength() constant returns(uint256)

func (*VRCCallerSession) NotaryRegistry

func (_VRC *VRCCallerSession) NotaryRegistry(arg0 common.Address) (struct {
	DeregisteredPeriod *big.Int
	PoolIndex          *big.Int
	Balance            *big.Int
	Deposited          bool
}, error)

NotaryRegistry is a free data retrieval call binding the contract method 0x6bdd3271.

Solidity: function voterRegistry( address) constant returns(deregisteredPeriod uint256, poolIndex uint256, balance uint256, deposited bool)

func (*VRCCallerSession) ShardCount

func (_VRC *VRCCallerSession) ShardCount() (*big.Int, error)

ShardCount is a free data retrieval call binding the contract method 0x04e9c77a.

Solidity: function shardCount() constant returns(uint256)

type VRCFilterer

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

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

func NewVRCFilterer

func NewVRCFilterer(address common.Address, filterer bind.ContractFilterer) (*VRCFilterer, error)

NewVRCFilterer creates a new log filterer instance of VRC, bound to a specific deployed contract.

func (*VRCFilterer) FilterHeaderAdded

func (_VRC *VRCFilterer) FilterHeaderAdded(opts *bind.FilterOpts, shardId []*big.Int) (*VRCHeaderAddedIterator, error)

FilterHeaderAdded is a free log retrieval operation binding the contract event 0x2d0a86178d2fd307b47be157a766e6bee19bc26161c32f9781ee0e818636f09c.

Solidity: event HeaderAdded(shardId indexed uint256, chunkRoot bytes32, period uint256, proposerAddress address)

func (*VRCFilterer) FilterNotaryDeregistered

func (_VRC *VRCFilterer) FilterNotaryDeregistered(opts *bind.FilterOpts) (*VRCNotaryDeregisteredIterator, error)

FilterNotaryDeregistered is a free log retrieval operation binding the contract event 0x90e5afdc8fd31453dcf6e37154fa117ddf3b0324c96c65015563df9d5e4b5a75.

Solidity: event NotaryDeregistered(voter address, poolIndex uint256, deregisteredPeriod uint256)

func (*VRCFilterer) FilterNotaryRegistered

func (_VRC *VRCFilterer) FilterNotaryRegistered(opts *bind.FilterOpts) (*VRCNotaryRegisteredIterator, error)

FilterNotaryRegistered is a free log retrieval operation binding the contract event 0xa4fe15c53db34d35a5117acc26c27a2653dc68e2dadfc21ed211e38b7864d7a7.

Solidity: event NotaryRegistered(voter address, poolIndex uint256)

func (*VRCFilterer) FilterNotaryReleased

func (_VRC *VRCFilterer) FilterNotaryReleased(opts *bind.FilterOpts) (*VRCNotaryReleasedIterator, error)

FilterNotaryReleased is a free log retrieval operation binding the contract event 0xaee20171b64b7f3360a142659094ce929970d6963dcea8c34a9bf1ece8033680.

Solidity: event NotaryReleased(voter address, poolIndex uint256)

func (*VRCFilterer) FilterVoteSubmitted

func (_VRC *VRCFilterer) FilterVoteSubmitted(opts *bind.FilterOpts, shardId []*big.Int) (*VRCVoteSubmittedIterator, error)

FilterVoteSubmitted is a free log retrieval operation binding the contract event 0xc99370212b708f699fb6945a17eb34d0fc1ccd5b45d88f4d9682593a45d6e833.

Solidity: event VoteSubmitted(shardId indexed uint256, chunkRoot bytes32, period uint256, voterAddress address)

func (*VRCFilterer) WatchHeaderAdded

func (_VRC *VRCFilterer) WatchHeaderAdded(opts *bind.WatchOpts, sink chan<- *VRCHeaderAdded, shardId []*big.Int) (event.Subscription, error)

WatchHeaderAdded is a free log subscription operation binding the contract event 0x2d0a86178d2fd307b47be157a766e6bee19bc26161c32f9781ee0e818636f09c.

Solidity: event HeaderAdded(shardId indexed uint256, chunkRoot bytes32, period uint256, proposerAddress address)

func (*VRCFilterer) WatchNotaryDeregistered

func (_VRC *VRCFilterer) WatchNotaryDeregistered(opts *bind.WatchOpts, sink chan<- *VRCNotaryDeregistered) (event.Subscription, error)

WatchNotaryDeregistered is a free log subscription operation binding the contract event 0x90e5afdc8fd31453dcf6e37154fa117ddf3b0324c96c65015563df9d5e4b5a75.

Solidity: event NotaryDeregistered(voter address, poolIndex uint256, deregisteredPeriod uint256)

func (*VRCFilterer) WatchNotaryRegistered

func (_VRC *VRCFilterer) WatchNotaryRegistered(opts *bind.WatchOpts, sink chan<- *VRCNotaryRegistered) (event.Subscription, error)

WatchNotaryRegistered is a free log subscription operation binding the contract event 0xa4fe15c53db34d35a5117acc26c27a2653dc68e2dadfc21ed211e38b7864d7a7.

Solidity: event NotaryRegistered(voter address, poolIndex uint256)

func (*VRCFilterer) WatchNotaryReleased

func (_VRC *VRCFilterer) WatchNotaryReleased(opts *bind.WatchOpts, sink chan<- *VRCNotaryReleased) (event.Subscription, error)

WatchNotaryReleased is a free log subscription operation binding the contract event 0xaee20171b64b7f3360a142659094ce929970d6963dcea8c34a9bf1ece8033680.

Solidity: event NotaryReleased(voter address, poolIndex uint256)

func (*VRCFilterer) WatchVoteSubmitted

func (_VRC *VRCFilterer) WatchVoteSubmitted(opts *bind.WatchOpts, sink chan<- *VRCVoteSubmitted, shardId []*big.Int) (event.Subscription, error)

WatchVoteSubmitted is a free log subscription operation binding the contract event 0xc99370212b708f699fb6945a17eb34d0fc1ccd5b45d88f4d9682593a45d6e833.

Solidity: event VoteSubmitted(shardId indexed uint256, chunkRoot bytes32, period uint256, voterAddress address)

type VRCHeaderAdded

type VRCHeaderAdded struct {
	ShardId         *big.Int
	ChunkRoot       [32]byte
	Period          *big.Int
	ProposerAddress common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

VRCHeaderAdded represents a HeaderAdded event raised by the VRC contract.

type VRCHeaderAddedIterator

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

VRCHeaderAddedIterator is returned from FilterHeaderAdded and is used to iterate over the raw logs and unpacked data for HeaderAdded events raised by the VRC contract.

func (*VRCHeaderAddedIterator) Close

func (it *VRCHeaderAddedIterator) Close() error

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

func (*VRCHeaderAddedIterator) Error

func (it *VRCHeaderAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VRCHeaderAddedIterator) Next

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

type VRCNotaryDeregistered struct {
	Notary             common.Address
	PoolIndex          *big.Int
	DeregisteredPeriod *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

VRCNotaryDeregistered represents a NotaryDeregistered event raised by the VRC contract.

type VRCNotaryDeregisteredIterator

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

VRCNotaryDeregisteredIterator is returned from FilterNotaryDeregistered and is used to iterate over the raw logs and unpacked data for NotaryDeregistered events raised by the VRC contract.

func (*VRCNotaryDeregisteredIterator) Close

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

func (*VRCNotaryDeregisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VRCNotaryDeregisteredIterator) 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 VRCNotaryRegistered

type VRCNotaryRegistered struct {
	Notary    common.Address
	PoolIndex *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

VRCNotaryRegistered represents a NotaryRegistered event raised by the VRC contract.

type VRCNotaryRegisteredIterator

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

VRCNotaryRegisteredIterator is returned from FilterNotaryRegistered and is used to iterate over the raw logs and unpacked data for NotaryRegistered events raised by the VRC contract.

func (*VRCNotaryRegisteredIterator) Close

func (it *VRCNotaryRegisteredIterator) Close() error

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

func (*VRCNotaryRegisteredIterator) Error

func (it *VRCNotaryRegisteredIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VRCNotaryRegisteredIterator) Next

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

type VRCNotaryReleased struct {
	Notary    common.Address
	PoolIndex *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

VRCNotaryReleased represents a NotaryReleased event raised by the VRC contract.

type VRCNotaryReleasedIterator

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

VRCNotaryReleasedIterator is returned from FilterNotaryReleased and is used to iterate over the raw logs and unpacked data for NotaryReleased events raised by the VRC contract.

func (*VRCNotaryReleasedIterator) Close

func (it *VRCNotaryReleasedIterator) Close() error

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

func (*VRCNotaryReleasedIterator) Error

func (it *VRCNotaryReleasedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VRCNotaryReleasedIterator) Next

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

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

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

func (*VRCRaw) Call

func (_VRC *VRCRaw) 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 (*VRCRaw) Transact

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

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

func (*VRCRaw) Transfer

func (_VRC *VRCRaw) 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 VRCSession

type VRCSession struct {
	Contract     *VRC              // 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
}

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

func (*VRCSession) AddHeader

func (_VRC *VRCSession) AddHeader(_shardId *big.Int, _period *big.Int, _chunkRoot [32]byte, _signature [32]byte) (*types.Transaction, error)

AddHeader is a paid mutator transaction binding the contract method 0xc4d5f198.

Solidity: function addHeader(_shardId uint256, _period uint256, _chunkRoot bytes32, _signature bytes32) returns()

func (*VRCSession) CHALLENGEPERIOD

func (_VRC *VRCSession) CHALLENGEPERIOD() (*big.Int, error)

CHALLENGEPERIOD is a free data retrieval call binding the contract method 0xc3a079ed.

Solidity: function CHALLENGE_PERIOD() constant returns(uint256)

func (*VRCSession) CollationRecords

func (_VRC *VRCSession) CollationRecords(arg0 *big.Int, arg1 *big.Int) (struct {
	ChunkRoot [32]byte
	Proposer  common.Address
	IsElected bool
	Signature [32]byte
}, error)

CollationRecords is a free data retrieval call binding the contract method 0xe9e0b683.

Solidity: function collationRecords( uint256, uint256) constant returns(chunkRoot bytes32, proposer address, isElected bool, signature bytes32)

func (*VRCSession) CurrentVote

func (_VRC *VRCSession) CurrentVote(arg0 *big.Int) ([32]byte, error)

CurrentVote is a free data retrieval call binding the contract method 0x0c8da4cc.

Solidity: function currentVote( uint256) constant returns(bytes32)

func (*VRCSession) DeregisterNotary

func (_VRC *VRCSession) DeregisterNotary() (*types.Transaction, error)

DeregisterNotary is a paid mutator transaction binding the contract method 0x58377bd1.

Solidity: function deregisterNotary() returns()

func (*VRCSession) GetNotaryInCommittee

func (_VRC *VRCSession) GetNotaryInCommittee(_shardId *big.Int) (common.Address, error)

GetNotaryInCommittee is a free data retrieval call binding the contract method 0x673221af.

Solidity: function getNotaryInCommittee(_shardId uint256) constant returns(address)

func (*VRCSession) GetVoteCount

func (_VRC *VRCSession) GetVoteCount(_shardId *big.Int) (*big.Int, error)

GetVoteCount is a free data retrieval call binding the contract method 0xb2c2f2e8.

Solidity: function getVoteCount(_shardId uint256) constant returns(uint256)

func (*VRCSession) HasVoted

func (_VRC *VRCSession) HasVoted(_shardId *big.Int, _index *big.Int) (bool, error)

HasVoted is a free data retrieval call binding the contract method 0x64390ff1.

Solidity: function hasVoted(_shardId uint256, _index uint256) constant returns(bool)

func (*VRCSession) LastApprovedCollation

func (_VRC *VRCSession) LastApprovedCollation(arg0 *big.Int) (*big.Int, error)

LastApprovedCollation is a free data retrieval call binding the contract method 0x97d369a2.

Solidity: function lastApprovedCollation( uint256) constant returns(uint256)

func (*VRCSession) LastSubmittedCollation

func (_VRC *VRCSession) LastSubmittedCollation(arg0 *big.Int) (*big.Int, error)

LastSubmittedCollation is a free data retrieval call binding the contract method 0x83ceeabe.

Solidity: function lastSubmittedCollation( uint256) constant returns(uint256)

func (*VRCSession) NotaryPool

func (_VRC *VRCSession) NotaryPool(arg0 *big.Int) (common.Address, error)

NotaryPool is a free data retrieval call binding the contract method 0xa81f4510.

Solidity: function voterPool( uint256) constant returns(address)

func (*VRCSession) NotaryPoolLength

func (_VRC *VRCSession) NotaryPoolLength() (*big.Int, error)

NotaryPoolLength is a free data retrieval call binding the contract method 0xf6f67d36.

Solidity: function voterPoolLength() constant returns(uint256)

func (*VRCSession) NotaryRegistry

func (_VRC *VRCSession) NotaryRegistry(arg0 common.Address) (struct {
	DeregisteredPeriod *big.Int
	PoolIndex          *big.Int
	Balance            *big.Int
	Deposited          bool
}, error)

NotaryRegistry is a free data retrieval call binding the contract method 0x6bdd3271.

Solidity: function voterRegistry( address) constant returns(deregisteredPeriod uint256, poolIndex uint256, balance uint256, deposited bool)

func (*VRCSession) RegisterNotary

func (_VRC *VRCSession) RegisterNotary() (*types.Transaction, error)

RegisterNotary is a paid mutator transaction binding the contract method 0x68e9513e.

Solidity: function registerNotary() returns()

func (*VRCSession) ReleaseNotary

func (_VRC *VRCSession) ReleaseNotary() (*types.Transaction, error)

ReleaseNotary is a paid mutator transaction binding the contract method 0x9910851d.

Solidity: function releaseNotary() returns()

func (*VRCSession) ShardCount

func (_VRC *VRCSession) ShardCount() (*big.Int, error)

ShardCount is a free data retrieval call binding the contract method 0x04e9c77a.

Solidity: function shardCount() constant returns(uint256)

func (*VRCSession) SubmitVote

func (_VRC *VRCSession) SubmitVote(_shardId *big.Int, _period *big.Int, _index *big.Int, _chunkRoot [32]byte) (*types.Transaction, error)

SubmitVote is a paid mutator transaction binding the contract method 0x4f33ffa0.

Solidity: function submitVote(_shardId uint256, _period uint256, _index uint256, _chunkRoot bytes32) returns()

type VRCTransactor

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

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

func NewVRCTransactor

func NewVRCTransactor(address common.Address, transactor bind.ContractTransactor) (*VRCTransactor, error)

NewVRCTransactor creates a new write-only instance of VRC, bound to a specific deployed contract.

func (*VRCTransactor) AddHeader

func (_VRC *VRCTransactor) AddHeader(opts *bind.TransactOpts, _shardId *big.Int, _period *big.Int, _chunkRoot [32]byte, _signature [32]byte) (*types.Transaction, error)

AddHeader is a paid mutator transaction binding the contract method 0xc4d5f198.

Solidity: function addHeader(_shardId uint256, _period uint256, _chunkRoot bytes32, _signature bytes32) returns()

func (*VRCTransactor) DeregisterNotary

func (_VRC *VRCTransactor) DeregisterNotary(opts *bind.TransactOpts) (*types.Transaction, error)

DeregisterNotary is a paid mutator transaction binding the contract method 0x58377bd1.

Solidity: function deregisterNotary() returns()

func (*VRCTransactor) RegisterNotary

func (_VRC *VRCTransactor) RegisterNotary(opts *bind.TransactOpts) (*types.Transaction, error)

RegisterNotary is a paid mutator transaction binding the contract method 0x68e9513e.

Solidity: function registerNotary() returns()

func (*VRCTransactor) ReleaseNotary

func (_VRC *VRCTransactor) ReleaseNotary(opts *bind.TransactOpts) (*types.Transaction, error)

ReleaseNotary is a paid mutator transaction binding the contract method 0x9910851d.

Solidity: function releaseNotary() returns()

func (*VRCTransactor) SubmitVote

func (_VRC *VRCTransactor) SubmitVote(opts *bind.TransactOpts, _shardId *big.Int, _period *big.Int, _index *big.Int, _chunkRoot [32]byte) (*types.Transaction, error)

SubmitVote is a paid mutator transaction binding the contract method 0x4f33ffa0.

Solidity: function submitVote(_shardId uint256, _period uint256, _index uint256, _chunkRoot bytes32) returns()

type VRCTransactorRaw

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

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

func (*VRCTransactorRaw) Transact

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

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

func (*VRCTransactorRaw) Transfer

func (_VRC *VRCTransactorRaw) 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 VRCTransactorSession

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

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

func (*VRCTransactorSession) AddHeader

func (_VRC *VRCTransactorSession) AddHeader(_shardId *big.Int, _period *big.Int, _chunkRoot [32]byte, _signature [32]byte) (*types.Transaction, error)

AddHeader is a paid mutator transaction binding the contract method 0xc4d5f198.

Solidity: function addHeader(_shardId uint256, _period uint256, _chunkRoot bytes32, _signature bytes32) returns()

func (*VRCTransactorSession) DeregisterNotary

func (_VRC *VRCTransactorSession) DeregisterNotary() (*types.Transaction, error)

DeregisterNotary is a paid mutator transaction binding the contract method 0x58377bd1.

Solidity: function deregisterNotary() returns()

func (*VRCTransactorSession) RegisterNotary

func (_VRC *VRCTransactorSession) RegisterNotary() (*types.Transaction, error)

RegisterNotary is a paid mutator transaction binding the contract method 0x68e9513e.

Solidity: function registerNotary() returns()

func (*VRCTransactorSession) ReleaseNotary

func (_VRC *VRCTransactorSession) ReleaseNotary() (*types.Transaction, error)

ReleaseNotary is a paid mutator transaction binding the contract method 0x9910851d.

Solidity: function releaseNotary() returns()

func (*VRCTransactorSession) SubmitVote

func (_VRC *VRCTransactorSession) SubmitVote(_shardId *big.Int, _period *big.Int, _index *big.Int, _chunkRoot [32]byte) (*types.Transaction, error)

SubmitVote is a paid mutator transaction binding the contract method 0x4f33ffa0.

Solidity: function submitVote(_shardId uint256, _period uint256, _index uint256, _chunkRoot bytes32) returns()

type VRCVoteSubmitted

type VRCVoteSubmitted struct {
	ShardId       *big.Int
	ChunkRoot     [32]byte
	Period        *big.Int
	NotaryAddress common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

VRCVoteSubmitted represents a VoteSubmitted event raised by the VRC contract.

type VRCVoteSubmittedIterator

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

VRCVoteSubmittedIterator is returned from FilterVoteSubmitted and is used to iterate over the raw logs and unpacked data for VoteSubmitted events raised by the VRC contract.

func (*VRCVoteSubmittedIterator) Close

func (it *VRCVoteSubmittedIterator) Close() error

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

func (*VRCVoteSubmittedIterator) Error

func (it *VRCVoteSubmittedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VRCVoteSubmittedIterator) Next

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