Documentation ¶
Index ¶
- Variables
- type HashingTest
- type HashingTestCaller
- func (_HashingTest *HashingTestCaller) LastCheckpoint(opts *bind.CallOpts) ([32]byte, error)
- func (_HashingTest *HashingTestCaller) StateNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_HashingTest *HashingTestCaller) StatePowers(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_HashingTest *HashingTestCaller) StateValidators(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- type HashingTestCallerRaw
- type HashingTestCallerSession
- func (_HashingTest *HashingTestCallerSession) LastCheckpoint() ([32]byte, error)
- func (_HashingTest *HashingTestCallerSession) StateNonce() (*big.Int, error)
- func (_HashingTest *HashingTestCallerSession) StatePowers(arg0 *big.Int) (*big.Int, error)
- func (_HashingTest *HashingTestCallerSession) StateValidators(arg0 *big.Int) (common.Address, error)
- type HashingTestFilterer
- type HashingTestRaw
- func (_HashingTest *HashingTestRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_HashingTest *HashingTestRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_HashingTest *HashingTestRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type HashingTestSession
- func (_HashingTest *HashingTestSession) CheckpointHash(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, ...) (*types.Transaction, error)
- func (_HashingTest *HashingTestSession) JustSaveEverything(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
- func (_HashingTest *HashingTestSession) JustSaveEverythingAgain(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
- func (_HashingTest *HashingTestSession) LastCheckpoint() ([32]byte, error)
- func (_HashingTest *HashingTestSession) StateNonce() (*big.Int, error)
- func (_HashingTest *HashingTestSession) StatePowers(arg0 *big.Int) (*big.Int, error)
- func (_HashingTest *HashingTestSession) StateValidators(arg0 *big.Int) (common.Address, error)
- type HashingTestTransactor
- func (_HashingTest *HashingTestTransactor) CheckpointHash(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int, ...) (*types.Transaction, error)
- func (_HashingTest *HashingTestTransactor) JustSaveEverything(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int, ...) (*types.Transaction, error)
- func (_HashingTest *HashingTestTransactor) JustSaveEverythingAgain(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int, ...) (*types.Transaction, error)
- type HashingTestTransactorRaw
- type HashingTestTransactorSession
- func (_HashingTest *HashingTestTransactorSession) CheckpointHash(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, ...) (*types.Transaction, error)
- func (_HashingTest *HashingTestTransactorSession) JustSaveEverything(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
- func (_HashingTest *HashingTestTransactorSession) JustSaveEverythingAgain(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var HashingTestABI = HashingTestMetaData.ABI
HashingTestABI is the input ABI used to generate the binding from. Deprecated: Use HashingTestMetaData.ABI instead.
var HashingTestBin = HashingTestMetaData.Bin
HashingTestBin is the compiled bytecode used for deploying new contracts. Deprecated: Use HashingTestMetaData.Bin instead.
var HashingTestFuncSigs = HashingTestMetaData.Sigs
Deprecated: Use HashingTestMetaData.Sigs instead. HashingTestFuncSigs maps the 4-byte function signature to its string representation.
var HashingTestMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_validators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_valsetNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_rewardAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_peggyId\",\"type\":\"bytes32\"}],\"name\":\"CheckpointHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_validators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_valsetNonce\",\"type\":\"uint256\"}],\"name\":\"JustSaveEverything\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_validators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_valsetNonce\",\"type\":\"uint256\"}],\"name\":\"JustSaveEverythingAgain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastCheckpoint\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state_nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"state_powers\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"state_validators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", Sigs: map[string]string{ "cd16f185": "CheckpointHash(address[],uint256[],uint256,uint256,address,bytes32)", "884403e2": "JustSaveEverything(address[],uint256[],uint256)", "715dff7e": "JustSaveEverythingAgain(address[],uint256[],uint256)", "d32e81a5": "lastCheckpoint()", "ccf0e74c": "state_nonce()", "2b939281": "state_powers(uint256)", "2afbb62e": "state_validators(uint256)", }, Bin: "0x608060405234801561001057600080fd5b506105ff806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063884403e21161005b578063884403e2146100d3578063ccf0e74c146100e8578063cd16f185146100f1578063d32e81a51461010457600080fd5b80632afbb62e146100825780632b939281146100b2578063715dff7e146100d3575b600080fd5b610095610090366004610476565b61010d565b6040516001600160a01b0390911681526020015b60405180910390f35b6100c56100c0366004610476565b610137565b6040519081526020016100a9565b6100e66100e136600461037f565b610158565b005b6100c560035481565b6100e66100ff3660046103e9565b610187565b6100c560005481565b6001818154811061011d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6002818154811061014757600080fd5b600091825260209091200154905081565b825161016b9060019060208601906101db565b50815161017f906002906020850190610240565b506003555050565b6040516918da1958dadc1bda5b9d60b21b906000906101b6908490849089908c908c908b908b906020016104c8565b60408051601f1981840301815291905280516020909101206000555050505050505050565b828054828255906000526020600020908101928215610230579160200282015b8281111561023057825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906101fb565b5061023c92915061027b565b5090565b828054828255906000526020600020908101928215610230579160200282015b82811115610230578251825591602001919060010190610260565b5b8082111561023c576000815560010161027c565b80356001600160a01b03811681146102a757600080fd5b919050565b600082601f8301126102bc578081fd5b813560206102d16102cc8361058f565b61055e565b80838252828201915082860187848660051b89010111156102f0578586fd5b855b858110156103155761030382610290565b845292840192908401906001016102f2565b5090979650505050505050565b600082601f830112610332578081fd5b813560206103426102cc8361058f565b80838252828201915082860187848660051b8901011115610361578586fd5b855b8581101561031557813584529284019290840190600101610363565b600080600060608486031215610393578283fd5b833567ffffffffffffffff808211156103aa578485fd5b6103b6878388016102ac565b945060208601359150808211156103cb578384fd5b506103d886828701610322565b925050604084013590509250925092565b60008060008060008060c08789031215610401578182fd5b863567ffffffffffffffff80821115610418578384fd5b6104248a838b016102ac565b97506020890135915080821115610439578384fd5b5061044689828a01610322565b955050604087013593506060870135925061046360808801610290565b915060a087013590509295509295509295565b600060208284031215610487578081fd5b5035919050565b6000815180845260208085019450808401835b838110156104bd578151875295820195908201906001016104a1565b509495945050505050565b600060e082018983526020898185015288604085015260e0606085015281885180845261010086019150828a019350845b8181101561051e5784516001600160a01b0316835293830193918301916001016104f9565b50508481036080860152610532818961048e565b93505050508360a083015261055260c08301846001600160a01b03169052565b98975050505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715610587576105876105b3565b604052919050565b600067ffffffffffffffff8211156105a9576105a96105b3565b5060051b60200190565b634e487b7160e01b600052604160045260246000fdfea26469706673582212209e261b02879ac7f82d1f821743ad0a15c4908c77c60258b986fcba98bd45c97664736f6c63430008040033", }
HashingTestMetaData contains all meta data concerning the HashingTest contract.
Functions ¶
This section is empty.
Types ¶
type HashingTest ¶
type HashingTest struct { HashingTestCaller // Read-only binding to the contract HashingTestTransactor // Write-only binding to the contract HashingTestFilterer // Log filterer for contract events }
HashingTest is an auto generated Go binding around an Ethereum contract.
func DeployHashingTest ¶
func DeployHashingTest(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *HashingTest, error)
DeployHashingTest deploys a new Ethereum contract, binding an instance of HashingTest to it.
func NewHashingTest ¶
func NewHashingTest(address common.Address, backend bind.ContractBackend) (*HashingTest, error)
NewHashingTest creates a new instance of HashingTest, bound to a specific deployed contract.
type HashingTestCaller ¶
type HashingTestCaller struct {
// contains filtered or unexported fields
}
HashingTestCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewHashingTestCaller ¶
func NewHashingTestCaller(address common.Address, caller bind.ContractCaller) (*HashingTestCaller, error)
NewHashingTestCaller creates a new read-only instance of HashingTest, bound to a specific deployed contract.
func (*HashingTestCaller) LastCheckpoint ¶
func (_HashingTest *HashingTestCaller) LastCheckpoint(opts *bind.CallOpts) ([32]byte, error)
LastCheckpoint is a free data retrieval call binding the contract method 0xd32e81a5.
Solidity: function lastCheckpoint() view returns(bytes32)
func (*HashingTestCaller) StateNonce ¶
StateNonce is a free data retrieval call binding the contract method 0xccf0e74c.
Solidity: function state_nonce() view returns(uint256)
func (*HashingTestCaller) StatePowers ¶
func (_HashingTest *HashingTestCaller) StatePowers(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
StatePowers is a free data retrieval call binding the contract method 0x2b939281.
Solidity: function state_powers(uint256 ) view returns(uint256)
func (*HashingTestCaller) StateValidators ¶
func (_HashingTest *HashingTestCaller) StateValidators(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
StateValidators is a free data retrieval call binding the contract method 0x2afbb62e.
Solidity: function state_validators(uint256 ) view returns(address)
type HashingTestCallerRaw ¶
type HashingTestCallerRaw struct {
Contract *HashingTestCaller // Generic read-only contract binding to access the raw methods on
}
HashingTestCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*HashingTestCallerRaw) Call ¶
func (_HashingTest *HashingTestCallerRaw) 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 HashingTestCallerSession ¶
type HashingTestCallerSession struct { Contract *HashingTestCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
HashingTestCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*HashingTestCallerSession) LastCheckpoint ¶
func (_HashingTest *HashingTestCallerSession) LastCheckpoint() ([32]byte, error)
LastCheckpoint is a free data retrieval call binding the contract method 0xd32e81a5.
Solidity: function lastCheckpoint() view returns(bytes32)
func (*HashingTestCallerSession) StateNonce ¶
func (_HashingTest *HashingTestCallerSession) StateNonce() (*big.Int, error)
StateNonce is a free data retrieval call binding the contract method 0xccf0e74c.
Solidity: function state_nonce() view returns(uint256)
func (*HashingTestCallerSession) StatePowers ¶
StatePowers is a free data retrieval call binding the contract method 0x2b939281.
Solidity: function state_powers(uint256 ) view returns(uint256)
func (*HashingTestCallerSession) StateValidators ¶
func (_HashingTest *HashingTestCallerSession) StateValidators(arg0 *big.Int) (common.Address, error)
StateValidators is a free data retrieval call binding the contract method 0x2afbb62e.
Solidity: function state_validators(uint256 ) view returns(address)
type HashingTestFilterer ¶
type HashingTestFilterer struct {
// contains filtered or unexported fields
}
HashingTestFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewHashingTestFilterer ¶
func NewHashingTestFilterer(address common.Address, filterer bind.ContractFilterer) (*HashingTestFilterer, error)
NewHashingTestFilterer creates a new log filterer instance of HashingTest, bound to a specific deployed contract.
type HashingTestRaw ¶
type HashingTestRaw struct {
Contract *HashingTest // Generic contract binding to access the raw methods on
}
HashingTestRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*HashingTestRaw) Call ¶
func (_HashingTest *HashingTestRaw) 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 (*HashingTestRaw) Transact ¶
func (_HashingTest *HashingTestRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HashingTestRaw) Transfer ¶
func (_HashingTest *HashingTestRaw) 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 HashingTestSession ¶
type HashingTestSession struct { Contract *HashingTest // 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 }
HashingTestSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*HashingTestSession) CheckpointHash ¶
func (_HashingTest *HashingTestSession) CheckpointHash(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _rewardAmount *big.Int, _rewardToken common.Address, _peggyId [32]byte) (*types.Transaction, error)
CheckpointHash is a paid mutator transaction binding the contract method 0xcd16f185.
Solidity: function CheckpointHash(address[] _validators, uint256[] _powers, uint256 _valsetNonce, uint256 _rewardAmount, address _rewardToken, bytes32 _peggyId) returns()
func (*HashingTestSession) JustSaveEverything ¶
func (_HashingTest *HashingTestSession) JustSaveEverything(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
JustSaveEverything is a paid mutator transaction binding the contract method 0x884403e2.
Solidity: function JustSaveEverything(address[] _validators, uint256[] _powers, uint256 _valsetNonce) returns()
func (*HashingTestSession) JustSaveEverythingAgain ¶
func (_HashingTest *HashingTestSession) JustSaveEverythingAgain(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
JustSaveEverythingAgain is a paid mutator transaction binding the contract method 0x715dff7e.
Solidity: function JustSaveEverythingAgain(address[] _validators, uint256[] _powers, uint256 _valsetNonce) returns()
func (*HashingTestSession) LastCheckpoint ¶
func (_HashingTest *HashingTestSession) LastCheckpoint() ([32]byte, error)
LastCheckpoint is a free data retrieval call binding the contract method 0xd32e81a5.
Solidity: function lastCheckpoint() view returns(bytes32)
func (*HashingTestSession) StateNonce ¶
func (_HashingTest *HashingTestSession) StateNonce() (*big.Int, error)
StateNonce is a free data retrieval call binding the contract method 0xccf0e74c.
Solidity: function state_nonce() view returns(uint256)
func (*HashingTestSession) StatePowers ¶
StatePowers is a free data retrieval call binding the contract method 0x2b939281.
Solidity: function state_powers(uint256 ) view returns(uint256)
func (*HashingTestSession) StateValidators ¶
StateValidators is a free data retrieval call binding the contract method 0x2afbb62e.
Solidity: function state_validators(uint256 ) view returns(address)
type HashingTestTransactor ¶
type HashingTestTransactor struct {
// contains filtered or unexported fields
}
HashingTestTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewHashingTestTransactor ¶
func NewHashingTestTransactor(address common.Address, transactor bind.ContractTransactor) (*HashingTestTransactor, error)
NewHashingTestTransactor creates a new write-only instance of HashingTest, bound to a specific deployed contract.
func (*HashingTestTransactor) CheckpointHash ¶
func (_HashingTest *HashingTestTransactor) CheckpointHash(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _rewardAmount *big.Int, _rewardToken common.Address, _peggyId [32]byte) (*types.Transaction, error)
CheckpointHash is a paid mutator transaction binding the contract method 0xcd16f185.
Solidity: function CheckpointHash(address[] _validators, uint256[] _powers, uint256 _valsetNonce, uint256 _rewardAmount, address _rewardToken, bytes32 _peggyId) returns()
func (*HashingTestTransactor) JustSaveEverything ¶
func (_HashingTest *HashingTestTransactor) JustSaveEverything(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
JustSaveEverything is a paid mutator transaction binding the contract method 0x884403e2.
Solidity: function JustSaveEverything(address[] _validators, uint256[] _powers, uint256 _valsetNonce) returns()
func (*HashingTestTransactor) JustSaveEverythingAgain ¶
func (_HashingTest *HashingTestTransactor) JustSaveEverythingAgain(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
JustSaveEverythingAgain is a paid mutator transaction binding the contract method 0x715dff7e.
Solidity: function JustSaveEverythingAgain(address[] _validators, uint256[] _powers, uint256 _valsetNonce) returns()
type HashingTestTransactorRaw ¶
type HashingTestTransactorRaw struct {
Contract *HashingTestTransactor // Generic write-only contract binding to access the raw methods on
}
HashingTestTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*HashingTestTransactorRaw) Transact ¶
func (_HashingTest *HashingTestTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HashingTestTransactorRaw) Transfer ¶
func (_HashingTest *HashingTestTransactorRaw) 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 HashingTestTransactorSession ¶
type HashingTestTransactorSession struct { Contract *HashingTestTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
HashingTestTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*HashingTestTransactorSession) CheckpointHash ¶
func (_HashingTest *HashingTestTransactorSession) CheckpointHash(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _rewardAmount *big.Int, _rewardToken common.Address, _peggyId [32]byte) (*types.Transaction, error)
CheckpointHash is a paid mutator transaction binding the contract method 0xcd16f185.
Solidity: function CheckpointHash(address[] _validators, uint256[] _powers, uint256 _valsetNonce, uint256 _rewardAmount, address _rewardToken, bytes32 _peggyId) returns()
func (*HashingTestTransactorSession) JustSaveEverything ¶
func (_HashingTest *HashingTestTransactorSession) JustSaveEverything(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
JustSaveEverything is a paid mutator transaction binding the contract method 0x884403e2.
Solidity: function JustSaveEverything(address[] _validators, uint256[] _powers, uint256 _valsetNonce) returns()
func (*HashingTestTransactorSession) JustSaveEverythingAgain ¶
func (_HashingTest *HashingTestTransactorSession) JustSaveEverythingAgain(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int) (*types.Transaction, error)
JustSaveEverythingAgain is a paid mutator transaction binding the contract method 0x715dff7e.
Solidity: function JustSaveEverythingAgain(address[] _validators, uint256[] _powers, uint256 _valsetNonce) returns()