contract

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSignerABI = "" /* 1052-byte string literal not displayed */

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

View Source
const BlockSignerBin = `` /* 1806-byte string literal not displayed */

BlockSignerBin is the compiled bytecode used for deploying new contracts.

View Source
const SafeMathABI = "[]"

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

View Source
const SafeMathBin = `` /* 242-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockSigner

type BlockSigner struct {
	BlockSignerCaller     // Read-only binding to the contract
	BlockSignerTransactor // Write-only binding to the contract
	BlockSignerFilterer   // Log filterer for contract events
}

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

func DeployBlockSigner

func DeployBlockSigner(auth *bind.TransactOpts, backend bind.ContractBackend, _epochNumber *big.Int) (common.Address, *types.Transaction, *BlockSigner, error)

DeployBlockSigner deploys a new Ethereum contract, binding an instance of BlockSigner to it.

func NewBlockSigner

func NewBlockSigner(address common.Address, backend bind.ContractBackend) (*BlockSigner, error)

NewBlockSigner creates a new instance of BlockSigner, bound to a specific deployed contract.

type BlockSignerCaller

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

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

func NewBlockSignerCaller

func NewBlockSignerCaller(address common.Address, caller bind.ContractCaller) (*BlockSignerCaller, error)

NewBlockSignerCaller creates a new read-only instance of BlockSigner, bound to a specific deployed contract.

func (*BlockSignerCaller) EpochNumber

func (_BlockSigner *BlockSignerCaller) EpochNumber(opts *bind.CallOpts) (*big.Int, error)

EpochNumber is a free data retrieval call binding the contract method 0xf4145a83.

Solidity: function epochNumber() constant returns(uint256)

func (*BlockSignerCaller) GetSigners

func (_BlockSigner *BlockSignerCaller) GetSigners(opts *bind.CallOpts, _blockHash [32]byte) ([]common.Address, error)

GetSigners is a free data retrieval call binding the contract method 0xe7ec6aef.

Solidity: function getSigners(_blockHash bytes32) constant returns(address[])

type BlockSignerCallerRaw

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

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

func (*BlockSignerCallerRaw) Call

func (_BlockSigner *BlockSignerCallerRaw) 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 BlockSignerCallerSession

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

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

func (*BlockSignerCallerSession) EpochNumber

func (_BlockSigner *BlockSignerCallerSession) EpochNumber() (*big.Int, error)

EpochNumber is a free data retrieval call binding the contract method 0xf4145a83.

Solidity: function epochNumber() constant returns(uint256)

func (*BlockSignerCallerSession) GetSigners

func (_BlockSigner *BlockSignerCallerSession) GetSigners(_blockHash [32]byte) ([]common.Address, error)

GetSigners is a free data retrieval call binding the contract method 0xe7ec6aef.

Solidity: function getSigners(_blockHash bytes32) constant returns(address[])

type BlockSignerFilterer

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

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

func NewBlockSignerFilterer

func NewBlockSignerFilterer(address common.Address, filterer bind.ContractFilterer) (*BlockSignerFilterer, error)

NewBlockSignerFilterer creates a new log filterer instance of BlockSigner, bound to a specific deployed contract.

func (*BlockSignerFilterer) FilterSign

func (_BlockSigner *BlockSignerFilterer) FilterSign(opts *bind.FilterOpts) (*BlockSignerSignIterator, error)

FilterSign is a free log retrieval operation binding the contract event 0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54.

Solidity: event Sign(_signer address, _blockNumber uint256, _blockHash bytes32)

func (*BlockSignerFilterer) WatchSign

func (_BlockSigner *BlockSignerFilterer) WatchSign(opts *bind.WatchOpts, sink chan<- *BlockSignerSign) (event.Subscription, error)

WatchSign is a free log subscription operation binding the contract event 0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54.

Solidity: event Sign(_signer address, _blockNumber uint256, _blockHash bytes32)

type BlockSignerRaw

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

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

func (*BlockSignerRaw) Call

func (_BlockSigner *BlockSignerRaw) 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 (*BlockSignerRaw) Transact

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

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

func (*BlockSignerRaw) Transfer

func (_BlockSigner *BlockSignerRaw) 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 BlockSignerSession

type BlockSignerSession struct {
	Contract     *BlockSigner      // 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
}

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

func (*BlockSignerSession) EpochNumber

func (_BlockSigner *BlockSignerSession) EpochNumber() (*big.Int, error)

EpochNumber is a free data retrieval call binding the contract method 0xf4145a83.

Solidity: function epochNumber() constant returns(uint256)

func (*BlockSignerSession) GetSigners

func (_BlockSigner *BlockSignerSession) GetSigners(_blockHash [32]byte) ([]common.Address, error)

GetSigners is a free data retrieval call binding the contract method 0xe7ec6aef.

Solidity: function getSigners(_blockHash bytes32) constant returns(address[])

func (*BlockSignerSession) Sign

func (_BlockSigner *BlockSignerSession) Sign(_blockNumber *big.Int, _blockHash [32]byte) (*types.Transaction, error)

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

Solidity: function sign(_blockNumber uint256, _blockHash bytes32) returns()

type BlockSignerSign

type BlockSignerSign struct {
	Signer      common.Address
	BlockNumber *big.Int
	BlockHash   [32]byte
	Raw         types.Log // Blockchain specific contextual infos
}

BlockSignerSign represents a Sign event raised by the BlockSigner contract.

type BlockSignerSignIterator

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

BlockSignerSignIterator is returned from FilterSign and is used to iterate over the raw logs and unpacked data for Sign events raised by the BlockSigner contract.

func (*BlockSignerSignIterator) Close

func (it *BlockSignerSignIterator) Close() error

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

func (*BlockSignerSignIterator) Error

func (it *BlockSignerSignIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BlockSignerSignIterator) Next

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

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

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

func NewBlockSignerTransactor

func NewBlockSignerTransactor(address common.Address, transactor bind.ContractTransactor) (*BlockSignerTransactor, error)

NewBlockSignerTransactor creates a new write-only instance of BlockSigner, bound to a specific deployed contract.

func (*BlockSignerTransactor) Sign

func (_BlockSigner *BlockSignerTransactor) Sign(opts *bind.TransactOpts, _blockNumber *big.Int, _blockHash [32]byte) (*types.Transaction, error)

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

Solidity: function sign(_blockNumber uint256, _blockHash bytes32) returns()

type BlockSignerTransactorRaw

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

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

func (*BlockSignerTransactorRaw) Transact

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

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

func (*BlockSignerTransactorRaw) Transfer

func (_BlockSigner *BlockSignerTransactorRaw) 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 BlockSignerTransactorSession

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

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

func (*BlockSignerTransactorSession) Sign

func (_BlockSigner *BlockSignerTransactorSession) Sign(_blockNumber *big.Int, _blockHash [32]byte) (*types.Transaction, error)

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

Solidity: function sign(_blockNumber uint256, _blockHash bytes32) returns()

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
	SafeMathFilterer   // Log filterer for contract events
}

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

func DeploySafeMath

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

DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.

func NewSafeMath

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.

type SafeMathCaller

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

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

func NewSafeMathCaller

func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)

NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathCallerRaw

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

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

func (*SafeMathCallerRaw) Call

func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession

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

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

type SafeMathFilterer

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

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

func NewSafeMathFilterer

func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)

NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.

type SafeMathRaw

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

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

func (*SafeMathRaw) Call

func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact

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

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

func (*SafeMathRaw) Transfer

func (_SafeMath *SafeMathRaw) 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 SafeMathSession

type SafeMathSession struct {
	Contract     *SafeMath         // 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
}

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

type SafeMathTransactor

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

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

func NewSafeMathTransactor

func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)

NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathTransactorRaw

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

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

func (*SafeMathTransactorRaw) Transact

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

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

func (*SafeMathTransactorRaw) Transfer

func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession

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

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

Jump to

Keyboard shortcuts

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