interchaindb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package interchaindb provides a mock for the InterchainDB contract.

Code generated by synapse abigen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Contracts map[string]*compiler.Contract

Contracts are unmarshalled on start

View Source
var IInterchainDBABI = IInterchainDBMetaData.ABI

IInterchainDBABI is the input ABI used to generate the binding from. Deprecated: Use IInterchainDBMetaData.ABI instead.

View Source
var IInterchainDBFuncSigs = IInterchainDBMetaData.Sigs

Deprecated: Use IInterchainDBMetaData.Sigs instead. IInterchainDBFuncSigs maps the 4-byte function signature to its string representation.

View Source
var IInterchainDBMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__BatchDoesNotExist\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__BatchNotFinalized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"existingBatchRoot\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"newBatch\",\"type\":\"tuple\"}],\"name\":\"InterchainDB__ConflictingBatches\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"batchSize\",\"type\":\"uint64\"}],\"name\":\"InterchainDB__EntryIndexOutOfRange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actualFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedFee\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__IncorrectFeeAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"name\":\"InterchainDB__InvalidEntryRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InterchainDB__NoModulesSpecified\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__SameChainId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dstModule\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"srcWriter\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainEntry\",\"name\":\"entry\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"checkVerification\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"moduleVerifiedAt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getBatch\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getBatchLeafs\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"name\":\"getBatchLeafsPaginated\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getBatchSize\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDBNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"name\":\"getEntry\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"srcWriter\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainEntry\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"name\":\"getEntryProof\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"getInterchainFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNextEntryIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"requestBatchVerification\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"batch\",\"type\":\"tuple\"}],\"name\":\"verifyRemoteBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"name\":\"writeEntry\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"writeEntryWithVerification\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"67b1f42e": "checkVerification(address,(uint256,uint256,uint64,bytes32,bytes32),bytes32[])",
		"5ac44282": "getBatch(uint256)",
		"d63020bb": "getBatchLeafs(uint256)",
		"25a1641d": "getBatchLeafsPaginated(uint256,uint64,uint64)",
		"b955e9b9": "getBatchSize(uint256)",
		"f338140e": "getDBNonce()",
		"1725fd30": "getEntry(uint256,uint64)",
		"4f84d040": "getEntryProof(uint256,uint64)",
		"fc7686ec": "getInterchainFee(uint256,address[])",
		"aa2f06ae": "getNextEntryIndex()",
		"84b1c8b8": "requestBatchVerification(uint256,uint256,address[])",
		"05d0728c": "verifyRemoteBatch((uint256,uint256,bytes32))",
		"2ad8c706": "writeEntry(bytes32)",
		"67c769af": "writeEntryWithVerification(uint256,bytes32,address[])",
	},
}

IInterchainDBMetaData contains all meta data concerning the IInterchainDB contract.

View Source
var IInterchainModuleABI = IInterchainModuleMetaData.ABI

IInterchainModuleABI is the input ABI used to generate the binding from. Deprecated: Use IInterchainModuleMetaData.ABI instead.

View Source
var IInterchainModuleFuncSigs = IInterchainModuleMetaData.Sigs

Deprecated: Use IInterchainModuleMetaData.Sigs instead. IInterchainModuleFuncSigs maps the 4-byte function signature to its string representation.

View Source
var IInterchainModuleMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"name\":\"InterchainModule__IncorrectSourceChainId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"}],\"name\":\"InterchainModule__InsufficientFee\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"InterchainModule__NotInterchainDB\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"name\":\"InterchainModule__SameChainId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getModuleFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"batch\",\"type\":\"tuple\"}],\"name\":\"requestBatchVerification\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"4a114f72": "getModuleFee(uint256,uint256)",
		"3fdcec74": "requestBatchVerification(uint256,(uint256,uint256,bytes32))",
	},
}

IInterchainModuleMetaData contains all meta data concerning the IInterchainModule contract.

View Source
var InterchainBatchLibABI = InterchainBatchLibMetaData.ABI

InterchainBatchLibABI is the input ABI used to generate the binding from. Deprecated: Use InterchainBatchLibMetaData.ABI instead.

View Source
var InterchainBatchLibBin = InterchainBatchLibMetaData.Bin

InterchainBatchLibBin is the compiled bytecode used for deploying new contracts. Deprecated: Use InterchainBatchLibMetaData.Bin instead.

View Source
var InterchainBatchLibMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202278935186bb82654efd5d757928d9778a95086442c4cb53193f760b39990d7c64736f6c63430008140033",
}

InterchainBatchLibMetaData contains all meta data concerning the InterchainBatchLib contract.

View Source
var InterchainDBABI = InterchainDBMetaData.ABI

InterchainDBABI is the input ABI used to generate the binding from. Deprecated: Use InterchainDBMetaData.ABI instead.

View Source
var InterchainDBBin = InterchainDBMetaData.Bin

InterchainDBBin is the compiled bytecode used for deploying new contracts. Deprecated: Use InterchainDBMetaData.Bin instead.

View Source
var InterchainDBEventsABI = InterchainDBEventsMetaData.ABI

InterchainDBEventsABI is the input ABI used to generate the binding from. Deprecated: Use InterchainDBEventsMetaData.ABI instead.

View Source
var InterchainDBEventsMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"InterchainBatchVerificationRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"name\":\"InterchainBatchVerified\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"srcWriter\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"name\":\"InterchainEntryWritten\",\"type\":\"event\"}]",
}

InterchainDBEventsMetaData contains all meta data concerning the InterchainDBEvents contract.

View Source
var InterchainDBFuncSigs = InterchainDBMetaData.Sigs

Deprecated: Use InterchainDBMetaData.Sigs instead. InterchainDBFuncSigs maps the 4-byte function signature to its string representation.

