Documentation ¶
Index ¶
- Variables
- type CompactSignature
- type PillarBlockFinalizationData
- type PillarBlockFinalizedBlock
- type PillarBlockVoteCountChange
- type PillarBlockWithChanges
- type TaraClientContractInterface
- type TaraClientContractInterfaceCaller
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) Finalized(opts *bind.CallOpts) (struct{ ... }, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) GetFinalized(opts *bind.CallOpts) (PillarBlockFinalizedBlock, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) GetFinalizedBridgeRoot(opts *bind.CallOpts) ([32]byte, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) GetSignaturesWeight(opts *bind.CallOpts, h [32]byte, signatures []CompactSignature) (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) PillarBlockInterval(opts *bind.CallOpts) (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) Threshold(opts *bind.CallOpts) (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) TotalWeight(opts *bind.CallOpts) (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) ValidatorVoteCounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- type TaraClientContractInterfaceCallerRaw
- type TaraClientContractInterfaceCallerSession
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) Finalized() (struct{ ... }, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) GetFinalized() (PillarBlockFinalizedBlock, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) GetFinalizedBridgeRoot() ([32]byte, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) GetSignaturesWeight(h [32]byte, signatures []CompactSignature) (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) PillarBlockInterval() (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) Threshold() (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) TotalWeight() (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) ValidatorVoteCounts(arg0 common.Address) (*big.Int, error)
- type TaraClientContractInterfaceFilterer
- type TaraClientContractInterfaceRaw
- func (_TaraClientContractInterface *TaraClientContractInterfaceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_TaraClientContractInterface *TaraClientContractInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TaraClientContractInterfaceSession
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) FinalizeBlocks(blocks []PillarBlockWithChanges, lastBlockSigs []CompactSignature) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) Finalized() (struct{ ... }, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) GetFinalized() (PillarBlockFinalizedBlock, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) GetFinalizedBridgeRoot() ([32]byte, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) GetSignaturesWeight(h [32]byte, signatures []CompactSignature) (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) PillarBlockInterval() (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) ProcessValidatorChanges(validatorChanges []PillarBlockVoteCountChange) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) SetThreshold(_threshold *big.Int) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) Threshold() (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) TotalWeight() (*big.Int, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceSession) ValidatorVoteCounts(arg0 common.Address) (*big.Int, error)
- type TaraClientContractInterfaceTransactor
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactor) FinalizeBlocks(opts *bind.TransactOpts, blocks []PillarBlockWithChanges, ...) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactor) ProcessValidatorChanges(opts *bind.TransactOpts, validatorChanges []PillarBlockVoteCountChange) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactor) SetThreshold(opts *bind.TransactOpts, _threshold *big.Int) (*types.Transaction, error)
- type TaraClientContractInterfaceTransactorRaw
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TaraClientContractInterfaceTransactorSession
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorSession) FinalizeBlocks(blocks []PillarBlockWithChanges, lastBlockSigs []CompactSignature) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorSession) ProcessValidatorChanges(validatorChanges []PillarBlockVoteCountChange) (*types.Transaction, error)
- func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorSession) SetThreshold(_threshold *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var TaraClientContractInterfaceABI = TaraClientContractInterfaceMetaData.ABI
TaraClientContractInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use TaraClientContractInterfaceMetaData.ABI instead.
var TaraClientContractInterfaceMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bridgeRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"prevHash\",\"type\":\"bytes32\"}],\"internalType\":\"structPillarBlock.FinalizationData\",\"name\":\"block\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"int32\",\"name\":\"change\",\"type\":\"int32\"}],\"internalType\":\"structPillarBlock.VoteCountChange[]\",\"name\":\"validatorChanges\",\"type\":\"tuple[]\"}],\"internalType\":\"structPillarBlock.WithChanges\",\"name\":\"_genesisBlock\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_pillarBlockInterval\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bridgeRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"prevHash\",\"type\":\"bytes32\"}],\"internalType\":\"structPillarBlock.FinalizationData\",\"name\":\"block\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"int32\",\"name\":\"change\",\"type\":\"int32\"}],\"internalType\":\"structPillarBlock.VoteCountChange[]\",\"name\":\"validatorChanges\",\"type\":\"tuple[]\"}],\"internalType\":\"structPillarBlock.WithChanges[]\",\"name\":\"blocks\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"vs\",\"type\":\"bytes32\"}],\"internalType\":\"structCompactSignature[]\",\"name\":\"lastBlockSigs\",\"type\":\"tuple[]\"}],\"name\":\"finalizeBlocks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalized\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bridgeRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"prevHash\",\"type\":\"bytes32\"}],\"internalType\":\"structPillarBlock.FinalizationData\",\"name\":\"block\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"finalizedAt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFinalized\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bridgeRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"prevHash\",\"type\":\"bytes32\"}],\"internalType\":\"structPillarBlock.FinalizationData\",\"name\":\"block\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"finalizedAt\",\"type\":\"uint256\"}],\"internalType\":\"structPillarBlock.FinalizedBlock\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFinalizedBridgeRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"h\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"vs\",\"type\":\"bytes32\"}],\"internalType\":\"structCompactSignature[]\",\"name\":\"signatures\",\"type\":\"tuple[]\"}],\"name\":\"getSignaturesWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pillarBlockInterval\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"internalType\":\"int32\",\"name\":\"change\",\"type\":\"int32\"}],\"internalType\":\"structPillarBlock.VoteCountChange[]\",\"name\":\"validatorChanges\",\"type\":\"tuple[]\"}],\"name\":\"processValidatorChanges\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"setThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"threshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"validatorVoteCounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
TaraClientContractInterfaceMetaData contains all meta data concerning the TaraClientContractInterface contract.
Functions ¶
This section is empty.
Types ¶
type CompactSignature ¶
CompactSignature is an auto generated low-level Go binding around an user-defined struct.
type PillarBlockFinalizationData ¶
type PillarBlockFinalizationData struct { Period *big.Int StateRoot [32]byte BridgeRoot [32]byte PrevHash [32]byte }
PillarBlockFinalizationData is an auto generated low-level Go binding around an user-defined struct.
type PillarBlockFinalizedBlock ¶
type PillarBlockFinalizedBlock struct { BlockHash [32]byte Block PillarBlockFinalizationData FinalizedAt *big.Int }
PillarBlockFinalizedBlock is an auto generated low-level Go binding around an user-defined struct.
type PillarBlockVoteCountChange ¶
PillarBlockVoteCountChange is an auto generated low-level Go binding around an user-defined struct.
type PillarBlockWithChanges ¶
type PillarBlockWithChanges struct { Block PillarBlockFinalizationData ValidatorChanges []PillarBlockVoteCountChange }
PillarBlockWithChanges is an auto generated low-level Go binding around an user-defined struct.
type TaraClientContractInterface ¶
type TaraClientContractInterface struct { TaraClientContractInterfaceCaller // Read-only binding to the contract TaraClientContractInterfaceTransactor // Write-only binding to the contract TaraClientContractInterfaceFilterer // Log filterer for contract events }
TaraClientContractInterface is an auto generated Go binding around an Ethereum contract.
func NewTaraClientContractInterface ¶
func NewTaraClientContractInterface(address common.Address, backend bind.ContractBackend) (*TaraClientContractInterface, error)
NewTaraClientContractInterface creates a new instance of TaraClientContractInterface, bound to a specific deployed contract.
type TaraClientContractInterfaceCaller ¶
type TaraClientContractInterfaceCaller struct {
// contains filtered or unexported fields
}
TaraClientContractInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTaraClientContractInterfaceCaller ¶
func NewTaraClientContractInterfaceCaller(address common.Address, caller bind.ContractCaller) (*TaraClientContractInterfaceCaller, error)
NewTaraClientContractInterfaceCaller creates a new read-only instance of TaraClientContractInterface, bound to a specific deployed contract.
func (*TaraClientContractInterfaceCaller) Finalized ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) Finalized(opts *bind.CallOpts) (struct { BlockHash [32]byte Block PillarBlockFinalizationData FinalizedAt *big.Int }, error)
Finalized is a free data retrieval call binding the contract method 0xb3f05b97.
Solidity: function finalized() view returns(bytes32 blockHash, (uint256,bytes32,bytes32,bytes32) block, uint256 finalizedAt)
func (*TaraClientContractInterfaceCaller) GetFinalized ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) GetFinalized(opts *bind.CallOpts) (PillarBlockFinalizedBlock, error)
GetFinalized is a free data retrieval call binding the contract method 0x6b28a5e4.
Solidity: function getFinalized() view returns((bytes32,(uint256,bytes32,bytes32,bytes32),uint256))
func (*TaraClientContractInterfaceCaller) GetFinalizedBridgeRoot ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) GetFinalizedBridgeRoot(opts *bind.CallOpts) ([32]byte, error)
GetFinalizedBridgeRoot is a free data retrieval call binding the contract method 0x5a93a4bb.
Solidity: function getFinalizedBridgeRoot() view returns(bytes32)
func (*TaraClientContractInterfaceCaller) GetSignaturesWeight ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) GetSignaturesWeight(opts *bind.CallOpts, h [32]byte, signatures []CompactSignature) (*big.Int, error)
GetSignaturesWeight is a free data retrieval call binding the contract method 0x97f8e2f0.
Solidity: function getSignaturesWeight(bytes32 h, (bytes32,bytes32)[] signatures) view returns(uint256 weight)
func (*TaraClientContractInterfaceCaller) PillarBlockInterval ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) PillarBlockInterval(opts *bind.CallOpts) (*big.Int, error)
PillarBlockInterval is a free data retrieval call binding the contract method 0x6ed0afdd.
Solidity: function pillarBlockInterval() view returns(uint256)
func (*TaraClientContractInterfaceCaller) Threshold ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) Threshold(opts *bind.CallOpts) (*big.Int, error)
Threshold is a free data retrieval call binding the contract method 0x42cde4e8.
Solidity: function threshold() view returns(uint256)
func (*TaraClientContractInterfaceCaller) TotalWeight ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) TotalWeight(opts *bind.CallOpts) (*big.Int, error)
TotalWeight is a free data retrieval call binding the contract method 0x96c82e57.
Solidity: function totalWeight() view returns(uint256)
func (*TaraClientContractInterfaceCaller) ValidatorVoteCounts ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCaller) ValidatorVoteCounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
ValidatorVoteCounts is a free data retrieval call binding the contract method 0x76a6124e.
Solidity: function validatorVoteCounts(address ) view returns(uint256)
type TaraClientContractInterfaceCallerRaw ¶
type TaraClientContractInterfaceCallerRaw struct {
Contract *TaraClientContractInterfaceCaller // Generic read-only contract binding to access the raw methods on
}
TaraClientContractInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TaraClientContractInterfaceCallerRaw) Call ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerRaw) 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 TaraClientContractInterfaceCallerSession ¶
type TaraClientContractInterfaceCallerSession struct { Contract *TaraClientContractInterfaceCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TaraClientContractInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TaraClientContractInterfaceCallerSession) Finalized ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) Finalized() (struct { BlockHash [32]byte Block PillarBlockFinalizationData FinalizedAt *big.Int }, error)
Finalized is a free data retrieval call binding the contract method 0xb3f05b97.
Solidity: function finalized() view returns(bytes32 blockHash, (uint256,bytes32,bytes32,bytes32) block, uint256 finalizedAt)
func (*TaraClientContractInterfaceCallerSession) GetFinalized ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) GetFinalized() (PillarBlockFinalizedBlock, error)
GetFinalized is a free data retrieval call binding the contract method 0x6b28a5e4.
Solidity: function getFinalized() view returns((bytes32,(uint256,bytes32,bytes32,bytes32),uint256))
func (*TaraClientContractInterfaceCallerSession) GetFinalizedBridgeRoot ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) GetFinalizedBridgeRoot() ([32]byte, error)
GetFinalizedBridgeRoot is a free data retrieval call binding the contract method 0x5a93a4bb.
Solidity: function getFinalizedBridgeRoot() view returns(bytes32)
func (*TaraClientContractInterfaceCallerSession) GetSignaturesWeight ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) GetSignaturesWeight(h [32]byte, signatures []CompactSignature) (*big.Int, error)
GetSignaturesWeight is a free data retrieval call binding the contract method 0x97f8e2f0.
Solidity: function getSignaturesWeight(bytes32 h, (bytes32,bytes32)[] signatures) view returns(uint256 weight)
func (*TaraClientContractInterfaceCallerSession) PillarBlockInterval ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) PillarBlockInterval() (*big.Int, error)
PillarBlockInterval is a free data retrieval call binding the contract method 0x6ed0afdd.
Solidity: function pillarBlockInterval() view returns(uint256)
func (*TaraClientContractInterfaceCallerSession) Threshold ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) Threshold() (*big.Int, error)
Threshold is a free data retrieval call binding the contract method 0x42cde4e8.
Solidity: function threshold() view returns(uint256)
func (*TaraClientContractInterfaceCallerSession) TotalWeight ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) TotalWeight() (*big.Int, error)
TotalWeight is a free data retrieval call binding the contract method 0x96c82e57.
Solidity: function totalWeight() view returns(uint256)
func (*TaraClientContractInterfaceCallerSession) ValidatorVoteCounts ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceCallerSession) ValidatorVoteCounts(arg0 common.Address) (*big.Int, error)
ValidatorVoteCounts is a free data retrieval call binding the contract method 0x76a6124e.
Solidity: function validatorVoteCounts(address ) view returns(uint256)
type TaraClientContractInterfaceFilterer ¶
type TaraClientContractInterfaceFilterer struct {
// contains filtered or unexported fields
}
TaraClientContractInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTaraClientContractInterfaceFilterer ¶
func NewTaraClientContractInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*TaraClientContractInterfaceFilterer, error)
NewTaraClientContractInterfaceFilterer creates a new log filterer instance of TaraClientContractInterface, bound to a specific deployed contract.
type TaraClientContractInterfaceRaw ¶
type TaraClientContractInterfaceRaw struct {
Contract *TaraClientContractInterface // Generic contract binding to access the raw methods on
}
TaraClientContractInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TaraClientContractInterfaceRaw) Call ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceRaw) 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 (*TaraClientContractInterfaceRaw) Transact ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TaraClientContractInterfaceRaw) Transfer ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceRaw) 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 TaraClientContractInterfaceSession ¶
type TaraClientContractInterfaceSession struct { Contract *TaraClientContractInterface // 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 }
TaraClientContractInterfaceSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TaraClientContractInterfaceSession) FinalizeBlocks ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) FinalizeBlocks(blocks []PillarBlockWithChanges, lastBlockSigs []CompactSignature) (*types.Transaction, error)
FinalizeBlocks is a paid mutator transaction binding the contract method 0x508a0785.
Solidity: function finalizeBlocks(((uint256,bytes32,bytes32,bytes32),(address,int32)[])[] blocks, (bytes32,bytes32)[] lastBlockSigs) returns()
func (*TaraClientContractInterfaceSession) Finalized ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) Finalized() (struct { BlockHash [32]byte Block PillarBlockFinalizationData FinalizedAt *big.Int }, error)
Finalized is a free data retrieval call binding the contract method 0xb3f05b97.
Solidity: function finalized() view returns(bytes32 blockHash, (uint256,bytes32,bytes32,bytes32) block, uint256 finalizedAt)
func (*TaraClientContractInterfaceSession) GetFinalized ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) GetFinalized() (PillarBlockFinalizedBlock, error)
GetFinalized is a free data retrieval call binding the contract method 0x6b28a5e4.
Solidity: function getFinalized() view returns((bytes32,(uint256,bytes32,bytes32,bytes32),uint256))
func (*TaraClientContractInterfaceSession) GetFinalizedBridgeRoot ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) GetFinalizedBridgeRoot() ([32]byte, error)
GetFinalizedBridgeRoot is a free data retrieval call binding the contract method 0x5a93a4bb.
Solidity: function getFinalizedBridgeRoot() view returns(bytes32)
func (*TaraClientContractInterfaceSession) GetSignaturesWeight ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) GetSignaturesWeight(h [32]byte, signatures []CompactSignature) (*big.Int, error)
GetSignaturesWeight is a free data retrieval call binding the contract method 0x97f8e2f0.
Solidity: function getSignaturesWeight(bytes32 h, (bytes32,bytes32)[] signatures) view returns(uint256 weight)
func (*TaraClientContractInterfaceSession) PillarBlockInterval ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) PillarBlockInterval() (*big.Int, error)
PillarBlockInterval is a free data retrieval call binding the contract method 0x6ed0afdd.
Solidity: function pillarBlockInterval() view returns(uint256)
func (*TaraClientContractInterfaceSession) ProcessValidatorChanges ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) ProcessValidatorChanges(validatorChanges []PillarBlockVoteCountChange) (*types.Transaction, error)
ProcessValidatorChanges is a paid mutator transaction binding the contract method 0x8e3aa66d.
Solidity: function processValidatorChanges((address,int32)[] validatorChanges) returns()
func (*TaraClientContractInterfaceSession) SetThreshold ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) SetThreshold(_threshold *big.Int) (*types.Transaction, error)
SetThreshold is a paid mutator transaction binding the contract method 0x960bfe04.
Solidity: function setThreshold(uint256 _threshold) returns()
func (*TaraClientContractInterfaceSession) Threshold ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) Threshold() (*big.Int, error)
Threshold is a free data retrieval call binding the contract method 0x42cde4e8.
Solidity: function threshold() view returns(uint256)
func (*TaraClientContractInterfaceSession) TotalWeight ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) TotalWeight() (*big.Int, error)
TotalWeight is a free data retrieval call binding the contract method 0x96c82e57.
Solidity: function totalWeight() view returns(uint256)
func (*TaraClientContractInterfaceSession) ValidatorVoteCounts ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceSession) ValidatorVoteCounts(arg0 common.Address) (*big.Int, error)
ValidatorVoteCounts is a free data retrieval call binding the contract method 0x76a6124e.
Solidity: function validatorVoteCounts(address ) view returns(uint256)
type TaraClientContractInterfaceTransactor ¶
type TaraClientContractInterfaceTransactor struct {
// contains filtered or unexported fields
}
TaraClientContractInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTaraClientContractInterfaceTransactor ¶
func NewTaraClientContractInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*TaraClientContractInterfaceTransactor, error)
NewTaraClientContractInterfaceTransactor creates a new write-only instance of TaraClientContractInterface, bound to a specific deployed contract.
func (*TaraClientContractInterfaceTransactor) FinalizeBlocks ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactor) FinalizeBlocks(opts *bind.TransactOpts, blocks []PillarBlockWithChanges, lastBlockSigs []CompactSignature) (*types.Transaction, error)
FinalizeBlocks is a paid mutator transaction binding the contract method 0x508a0785.
Solidity: function finalizeBlocks(((uint256,bytes32,bytes32,bytes32),(address,int32)[])[] blocks, (bytes32,bytes32)[] lastBlockSigs) returns()
func (*TaraClientContractInterfaceTransactor) ProcessValidatorChanges ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactor) ProcessValidatorChanges(opts *bind.TransactOpts, validatorChanges []PillarBlockVoteCountChange) (*types.Transaction, error)
ProcessValidatorChanges is a paid mutator transaction binding the contract method 0x8e3aa66d.
Solidity: function processValidatorChanges((address,int32)[] validatorChanges) returns()
func (*TaraClientContractInterfaceTransactor) SetThreshold ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactor) SetThreshold(opts *bind.TransactOpts, _threshold *big.Int) (*types.Transaction, error)
SetThreshold is a paid mutator transaction binding the contract method 0x960bfe04.
Solidity: function setThreshold(uint256 _threshold) returns()
type TaraClientContractInterfaceTransactorRaw ¶
type TaraClientContractInterfaceTransactorRaw struct {
Contract *TaraClientContractInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}
TaraClientContractInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TaraClientContractInterfaceTransactorRaw) Transact ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TaraClientContractInterfaceTransactorRaw) Transfer ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorRaw) 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 TaraClientContractInterfaceTransactorSession ¶
type TaraClientContractInterfaceTransactorSession struct { Contract *TaraClientContractInterfaceTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TaraClientContractInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TaraClientContractInterfaceTransactorSession) FinalizeBlocks ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorSession) FinalizeBlocks(blocks []PillarBlockWithChanges, lastBlockSigs []CompactSignature) (*types.Transaction, error)
FinalizeBlocks is a paid mutator transaction binding the contract method 0x508a0785.
Solidity: function finalizeBlocks(((uint256,bytes32,bytes32,bytes32),(address,int32)[])[] blocks, (bytes32,bytes32)[] lastBlockSigs) returns()
func (*TaraClientContractInterfaceTransactorSession) ProcessValidatorChanges ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorSession) ProcessValidatorChanges(validatorChanges []PillarBlockVoteCountChange) (*types.Transaction, error)
ProcessValidatorChanges is a paid mutator transaction binding the contract method 0x8e3aa66d.
Solidity: function processValidatorChanges((address,int32)[] validatorChanges) returns()
func (*TaraClientContractInterfaceTransactorSession) SetThreshold ¶
func (_TaraClientContractInterface *TaraClientContractInterfaceTransactorSession) SetThreshold(_threshold *big.Int) (*types.Transaction, error)
SetThreshold is a paid mutator transaction binding the contract method 0x960bfe04.
Solidity: function setThreshold(uint256 _threshold) returns()