testimonium

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const TestimoniumABI = "" /* 7682-byte string literal not displayed */

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

Variables

View Source
var TestimoniumBin = "" /* 54988-byte string literal not displayed */

TestimoniumBin is the compiled bytecode used for deploying new contracts.

Functions

func CreateChainConfig

func CreateChainConfig(connectionType string, connectionUrl string, connectionPort uint64) map[string]interface{}

Types

type Chain

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

type ChainConfig

type ChainConfig map[string]interface{}

type ChainsConfig

type ChainsConfig map[uint8]ChainConfig

type Client

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

func NewClient

func NewClient(privateKey string, chainsConfig map[string]interface{}) *Client

func (Client) Account

func (c Client) Account() string

func (Client) Balance

func (c Client) Balance(chainId uint8) (*big.Int, error)

func (Client) BlockByHash

func (c Client) BlockByHash(blockHash common.Hash, chain uint8) (*types.Block, error)

func (Client) BlockByNumber

func (c Client) BlockByNumber(blockNumber uint64, chain uint8) (*types.Block, error)

func (Client) BlockHeaderExists

func (c Client) BlockHeaderExists(blockHash [32]byte, chain uint8) (bool, error)

func (Client) Chains

func (c Client) Chains() []uint8

func (Client) DeployEthash

func (c Client) DeployEthash(destinationChain uint8) common.Address

func (Client) DeployTestimonium

func (c Client) DeployTestimonium(destinationChain uint8, sourceChain uint8, genesisBlockNumber uint64) common.Address

func (Client) DepositStake

func (c Client) DepositStake(chainId uint8, amountInWei *big.Int) error

func (Client) DisputeBlock

func (c Client) DisputeBlock(blockHash [32]byte, chain uint8)

func (Client) GenerateMerkleProofForReceipt

func (c Client) GenerateMerkleProofForReceipt(txHash [32]byte, chain uint8) ([]byte, []byte, []byte, []byte, error)

func (Client) GenerateMerkleProofForTx

func (c Client) GenerateMerkleProofForTx(txHash [32]byte, chain uint8) ([]byte, []byte, []byte, []byte, error)

func (Client) GetBlockHeader

func (c Client) GetBlockHeader(blockHash [32]byte, chain uint8) (Header, error)

func (Client) GetLongestChainEndpoint

func (c Client) GetLongestChainEndpoint(chain uint8) ([32]byte, error)

func (Client) GetOriginalBlockHeader

func (c Client) GetOriginalBlockHeader(blockHash [32]byte, chain uint8) (*types.Block, error)

func (Client) GetRequiredVerificationFee

func (c Client) GetRequiredVerificationFee(chain uint8) (*big.Int, error)

func (Client) GetStake

func (c Client) GetStake(chainId uint8) (*big.Int, error)

func (Client) HeaderByHash

func (c Client) HeaderByHash(blockHash common.Hash, chain uint8) (*types.Header, error)

func (Client) HeaderByNumber

func (c Client) HeaderByNumber(blockNumber *big.Int, chain uint8) (*types.Header, error)

func (Client) RandomizeHeader

func (c Client) RandomizeHeader(header *types.Header, chain uint8) *types.Header

func (Client) SetEpochData

func (c Client) SetEpochData(epochData typedefs.EpochData, chain uint8)

func (Client) SubmitHeader

func (c Client) SubmitHeader(header *types.Header, chain uint8) error

func (Client) SubmitHeaderLive

func (c Client) SubmitHeaderLive(destinationChain uint8, sourceChain uint8, lockTime time.Duration)

func (Client) SubmitRLPHeader

func (c Client) SubmitRLPHeader(rlpHeader []byte, chain uint8) error

func (Client) TotalBalance

func (c Client) TotalBalance() (*big.Int, error)

func (Client) TotalDifficulty

func (c Client) TotalDifficulty(blockNumber *big.Int, chain uint8) (*big.Int, error)

func (Client) Transaction

func (c Client) Transaction(txHash common.Hash, chain uint8) (*types.Transaction, bool, error)

func (Client) TransactionReceipt

func (c Client) TransactionReceipt(txHash common.Hash, chain uint8) (*types.Receipt, error)

func (Client) VerifyMerkleProof

func (c Client) VerifyMerkleProof(feeInWei *big.Int, rlpHeader []byte, trieValueType TrieValueType, rlpEncodedValue []byte, path []byte,
	rlpEncodedProofNodes []byte, noOfConfirmations uint8, chain uint8)

func (Client) WithdrawStake

func (c Client) WithdrawStake(chainId uint8, amountInWei *big.Int) error
type FullHeader struct {
	Parent                    [32]byte
	UncleHash                 [32]byte
	StateRoot                 [32]byte
	TransactionsRoot          [32]byte
	ReceiptsRoot              [32]byte
	BlockNumber               *big.Int
	GasLimit                  *big.Int
	GasUsed                   *big.Int
	RlpHeaderHashWithoutNonce [32]byte
	Timestamp                 *big.Int
	Nonce                     *big.Int
	Difficulty                *big.Int
	ExtraData                 *byte
}

func (FullHeader) String

func (header FullHeader) String() string
type Header struct {
	Hash            [32]byte
	BlockNumber     *big.Int
	TotalDifficulty *big.Int
}

type Testimonium

type Testimonium struct {
	TestimoniumCaller     // Read-only binding to the contract
	TestimoniumTransactor // Write-only binding to the contract
	TestimoniumFilterer   // Log filterer for contract events
}

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