View Source
var InterchainDBMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__BatchDoesNotExist\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__BatchNotFinalized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"existingBatchRoot\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"newBatch\",\"type\":\"tuple\"}],\"name\":\"InterchainDB__ConflictingBatches\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"batchSize\",\"type\":\"uint64\"}],\"name\":\"InterchainDB__EntryIndexOutOfRange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actualFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedFee\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__IncorrectFeeAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"name\":\"InterchainDB__InvalidEntryRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InterchainDB__NoModulesSpecified\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"name\":\"InterchainDB__SameChainId\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"InterchainBatchVerificationRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"name\":\"InterchainBatchVerified\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"srcWriter\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"name\":\"InterchainEntryWritten\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dstModule\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"srcWriter\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainEntry\",\"name\":\"entry\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"checkVerification\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"moduleVerifiedAt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getBatch\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getBatchLeafs\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"leafs\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"name\":\"getBatchLeafsPaginated\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"leafs\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"}],\"name\":\"getBatchSize\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDBNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"name\":\"getEntry\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"srcWriter\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainEntry\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"name\":\"getEntryProof\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"getInterchainFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNextEntryIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"requestBatchVerification\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"}],\"internalType\":\"structInterchainBatch\",\"name\":\"batch\",\"type\":\"tuple\"}],\"name\":\"verifyRemoteBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"}],\"name\":\"writeEntry\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"srcModules\",\"type\":\"address[]\"}],\"name\":\"writeEntryWithVerification\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dbNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"entryIndex\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"67b1f42e": "checkVerification(address,(uint256,uint256,uint64,bytes32,bytes32),bytes32[])",
		"5ac44282": "getBatch(uint256)",
		"d63020bb": "getBatchLeafs(uint256)",
		"25a1641d": "getBatchLeafsPaginated(uint256,uint64,uint64)",
		"b955e9b9": "getBatchSize(uint256)",
		"f338140e": "getDBNonce()",
		"1725fd30": "getEntry(uint256,uint64)",
		"4f84d040": "getEntryProof(uint256,uint64)",
		"fc7686ec": "getInterchainFee(uint256,address[])",
		"aa2f06ae": "getNextEntryIndex()",
		"84b1c8b8": "requestBatchVerification(uint256,uint256,address[])",
		"05d0728c": "verifyRemoteBatch((uint256,uint256,bytes32))",
		"2ad8c706": "writeEntry(bytes32)",
		"67c769af": "writeEntryWithVerification(uint256,bytes32,address[])",
	},
	Bin: "0x608060405234801561001057600080fd5b5061150f806100206000396000f3fe6080604052600436106100dd5760003560e01c806367c769af1161007f578063b955e9b911610059578063b955e9b91461029a578063d63020bb146102d3578063f338140e146102f3578063fc7686ec1461030857600080fd5b806367c769af1461025f57806384b1c8b814610272578063aa2f06ae1461028557600080fd5b80632ad8c706116100bb5780632ad8c706146101a65780634f84d040146101e45780635ac442821461020457806367b1f42e1461023157600080fd5b806305d0728c146100e25780631725fd301461010457806325a1641d14610179575b600080fd5b3480156100ee57600080fd5b506101026100fd366004610fde565b610328565b005b34801561011057600080fd5b5061012461011f366004611079565b610489565b6040516101709190600060a082019050825182526020830151602083015267ffffffffffffffff6040840151166040830152606083015160608301526080830151608083015292915050565b60405180910390f35b34801561018557600080fd5b506101996101943660046110a5565b610532565b60405161017091906110e1565b3480156101b257600080fd5b506101c66101c1366004611125565b6105bc565b6040805192835267ffffffffffffffff909116602083015201610170565b3480156101f057600080fd5b506101996101ff366004611079565b6105e0565b34801561021057600080fd5b5061022461021f366004611125565b61060c565b604051610170919061113e565b34801561023d57600080fd5b5061025161024c3660046111cf565b61067d565b604051908152602001610170565b6101c661026d366004611294565b610777565b610102610280366004611294565b6107fb565b34801561029157600080fd5b506101c6610858565b3480156102a657600080fd5b506102ba6102b5366004611125565b61086d565b60405167ffffffffffffffff9091168152602001610170565b3480156102df57600080fd5b506101996102ee366004611125565b610896565b3480156102ff57600080fd5b50600054610251565b34801561031457600080fd5b506102516103233660046112cf565b6108f4565b805146810361036a576040517ffc2dee9a0000000000000000000000000000000000000000000000000000000081524660048201526024015b60405180910390fd5b600061037583610913565b336000908152600160208181526040808420858552825280842081518083019092528054808352930154918101919091529293509003610439576040805180820182524281528582018051602080840191825233600081815260018084528782208a8352845290879020955186559251949092019390935587518389015192518551928352938201529283015260608201527fbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c9060800160405180910390a1610483565b83604001518160200151146104835760208101516040517f4f70133a000000000000000000000000000000000000000000000000000000008152610361913391879060040161131b565b50505050565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526104be8383610956565b6105298383600086815481106104d6576104d6611360565b60009182526020822060029091020154815473ffffffffffffffffffffffffffffffffffffffff90911691908890811061051257610512611360565b9060005260206000209060020201600101546109d0565b90505b92915050565b606067ffffffffffffffff831615158061055757508167ffffffffffffffff16600114155b156105a9576040517fedcdbfea0000000000000000000000000000000000000000000000000000000081526004810185905267ffffffffffffffff808516602483015283166044820152606401610361565b6105b284610896565b90505b9392505050565b60008060006105ca84610a52565b6020810151604090910151909590945092505050565b60606105eb83610b97565b506105f68383610956565b5050604080516000815260208101909152919050565b604080516060810182526000808252602082018190529181019190915261063282610b97565b5061052c8261064a610645856000610489565b610bdb565b60408051606080820183526000808352602080840182905292840152825190810183524681529081019390935282015290565b82516000904681036106bd576040517ffc2dee9a000000000000000000000000000000000000000000000000000000008152466004820152602401610361565b82156106cc576000915061076e565b604085015167ffffffffffffffff16156106e9576000915061076e565b73ffffffffffffffffffffffffffffffffffffffff861660009081526001602052604081208161071888610913565b8152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050600061075287610bdb565b905080826020015114610766576000610769565b81515b935050505b50949350505050565b600080854681036107b6576040517ffc2dee9a000000000000000000000000000000000000000000000000000000008152466004820152602401610361565b60006107c187610a52565b602081015160408201519095509350905060006107e18561064a84610bdb565b90506107ef89828989610bfe565b50505094509492505050565b83468103610837576040517ffc2dee9a000000000000000000000000000000000000000000000000000000008152466004820152602401610361565b60006108428561060c565b905061085086828686610bfe565b505050505050565b60008061086460005490565b92600092509050565b60008061087983610d72565b905080831061088957600061088c565b60015b60ff169392505050565b60606108a182610b97565b5060408051600180825281830190925290602080830190803683370190505090506108d0610645836000610489565b816000815181106108e3576108e3611360565b602002602001018181525050919050565b600061090a8461090360005490565b8585610db2565b95945050505050565b600081600001518260200151604051602001610939929190918252602082015260400190565b604051602081830303815290604052805190602001209050919050565b60006109618361086d565b90508067ffffffffffffffff168267ffffffffffffffff16106109cb576040517f759b436e0000000000000000000000000000000000000000000000000000000081526004810184905267ffffffffffffffff808416602483015282166044820152606401610361565b505050565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526040518060a001604052804681526020018681526020018567ffffffffffffffff168152602001610a3f8573ffffffffffffffffffffffffffffffffffffffff1690565b815260200183905290505b949350505050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529054610a8b90600033856109d0565b60408051808201825233815260208082018681526000805460018101825590805292517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563600290940293840180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5649092019190915582810151606080850151845146815293840192909252928201529081018490529091507f8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa417719060800160405180910390a1919050565b600054808210610bd6576040517ffa1681ec00000000000000000000000000000000000000000000000000000000815260048101839052602401610361565b919050565b606080820151608083015160408051602081019390935282015260009101610939565b600080610c118686602001518686610db2565b91509150803414610c57576040517ffb7d661000000000000000000000000000000000000000000000000000000000815234600482015260248101829052604401610361565b8260005b81811015610d2157858582818110610c7557610c75611360565b9050602002016020810190610c8a919061138f565b73ffffffffffffffffffffffffffffffffffffffff16633fdcec74858381518110610cb757610cb7611360565b60200260200101518a8a6040518463ffffffff1660e01b8152600401610cde9291906113aa565b6000604051808303818588803b158015610cf757600080fd5b505af1158015610d0b573d6000803e3d6000fd5b505050505080610d1a90611401565b9050610c5b565b507f9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde771787876020015188604001518888604051610d61959493929190611439565b60405180910390a150505050505050565b60005480821115610bd6576040517f77a0269c00000000000000000000000000000000000000000000000000000000815260048101839052602401610361565b6060600082808203610df0576040517f98ca492a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8067ffffffffffffffff811115610e0957610e09610f5f565b604051908082528060200260200182016040528015610e32578160200160208202803683370190505b50925060005b81811015610f5457858582818110610e5257610e52611360565b9050602002016020810190610e67919061138f565b6040517f4a114f72000000000000000000000000000000000000000000000000000000008152600481018a90526024810189905273ffffffffffffffffffffffffffffffffffffffff9190911690634a114f7290604401602060405180830381865afa158015610edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eff91906114ad565b848281518110610f1157610f11611360565b602002602001018181525050838181518110610f2f57610f2f611360565b602002602001015183610f4291906114c6565b9250610f4d81611401565b9050610e38565b505094509492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715610fd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b600060608284031215610ff057600080fd5b6040516060810181811067ffffffffffffffff8211171561103a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b80604052508235815260208301356020820152604083013560408201528091505092915050565b803567ffffffffffffffff81168114610bd657600080fd5b6000806040838503121561108c57600080fd5b8235915061109c60208401611061565b90509250929050565b6000806000606084860312156110ba57600080fd5b833592506110ca60208501611061565b91506110d860408501611061565b90509250925092565b6020808252825182820181905260009190848201906040850190845b81811015611119578351835292840192918401916001016110fd565b50909695505050505050565b60006020828403121561113757600080fd5b5035919050565b8151815260208083015190820152604080830151908201526060810161052c565b803573ffffffffffffffffffffffffffffffffffffffff81168114610bd657600080fd5b60008083601f84011261119557600080fd5b50813567ffffffffffffffff8111156111ad57600080fd5b6020830191508360208260051b85010111156111c857600080fd5b9250929050565b60008060008084860360e08112156111e657600080fd5b6111ef8661115f565b945060a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08201121561122157600080fd5b5061122a610f8e565b602086013581526040860135602082015261124760608701611061565b6040820152608086810135606083015260a087013590820152925060c085013567ffffffffffffffff81111561127c57600080fd5b61128887828801611183565b95989497509550505050565b600080600080606085870312156112aa57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561127c57600080fd5b6000806000604084860312156112e457600080fd5b83359250602084013567ffffffffffffffff81111561130257600080fd5b61130e86828701611183565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff841681526020810183905260a08101610a4a60408301848051825260208082015190830152604090810151910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156113a157600080fd5b6105298261115f565b828152608081016105b560208301848051825260208082015190830152604090810151910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611432576114326113d2565b5060010190565b60006080820187835260208781850152866040850152608060608501528185835260a08501905086925060005b8681101561149f5773ffffffffffffffffffffffffffffffffffffffff61148c8561115f565b1682529282019290820190600101611466565b509998505050505050505050565b6000602082840312156114bf57600080fd5b5051919050565b8082018082111561052c5761052c6113d256fea26469706673582212209e41135f1b9598c00d53e9aa54d1ab2780c81e1f108afba15913c2b1b4919de364736f6c63430008140033",
}

InterchainDBMetaData contains all meta data concerning the InterchainDB contract.

View Source
var InterchainEntryLibABI = InterchainEntryLibMetaData.ABI

InterchainEntryLibABI is the input ABI used to generate the binding from. Deprecated: Use InterchainEntryLibMetaData.ABI instead.

View Source
var InterchainEntryLibBin = InterchainEntryLibMetaData.Bin

InterchainEntryLibBin is the compiled bytecode used for deploying new contracts. Deprecated: Use InterchainEntryLibMetaData.Bin instead.

View Source
var InterchainEntryLibMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122098271fdd345b58041ae1c040d6e5d382ad445f6ce9144e20eaf9ec9c1db6d67564736f6c63430008140033",
}

InterchainEntryLibMetaData contains all meta data concerning the InterchainEntryLib contract.

View Source
var TypeCastsABI = TypeCastsMetaData.ABI

TypeCastsABI is the input ABI used to generate the binding from. Deprecated: Use TypeCastsMetaData.ABI instead.

View Source
var TypeCastsBin = TypeCastsMetaData.Bin

TypeCastsBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TypeCastsMetaData.Bin instead.

View Source
var TypeCastsMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206c2f4ee2f817b12a956ddbbacee5b48b183f66551849796f80a2550a02e6507c64736f6c63430008140033",
}

TypeCastsMetaData contains all meta data concerning the TypeCasts contract.

Functions

This section is empty.

Types

type IInterchainDB

type IInterchainDB struct {
	IInterchainDBCaller     // Read-only binding to the contract
	IInterchainDBTransactor // Write-only binding to the contract
	IInterchainDBFilterer   // Log filterer for contract events
}

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

func NewIInterchainDB

func NewIInterchainDB(address common.Address, backend bind.ContractBackend) (*IInterchainDB, error)

NewIInterchainDB creates a new instance of IInterchainDB, bound to a specific deployed contract.

type IInterchainDBCaller

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

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

func NewIInterchainDBCaller

func NewIInterchainDBCaller(address common.Address, caller bind.ContractCaller) (*IInterchainDBCaller, error)

NewIInterchainDBCaller creates a new read-only instance of IInterchainDB, bound to a specific deployed contract.

func (*IInterchainDBCaller) CheckVerification

func (_IInterchainDB *IInterchainDBCaller) CheckVerification(opts *bind.CallOpts, dstModule common.Address, entry InterchainEntry, proof [][32]byte) (*big.Int, error)

CheckVerification is a free data retrieval call binding the contract method 0x67b1f42e.

Solidity: function checkVerification(address dstModule, (uint256,uint256,uint64,bytes32,bytes32) entry, bytes32[] proof) view returns(uint256 moduleVerifiedAt)

func (*IInterchainDBCaller) GetBatch

func (_IInterchainDB *IInterchainDBCaller) GetBatch(opts *bind.CallOpts, dbNonce *big.Int) (InterchainBatch, error)

GetBatch is a free data retrieval call binding the contract method 0x5ac44282.

Solidity: function getBatch(uint256 dbNonce) view returns((uint256,uint256,bytes32))

func (*IInterchainDBCaller) GetBatchLeafs

func (_IInterchainDB *IInterchainDBCaller) GetBatchLeafs(opts *bind.CallOpts, dbNonce *big.Int) ([][32]byte, error)

GetBatchLeafs is a free data retrieval call binding the contract method 0xd63020bb.

Solidity: function getBatchLeafs(uint256 dbNonce) view returns(bytes32[])

func (*IInterchainDBCaller) GetBatchLeafsPaginated

func (_IInterchainDB *IInterchainDBCaller) GetBatchLeafsPaginated(opts *bind.CallOpts, dbNonce *big.Int, start uint64, end uint64) ([][32]byte, error)

GetBatchLeafsPaginated is a free data retrieval call binding the contract method 0x25a1641d.

Solidity: function getBatchLeafsPaginated(uint256 dbNonce, uint64 start, uint64 end) view returns(bytes32[])

func (*IInterchainDBCaller) GetBatchSize

func (_IInterchainDB *IInterchainDBCaller) GetBatchSize(opts *bind.CallOpts, dbNonce *big.Int) (uint64, error)

GetBatchSize is a free data retrieval call binding the contract method 0xb955e9b9.

Solidity: function getBatchSize(uint256 dbNonce) view returns(uint64)

func (*IInterchainDBCaller) GetDBNonce

func (_IInterchainDB *IInterchainDBCaller) GetDBNonce(opts *bind.CallOpts) (*big.Int, error)

GetDBNonce is a free data retrieval call binding the contract method 0xf338140e.

