contract

package
v0.0.0-...-53fd720 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CheckpointOracleABI = "" /* 1602-byte string literal not displayed */

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

View Source
const CheckpointOracleBin = `` /* 4140-byte string literal not displayed */

CheckpointOracleBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointOracle

type CheckpointOracle struct {
	CheckpointOracleCaller     // Read-only binding to the contract
	CheckpointOracleTransactor // Write-only binding to the contract
	CheckpointOracleFilterer   // Log filterer for contract events
}

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

func DeployCheckpointOracle

func DeployCheckpointOracle(auth *bind.TransactOpts, backend bind.ContractBackend, _adminlist []common.Address, _sectionSize *big.Int, _processConfirms *big.Int, _threshold *big.Int) (common.Address, *types.Transaction, *CheckpointOracle, error)

DeployCheckpointOracle deploys a new Ethereum contract, binding an instance of CheckpointOracle to it.

func NewCheckpointOracle

func NewCheckpointOracle(address common.Address, backend bind.ContractBackend) (*CheckpointOracle, error)

NewCheckpointOracle creates a new instance of CheckpointOracle, bound to a specific deployed contract.

type CheckpointOracleCaller

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

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

func NewCheckpointOracleCaller

func NewCheckpointOracleCaller(address common.Address, caller bind.ContractCaller) (*CheckpointOracleCaller, error)

NewCheckpointOracleCaller creates a new read-only instance of CheckpointOracle, bound to a specific deployed contract.

func (*CheckpointOracleCaller) GetAllAdmin

func (_CheckpointOracle *CheckpointOracleCaller) GetAllAdmin(opts *bind.CallOpts) ([]common.Address, error)

GetAllAdmin is a free data retrieval call binding the contract method 0x45848dfc.

Solidity: function GetAllAdmin() constant returns(address[])

func (*CheckpointOracleCaller) GetLatestCheckpoint

func (_CheckpointOracle *CheckpointOracleCaller) GetLatestCheckpoint(opts *bind.CallOpts) (uint64, [32]byte, *big.Int, error)

GetLatestCheckpoint is a free data retrieval call binding the contract method 0x4d6a304c.

Solidity: function GetLatestCheckpoint() constant returns(uint64, bytes32, uint256)

type CheckpointOracleCallerRaw

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

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

func (*CheckpointOracleCallerRaw) Call

func (_CheckpointOracle *CheckpointOracleCallerRaw) 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 CheckpointOracleCallerSession

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

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

func (*CheckpointOracleCallerSession) GetAllAdmin

func (_CheckpointOracle *CheckpointOracleCallerSession) GetAllAdmin() ([]common.Address, error)

GetAllAdmin is a free data retrieval call binding the contract method 0x45848dfc.

Solidity: function GetAllAdmin() constant returns(address[])

func (*CheckpointOracleCallerSession) GetLatestCheckpoint

func (_CheckpointOracle *CheckpointOracleCallerSession) GetLatestCheckpoint() (uint64, [32]byte, *big.Int, error)

GetLatestCheckpoint is a free data retrieval call binding the contract method 0x4d6a304c.

Solidity: function GetLatestCheckpoint() constant returns(uint64, bytes32, uint256)

type CheckpointOracleFilterer

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

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

func NewCheckpointOracleFilterer

func NewCheckpointOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*CheckpointOracleFilterer, error)

NewCheckpointOracleFilterer creates a new log filterer instance of CheckpointOracle, bound to a specific deployed contract.

func (*CheckpointOracleFilterer) FilterNewCheckpointVote

func (_CheckpointOracle *CheckpointOracleFilterer) FilterNewCheckpointVote(opts *bind.FilterOpts, index []uint64) (*CheckpointOracleNewCheckpointVoteIterator, error)

FilterNewCheckpointVote is a free log retrieval operation binding the contract event 0xce51ffa16246bcaf0899f6504f473cd0114f430f566cef71ab7e03d3dde42a41.

Solidity: event NewCheckpointVote(uint64 indexed index, bytes32 checkpointHash, uint8 v, bytes32 r, bytes32 s)

func (*CheckpointOracleFilterer) ParseNewCheckpointVote

func (_CheckpointOracle *CheckpointOracleFilterer) ParseNewCheckpointVote(log types.Log) (*CheckpointOracleNewCheckpointVote, error)

ParseNewCheckpointVote is a log parse operation binding the contract event 0xce51ffa16246bcaf0899f6504f473cd0114f430f566cef71ab7e03d3dde42a41.

Solidity: event NewCheckpointVote(uint64 indexed index, bytes32 checkpointHash, uint8 v, bytes32 r, bytes32 s)

func (*CheckpointOracleFilterer) WatchNewCheckpointVote

func (_CheckpointOracle *CheckpointOracleFilterer) WatchNewCheckpointVote(opts *bind.WatchOpts, sink chan<- *CheckpointOracleNewCheckpointVote, index []uint64) (event.Subscription, error)