func DeployTestimonium

func DeployTestimonium(auth *bind.TransactOpts, backend bind.ContractBackend, _rlpHeader []byte, totalDifficulty *big.Int, _ethashContractAddr common.Address) (common.Address, *types.Transaction, *Testimonium, error)

DeployTestimonium deploys a new Ethereum contract, binding an instance of Testimonium to it.

func NewTestimonium

func NewTestimonium(address common.Address, backend bind.ContractBackend) (*Testimonium, error)

NewTestimonium creates a new instance of Testimonium, bound to a specific deployed contract.

type TestimoniumCaller

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

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

func NewTestimoniumCaller

func NewTestimoniumCaller(address common.Address, caller bind.ContractCaller) (*TestimoniumCaller, error)

NewTestimoniumCaller creates a new read-only instance of Testimonium, bound to a specific deployed contract.

func (*TestimoniumCaller) GetBlockHashesSubmittedByClient

func (_Testimonium *TestimoniumCaller) GetBlockHashesSubmittedByClient(opts *bind.CallOpts) ([][32]byte, error)

GetBlockHashesSubmittedByClient is a free data retrieval call binding the contract method 0xf06dab9e.

Solidity: function getBlockHashesSubmittedByClient() view returns(bytes32[])

func (*TestimoniumCaller) GetGenesisBlockHash

func (_Testimonium *TestimoniumCaller) GetGenesisBlockHash(opts *bind.CallOpts) ([32]byte, error)

GetGenesisBlockHash is a free data retrieval call binding the contract method 0x29a12be9.

Solidity: function getGenesisBlockHash() view returns(bytes32 hash)

func (*TestimoniumCaller) GetHeader

func (_Testimonium *TestimoniumCaller) GetHeader(opts *bind.CallOpts, blockHash [32]byte) (struct {
	Hash            [32]byte
	BlockNumber     *big.Int
	TotalDifficulty *big.Int
}, error)

GetHeader is a free data retrieval call binding the contract method 0xb9615878.

Solidity: function getHeader(bytes32 blockHash) view returns(bytes32 hash, uint256 blockNumber, uint256 totalDifficulty)

func (*TestimoniumCaller) GetLongestChainEndpoint

func (_Testimonium *TestimoniumCaller) GetLongestChainEndpoint(opts *bind.CallOpts) ([32]byte, error)

GetLongestChainEndpoint is a free data retrieval call binding the contract method 0x0d6501a6.

Solidity: function getLongestChainEndpoint() view returns(bytes32 hash)

func (*TestimoniumCaller) GetRequiredStakePerBlock

func (_Testimonium *TestimoniumCaller) GetRequiredStakePerBlock(opts *bind.CallOpts) (*big.Int, error)

GetRequiredStakePerBlock is a free data retrieval call binding the contract method 0xacef3a1e.

Solidity: function getRequiredStakePerBlock() pure returns(uint256)

func (*TestimoniumCaller) GetRequiredVerificationFee

func (_Testimonium *TestimoniumCaller) GetRequiredVerificationFee(opts *bind.CallOpts) (*big.Int, error)

GetRequiredVerificationFee is a free data retrieval call binding the contract method 0x3452e2db.

Solidity: function getRequiredVerificationFee() pure returns(uint256)

func (*TestimoniumCaller) GetStake

func (_Testimonium *TestimoniumCaller) GetStake(opts *bind.CallOpts) (*big.Int, error)

GetStake is a free data retrieval call binding the contract method 0xfc0e3d90.

Solidity: function getStake() view returns(uint256)

func (*TestimoniumCaller) IsHeaderStored

func (_Testimonium *TestimoniumCaller) IsHeaderStored(opts *bind.CallOpts, hash [32]byte) (bool, error)

IsHeaderStored is a free data retrieval call binding the contract method 0xd0f0923b.

Solidity: function isHeaderStored(bytes32 hash) view returns(bool)

type TestimoniumCallerRaw

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

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

func (*TestimoniumCallerRaw) Call

func (_Testimonium *TestimoniumCallerRaw) 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 TestimoniumCallerSession

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

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

func (*TestimoniumCallerSession) GetBlockHashesSubmittedByClient

func (_Testimonium *TestimoniumCallerSession) GetBlockHashesSubmittedByClient() ([][32]byte, error)

GetBlockHashesSubmittedByClient is a free data retrieval call binding the contract method 0xf06dab9e.

Solidity: function getBlockHashesSubmittedByClient() view returns(bytes32[])

func (*TestimoniumCallerSession) GetGenesisBlockHash

func (_Testimonium *TestimoniumCallerSession) GetGenesisBlockHash() ([32]byte, error)

GetGenesisBlockHash is a free data retrieval call binding the contract method 0x29a12be9.

Solidity: function getGenesisBlockHash() view returns(bytes32 hash)

func (*TestimoniumCallerSession) GetHeader

func (_Testimonium *TestimoniumCallerSession) GetHeader(blockHash [32]byte) (struct {
	Hash            [32]byte
	BlockNumber     *big.Int
	TotalDifficulty *big.Int
}, error)

GetHeader is a free data retrieval call binding the contract method 0xb9615878.

Solidity: function getHeader(bytes32 blockHash) view returns(bytes32 hash, uint256 blockNumber, uint256 totalDifficulty)

func (*TestimoniumCallerSession) GetLongestChainEndpoint