Solidity: function getDBNonce() view returns(uint256)

func (*IInterchainDBCaller) GetEntry

func (_IInterchainDB *IInterchainDBCaller) GetEntry(opts *bind.CallOpts, dbNonce *big.Int, entryIndex uint64) (InterchainEntry, error)

GetEntry is a free data retrieval call binding the contract method 0x1725fd30.

Solidity: function getEntry(uint256 dbNonce, uint64 entryIndex) view returns((uint256,uint256,uint64,bytes32,bytes32))

func (*IInterchainDBCaller) GetEntryProof

func (_IInterchainDB *IInterchainDBCaller) GetEntryProof(opts *bind.CallOpts, dbNonce *big.Int, entryIndex uint64) ([][32]byte, error)

GetEntryProof is a free data retrieval call binding the contract method 0x4f84d040.

Solidity: function getEntryProof(uint256 dbNonce, uint64 entryIndex) view returns(bytes32[] proof)

func (*IInterchainDBCaller) GetInterchainFee

func (_IInterchainDB *IInterchainDBCaller) GetInterchainFee(opts *bind.CallOpts, dstChainId *big.Int, srcModules []common.Address) (*big.Int, error)

GetInterchainFee is a free data retrieval call binding the contract method 0xfc7686ec.

Solidity: function getInterchainFee(uint256 dstChainId, address[] srcModules) view returns(uint256)

func (*IInterchainDBCaller) GetNextEntryIndex

func (_IInterchainDB *IInterchainDBCaller) GetNextEntryIndex(opts *bind.CallOpts) (struct {
	DbNonce    *big.Int
	EntryIndex uint64
}, error)

GetNextEntryIndex is a free data retrieval call binding the contract method 0xaa2f06ae.

Solidity: function getNextEntryIndex() view returns(uint256 dbNonce, uint64 entryIndex)

type IInterchainDBCallerRaw

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

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

func (*IInterchainDBCallerRaw) Call

func (_IInterchainDB *IInterchainDBCallerRaw) 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 IInterchainDBCallerSession

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

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

func (*IInterchainDBCallerSession) CheckVerification

func (_IInterchainDB *IInterchainDBCallerSession) CheckVerification(dstModule common.Address, entry InterchainEntry, proof [][32]byte) (*big.Int, error)

CheckVerification is a free data retrieval call binding the contract method 0x67b1f42e.

Solidity: function checkVerification(address dstModule, (uint256,uint256,uint64,bytes32,bytes32) entry, bytes32[] proof) view returns(uint256 moduleVerifiedAt)

func (*IInterchainDBCallerSession) GetBatch

func (_IInterchainDB *IInterchainDBCallerSession) GetBatch(dbNonce *big.Int) (InterchainBatch, error)

GetBatch is a free data retrieval call binding the contract method 0x5ac44282.

Solidity: function getBatch(uint256 dbNonce) view returns((uint256,uint256,bytes32))

func (*IInterchainDBCallerSession) GetBatchLeafs

func (_IInterchainDB *IInterchainDBCallerSession) GetBatchLeafs(dbNonce *big.Int) ([][32]byte, error)

GetBatchLeafs is a free data retrieval call binding the contract method 0xd63020bb.

Solidity: function getBatchLeafs(uint256 dbNonce) view returns(bytes32[])

func (*IInterchainDBCallerSession) GetBatchLeafsPaginated

func (_IInterchainDB *IInterchainDBCallerSession) GetBatchLeafsPaginated(dbNonce *big.Int, start uint64, end uint64) ([][32]byte, error)

GetBatchLeafsPaginated is a free data retrieval call binding the contract method 0x25a1641d.

Solidity: function getBatchLeafsPaginated(uint256 dbNonce, uint64 start, uint64 end) view returns(bytes32[])

func (*IInterchainDBCallerSession) GetBatchSize

func (_IInterchainDB *IInterchainDBCallerSession) GetBatchSize(dbNonce *big.Int) (uint64, error)

GetBatchSize is a free data retrieval call binding the contract method 0xb955e9b9.

Solidity: function getBatchSize(uint256 dbNonce) view returns(uint64)

func (*IInterchainDBCallerSession) GetDBNonce

func (_IInterchainDB *IInterchainDBCallerSession) GetDBNonce() (*big.Int, error)

GetDBNonce is a free data retrieval call binding the contract method 0xf338140e.

Solidity: function getDBNonce() view returns(uint256)

func (*IInterchainDBCallerSession) GetEntry

func (_IInterchainDB *IInterchainDBCallerSession) GetEntry(dbNonce *big.Int, entryIndex uint64) (InterchainEntry, error)

GetEntry is a free data retrieval call binding the contract method 0x1725fd30.

Solidity: function getEntry(uint256 dbNonce, uint64 entryIndex) view returns((uint256,uint256,uint64,bytes32,bytes32))

func (*IInterchainDBCallerSession) GetEntryProof

func (_IInterchainDB *IInterchainDBCallerSession) GetEntryProof(dbNonce *big.Int, entryIndex uint64) ([][32]byte, error)

GetEntryProof is a free data retrieval call binding the contract method 0x4f84d040.

Solidity: function getEntryProof(uint256 dbNonce, uint64 entryIndex) view returns(bytes32[] proof)

func (*IInterchainDBCallerSession) GetInterchainFee

func (_IInterchainDB *IInterchainDBCallerSession) GetInterchainFee(dstChainId *big.Int, srcModules []common.Address) (*big.Int, error)

GetInterchainFee is a free data retrieval call binding the contract method 0xfc7686ec.

Solidity: function getInterchainFee(uint256 dstChainId, address[] srcModules) view returns(uint256)

func (*IInterchainDBCallerSession) GetNextEntryIndex

func (_IInterchainDB *IInterchainDBCallerSession) GetNextEntryIndex() (struct {
	DbNonce    *big.Int
	EntryIndex uint64
}, error)

GetNextEntryIndex is a free data retrieval call binding the contract method 0xaa2f06ae.

Solidity: function getNextEntryIndex() view returns(uint256 dbNonce, uint64 entryIndex)

type IInterchainDBFilterer

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

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

func NewIInterchainDBFilterer

func NewIInterchainDBFilterer(address common.Address, filterer bind.ContractFilterer) (*IInterchainDBFilterer, error)

NewIInterchainDBFilterer creates a new log filterer instance of IInterchainDB, bound to a specific deployed contract.

type IInterchainDBRaw

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

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

func (*IInterchainDBRaw) Call

func (_IInterchainDB *IInterchainDBRaw) 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 (*IInterchainDBRaw) Transact

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

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

func (*IInterchainDBRaw) Transfer

func (_IInterchainDB *IInterchainDBRaw) 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 IInterchainDBSession

type IInterchainDBSession struct {
	Contract     *IInterchainDB    // 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
}

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

func (*IInterchainDBSession) CheckVerification

func (_IInterchainDB *IInterchainDBSession) CheckVerification(dstModule common.Address, entry InterchainEntry, proof [][32]byte) (*big.Int, error)

CheckVerification is a free data retrieval call binding the contract method 0x67b1f42e.

Solidity: function checkVerification(address dstModule, (uint256,uint256,uint64,bytes32,bytes32) entry, bytes32[] proof) view returns(uint256 moduleVerifiedAt)

func (*IInterchainDBSession) GetBatch

func (_IInterchainDB *IInterchainDBSession) GetBatch(dbNonce *big.Int) (InterchainBatch, error)

GetBatch is a free data retrieval call binding the contract method 0x5ac44282.

Solidity: function getBatch(uint256 dbNonce) view returns((uint256,uint256,bytes32))

func (*IInterchainDBSession) GetBatchLeafs

func (_IInterchainDB *IInterchainDBSession) GetBatchLeafs(dbNonce *big.Int) ([][32]byte, error)

GetBatchLeafs is a free data retrieval call binding the contract method 0xd63020bb.

Solidity: function getBatchLeafs(uint256 dbNonce) view returns(bytes32[])

func (*IInterchainDBSession) GetBatchLeafsPaginated

func (_IInterchainDB *IInterchainDBSession) GetBatchLeafsPaginated(dbNonce *big.Int, start uint64, end uint64) ([][32]byte, error)

GetBatchLeafsPaginated is a free data retrieval call binding the contract method 0x25a1641d.

Solidity: function getBatchLeafsPaginated(uint256 dbNonce, uint64 start, uint64 end) view returns(bytes32[])

func (*IInterchainDBSession) GetBatchSize

func (_IInterchainDB *IInterchainDBSession) GetBatchSize(dbNonce *big.Int) (uint64, error)

GetBatchSize is a free data retrieval call binding the contract method 0xb955e9b9.

Solidity: function getBatchSize(uint256 dbNonce) view returns(uint64)

func (*IInterchainDBSession) GetDBNonce

func (_IInterchainDB *IInterchainDBSession) GetDBNonce() (*big.Int, error)

GetDBNonce is a free data retrieval call binding the contract method 0xf338140e.

Solidity: function getDBNonce() view returns(uint256)

func (*IInterchainDBSession) GetEntry

func (_IInterchainDB *IInterchainDBSession) GetEntry(dbNonce *big.Int, entryIndex uint64) (InterchainEntry, error)

GetEntry is a free data retrieval call binding the contract method 0x1725fd30.

Solidity: function getEntry(uint256 dbNonce, uint64 entryIndex) view returns((uint256,uint256,uint64,bytes32,bytes32))

func (*IInterchainDBSession) GetEntryProof

func (_IInterchainDB *IInterchainDBSession) GetEntryProof(dbNonce *big.Int, entryIndex uint64) ([][32]byte, error)

GetEntryProof is a free data retrieval call binding the contract method 0x4f84d040.

Solidity: function getEntryProof(uint256 dbNonce, uint64 entryIndex) view returns(bytes32[] proof)

func (*IInterchainDBSession) GetInterchainFee

func (_IInterchainDB *IInterchainDBSession) GetInterchainFee(dstChainId *big.Int, srcModules []common.Address) (*big.Int, error)

GetInterchainFee is a free data retrieval call binding the contract method 0xfc7686ec.

Solidity: function getInterchainFee(uint256 dstChainId, address[] srcModules) view returns(uint256)

func (*IInterchainDBSession) GetNextEntryIndex

func (_IInterchainDB *IInterchainDBSession) GetNextEntryIndex() (struct {
	DbNonce    *big.Int
	EntryIndex uint64
}, error)

GetNextEntryIndex is a free data retrieval call binding the contract method 0xaa2f06ae.

Solidity: function getNextEntryIndex() view returns(uint256 dbNonce, uint64 entryIndex)

func (*IInterchainDBSession) RequestBatchVerification

func (_IInterchainDB *IInterchainDBSession) RequestBatchVerification(dstChainId *big.Int, dbNonce *big.Int, srcModules []common.Address) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x84b1c8b8.

Solidity: function requestBatchVerification(uint256 dstChainId, uint256 dbNonce, address[] srcModules) payable returns()

func (*IInterchainDBSession) VerifyRemoteBatch