WatchNewCheckpointVote is a free log subscription operation binding the contract event 0xce51ffa16246bcaf0899f6504f473cd0114f430f566cef71ab7e03d3dde42a41.

Solidity: event NewCheckpointVote(uint64 indexed index, bytes32 checkpointHash, uint8 v, bytes32 r, bytes32 s)

type CheckpointOracleNewCheckpointVote

type CheckpointOracleNewCheckpointVote struct {
	Index          uint64
	CheckpointHash [32]byte
	V              uint8
	R              [32]byte
	S              [32]byte
	Raw            types.Log // Blockchain specific contextual infos
}

CheckpointOracleNewCheckpointVote represents a NewCheckpointVote event raised by the CheckpointOracle contract.

type CheckpointOracleNewCheckpointVoteIterator

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

CheckpointOracleNewCheckpointVoteIterator is returned from FilterNewCheckpointVote and is used to iterate over the raw logs and unpacked data for NewCheckpointVote events raised by the CheckpointOracle contract.

func (*CheckpointOracleNewCheckpointVoteIterator) Close

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

func (*CheckpointOracleNewCheckpointVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CheckpointOracleNewCheckpointVoteIterator) 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 CheckpointOracleRaw

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

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

func (*CheckpointOracleRaw) Call

func (_CheckpointOracle *CheckpointOracleRaw) 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 (*CheckpointOracleRaw) Transact

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

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

func (*CheckpointOracleRaw) Transfer

func (_CheckpointOracle *CheckpointOracleRaw) 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 CheckpointOracleSession

type CheckpointOracleSession struct {
	Contract     *CheckpointOracle // 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
}

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

func (*CheckpointOracleSession) GetAllAdmin

func (_CheckpointOracle *CheckpointOracleSession) GetAllAdmin() ([]common.Address, error)

GetAllAdmin is a free data retrieval call binding the contract method 0x45848dfc.

Solidity: function GetAllAdmin() constant returns(address[])

func (*CheckpointOracleSession) GetLatestCheckpoint

func (_CheckpointOracle *CheckpointOracleSession) GetLatestCheckpoint() (uint64, [32]byte, *big.Int, error)

GetLatestCheckpoint is a free data retrieval call binding the contract method 0x4d6a304c.

Solidity: function GetLatestCheckpoint() constant returns(uint64, bytes32, uint256)

func (*CheckpointOracleSession) SetCheckpoint

func (_CheckpointOracle *CheckpointOracleSession) SetCheckpoint(_recentNumber *big.Int, _recentHash [32]byte, _hash [32]byte, _sectionIndex uint64, v []uint8, r [][32]byte, s [][32]byte) (*types.Transaction, error)

SetCheckpoint is a paid mutator transaction binding the contract method 0xd459fc46.

Solidity: function SetCheckpoint(uint256 _recentNumber, bytes32 _recentHash, bytes32 _hash, uint64 _sectionIndex, uint8[] v, bytes32[] r, bytes32[] s) returns(bool)

type CheckpointOracleTransactor

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

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

func NewCheckpointOracleTransactor

func NewCheckpointOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*CheckpointOracleTransactor, error)

NewCheckpointOracleTransactor creates a new write-only instance of CheckpointOracle, bound to a specific deployed contract.

func (*CheckpointOracleTransactor) SetCheckpoint

func (_CheckpointOracle *CheckpointOracleTransactor) SetCheckpoint(opts *bind.TransactOpts, _recentNumber *big.Int, _recentHash [32]byte, _hash [32]byte, _sectionIndex uint64, v []uint8, r [][32]byte, s [][32]byte) (*types.Transaction, error)

SetCheckpoint is a paid mutator transaction binding the contract method 0xd459fc46.

Solidity: function SetCheckpoint(uint256 _recentNumber, bytes32 _recentHash, bytes32 _hash, uint64 _sectionIndex, uint8[] v, bytes32[] r, bytes32[] s) returns(bool)

type CheckpointOracleTransactorRaw

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

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

func (*CheckpointOracleTransactorRaw) Transact

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

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

func (*CheckpointOracleTransactorRaw) Transfer

func (_CheckpointOracle *CheckpointOracleTransactorRaw) 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 CheckpointOracleTransactorSession

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

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

func (*CheckpointOracleTransactorSession) SetCheckpoint

func (_CheckpointOracle *CheckpointOracleTransactorSession) SetCheckpoint(_recentNumber *big.Int, _recentHash [32]byte, _hash [32]byte, _sectionIndex uint64, v []uint8, r [][32]byte, s [][32]byte) (*types.Transaction, error)

SetCheckpoint is a paid mutator transaction binding the contract method 0xd459fc46.

Solidity: function SetCheckpoint(uint256 _recentNumber, bytes32 _recentHash, bytes32 _hash, uint64 _sectionIndex, uint8[] v, bytes32[] r, bytes32[] s) returns(bool)

Jump to

Keyboard shortcuts

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