func (_Testimonium *TestimoniumCallerSession) GetLongestChainEndpoint() ([32]byte, error)

GetLongestChainEndpoint is a free data retrieval call binding the contract method 0x0d6501a6.

Solidity: function getLongestChainEndpoint() view returns(bytes32 hash)

func (*TestimoniumCallerSession) GetRequiredStakePerBlock

func (_Testimonium *TestimoniumCallerSession) GetRequiredStakePerBlock() (*big.Int, error)

GetRequiredStakePerBlock is a free data retrieval call binding the contract method 0xacef3a1e.

Solidity: function getRequiredStakePerBlock() pure returns(uint256)

func (*TestimoniumCallerSession) GetRequiredVerificationFee

func (_Testimonium *TestimoniumCallerSession) GetRequiredVerificationFee() (*big.Int, error)

GetRequiredVerificationFee is a free data retrieval call binding the contract method 0x3452e2db.

Solidity: function getRequiredVerificationFee() pure returns(uint256)

func (*TestimoniumCallerSession) GetStake

func (_Testimonium *TestimoniumCallerSession) GetStake() (*big.Int, error)

GetStake is a free data retrieval call binding the contract method 0xfc0e3d90.

Solidity: function getStake() view returns(uint256)

func (*TestimoniumCallerSession) IsHeaderStored

func (_Testimonium *TestimoniumCallerSession) IsHeaderStored(hash [32]byte) (bool, error)

IsHeaderStored is a free data retrieval call binding the contract method 0xd0f0923b.

Solidity: function isHeaderStored(bytes32 hash) view returns(bool)

type TestimoniumDisputeBlock