func (_IInterchainDB *IInterchainDBSession) VerifyRemoteBatch(batch InterchainBatch) (*types.Transaction, error)

VerifyRemoteBatch is a paid mutator transaction binding the contract method 0x05d0728c.

Solidity: function verifyRemoteBatch((uint256,uint256,bytes32) batch) returns()

func (*IInterchainDBSession) WriteEntry

func (_IInterchainDB *IInterchainDBSession) WriteEntry(dataHash [32]byte) (*types.Transaction, error)

WriteEntry is a paid mutator transaction binding the contract method 0x2ad8c706.

Solidity: function writeEntry(bytes32 dataHash) returns(uint256 dbNonce, uint64 entryIndex)

func (*IInterchainDBSession) WriteEntryWithVerification

func (_IInterchainDB *IInterchainDBSession) WriteEntryWithVerification(dstChainId *big.Int, dataHash [32]byte, srcModules []common.Address) (*types.Transaction, error)

WriteEntryWithVerification is a paid mutator transaction binding the contract method 0x67c769af.

Solidity: function writeEntryWithVerification(uint256 dstChainId, bytes32 dataHash, address[] srcModules) payable returns(uint256 dbNonce, uint64 entryIndex)

type IInterchainDBTransactor

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

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

func NewIInterchainDBTransactor

func NewIInterchainDBTransactor(address common.Address, transactor bind.ContractTransactor) (*IInterchainDBTransactor, error)

NewIInterchainDBTransactor creates a new write-only instance of IInterchainDB, bound to a specific deployed contract.

func (*IInterchainDBTransactor) RequestBatchVerification

func (_IInterchainDB *IInterchainDBTransactor) RequestBatchVerification(opts *bind.TransactOpts, dstChainId *big.Int, dbNonce *big.Int, srcModules []common.Address) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x84b1c8b8.

Solidity: function requestBatchVerification(uint256 dstChainId, uint256 dbNonce, address[] srcModules) payable returns()

func (*IInterchainDBTransactor) VerifyRemoteBatch

func (_IInterchainDB *IInterchainDBTransactor) VerifyRemoteBatch(opts *bind.TransactOpts, batch InterchainBatch) (*types.Transaction, error)

VerifyRemoteBatch is a paid mutator transaction binding the contract method 0x05d0728c.

Solidity: function verifyRemoteBatch((uint256,uint256,bytes32) batch) returns()

func (*IInterchainDBTransactor) WriteEntry

func (_IInterchainDB *IInterchainDBTransactor) WriteEntry(opts *bind.TransactOpts, dataHash [32]byte) (*types.Transaction, error)

WriteEntry is a paid mutator transaction binding the contract method 0x2ad8c706.

Solidity: function writeEntry(bytes32 dataHash) returns(uint256 dbNonce, uint64 entryIndex)

func (*IInterchainDBTransactor) WriteEntryWithVerification

func (_IInterchainDB *IInterchainDBTransactor) WriteEntryWithVerification(opts *bind.TransactOpts, dstChainId *big.Int, dataHash [32]byte, srcModules []common.Address) (*types.Transaction, error)

WriteEntryWithVerification is a paid mutator transaction binding the contract method 0x67c769af.

Solidity: function writeEntryWithVerification(uint256 dstChainId, bytes32 dataHash, address[] srcModules) payable returns(uint256 dbNonce, uint64 entryIndex)

type IInterchainDBTransactorRaw

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

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

func (*IInterchainDBTransactorRaw) Transact

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

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

func (*IInterchainDBTransactorRaw) Transfer

func (_IInterchainDB *IInterchainDBTransactorRaw) 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 IInterchainDBTransactorSession

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

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

func (*IInterchainDBTransactorSession) RequestBatchVerification

func (_IInterchainDB *IInterchainDBTransactorSession) RequestBatchVerification(dstChainId *big.Int, dbNonce *big.Int, srcModules []common.Address) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x84b1c8b8.

Solidity: function requestBatchVerification(uint256 dstChainId, uint256 dbNonce, address[] srcModules) payable returns()

func (*IInterchainDBTransactorSession) VerifyRemoteBatch

func (_IInterchainDB *IInterchainDBTransactorSession) VerifyRemoteBatch(batch InterchainBatch) (*types.Transaction, error)

VerifyRemoteBatch is a paid mutator transaction binding the contract method 0x05d0728c.

Solidity: function verifyRemoteBatch((uint256,uint256,bytes32) batch) returns()

func (*IInterchainDBTransactorSession) WriteEntry

func (_IInterchainDB *IInterchainDBTransactorSession) WriteEntry(dataHash [32]byte) (*types.Transaction, error)

WriteEntry is a paid mutator transaction binding the contract method 0x2ad8c706.

Solidity: function writeEntry(bytes32 dataHash) returns(uint256 dbNonce, uint64 entryIndex)

func (*IInterchainDBTransactorSession) WriteEntryWithVerification

func (_IInterchainDB *IInterchainDBTransactorSession) WriteEntryWithVerification(dstChainId *big.Int, dataHash [32]byte, srcModules []common.Address) (*types.Transaction, error)

WriteEntryWithVerification is a paid mutator transaction binding the contract method 0x67c769af.

Solidity: function writeEntryWithVerification(uint256 dstChainId, bytes32 dataHash, address[] srcModules) payable returns(uint256 dbNonce, uint64 entryIndex)

type IInterchainModule

type IInterchainModule struct {
	IInterchainModuleCaller     // Read-only binding to the contract
	IInterchainModuleTransactor // Write-only binding to the contract
	IInterchainModuleFilterer   // Log filterer for contract events
}

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

func NewIInterchainModule

func NewIInterchainModule(address common.Address, backend bind.ContractBackend) (*IInterchainModule, error)

NewIInterchainModule creates a new instance of IInterchainModule, bound to a specific deployed contract.

type IInterchainModuleCaller

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

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

func NewIInterchainModuleCaller

func NewIInterchainModuleCaller(address common.Address, caller bind.ContractCaller) (*IInterchainModuleCaller, error)

NewIInterchainModuleCaller creates a new read-only instance of IInterchainModule, bound to a specific deployed contract.

func (*IInterchainModuleCaller) GetModuleFee

func (_IInterchainModule *IInterchainModuleCaller) GetModuleFee(opts *bind.CallOpts, dstChainId *big.Int, dbNonce *big.Int) (*big.Int, error)

GetModuleFee is a free data retrieval call binding the contract method 0x4a114f72.

Solidity: function getModuleFee(uint256 dstChainId, uint256 dbNonce) view returns(uint256)

type IInterchainModuleCallerRaw

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

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

func (*IInterchainModuleCallerRaw) Call

func (_IInterchainModule *IInterchainModuleCallerRaw) 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 IInterchainModuleCallerSession

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

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

func (*IInterchainModuleCallerSession) GetModuleFee

func (_IInterchainModule *IInterchainModuleCallerSession) GetModuleFee(dstChainId *big.Int, dbNonce *big.Int) (*big.Int, error)

GetModuleFee is a free data retrieval call binding the contract method 0x4a114f72.

Solidity: function getModuleFee(uint256 dstChainId, uint256 dbNonce) view returns(uint256)

type IInterchainModuleFilterer

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

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

func NewIInterchainModuleFilterer

func NewIInterchainModuleFilterer(address common.Address, filterer bind.ContractFilterer) (*IInterchainModuleFilterer, error)

NewIInterchainModuleFilterer creates a new log filterer instance of IInterchainModule, bound to a specific deployed contract.

type IInterchainModuleRaw

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

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

func (*IInterchainModuleRaw) Call

func (_IInterchainModule *IInterchainModuleRaw) 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 (*IInterchainModuleRaw) Transact

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

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

func (*IInterchainModuleRaw) Transfer

func (_IInterchainModule *IInterchainModuleRaw) 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 IInterchainModuleSession

type IInterchainModuleSession struct {
	Contract     *IInterchainModule // 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
}

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

func (*IInterchainModuleSession) GetModuleFee

func (_IInterchainModule *IInterchainModuleSession) GetModuleFee(dstChainId *big.Int, dbNonce *big.Int) (*big.Int, error)

GetModuleFee is a free data retrieval call binding the contract method 0x4a114f72.

Solidity: function getModuleFee(uint256 dstChainId, uint256 dbNonce) view returns(uint256)

func (*IInterchainModuleSession) RequestBatchVerification

func (_IInterchainModule *IInterchainModuleSession) RequestBatchVerification(dstChainId *big.Int, batch InterchainBatch) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x3fdcec74.

Solidity: function requestBatchVerification(uint256 dstChainId, (uint256,uint256,bytes32) batch) payable returns()

type IInterchainModuleTransactor

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

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

func NewIInterchainModuleTransactor

func NewIInterchainModuleTransactor(address common.Address, transactor bind.ContractTransactor) (*IInterchainModuleTransactor, error)

NewIInterchainModuleTransactor creates a new write-only instance of IInterchainModule, bound to a specific deployed contract.

func (*IInterchainModuleTransactor) RequestBatchVerification

func (_IInterchainModule *IInterchainModuleTransactor) RequestBatchVerification(opts *bind.TransactOpts, dstChainId *big.Int, batch InterchainBatch) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x3fdcec74.

Solidity: function requestBatchVerification(uint256 dstChainId, (uint256,uint256,bytes32) batch) payable returns()

type IInterchainModuleTransactorRaw

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

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

func (*IInterchainModuleTransactorRaw) Transact

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

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

func (*IInterchainModuleTransactorRaw) Transfer

func (_IInterchainModule *IInterchainModuleTransactorRaw) 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 IInterchainModuleTransactorSession

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

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

func (*IInterchainModuleTransactorSession) RequestBatchVerification

func (_IInterchainModule *IInterchainModuleTransactorSession) RequestBatchVerification(dstChainId *big.Int, batch InterchainBatch) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x3fdcec74.

Solidity: function requestBatchVerification(uint256 dstChainId, (uint256,uint256,bytes32) batch) payable returns()

type InterchainBatch

type InterchainBatch struct {
	SrcChainId *big.Int
	DbNonce    *big.Int
	BatchRoot  [32]byte
}

InterchainBatch is an auto generated low-level Go binding around an user-defined struct.

type InterchainBatchLib

type InterchainBatchLib struct {
	InterchainBatchLibCaller     // Read-only binding to the contract
	InterchainBatchLibTransactor // Write-only binding to the contract
	InterchainBatchLibFilterer   // Log filterer for contract events
}

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

func DeployInterchainBatchLib

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

DeployInterchainBatchLib deploys a new Ethereum contract, binding an instance of InterchainBatchLib to it.

func NewInterchainBatchLib

func NewInterchainBatchLib(address common.Address, backend bind.ContractBackend) (*InterchainBatchLib, error)

NewInterchainBatchLib creates a new instance of InterchainBatchLib, bound to a specific deployed contract.

type InterchainBatchLibCaller

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

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

func NewInterchainBatchLibCaller

func NewInterchainBatchLibCaller(address common.Address, caller bind.ContractCaller) (*InterchainBatchLibCaller, error)

NewInterchainBatchLibCaller creates a new read-only instance of InterchainBatchLib, bound to a specific deployed contract.

type InterchainBatchLibCallerRaw

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

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

func (*InterchainBatchLibCallerRaw) Call

func (_InterchainBatchLib *InterchainBatchLibCallerRaw) 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 InterchainBatchLibCallerSession

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

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

type InterchainBatchLibFilterer

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

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

func NewInterchainBatchLibFilterer

func NewInterchainBatchLibFilterer(address common.Address, filterer bind.ContractFilterer) (*InterchainBatchLibFilterer, error)

NewInterchainBatchLibFilterer creates a new log filterer instance of InterchainBatchLib, bound to a specific deployed contract.

type InterchainBatchLibRaw

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

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

func (*InterchainBatchLibRaw) Call

func (_InterchainBatchLib *InterchainBatchLibRaw) 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 (*InterchainBatchLibRaw) Transact

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

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

func (*InterchainBatchLibRaw) Transfer

func (_InterchainBatchLib *InterchainBatchLibRaw) 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 InterchainBatchLibSession

type InterchainBatchLibSession struct {
	Contract     *InterchainBatchLib // 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
}

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

type InterchainBatchLibTransactor

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

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

func NewInterchainBatchLibTransactor

func NewInterchainBatchLibTransactor(address common.Address, transactor bind.ContractTransactor) (*InterchainBatchLibTransactor, error)

NewInterchainBatchLibTransactor creates a new write-only instance of InterchainBatchLib, bound to a specific deployed contract.

type InterchainBatchLibTransactorRaw

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

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

func (*InterchainBatchLibTransactorRaw) Transact

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

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

func (*InterchainBatchLibTransactorRaw) Transfer

func (_InterchainBatchLib *InterchainBatchLibTransactorRaw) 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 InterchainBatchLibTransactorSession

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

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

type InterchainDB

type InterchainDB struct {
	InterchainDBCaller     // Read-only binding to the contract
	InterchainDBTransactor // Write-only binding to the contract
	InterchainDBFilterer   // Log filterer for contract events
}

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

func DeployInterchainDB

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

DeployInterchainDB deploys a new Ethereum contract, binding an instance of InterchainDB to it.

func NewInterchainDB

func NewInterchainDB(address common.Address, backend bind.ContractBackend) (*InterchainDB, error)

NewInterchainDB creates a new instance of InterchainDB, bound to a specific deployed contract.

type InterchainDBCaller

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

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

func NewInterchainDBCaller

func NewInterchainDBCaller(address common.Address, caller bind.ContractCaller) (*InterchainDBCaller, error)

NewInterchainDBCaller creates a new read-only instance of InterchainDB, bound to a specific deployed contract.

func (*InterchainDBCaller) CheckVerification

func (_InterchainDB *InterchainDBCaller) CheckVerification(opts *bind.CallOpts, dstModule common.Address, entry InterchainEntry, proof [][32]byte) (*big.Int, error)

CheckVerification is a free data retrieval call binding the contract method 0x67b1f42e.

Solidity: function checkVerification(address dstModule, (uint256,uint256,uint64,bytes32,bytes32) entry, bytes32[] proof) view returns(uint256 moduleVerifiedAt)

func (*InterchainDBCaller) GetBatch

func (_InterchainDB *InterchainDBCaller) GetBatch(opts *bind.CallOpts, dbNonce *big.Int) (InterchainBatch, error)

GetBatch is a free data retrieval call binding the contract method 0x5ac44282.

Solidity: function getBatch(uint256 dbNonce) view returns((uint256,uint256,bytes32))

func (*InterchainDBCaller) GetBatchLeafs

func (_InterchainDB *InterchainDBCaller) GetBatchLeafs(opts *bind.CallOpts, dbNonce *big.Int) ([][32]byte, error)

GetBatchLeafs is a free data retrieval call binding the contract method 0xd63020bb.

Solidity: function getBatchLeafs(uint256 dbNonce) view returns(bytes32[] leafs)

func (*InterchainDBCaller) GetBatchLeafsPaginated

func (_InterchainDB *InterchainDBCaller) GetBatchLeafsPaginated(opts *bind.CallOpts, dbNonce *big.Int, start uint64, end uint64) ([][32]byte, error)

GetBatchLeafsPaginated is a free data retrieval call binding the contract method 0x25a1641d.

Solidity: function getBatchLeafsPaginated(uint256 dbNonce, uint64 start, uint64 end) view returns(bytes32[] leafs)

func (*InterchainDBCaller) GetBatchSize

func (_InterchainDB *InterchainDBCaller) GetBatchSize(opts *bind.CallOpts, dbNonce *big.Int) (uint64, error)

GetBatchSize is a free data retrieval call binding the contract method 0xb955e9b9.

Solidity: function getBatchSize(uint256 dbNonce) view returns(uint64)

func (*InterchainDBCaller) GetDBNonce

func (_InterchainDB *InterchainDBCaller) GetDBNonce(opts *bind.CallOpts) (*big.Int, error)

GetDBNonce is a free data retrieval call binding the contract method 0xf338140e.

Solidity: function getDBNonce() view returns(uint256)

func (*InterchainDBCaller) GetEntry

func (_InterchainDB *InterchainDBCaller) GetEntry(opts *bind.CallOpts, dbNonce *big.Int, entryIndex uint64) (InterchainEntry, error)

GetEntry is a free data retrieval call binding the contract method 0x1725fd30.

Solidity: function getEntry(uint256 dbNonce, uint64 entryIndex) view returns((uint256,uint256,uint64,bytes32,bytes32))

func (*InterchainDBCaller) GetEntryProof

func (_InterchainDB *InterchainDBCaller) GetEntryProof(opts *bind.CallOpts, dbNonce *big.Int, entryIndex uint64) ([][32]byte, error)

GetEntryProof is a free data retrieval call binding the contract method 0x4f84d040.

Solidity: function getEntryProof(uint256 dbNonce, uint64 entryIndex) view returns(bytes32[] proof)

func (*InterchainDBCaller) GetInterchainFee

func (_InterchainDB *InterchainDBCaller) GetInterchainFee(opts *bind.CallOpts, dstChainId *big.Int, srcModules []common.Address) (*big.Int, error)

GetInterchainFee is a free data retrieval call binding the contract method 0xfc7686ec.

Solidity: function getInterchainFee(uint256 dstChainId, address[] srcModules) view returns(uint256 fee)

func (*InterchainDBCaller) GetNextEntryIndex

func (_InterchainDB *InterchainDBCaller) GetNextEntryIndex(opts *bind.CallOpts) (struct {
	DbNonce    *big.Int
	EntryIndex uint64
}, error)

GetNextEntryIndex is a free data retrieval call binding the contract method 0xaa2f06ae.

Solidity: function getNextEntryIndex() view returns(uint256 dbNonce, uint64 entryIndex)

type InterchainDBCallerRaw

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

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

func (*InterchainDBCallerRaw) Call

func (_InterchainDB *InterchainDBCallerRaw) 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 InterchainDBCallerSession

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

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

func (*InterchainDBCallerSession) CheckVerification

func (_InterchainDB *InterchainDBCallerSession) CheckVerification(dstModule common.Address, entry InterchainEntry, proof [][32]byte) (*big.Int, error)

CheckVerification is a free data retrieval call binding the contract method 0x67b1f42e.

Solidity: function checkVerification(address dstModule, (uint256,uint256,uint64,bytes32,bytes32) entry, bytes32[] proof) view returns(uint256 moduleVerifiedAt)

func (*InterchainDBCallerSession) GetBatch

func (_InterchainDB *InterchainDBCallerSession) GetBatch(dbNonce *big.Int) (InterchainBatch, error)

GetBatch is a free data retrieval call binding the contract method 0x5ac44282.

Solidity: function getBatch(uint256 dbNonce) view returns((uint256,uint256,bytes32))

func (*InterchainDBCallerSession) GetBatchLeafs

func (_InterchainDB *InterchainDBCallerSession) GetBatchLeafs(dbNonce *big.Int) ([][32]byte, error)

GetBatchLeafs is a free data retrieval call binding the contract method 0xd63020bb.

Solidity: function getBatchLeafs(uint256 dbNonce) view returns(bytes32[] leafs)

func (*InterchainDBCallerSession) GetBatchLeafsPaginated

func (_InterchainDB *InterchainDBCallerSession) GetBatchLeafsPaginated(dbNonce *big.Int, start uint64, end uint64) ([][32]byte, error)

GetBatchLeafsPaginated is a free data retrieval call binding the contract method 0x25a1641d.

Solidity: function getBatchLeafsPaginated(uint256 dbNonce, uint64 start, uint64 end) view returns(bytes32[] leafs)

func (*InterchainDBCallerSession) GetBatchSize

func (_InterchainDB *InterchainDBCallerSession) GetBatchSize(dbNonce *big.Int) (uint64, error)

GetBatchSize is a free data retrieval call binding the contract method 0xb955e9b9.

Solidity: function getBatchSize(uint256 dbNonce) view returns(uint64)

func (*InterchainDBCallerSession) GetDBNonce

func (_InterchainDB *InterchainDBCallerSession) GetDBNonce() (*big.Int, error)

GetDBNonce is a free data retrieval call binding the contract method 0xf338140e.

Solidity: function getDBNonce() view returns(uint256)

func (*InterchainDBCallerSession) GetEntry

func (_InterchainDB *InterchainDBCallerSession) GetEntry(dbNonce *big.Int, entryIndex uint64) (InterchainEntry, error)

GetEntry is a free data retrieval call binding the contract method 0x1725fd30.

Solidity: function getEntry(uint256 dbNonce, uint64 entryIndex) view returns((uint256,uint256,uint64,bytes32,bytes32))

func (*InterchainDBCallerSession) GetEntryProof

func (_InterchainDB *InterchainDBCallerSession) GetEntryProof(dbNonce *big.Int, entryIndex uint64) ([][32]byte, error)

GetEntryProof is a free data retrieval call binding the contract method 0x4f84d040.

Solidity: function getEntryProof(uint256 dbNonce, uint64 entryIndex) view returns(bytes32[] proof)

func (*InterchainDBCallerSession) GetInterchainFee

func (_InterchainDB *InterchainDBCallerSession) GetInterchainFee(dstChainId *big.Int, srcModules []common.Address) (*big.Int, error)

GetInterchainFee is a free data retrieval call binding the contract method 0xfc7686ec.

Solidity: function getInterchainFee(uint256 dstChainId, address[] srcModules) view returns(uint256 fee)

func (*InterchainDBCallerSession) GetNextEntryIndex

func (_InterchainDB *InterchainDBCallerSession) GetNextEntryIndex() (struct {
	DbNonce    *big.Int
	EntryIndex uint64
}, error)

GetNextEntryIndex is a free data retrieval call binding the contract method 0xaa2f06ae.

Solidity: function getNextEntryIndex() view returns(uint256 dbNonce, uint64 entryIndex)

type InterchainDBEvents