type TestimoniumDisputeBlock struct {
	ReturnCode *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

TestimoniumDisputeBlock represents a DisputeBlock event raised by the Testimonium contract.

type TestimoniumDisputeBlockIterator

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

TestimoniumDisputeBlockIterator is returned from FilterDisputeBlock and is used to iterate over the raw logs and unpacked data for DisputeBlock events raised by the Testimonium contract.

func (*TestimoniumDisputeBlockIterator) Close

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

func (*TestimoniumDisputeBlockIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumDisputeBlockIterator) 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 TestimoniumFilterer

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

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

func NewTestimoniumFilterer

func NewTestimoniumFilterer(address common.Address, filterer bind.ContractFilterer) (*TestimoniumFilterer, error)

NewTestimoniumFilterer creates a new log filterer instance of Testimonium, bound to a specific deployed contract.

func (*TestimoniumFilterer) FilterDisputeBlock

func (_Testimonium *TestimoniumFilterer) FilterDisputeBlock(opts *bind.FilterOpts) (*TestimoniumDisputeBlockIterator, error)

FilterDisputeBlock is a free log retrieval operation binding the contract event 0xf68bea46bc6fb530eae297355e0d416e2545678c786c03ed115311db0dd36140.

Solidity: event DisputeBlock(uint256 returnCode)

func (*TestimoniumFilterer) FilterPoWValidationResult

func (_Testimonium *TestimoniumFilterer) FilterPoWValidationResult(opts *bind.FilterOpts) (*TestimoniumPoWValidationResultIterator, error)

FilterPoWValidationResult is a free log retrieval operation binding the contract event 0x368fee0c56ae41c07d7c93332427c609564426ae664e6298300f00514aebe48e.

Solidity: event PoWValidationResult(uint256 returnCode, uint256 errorInfo)

func (*TestimoniumFilterer) FilterRemoveBranch

func (_Testimonium *TestimoniumFilterer) FilterRemoveBranch(opts *bind.FilterOpts) (*TestimoniumRemoveBranchIterator, error)

FilterRemoveBranch is a free log retrieval operation binding the contract event 0xf96ae1a1e71431cfb86761b9cab725aeddab2afdaf76d40d43fc005bdc6555d4.

Solidity: event RemoveBranch(bytes32 root)

func (*TestimoniumFilterer) FilterSubmitBlock

func (_Testimonium *TestimoniumFilterer) FilterSubmitBlock(opts *bind.FilterOpts) (*TestimoniumSubmitBlockIterator, error)

FilterSubmitBlock is a free log retrieval operation binding the contract event 0x1cf94b307af0c800807d60a4e4bdc5145d6df32ad1c9e0cd3a49865e62c3820e.

Solidity: event SubmitBlock(bytes32 blockHash)

func (*TestimoniumFilterer) FilterVerifyReceipt

func (_Testimonium *TestimoniumFilterer) FilterVerifyReceipt(opts *bind.FilterOpts) (*TestimoniumVerifyReceiptIterator, error)

FilterVerifyReceipt is a free log retrieval operation binding the contract event 0x0c3d1c6f7d35f62105cedeb1fea90976e3ea2ef20186074e47754bc04bfbf790.

Solidity: event VerifyReceipt(uint8 result)

func (*TestimoniumFilterer) FilterVerifyState

func (_Testimonium *TestimoniumFilterer) FilterVerifyState(opts *bind.FilterOpts) (*TestimoniumVerifyStateIterator, error)

FilterVerifyState is a free log retrieval operation binding the contract event 0xb960845fd31f80d28f3e163cea6db4e82ffd7fdabd4694856ce80ed58dd2e9ce.

Solidity: event VerifyState(uint8 result)

func (*TestimoniumFilterer) FilterVerifyTransaction

func (_Testimonium *TestimoniumFilterer) FilterVerifyTransaction(opts *bind.FilterOpts) (*TestimoniumVerifyTransactionIterator, error)

FilterVerifyTransaction is a free log retrieval operation binding the contract event 0x567d80f0e2776186d59c264eaa20bafaf2a33c3126d76bd5d0b4c5ff4d1342c6.

Solidity: event VerifyTransaction(uint8 result)

func (*TestimoniumFilterer) FilterWithdrawStake

func (_Testimonium *TestimoniumFilterer) FilterWithdrawStake(opts *bind.FilterOpts) (*TestimoniumWithdrawStakeIterator, error)

FilterWithdrawStake is a free log retrieval operation binding the contract event 0x141ef67c4a6d3ec2adfb2f66d33c2b11de5b4f34344757554d430570b18a92ec.

Solidity: event WithdrawStake(address client, uint256 withdrawnStake)

func (*TestimoniumFilterer) ParseDisputeBlock

func (_Testimonium *TestimoniumFilterer) ParseDisputeBlock(log types.Log) (*TestimoniumDisputeBlock, error)

ParseDisputeBlock is a log parse operation binding the contract event 0xf68bea46bc6fb530eae297355e0d416e2545678c786c03ed115311db0dd36140.

Solidity: event DisputeBlock(uint256 returnCode)

func (*TestimoniumFilterer) ParsePoWValidationResult

func (_Testimonium *TestimoniumFilterer) ParsePoWValidationResult(log types.Log) (*TestimoniumPoWValidationResult, error)

ParsePoWValidationResult is a log parse operation binding the contract event 0x368fee0c56ae41c07d7c93332427c609564426ae664e6298300f00514aebe48e.

Solidity: event PoWValidationResult(uint256 returnCode, uint256 errorInfo)

func (*TestimoniumFilterer) ParseRemoveBranch

func (_Testimonium *TestimoniumFilterer) ParseRemoveBranch(log types.Log) (*TestimoniumRemoveBranch, error)

ParseRemoveBranch is a log parse operation binding the contract event 0xf96ae1a1e71431cfb86761b9cab725aeddab2afdaf76d40d43fc005bdc6555d4.

Solidity: event RemoveBranch(bytes32 root)

func (*TestimoniumFilterer) ParseSubmitBlock

func (_Testimonium *TestimoniumFilterer) ParseSubmitBlock(log types.Log) (*TestimoniumSubmitBlock, error)

ParseSubmitBlock is a log parse operation binding the contract event 0x1cf94b307af0c800807d60a4e4bdc5145d6df32ad1c9e0cd3a49865e62c3820e.

Solidity: event SubmitBlock(bytes32 blockHash)

func (*TestimoniumFilterer) ParseVerifyReceipt

func (_Testimonium *TestimoniumFilterer) ParseVerifyReceipt(log types.Log) (*TestimoniumVerifyReceipt, error)

ParseVerifyReceipt is a log parse operation binding the contract event 0x0c3d1c6f7d35f62105cedeb1fea90976e3ea2ef20186074e47754bc04bfbf790.

Solidity: event VerifyReceipt(uint8 result)

func (*TestimoniumFilterer) ParseVerifyState

func (_Testimonium *TestimoniumFilterer) ParseVerifyState(log types.Log) (*TestimoniumVerifyState, error)

ParseVerifyState is a log parse operation binding the contract event 0xb960845fd31f80d28f3e163cea6db4e82ffd7fdabd4694856ce80ed58dd2e9ce.

Solidity: event VerifyState(uint8 result)

func (*TestimoniumFilterer) ParseVerifyTransaction

func (_Testimonium *TestimoniumFilterer) ParseVerifyTransaction(log types.Log) (*TestimoniumVerifyTransaction, error)

ParseVerifyTransaction is a log parse operation binding the contract event 0x567d80f0e2776186d59c264eaa20bafaf2a33c3126d76bd5d0b4c5ff4d1342c6.

Solidity: event VerifyTransaction(uint8 result)

func (*TestimoniumFilterer) ParseWithdrawStake

func (_Testimonium *TestimoniumFilterer) ParseWithdrawStake(log types.Log) (*TestimoniumWithdrawStake, error)

ParseWithdrawStake is a log parse operation binding the contract event 0x141ef67c4a6d3ec2adfb2f66d33c2b11de5b4f34344757554d430570b18a92ec.

Solidity: event WithdrawStake(address client, uint256 withdrawnStake)

func (*TestimoniumFilterer) WatchDisputeBlock

func (_Testimonium *TestimoniumFilterer) WatchDisputeBlock(opts *bind.WatchOpts, sink chan<- *TestimoniumDisputeBlock) (event.Subscription, error)

WatchDisputeBlock is a free log subscription operation binding the contract event 0xf68bea46bc6fb530eae297355e0d416e2545678c786c03ed115311db0dd36140.

Solidity: event DisputeBlock(uint256 returnCode)

func (*TestimoniumFilterer) WatchPoWValidationResult

func (_Testimonium *TestimoniumFilterer) WatchPoWValidationResult(opts *bind.WatchOpts, sink chan<- *TestimoniumPoWValidationResult) (event.Subscription, error)

WatchPoWValidationResult is a free log subscription operation binding the contract event 0x368fee0c56ae41c07d7c93332427c609564426ae664e6298300f00514aebe48e.

Solidity: event PoWValidationResult(uint256 returnCode, uint256 errorInfo)

func (*TestimoniumFilterer) WatchRemoveBranch

func (_Testimonium *TestimoniumFilterer) WatchRemoveBranch(opts *bind.WatchOpts, sink chan<- *TestimoniumRemoveBranch) (event.Subscription, error)

WatchRemoveBranch is a free log subscription operation binding the contract event 0xf96ae1a1e71431cfb86761b9cab725aeddab2afdaf76d40d43fc005bdc6555d4.

Solidity: event RemoveBranch(bytes32 root)

func (*TestimoniumFilterer) WatchSubmitBlock

func (_Testimonium *TestimoniumFilterer) WatchSubmitBlock(opts *bind.WatchOpts, sink chan<- *TestimoniumSubmitBlock) (event.Subscription, error)

WatchSubmitBlock is a free log subscription operation binding the contract event 0x1cf94b307af0c800807d60a4e4bdc5145d6df32ad1c9e0cd3a49865e62c3820e.

Solidity: event SubmitBlock(bytes32 blockHash)

func (*TestimoniumFilterer) WatchVerifyReceipt

func (_Testimonium *TestimoniumFilterer) WatchVerifyReceipt(opts *bind.WatchOpts, sink chan<- *TestimoniumVerifyReceipt) (event.Subscription, error)

WatchVerifyReceipt is a free log subscription operation binding the contract event 0x0c3d1c6f7d35f62105cedeb1fea90976e3ea2ef20186074e47754bc04bfbf790.

Solidity: event VerifyReceipt(uint8 result)

func (*TestimoniumFilterer) WatchVerifyState

func (_Testimonium *TestimoniumFilterer) WatchVerifyState(opts *bind.WatchOpts, sink chan<- *TestimoniumVerifyState) (event.Subscription, error)

WatchVerifyState is a free log subscription operation binding the contract event 0xb960845fd31f80d28f3e163cea6db4e82ffd7fdabd4694856ce80ed58dd2e9ce.

Solidity: event VerifyState(uint8 result)

func (*TestimoniumFilterer) WatchVerifyTransaction

func (_Testimonium *TestimoniumFilterer) WatchVerifyTransaction(opts *bind.WatchOpts, sink chan<- *TestimoniumVerifyTransaction) (event.Subscription, error)

WatchVerifyTransaction is a free log subscription operation binding the contract event 0x567d80f0e2776186d59c264eaa20bafaf2a33c3126d76bd5d0b4c5ff4d1342c6.

Solidity: event VerifyTransaction(uint8 result)

func (*TestimoniumFilterer) WatchWithdrawStake

func (_Testimonium *TestimoniumFilterer) WatchWithdrawStake(opts *bind.WatchOpts, sink chan<- *TestimoniumWithdrawStake) (event.Subscription, error)

WatchWithdrawStake is a free log subscription operation binding the contract event 0x141ef67c4a6d3ec2adfb2f66d33c2b11de5b4f34344757554d430570b18a92ec.

Solidity: event WithdrawStake(address client, uint256 withdrawnStake)

type TestimoniumPoWValidationResult

type TestimoniumPoWValidationResult struct {
	ReturnCode *big.Int
	ErrorInfo  *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

TestimoniumPoWValidationResult represents a PoWValidationResult event raised by the Testimonium contract.

func (TestimoniumPoWValidationResult) String

func (event TestimoniumPoWValidationResult) String() string

type TestimoniumPoWValidationResultIterator

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

TestimoniumPoWValidationResultIterator is returned from FilterPoWValidationResult and is used to iterate over the raw logs and unpacked data for PoWValidationResult events raised by the Testimonium contract.

func (*TestimoniumPoWValidationResultIterator) Close

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

func (*TestimoniumPoWValidationResultIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumPoWValidationResultIterator) 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 TestimoniumRaw

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

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

func (*TestimoniumRaw) Call

func (_Testimonium *TestimoniumRaw) 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 (*TestimoniumRaw) Transact

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

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

func (*TestimoniumRaw) Transfer

func (_Testimonium *TestimoniumRaw) 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 TestimoniumRemoveBranch

type TestimoniumRemoveBranch struct {
	Root [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

TestimoniumRemoveBranch represents a RemoveBranch event raised by the Testimonium contract.

func (TestimoniumRemoveBranch) String

func (event TestimoniumRemoveBranch) String() string

type TestimoniumRemoveBranchIterator

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

TestimoniumRemoveBranchIterator is returned from FilterRemoveBranch and is used to iterate over the raw logs and unpacked data for RemoveBranch events raised by the Testimonium contract.

func (*TestimoniumRemoveBranchIterator) Close

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

func (*TestimoniumRemoveBranchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumRemoveBranchIterator) 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 TestimoniumSession

type TestimoniumSession struct {
	Contract     *Testimonium      // 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
}

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

func (*TestimoniumSession) DepositStake

func (_Testimonium *TestimoniumSession) DepositStake(amount *big.Int) (*types.Transaction, error)

DepositStake is a paid mutator transaction binding the contract method 0xcb82cc8f.

Solidity: function depositStake(uint256 amount) payable returns()

func (*TestimoniumSession) DisputeBlockHeader

func (_Testimonium *TestimoniumSession) DisputeBlockHeader(rlpHeader []byte, rlpParent []byte, dataSetLookup []*big.Int, witnessForLookup []*big.Int) (*types.Transaction, error)

DisputeBlockHeader is a paid mutator transaction binding the contract method 0xfbdf930d.

Solidity: function disputeBlockHeader(bytes rlpHeader, bytes rlpParent, uint256[] dataSetLookup, uint256[] witnessForLookup) returns()

func (*TestimoniumSession) GetBlockHashesSubmittedByClient

func (_Testimonium *TestimoniumSession) GetBlockHashesSubmittedByClient() ([][32]byte, error)

GetBlockHashesSubmittedByClient is a free data retrieval call binding the contract method 0xf06dab9e.

Solidity: function getBlockHashesSubmittedByClient() view returns(bytes32[])

func (*TestimoniumSession) GetGenesisBlockHash

func (_Testimonium *TestimoniumSession) GetGenesisBlockHash() ([32]byte, error)

GetGenesisBlockHash is a free data retrieval call binding the contract method 0x29a12be9.

Solidity: function getGenesisBlockHash() view returns(bytes32 hash)

func (*TestimoniumSession) GetHeader

func (_Testimonium *TestimoniumSession) GetHeader(blockHash [32]byte) (struct {
	Hash            [32]byte
	BlockNumber     *big.Int
	TotalDifficulty *big.Int
}, error)

GetHeader is a free data retrieval call binding the contract method 0xb9615878.

Solidity: function getHeader(bytes32 blockHash) view returns(bytes32 hash, uint256 blockNumber, uint256 totalDifficulty)

func (*TestimoniumSession) GetLongestChainEndpoint

func (_Testimonium *TestimoniumSession) GetLongestChainEndpoint() ([32]byte, error)

GetLongestChainEndpoint is a free data retrieval call binding the contract method 0x0d6501a6.

Solidity: function getLongestChainEndpoint() view returns(bytes32 hash)

func (*TestimoniumSession) GetRequiredStakePerBlock

func (_Testimonium *TestimoniumSession) GetRequiredStakePerBlock() (*big.Int, error)

GetRequiredStakePerBlock is a free data retrieval call binding the contract method 0xacef3a1e.

Solidity: function getRequiredStakePerBlock() pure returns(uint256)

func (*TestimoniumSession) GetRequiredVerificationFee

func (_Testimonium *TestimoniumSession) GetRequiredVerificationFee() (*big.Int, error)

GetRequiredVerificationFee is a free data retrieval call binding the contract method 0x3452e2db.

Solidity: function getRequiredVerificationFee() pure returns(uint256)

func (*TestimoniumSession) GetStake

func (_Testimonium *TestimoniumSession) GetStake() (*big.Int, error)

GetStake is a free data retrieval call binding the contract method 0xfc0e3d90.

Solidity: function getStake() view returns(uint256)

func (*TestimoniumSession) IsBlockConfirmed

func (_Testimonium *TestimoniumSession) IsBlockConfirmed(feeInWei *big.Int, blockHash [32]byte, noOfConfirmations uint8) (*types.Transaction, error)

IsBlockConfirmed is a paid mutator transaction binding the contract method 0xdfd6dff8.

Solidity: function isBlockConfirmed(uint256 feeInWei, bytes32 blockHash, uint8 noOfConfirmations) payable returns(bool)

func (*TestimoniumSession) IsHeaderStored

func (_Testimonium *TestimoniumSession) IsHeaderStored(hash [32]byte) (bool, error)

IsHeaderStored is a free data retrieval call binding the contract method 0xd0f0923b.

Solidity: function isHeaderStored(bytes32 hash) view returns(bool)

func (*TestimoniumSession) SubmitBlock

func (_Testimonium *TestimoniumSession) SubmitBlock(rlpHeader []byte) (*types.Transaction, error)

SubmitBlock is a paid mutator transaction binding the contract method 0xd5107381.

Solidity: function submitBlock(bytes rlpHeader) returns()

func (*TestimoniumSession) SubmitBlockBatch

func (_Testimonium *TestimoniumSession) SubmitBlockBatch(_rlpHeaders []byte) (*types.Transaction, error)

SubmitBlockBatch is a paid mutator transaction binding the contract method 0x1b2e1054.

Solidity: function submitBlockBatch(bytes _rlpHeaders) returns()

func (*TestimoniumSession) VerifyReceipt

func (_Testimonium *TestimoniumSession) VerifyReceipt(feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedReceipt []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyReceipt is a paid mutator transaction binding the contract method 0xed315dfa.

Solidity: function verifyReceipt(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedReceipt, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumSession) VerifyState

func (_Testimonium *TestimoniumSession) VerifyState(feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedState []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyState is a paid mutator transaction binding the contract method 0xaddd9b38.

Solidity: function verifyState(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedState, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumSession) VerifyTransaction

func (_Testimonium *TestimoniumSession) VerifyTransaction(feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedTx []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyTransaction is a paid mutator transaction binding the contract method 0x5e29b7da.

Solidity: function verifyTransaction(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedTx, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumSession) WithdrawStake

func (_Testimonium *TestimoniumSession) WithdrawStake(amount *big.Int) (*types.Transaction, error)

WithdrawStake is a paid mutator transaction binding the contract method 0x25d5971f.

Solidity: function withdrawStake(uint256 amount) returns()

type TestimoniumSubmitBlock

type TestimoniumSubmitBlock struct {
	BlockHash [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

TestimoniumSubmitBlock represents a SubmitBlock event raised by the Testimonium contract.

func (TestimoniumSubmitBlock) String

func (t TestimoniumSubmitBlock) String() string

type TestimoniumSubmitBlockIterator

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

TestimoniumSubmitBlockIterator is returned from FilterSubmitBlock and is used to iterate over the raw logs and unpacked data for SubmitBlock events raised by the Testimonium contract.

func (*TestimoniumSubmitBlockIterator) Close

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

func (*TestimoniumSubmitBlockIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumSubmitBlockIterator) 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 TestimoniumTransactor

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

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

func NewTestimoniumTransactor

func NewTestimoniumTransactor(address common.Address, transactor bind.ContractTransactor) (*TestimoniumTransactor, error)

NewTestimoniumTransactor creates a new write-only instance of Testimonium, bound to a specific deployed contract.

func (*TestimoniumTransactor) DepositStake

func (_Testimonium *TestimoniumTransactor) DepositStake(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

DepositStake is a paid mutator transaction binding the contract method 0xcb82cc8f.

Solidity: function depositStake(uint256 amount) payable returns()

func (*TestimoniumTransactor) DisputeBlockHeader

func (_Testimonium *TestimoniumTransactor) DisputeBlockHeader(opts *bind.TransactOpts, rlpHeader []byte, rlpParent []byte, dataSetLookup []*big.Int, witnessForLookup []*big.Int) (*types.Transaction, error)

DisputeBlockHeader is a paid mutator transaction binding the contract method 0xfbdf930d.

Solidity: function disputeBlockHeader(bytes rlpHeader, bytes rlpParent, uint256[] dataSetLookup, uint256[] witnessForLookup) returns()

func (*TestimoniumTransactor) IsBlockConfirmed

func (_Testimonium *TestimoniumTransactor) IsBlockConfirmed(opts *bind.TransactOpts, feeInWei *big.Int, blockHash [32]byte, noOfConfirmations uint8) (*types.Transaction, error)

IsBlockConfirmed is a paid mutator transaction binding the contract method 0xdfd6dff8.

Solidity: function isBlockConfirmed(uint256 feeInWei, bytes32 blockHash, uint8 noOfConfirmations) payable returns(bool)

func (*TestimoniumTransactor) SubmitBlock

func (_Testimonium *TestimoniumTransactor) SubmitBlock(opts *bind.TransactOpts, rlpHeader []byte) (*types.Transaction, error)

SubmitBlock is a paid mutator transaction binding the contract method 0xd5107381.

Solidity: function submitBlock(bytes rlpHeader) returns()

func (*TestimoniumTransactor) SubmitBlockBatch

func (_Testimonium *TestimoniumTransactor) SubmitBlockBatch(opts *bind.TransactOpts, _rlpHeaders []byte) (*types.Transaction, error)

SubmitBlockBatch is a paid mutator transaction binding the contract method 0x1b2e1054.

Solidity: function submitBlockBatch(bytes _rlpHeaders) returns()

func (*TestimoniumTransactor) VerifyReceipt

func (_Testimonium *TestimoniumTransactor) VerifyReceipt(opts *bind.TransactOpts, feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedReceipt []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyReceipt is a paid mutator transaction binding the contract method 0xed315dfa.

Solidity: function verifyReceipt(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedReceipt, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumTransactor) VerifyState

func (_Testimonium *TestimoniumTransactor) VerifyState(opts *bind.TransactOpts, feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedState []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyState is a paid mutator transaction binding the contract method 0xaddd9b38.

Solidity: function verifyState(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedState, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumTransactor) VerifyTransaction

func (_Testimonium *TestimoniumTransactor) VerifyTransaction(opts *bind.TransactOpts, feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedTx []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyTransaction is a paid mutator transaction binding the contract method 0x5e29b7da.

Solidity: function verifyTransaction(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedTx, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumTransactor) WithdrawStake

func (_Testimonium *TestimoniumTransactor) WithdrawStake(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

WithdrawStake is a paid mutator transaction binding the contract method 0x25d5971f.

Solidity: function withdrawStake(uint256 amount) returns()

type TestimoniumTransactorRaw

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

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

func (*TestimoniumTransactorRaw) Transact

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

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

func (*TestimoniumTransactorRaw) Transfer

func (_Testimonium *TestimoniumTransactorRaw) 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 TestimoniumTransactorSession

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

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

func (*TestimoniumTransactorSession) DepositStake

func (_Testimonium *TestimoniumTransactorSession) DepositStake(amount *big.Int) (*types.Transaction, error)

DepositStake is a paid mutator transaction binding the contract method 0xcb82cc8f.

Solidity: function depositStake(uint256 amount) payable returns()

func (*TestimoniumTransactorSession) DisputeBlockHeader

func (_Testimonium *TestimoniumTransactorSession) DisputeBlockHeader(rlpHeader []byte, rlpParent []byte, dataSetLookup []*big.Int, witnessForLookup []*big.Int) (*types.Transaction, error)

DisputeBlockHeader is a paid mutator transaction binding the contract method 0xfbdf930d.

Solidity: function disputeBlockHeader(bytes rlpHeader, bytes rlpParent, uint256[] dataSetLookup, uint256[] witnessForLookup) returns()

func (*TestimoniumTransactorSession) IsBlockConfirmed

func (_Testimonium *TestimoniumTransactorSession) IsBlockConfirmed(feeInWei *big.Int, blockHash [32]byte, noOfConfirmations uint8) (*types.Transaction, error)

IsBlockConfirmed is a paid mutator transaction binding the contract method 0xdfd6dff8.

Solidity: function isBlockConfirmed(uint256 feeInWei, bytes32 blockHash, uint8 noOfConfirmations) payable returns(bool)

func (*TestimoniumTransactorSession) SubmitBlock

func (_Testimonium *TestimoniumTransactorSession) SubmitBlock(rlpHeader []byte) (*types.Transaction, error)

SubmitBlock is a paid mutator transaction binding the contract method 0xd5107381.

Solidity: function submitBlock(bytes rlpHeader) returns()

func (*TestimoniumTransactorSession) SubmitBlockBatch

func (_Testimonium *TestimoniumTransactorSession) SubmitBlockBatch(_rlpHeaders []byte) (*types.Transaction, error)

SubmitBlockBatch is a paid mutator transaction binding the contract method 0x1b2e1054.

Solidity: function submitBlockBatch(bytes _rlpHeaders) returns()

func (*TestimoniumTransactorSession) VerifyReceipt

func (_Testimonium *TestimoniumTransactorSession) VerifyReceipt(feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedReceipt []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyReceipt is a paid mutator transaction binding the contract method 0xed315dfa.

Solidity: function verifyReceipt(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedReceipt, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumTransactorSession) VerifyState

func (_Testimonium *TestimoniumTransactorSession) VerifyState(feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedState []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyState is a paid mutator transaction binding the contract method 0xaddd9b38.

Solidity: function verifyState(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedState, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumTransactorSession) VerifyTransaction

func (_Testimonium *TestimoniumTransactorSession) VerifyTransaction(feeInWei *big.Int, rlpHeader []byte, noOfConfirmations uint8, rlpEncodedTx []byte, path []byte, rlpEncodedNodes []byte) (*types.Transaction, error)

VerifyTransaction is a paid mutator transaction binding the contract method 0x5e29b7da.

Solidity: function verifyTransaction(uint256 feeInWei, bytes rlpHeader, uint8 noOfConfirmations, bytes rlpEncodedTx, bytes path, bytes rlpEncodedNodes) payable returns(uint8)

func (*TestimoniumTransactorSession) WithdrawStake

func (_Testimonium *TestimoniumTransactorSession) WithdrawStake(amount *big.Int) (*types.Transaction, error)

WithdrawStake is a paid mutator transaction binding the contract method 0x25d5971f.

Solidity: function withdrawStake(uint256 amount) returns()

type TestimoniumVerifyReceipt

type TestimoniumVerifyReceipt struct {
	Result uint8
	Raw    types.Log // Blockchain specific contextual infos
}

TestimoniumVerifyReceipt represents a VerifyReceipt event raised by the Testimonium contract.

type TestimoniumVerifyReceiptIterator

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

TestimoniumVerifyReceiptIterator is returned from FilterVerifyReceipt and is used to iterate over the raw logs and unpacked data for VerifyReceipt events raised by the Testimonium contract.

func (*TestimoniumVerifyReceiptIterator) Close

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

func (*TestimoniumVerifyReceiptIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumVerifyReceiptIterator) 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 TestimoniumVerifyState

type TestimoniumVerifyState struct {
	Result uint8
	Raw    types.Log // Blockchain specific contextual infos
}

TestimoniumVerifyState represents a VerifyState event raised by the Testimonium contract.

type TestimoniumVerifyStateIterator

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

TestimoniumVerifyStateIterator is returned from FilterVerifyState and is used to iterate over the raw logs and unpacked data for VerifyState events raised by the Testimonium contract.

func (*TestimoniumVerifyStateIterator) Close

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

func (*TestimoniumVerifyStateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumVerifyStateIterator) 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 TestimoniumVerifyTransaction

type TestimoniumVerifyTransaction struct {
	Result uint8
	Raw    types.Log // Blockchain specific contextual infos
}

TestimoniumVerifyTransaction represents a VerifyTransaction event raised by the Testimonium contract.

type TestimoniumVerifyTransactionIterator

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

TestimoniumVerifyTransactionIterator is returned from FilterVerifyTransaction and is used to iterate over the raw logs and unpacked data for VerifyTransaction events raised by the Testimonium contract.

func (*TestimoniumVerifyTransactionIterator) Close

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

func (*TestimoniumVerifyTransactionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumVerifyTransactionIterator) 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 TestimoniumWithdrawStake

type TestimoniumWithdrawStake struct {
	Client         common.Address
	WithdrawnStake *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

TestimoniumWithdrawStake represents a WithdrawStake event raised by the Testimonium contract.

func (TestimoniumWithdrawStake) String

func (event TestimoniumWithdrawStake) String() string

type TestimoniumWithdrawStakeIterator

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

TestimoniumWithdrawStakeIterator is returned from FilterWithdrawStake and is used to iterate over the raw logs and unpacked data for WithdrawStake events raised by the Testimonium contract.

func (*TestimoniumWithdrawStakeIterator) Close

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

func (*TestimoniumWithdrawStakeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestimoniumWithdrawStakeIterator) 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 TotalDifficulty

type TotalDifficulty struct {
	TotalDifficulty string `json:"totalDifficulty"       gencodec:"required"`
}

type TrieValueType

type TrieValueType int
const (
	VALUE_TYPE_TRANSACTION TrieValueType = 0
	VALUE_TYPE_RECEIPT     TrieValueType = 1
	VALUE_TYPE_STATE       TrieValueType = 2
)

type VerificationResult

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

func (VerificationResult) String

func (result VerificationResult) String() string

Jump to

Keyboard shortcuts

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