type InterchainDBEvents struct {
	InterchainDBEventsCaller     // Read-only binding to the contract
	InterchainDBEventsTransactor // Write-only binding to the contract
	InterchainDBEventsFilterer   // Log filterer for contract events
}

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

func NewInterchainDBEvents

func NewInterchainDBEvents(address common.Address, backend bind.ContractBackend) (*InterchainDBEvents, error)

NewInterchainDBEvents creates a new instance of InterchainDBEvents, bound to a specific deployed contract.

type InterchainDBEventsCaller

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

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

func NewInterchainDBEventsCaller

func NewInterchainDBEventsCaller(address common.Address, caller bind.ContractCaller) (*InterchainDBEventsCaller, error)

NewInterchainDBEventsCaller creates a new read-only instance of InterchainDBEvents, bound to a specific deployed contract.

type InterchainDBEventsCallerRaw

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

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

func (*InterchainDBEventsCallerRaw) Call

func (_InterchainDBEvents *InterchainDBEventsCallerRaw) 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 InterchainDBEventsCallerSession

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

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

type InterchainDBEventsFilterer

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

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

func NewInterchainDBEventsFilterer

func NewInterchainDBEventsFilterer(address common.Address, filterer bind.ContractFilterer) (*InterchainDBEventsFilterer, error)

NewInterchainDBEventsFilterer creates a new log filterer instance of InterchainDBEvents, bound to a specific deployed contract.

func (*InterchainDBEventsFilterer) FilterInterchainBatchVerificationRequested

func (_InterchainDBEvents *InterchainDBEventsFilterer) FilterInterchainBatchVerificationRequested(opts *bind.FilterOpts) (*InterchainDBEventsInterchainBatchVerificationRequestedIterator, error)

FilterInterchainBatchVerificationRequested is a free log retrieval operation binding the contract event 0x9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde7717.

Solidity: event InterchainBatchVerificationRequested(uint256 dstChainId, uint256 dbNonce, bytes32 batchRoot, address[] srcModules)

func (*InterchainDBEventsFilterer) FilterInterchainBatchVerified

func (_InterchainDBEvents *InterchainDBEventsFilterer) FilterInterchainBatchVerified(opts *bind.FilterOpts) (*InterchainDBEventsInterchainBatchVerifiedIterator, error)

FilterInterchainBatchVerified is a free log retrieval operation binding the contract event 0xbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c.

Solidity: event InterchainBatchVerified(address module, uint256 srcChainId, uint256 dbNonce, bytes32 batchRoot)

func (*InterchainDBEventsFilterer) FilterInterchainEntryWritten

func (_InterchainDBEvents *InterchainDBEventsFilterer) FilterInterchainEntryWritten(opts *bind.FilterOpts) (*InterchainDBEventsInterchainEntryWrittenIterator, error)

FilterInterchainEntryWritten is a free log retrieval operation binding the contract event 0x8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa41771.

Solidity: event InterchainEntryWritten(uint256 srcChainId, uint256 dbNonce, bytes32 srcWriter, bytes32 dataHash)

func (*InterchainDBEventsFilterer) ParseInterchainBatchVerificationRequested

func (_InterchainDBEvents *InterchainDBEventsFilterer) ParseInterchainBatchVerificationRequested(log types.Log) (*InterchainDBEventsInterchainBatchVerificationRequested, error)

ParseInterchainBatchVerificationRequested is a log parse operation binding the contract event 0x9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde7717.

Solidity: event InterchainBatchVerificationRequested(uint256 dstChainId, uint256 dbNonce, bytes32 batchRoot, address[] srcModules)

func (*InterchainDBEventsFilterer) ParseInterchainBatchVerified

func (_InterchainDBEvents *InterchainDBEventsFilterer) ParseInterchainBatchVerified(log types.Log) (*InterchainDBEventsInterchainBatchVerified, error)

ParseInterchainBatchVerified is a log parse operation binding the contract event 0xbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c.

Solidity: event InterchainBatchVerified(address module, uint256 srcChainId, uint256 dbNonce, bytes32 batchRoot)

func (*InterchainDBEventsFilterer) ParseInterchainEntryWritten

func (_InterchainDBEvents *InterchainDBEventsFilterer) ParseInterchainEntryWritten(log types.Log) (*InterchainDBEventsInterchainEntryWritten, error)

ParseInterchainEntryWritten is a log parse operation binding the contract event 0x8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa41771.

Solidity: event InterchainEntryWritten(uint256 srcChainId, uint256 dbNonce, bytes32 srcWriter, bytes32 dataHash)

func (*InterchainDBEventsFilterer) WatchInterchainBatchVerificationRequested

func (_InterchainDBEvents *InterchainDBEventsFilterer) WatchInterchainBatchVerificationRequested(opts *bind.WatchOpts, sink chan<- *InterchainDBEventsInterchainBatchVerificationRequested) (event.Subscription, error)

WatchInterchainBatchVerificationRequested is a free log subscription operation binding the contract event 0x9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde7717.

Solidity: event InterchainBatchVerificationRequested(uint256 dstChainId, uint256 dbNonce, bytes32 batchRoot, address[] srcModules)

func (*InterchainDBEventsFilterer) WatchInterchainBatchVerified

func (_InterchainDBEvents *InterchainDBEventsFilterer) WatchInterchainBatchVerified(opts *bind.WatchOpts, sink chan<- *InterchainDBEventsInterchainBatchVerified) (event.Subscription, error)

WatchInterchainBatchVerified is a free log subscription operation binding the contract event 0xbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c.

Solidity: event InterchainBatchVerified(address module, uint256 srcChainId, uint256 dbNonce, bytes32 batchRoot)

func (*InterchainDBEventsFilterer) WatchInterchainEntryWritten

func (_InterchainDBEvents *InterchainDBEventsFilterer) WatchInterchainEntryWritten(opts *bind.WatchOpts, sink chan<- *InterchainDBEventsInterchainEntryWritten) (event.Subscription, error)

WatchInterchainEntryWritten is a free log subscription operation binding the contract event 0x8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa41771.

Solidity: event InterchainEntryWritten(uint256 srcChainId, uint256 dbNonce, bytes32 srcWriter, bytes32 dataHash)

type InterchainDBEventsInterchainBatchVerificationRequested

type InterchainDBEventsInterchainBatchVerificationRequested struct {
	DstChainId *big.Int
	DbNonce    *big.Int
	BatchRoot  [32]byte
	SrcModules []common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

InterchainDBEventsInterchainBatchVerificationRequested represents a InterchainBatchVerificationRequested event raised by the InterchainDBEvents contract.

type InterchainDBEventsInterchainBatchVerificationRequestedIterator

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

InterchainDBEventsInterchainBatchVerificationRequestedIterator is returned from FilterInterchainBatchVerificationRequested and is used to iterate over the raw logs and unpacked data for InterchainBatchVerificationRequested events raised by the InterchainDBEvents contract.

func (*InterchainDBEventsInterchainBatchVerificationRequestedIterator) Close

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

func (*InterchainDBEventsInterchainBatchVerificationRequestedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*InterchainDBEventsInterchainBatchVerificationRequestedIterator) 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 InterchainDBEventsInterchainBatchVerified

type InterchainDBEventsInterchainBatchVerified struct {
	Module     common.Address
	SrcChainId *big.Int
	DbNonce    *big.Int
	BatchRoot  [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

InterchainDBEventsInterchainBatchVerified represents a InterchainBatchVerified event raised by the InterchainDBEvents contract.

type InterchainDBEventsInterchainBatchVerifiedIterator

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

InterchainDBEventsInterchainBatchVerifiedIterator is returned from FilterInterchainBatchVerified and is used to iterate over the raw logs and unpacked data for InterchainBatchVerified events raised by the InterchainDBEvents contract.

func (*InterchainDBEventsInterchainBatchVerifiedIterator) Close

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

func (*InterchainDBEventsInterchainBatchVerifiedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*InterchainDBEventsInterchainBatchVerifiedIterator) 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 InterchainDBEventsInterchainEntryWritten

type InterchainDBEventsInterchainEntryWritten struct {
	SrcChainId *big.Int
	DbNonce    *big.Int
	SrcWriter  [32]byte
	DataHash   [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

InterchainDBEventsInterchainEntryWritten represents a InterchainEntryWritten event raised by the InterchainDBEvents contract.

type InterchainDBEventsInterchainEntryWrittenIterator

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

InterchainDBEventsInterchainEntryWrittenIterator is returned from FilterInterchainEntryWritten and is used to iterate over the raw logs and unpacked data for InterchainEntryWritten events raised by the InterchainDBEvents contract.

func (*InterchainDBEventsInterchainEntryWrittenIterator) Close

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

func (*InterchainDBEventsInterchainEntryWrittenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*InterchainDBEventsInterchainEntryWrittenIterator) 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 InterchainDBEventsRaw

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

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

func (*InterchainDBEventsRaw) Call

func (_InterchainDBEvents *InterchainDBEventsRaw) 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 (*InterchainDBEventsRaw) Transact

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

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

func (*InterchainDBEventsRaw) Transfer

func (_InterchainDBEvents *InterchainDBEventsRaw) 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 InterchainDBEventsSession

type InterchainDBEventsSession struct {
	Contract     *InterchainDBEvents // 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
}

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

type InterchainDBEventsTransactor

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

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

func NewInterchainDBEventsTransactor

func NewInterchainDBEventsTransactor(address common.Address, transactor bind.ContractTransactor) (*InterchainDBEventsTransactor, error)

NewInterchainDBEventsTransactor creates a new write-only instance of InterchainDBEvents, bound to a specific deployed contract.

type InterchainDBEventsTransactorRaw

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

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

func (*InterchainDBEventsTransactorRaw) Transact

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

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

func (*InterchainDBEventsTransactorRaw) Transfer

func (_InterchainDBEvents *InterchainDBEventsTransactorRaw) 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 InterchainDBEventsTransactorSession

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

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

type InterchainDBFilterer

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

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

func NewInterchainDBFilterer

func NewInterchainDBFilterer(address common.Address, filterer bind.ContractFilterer) (*InterchainDBFilterer, error)

NewInterchainDBFilterer creates a new log filterer instance of InterchainDB, bound to a specific deployed contract.

func (*InterchainDBFilterer) FilterInterchainBatchVerificationRequested

func (_InterchainDB *InterchainDBFilterer) FilterInterchainBatchVerificationRequested(opts *bind.FilterOpts) (*InterchainDBInterchainBatchVerificationRequestedIterator, error)

FilterInterchainBatchVerificationRequested is a free log retrieval operation binding the contract event 0x9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde7717.

Solidity: event InterchainBatchVerificationRequested(uint256 dstChainId, uint256 dbNonce, bytes32 batchRoot, address[] srcModules)

func (*InterchainDBFilterer) FilterInterchainBatchVerified

func (_InterchainDB *InterchainDBFilterer) FilterInterchainBatchVerified(opts *bind.FilterOpts) (*InterchainDBInterchainBatchVerifiedIterator, error)

FilterInterchainBatchVerified is a free log retrieval operation binding the contract event 0xbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c.

Solidity: event InterchainBatchVerified(address module, uint256 srcChainId, uint256 dbNonce, bytes32 batchRoot)

func (*InterchainDBFilterer) FilterInterchainEntryWritten

func (_InterchainDB *InterchainDBFilterer) FilterInterchainEntryWritten(opts *bind.FilterOpts) (*InterchainDBInterchainEntryWrittenIterator, error)

FilterInterchainEntryWritten is a free log retrieval operation binding the contract event 0x8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa41771.

Solidity: event InterchainEntryWritten(uint256 srcChainId, uint256 dbNonce, bytes32 srcWriter, bytes32 dataHash)

func (*InterchainDBFilterer) ParseInterchainBatchVerificationRequested

func (_InterchainDB *InterchainDBFilterer) ParseInterchainBatchVerificationRequested(log types.Log) (*InterchainDBInterchainBatchVerificationRequested, error)

ParseInterchainBatchVerificationRequested is a log parse operation binding the contract event 0x9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde7717.

Solidity: event InterchainBatchVerificationRequested(uint256 dstChainId, uint256 dbNonce, bytes32 batchRoot, address[] srcModules)

func (*InterchainDBFilterer) ParseInterchainBatchVerified

func (_InterchainDB *InterchainDBFilterer) ParseInterchainBatchVerified(log types.Log) (*InterchainDBInterchainBatchVerified, error)

ParseInterchainBatchVerified is a log parse operation binding the contract event 0xbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c.

Solidity: event InterchainBatchVerified(address module, uint256 srcChainId, uint256 dbNonce, bytes32 batchRoot)

func (*InterchainDBFilterer) ParseInterchainEntryWritten

func (_InterchainDB *InterchainDBFilterer) ParseInterchainEntryWritten(log types.Log) (*InterchainDBInterchainEntryWritten, error)

ParseInterchainEntryWritten is a log parse operation binding the contract event 0x8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa41771.

Solidity: event InterchainEntryWritten(uint256 srcChainId, uint256 dbNonce, bytes32 srcWriter, bytes32 dataHash)

func (*InterchainDBFilterer) WatchInterchainBatchVerificationRequested

func (_InterchainDB *InterchainDBFilterer) WatchInterchainBatchVerificationRequested(opts *bind.WatchOpts, sink chan<- *InterchainDBInterchainBatchVerificationRequested) (event.Subscription, error)

WatchInterchainBatchVerificationRequested is a free log subscription operation binding the contract event 0x9f201dd0d5465cd198596655528d58e40b6ee2715d5e8bdab49f7e1b1dde7717.

Solidity: event InterchainBatchVerificationRequested(uint256 dstChainId, uint256 dbNonce, bytes32 batchRoot, address[] srcModules)

func (*InterchainDBFilterer) WatchInterchainBatchVerified

func (_InterchainDB *InterchainDBFilterer) WatchInterchainBatchVerified(opts *bind.WatchOpts, sink chan<- *InterchainDBInterchainBatchVerified) (event.Subscription, error)

WatchInterchainBatchVerified is a free log subscription operation binding the contract event 0xbdb1c58ad0991a7df73dd7d1e0c63ba29dd69af7d09838990eef8127de1a548c.

Solidity: event InterchainBatchVerified(address module, uint256 srcChainId, uint256 dbNonce, bytes32 batchRoot)

func (*InterchainDBFilterer) WatchInterchainEntryWritten

func (_InterchainDB *InterchainDBFilterer) WatchInterchainEntryWritten(opts *bind.WatchOpts, sink chan<- *InterchainDBInterchainEntryWritten) (event.Subscription, error)

WatchInterchainEntryWritten is a free log subscription operation binding the contract event 0x8adbf0953083a65c138963c649cd1eabd31fa900ecd1cd5d6b5b530fbfa41771.

Solidity: event InterchainEntryWritten(uint256 srcChainId, uint256 dbNonce, bytes32 srcWriter, bytes32 dataHash)

type InterchainDBInterchainBatchVerificationRequested

type InterchainDBInterchainBatchVerificationRequested struct {
	DstChainId *big.Int
	DbNonce    *big.Int
	BatchRoot  [32]byte
	SrcModules []common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

InterchainDBInterchainBatchVerificationRequested represents a InterchainBatchVerificationRequested event raised by the InterchainDB contract.

type InterchainDBInterchainBatchVerificationRequestedIterator

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

InterchainDBInterchainBatchVerificationRequestedIterator is returned from FilterInterchainBatchVerificationRequested and is used to iterate over the raw logs and unpacked data for InterchainBatchVerificationRequested events raised by the InterchainDB contract.

func (*InterchainDBInterchainBatchVerificationRequestedIterator) Close

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

func (*InterchainDBInterchainBatchVerificationRequestedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*InterchainDBInterchainBatchVerificationRequestedIterator) 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 InterchainDBInterchainBatchVerified

type InterchainDBInterchainBatchVerified struct {
	Module     common.Address
	SrcChainId *big.Int
	DbNonce    *big.Int
	BatchRoot  [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

InterchainDBInterchainBatchVerified represents a InterchainBatchVerified event raised by the InterchainDB contract.

type InterchainDBInterchainBatchVerifiedIterator

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

InterchainDBInterchainBatchVerifiedIterator is returned from FilterInterchainBatchVerified and is used to iterate over the raw logs and unpacked data for InterchainBatchVerified events raised by the InterchainDB contract.

func (*InterchainDBInterchainBatchVerifiedIterator) Close

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

func (*InterchainDBInterchainBatchVerifiedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*InterchainDBInterchainBatchVerifiedIterator) 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 InterchainDBInterchainEntryWritten

type InterchainDBInterchainEntryWritten struct {
	SrcChainId *big.Int
	DbNonce    *big.Int
	SrcWriter  [32]byte
	DataHash   [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

InterchainDBInterchainEntryWritten represents a InterchainEntryWritten event raised by the InterchainDB contract.

type InterchainDBInterchainEntryWrittenIterator

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

InterchainDBInterchainEntryWrittenIterator is returned from FilterInterchainEntryWritten and is used to iterate over the raw logs and unpacked data for InterchainEntryWritten events raised by the InterchainDB contract.

func (*InterchainDBInterchainEntryWrittenIterator) Close

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

func (*InterchainDBInterchainEntryWrittenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*InterchainDBInterchainEntryWrittenIterator) 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 InterchainDBRaw

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

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

func (*InterchainDBRaw) Call

func (_InterchainDB *InterchainDBRaw) 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 (*InterchainDBRaw) Transact

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

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

func (*InterchainDBRaw) Transfer

func (_InterchainDB *InterchainDBRaw) 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 InterchainDBRef

type InterchainDBRef struct {
	*InterchainDB
	// contains filtered or unexported fields
}

InterchainDBRef is a reference to an interchain db. nolint: golint

func NewInterchainDBRef

func NewInterchainDBRef(address common.Address, backend bind.ContractBackend) (*InterchainDBRef, error)

NewInterchainDBRef creates a new interchain client with a contract ref.

func (*InterchainDBRef) Address

func (i *InterchainDBRef) Address() common.Address

Address is the contract address.

type InterchainDBSession

type InterchainDBSession struct {
	Contract     *InterchainDB     // 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
}

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

func (*InterchainDBSession) CheckVerification

func (_InterchainDB *InterchainDBSession) CheckVerification(dstModule common.Address, entry InterchainEntry, proof [][32]byte) (*big.Int, error)

CheckVerification is a free data retrieval call binding the contract method 0x67b1f42e.

Solidity: function checkVerification(address dstModule, (uint256,uint256,uint64,bytes32,bytes32) entry, bytes32[] proof) view returns(uint256 moduleVerifiedAt)

func (*InterchainDBSession) GetBatch

func (_InterchainDB *InterchainDBSession) GetBatch(dbNonce *big.Int) (InterchainBatch, error)

GetBatch is a free data retrieval call binding the contract method 0x5ac44282.

Solidity: function getBatch(uint256 dbNonce) view returns((uint256,uint256,bytes32))

func (*InterchainDBSession) GetBatchLeafs

func (_InterchainDB *InterchainDBSession) GetBatchLeafs(dbNonce *big.Int) ([][32]byte, error)

GetBatchLeafs is a free data retrieval call binding the contract method 0xd63020bb.

Solidity: function getBatchLeafs(uint256 dbNonce) view returns(bytes32[] leafs)

func (*InterchainDBSession) GetBatchLeafsPaginated

func (_InterchainDB *InterchainDBSession) GetBatchLeafsPaginated(dbNonce *big.Int, start uint64, end uint64) ([][32]byte, error)

GetBatchLeafsPaginated is a free data retrieval call binding the contract method 0x25a1641d.

Solidity: function getBatchLeafsPaginated(uint256 dbNonce, uint64 start, uint64 end) view returns(bytes32[] leafs)

func (*InterchainDBSession) GetBatchSize

func (_InterchainDB *InterchainDBSession) GetBatchSize(dbNonce *big.Int) (uint64, error)

GetBatchSize is a free data retrieval call binding the contract method 0xb955e9b9.

Solidity: function getBatchSize(uint256 dbNonce) view returns(uint64)

func (*InterchainDBSession) GetDBNonce

func (_InterchainDB *InterchainDBSession) GetDBNonce() (*big.Int, error)

GetDBNonce is a free data retrieval call binding the contract method 0xf338140e.

Solidity: function getDBNonce() view returns(uint256)

func (*InterchainDBSession) GetEntry

func (_InterchainDB *InterchainDBSession) GetEntry(dbNonce *big.Int, entryIndex uint64) (InterchainEntry, error)

GetEntry is a free data retrieval call binding the contract method 0x1725fd30.

Solidity: function getEntry(uint256 dbNonce, uint64 entryIndex) view returns((uint256,uint256,uint64,bytes32,bytes32))

func (*InterchainDBSession) GetEntryProof

func (_InterchainDB *InterchainDBSession) GetEntryProof(dbNonce *big.Int, entryIndex uint64) ([][32]byte, error)

GetEntryProof is a free data retrieval call binding the contract method 0x4f84d040.

Solidity: function getEntryProof(uint256 dbNonce, uint64 entryIndex) view returns(bytes32[] proof)

func (*InterchainDBSession) GetInterchainFee

func (_InterchainDB *InterchainDBSession) GetInterchainFee(dstChainId *big.Int, srcModules []common.Address) (*big.Int, error)

GetInterchainFee is a free data retrieval call binding the contract method 0xfc7686ec.

Solidity: function getInterchainFee(uint256 dstChainId, address[] srcModules) view returns(uint256 fee)

func (*InterchainDBSession) GetNextEntryIndex

func (_InterchainDB *InterchainDBSession) GetNextEntryIndex() (struct {
	DbNonce    *big.Int
	EntryIndex uint64
}, error)

GetNextEntryIndex is a free data retrieval call binding the contract method 0xaa2f06ae.

Solidity: function getNextEntryIndex() view returns(uint256 dbNonce, uint64 entryIndex)

func (*InterchainDBSession) RequestBatchVerification

func (_InterchainDB *InterchainDBSession) RequestBatchVerification(dstChainId *big.Int, dbNonce *big.Int, srcModules []common.Address) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x84b1c8b8.

Solidity: function requestBatchVerification(uint256 dstChainId, uint256 dbNonce, address[] srcModules) payable returns()

func (*InterchainDBSession) VerifyRemoteBatch

func (_InterchainDB *InterchainDBSession) VerifyRemoteBatch(batch InterchainBatch) (*types.Transaction, error)

VerifyRemoteBatch is a paid mutator transaction binding the contract method 0x05d0728c.

Solidity: function verifyRemoteBatch((uint256,uint256,bytes32) batch) returns()

func (*InterchainDBSession) WriteEntry

func (_InterchainDB *InterchainDBSession) WriteEntry(dataHash [32]byte) (*types.Transaction, error)

WriteEntry is a paid mutator transaction binding the contract method 0x2ad8c706.

Solidity: function writeEntry(bytes32 dataHash) returns(uint256 dbNonce, uint64 entryIndex)

func (*InterchainDBSession) WriteEntryWithVerification

func (_InterchainDB *InterchainDBSession) WriteEntryWithVerification(dstChainId *big.Int, dataHash [32]byte, srcModules []common.Address) (*types.Transaction, error)

WriteEntryWithVerification is a paid mutator transaction binding the contract method 0x67c769af.

Solidity: function writeEntryWithVerification(uint256 dstChainId, bytes32 dataHash, address[] srcModules) payable returns(uint256 dbNonce, uint64 entryIndex)

type InterchainDBTransactor

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

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

func NewInterchainDBTransactor

func NewInterchainDBTransactor(address common.Address, transactor bind.ContractTransactor) (*InterchainDBTransactor, error)

NewInterchainDBTransactor creates a new write-only instance of InterchainDB, bound to a specific deployed contract.

func (*InterchainDBTransactor) RequestBatchVerification

func (_InterchainDB *InterchainDBTransactor) RequestBatchVerification(opts *bind.TransactOpts, dstChainId *big.Int, dbNonce *big.Int, srcModules []common.Address) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x84b1c8b8.

Solidity: function requestBatchVerification(uint256 dstChainId, uint256 dbNonce, address[] srcModules) payable returns()

func (*InterchainDBTransactor) VerifyRemoteBatch

func (_InterchainDB *InterchainDBTransactor) VerifyRemoteBatch(opts *bind.TransactOpts, batch InterchainBatch) (*types.Transaction, error)

VerifyRemoteBatch is a paid mutator transaction binding the contract method 0x05d0728c.

Solidity: function verifyRemoteBatch((uint256,uint256,bytes32) batch) returns()

func (*InterchainDBTransactor) WriteEntry

func (_InterchainDB *InterchainDBTransactor) WriteEntry(opts *bind.TransactOpts, dataHash [32]byte) (*types.Transaction, error)

WriteEntry is a paid mutator transaction binding the contract method 0x2ad8c706.

Solidity: function writeEntry(bytes32 dataHash) returns(uint256 dbNonce, uint64 entryIndex)

func (*InterchainDBTransactor) WriteEntryWithVerification

func (_InterchainDB *InterchainDBTransactor) WriteEntryWithVerification(opts *bind.TransactOpts, dstChainId *big.Int, dataHash [32]byte, srcModules []common.Address) (*types.Transaction, error)

WriteEntryWithVerification is a paid mutator transaction binding the contract method 0x67c769af.

Solidity: function writeEntryWithVerification(uint256 dstChainId, bytes32 dataHash, address[] srcModules) payable returns(uint256 dbNonce, uint64 entryIndex)

type InterchainDBTransactorRaw

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

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

func (*InterchainDBTransactorRaw) Transact

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

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

func (*InterchainDBTransactorRaw) Transfer

func (_InterchainDB *InterchainDBTransactorRaw) 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 InterchainDBTransactorSession

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

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

func (*InterchainDBTransactorSession) RequestBatchVerification

func (_InterchainDB *InterchainDBTransactorSession) RequestBatchVerification(dstChainId *big.Int, dbNonce *big.Int, srcModules []common.Address) (*types.Transaction, error)

RequestBatchVerification is a paid mutator transaction binding the contract method 0x84b1c8b8.

Solidity: function requestBatchVerification(uint256 dstChainId, uint256 dbNonce, address[] srcModules) payable returns()

func (*InterchainDBTransactorSession) VerifyRemoteBatch

func (_InterchainDB *InterchainDBTransactorSession) VerifyRemoteBatch(batch InterchainBatch) (*types.Transaction, error)

VerifyRemoteBatch is a paid mutator transaction binding the contract method 0x05d0728c.

Solidity: function verifyRemoteBatch((uint256,uint256,bytes32) batch) returns()

func (*InterchainDBTransactorSession) WriteEntry

func (_InterchainDB *InterchainDBTransactorSession) WriteEntry(dataHash [32]byte) (*types.Transaction, error)

WriteEntry is a paid mutator transaction binding the contract method 0x2ad8c706.

Solidity: function writeEntry(bytes32 dataHash) returns(uint256 dbNonce, uint64 entryIndex)

func (*InterchainDBTransactorSession) WriteEntryWithVerification

func (_InterchainDB *InterchainDBTransactorSession) WriteEntryWithVerification(dstChainId *big.Int, dataHash [32]byte, srcModules []common.Address) (*types.Transaction, error)

WriteEntryWithVerification is a paid mutator transaction binding the contract method 0x67c769af.

Solidity: function writeEntryWithVerification(uint256 dstChainId, bytes32 dataHash, address[] srcModules) payable returns(uint256 dbNonce, uint64 entryIndex)

type InterchainEntry

type InterchainEntry struct {
	SrcChainId *big.Int
	DbNonce    *big.Int
	EntryIndex uint64
	SrcWriter  [32]byte
	DataHash   [32]byte
}

InterchainEntry is an auto generated low-level Go binding around an user-defined struct.

type InterchainEntryLib

type InterchainEntryLib struct {
	InterchainEntryLibCaller     // Read-only binding to the contract
	InterchainEntryLibTransactor // Write-only binding to the contract
	InterchainEntryLibFilterer   // Log filterer for contract events
}

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

func DeployInterchainEntryLib

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

DeployInterchainEntryLib deploys a new Ethereum contract, binding an instance of InterchainEntryLib to it.

func NewInterchainEntryLib

func NewInterchainEntryLib(address common.Address, backend bind.ContractBackend) (*InterchainEntryLib, error)

NewInterchainEntryLib creates a new instance of InterchainEntryLib, bound to a specific deployed contract.

type InterchainEntryLibCaller

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

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

func NewInterchainEntryLibCaller

func NewInterchainEntryLibCaller(address common.Address, caller bind.ContractCaller) (*InterchainEntryLibCaller, error)

NewInterchainEntryLibCaller creates a new read-only instance of InterchainEntryLib, bound to a specific deployed contract.

type InterchainEntryLibCallerRaw

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

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

func (*InterchainEntryLibCallerRaw) Call

func (_InterchainEntryLib *InterchainEntryLibCallerRaw) 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 InterchainEntryLibCallerSession

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

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

type InterchainEntryLibFilterer

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

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

func NewInterchainEntryLibFilterer

func NewInterchainEntryLibFilterer(address common.Address, filterer bind.ContractFilterer) (*InterchainEntryLibFilterer, error)

NewInterchainEntryLibFilterer creates a new log filterer instance of InterchainEntryLib, bound to a specific deployed contract.

type InterchainEntryLibRaw

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

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

func (*InterchainEntryLibRaw) Call

func (_InterchainEntryLib *InterchainEntryLibRaw) 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 (*InterchainEntryLibRaw) Transact

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

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

func (*InterchainEntryLibRaw) Transfer

func (_InterchainEntryLib *InterchainEntryLibRaw) 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 InterchainEntryLibSession

type InterchainEntryLibSession struct {
	Contract     *InterchainEntryLib // 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
}

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

type InterchainEntryLibTransactor

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

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

func NewInterchainEntryLibTransactor

func NewInterchainEntryLibTransactor(address common.Address, transactor bind.ContractTransactor) (*InterchainEntryLibTransactor, error)

NewInterchainEntryLibTransactor creates a new write-only instance of InterchainEntryLib, bound to a specific deployed contract.

type InterchainEntryLibTransactorRaw

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

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

func (*InterchainEntryLibTransactorRaw) Transact

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

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

func (*InterchainEntryLibTransactorRaw) Transfer

func (_InterchainEntryLib *InterchainEntryLibTransactorRaw) 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 InterchainEntryLibTransactorSession

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

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

type TypeCasts

type TypeCasts struct {
	TypeCastsCaller     // Read-only binding to the contract
	TypeCastsTransactor // Write-only binding to the contract
	TypeCastsFilterer   // Log filterer for contract events
}

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

func DeployTypeCasts

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

DeployTypeCasts deploys a new Ethereum contract, binding an instance of TypeCasts to it.

func NewTypeCasts

func NewTypeCasts(address common.Address, backend bind.ContractBackend) (*TypeCasts, error)

NewTypeCasts creates a new instance of TypeCasts, bound to a specific deployed contract.

type TypeCastsCaller

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

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

func NewTypeCastsCaller

func NewTypeCastsCaller(address common.Address, caller bind.ContractCaller) (*TypeCastsCaller, error)

NewTypeCastsCaller creates a new read-only instance of TypeCasts, bound to a specific deployed contract.

type TypeCastsCallerRaw

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

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

func (*TypeCastsCallerRaw) Call

func (_TypeCasts *TypeCastsCallerRaw) 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 TypeCastsCallerSession

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

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

type TypeCastsFilterer

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

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

func NewTypeCastsFilterer

func NewTypeCastsFilterer(address common.Address, filterer bind.ContractFilterer) (*TypeCastsFilterer, error)

NewTypeCastsFilterer creates a new log filterer instance of TypeCasts, bound to a specific deployed contract.

type TypeCastsRaw

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

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

func (*TypeCastsRaw) Call

func (_TypeCasts *TypeCastsRaw) 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 (*TypeCastsRaw) Transact

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

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

func (*TypeCastsRaw) Transfer

func (_TypeCasts *TypeCastsRaw) 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 TypeCastsSession

type TypeCastsSession struct {
	Contract     *TypeCasts        // 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
}

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

type TypeCastsTransactor

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

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

func NewTypeCastsTransactor

func NewTypeCastsTransactor(address common.Address, transactor bind.ContractTransactor) (*TypeCastsTransactor, error)

NewTypeCastsTransactor creates a new write-only instance of TypeCasts, bound to a specific deployed contract.

type TypeCastsTransactorRaw

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

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

func (*TypeCastsTransactorRaw) Transact

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

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

func (*TypeCastsTransactorRaw) Transfer

func (_TypeCasts *TypeCastsTransactorRaw) 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 TypeCastsTransactorSession

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

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

Jump to

Keyboard shortcuts

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