bridge_contract_interface

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgeContractInterfaceABI = BridgeContractInterfaceMetaData.ABI

BridgeContractInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use BridgeContractInterfaceMetaData.ABI instead.

View Source
var BridgeContractInterfaceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"stateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"expectedStateHash\",\"type\":\"bytes32\"}],\"name\":\"InvalidStateHash\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"lastFinalizedBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"finalizationInterval\",\"type\":\"uint256\"}],\"name\":\"NotEnoughBlocksPassed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nextEpoch\",\"type\":\"uint256\"}],\"name\":\"NotSuccessiveEpochs\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bridgeRoot\",\"type\":\"bytes32\"}],\"name\":\"StateNotMatchingBridgeRoot\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"expectedContractAddress\",\"type\":\"address\"}],\"name\":\"UnmatchingContractAddresses\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"UnregisteredContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddressCannotBeRegistered\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"connector\",\"type\":\"address\"}],\"name\":\"ConnectorRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"bridgeRoot\",\"type\":\"bytes32\"}],\"name\":\"Finalized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"state\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"connector\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"refund\",\"type\":\"uint256\"}],\"name\":\"StateApplied\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"appliedEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"state\",\"type\":\"bytes\"}],\"internalType\":\"structSharedStructs.StateWithAddress[]\",\"name\":\"states\",\"type\":\"tuple[]\"}],\"internalType\":\"structSharedStructs.BridgeState\",\"name\":\"state\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"stateHash\",\"type\":\"bytes32\"}],\"internalType\":\"structSharedStructs.ContractStateHash[]\",\"name\":\"state_hashes\",\"type\":\"tuple[]\"}],\"internalType\":\"structSharedStructs.StateWithProof\",\"name\":\"state_with_proof\",\"type\":\"tuple\"}],\"name\":\"applyState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"connectors\",\"outputs\":[{\"internalType\":\"contractIBridgeConnector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizationInterval\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeEpoch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizedEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBridgeRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStateWithProof\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"state\",\"type\":\"bytes\"}],\"internalType\":\"structSharedStructs.StateWithAddress[]\",\"name\":\"states\",\"type\":\"tuple[]\"}],\"internalType\":\"structSharedStructs.BridgeState\",\"name\":\"state\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"stateHash\",\"type\":\"bytes32\"}],\"internalType\":\"structSharedStructs.ContractStateHash[]\",\"name\":\"state_hashes\",\"type\":\"tuple[]\"}],\"internalType\":\"structSharedStructs.StateWithProof\",\"name\":\"ret\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFinalizedBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lightClient\",\"outputs\":[{\"internalType\":\"contractIBridgeLightClient\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"localAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIBridgeConnector\",\"name\":\"connector\",\"type\":\"address\"}],\"name\":\"registerContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registeredTokens\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_finalizationInterval\",\"type\":\"uint256\"}],\"name\":\"setFinalizationInterval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"shouldFinalizeEpoch\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}

BridgeContractInterfaceMetaData contains all meta data concerning the BridgeContractInterface contract.

Functions

This section is empty.

Types

type BridgeContractInterface

type BridgeContractInterface struct {
	BridgeContractInterfaceCaller     // Read-only binding to the contract
	BridgeContractInterfaceTransactor // Write-only binding to the contract
	BridgeContractInterfaceFilterer   // Log filterer for contract events
}

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

func NewBridgeContractInterface

func NewBridgeContractInterface(address common.Address, backend bind.ContractBackend) (*BridgeContractInterface, error)

NewBridgeContractInterface creates a new instance of BridgeContractInterface, bound to a specific deployed contract.

type BridgeContractInterfaceCaller

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

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

func NewBridgeContractInterfaceCaller

func NewBridgeContractInterfaceCaller(address common.Address, caller bind.ContractCaller) (*BridgeContractInterfaceCaller, error)

NewBridgeContractInterfaceCaller creates a new read-only instance of BridgeContractInterface, bound to a specific deployed contract.

func (*BridgeContractInterfaceCaller) AppliedEpoch

func (_BridgeContractInterface *BridgeContractInterfaceCaller) AppliedEpoch(opts *bind.CallOpts) (*big.Int, error)

AppliedEpoch is a free data retrieval call binding the contract method 0x35add093.

Solidity: function appliedEpoch() view returns(uint256)

func (*BridgeContractInterfaceCaller) BridgeRoot

func (_BridgeContractInterface *BridgeContractInterfaceCaller) BridgeRoot(opts *bind.CallOpts) ([32]byte, error)

BridgeRoot is a free data retrieval call binding the contract method 0x177a0c2c.

Solidity: function bridgeRoot() view returns(bytes32)

func (*BridgeContractInterfaceCaller) Connectors

func (_BridgeContractInterface *BridgeContractInterfaceCaller) Connectors(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

Connectors is a free data retrieval call binding the contract method 0x0e53aae9.

Solidity: function connectors(address ) view returns(address)

func (*BridgeContractInterfaceCaller) FinalizationInterval

func (_BridgeContractInterface *BridgeContractInterfaceCaller) FinalizationInterval(opts *bind.CallOpts) (*big.Int, error)

FinalizationInterval is a free data retrieval call binding the contract method 0xbb04c6fc.

Solidity: function finalizationInterval() view returns(uint256)

func (*BridgeContractInterfaceCaller) FinalizedEpoch

func (_BridgeContractInterface *BridgeContractInterfaceCaller) FinalizedEpoch(opts *bind.CallOpts) (*big.Int, error)

FinalizedEpoch is a free data retrieval call binding the contract method 0x6bfa7398.

Solidity: function finalizedEpoch() view returns(uint256)

func (*BridgeContractInterfaceCaller) GetBridgeRoot

func (_BridgeContractInterface *BridgeContractInterfaceCaller) GetBridgeRoot(opts *bind.CallOpts) ([32]byte, error)

GetBridgeRoot is a free data retrieval call binding the contract method 0x695a253f.

Solidity: function getBridgeRoot() view returns(bytes32)

func (*BridgeContractInterfaceCaller) GetStateWithProof

func (_BridgeContractInterface *BridgeContractInterfaceCaller) GetStateWithProof(opts *bind.CallOpts) (SharedStructsStateWithProof, error)

GetStateWithProof is a free data retrieval call binding the contract method 0xfe65d463.

Solidity: function getStateWithProof() view returns(((uint256,(address,bytes)[]),(address,bytes32)[]) ret)

func (*BridgeContractInterfaceCaller) LastFinalizedBlock

func (_BridgeContractInterface *BridgeContractInterfaceCaller) LastFinalizedBlock(opts *bind.CallOpts) (*big.Int, error)

LastFinalizedBlock is a free data retrieval call binding the contract method 0xae1da0b5.

Solidity: function lastFinalizedBlock() view returns(uint256)

func (*BridgeContractInterfaceCaller) LightClient

func (_BridgeContractInterface *BridgeContractInterfaceCaller) LightClient(opts *bind.CallOpts) (common.Address, error)

LightClient is a free data retrieval call binding the contract method 0xb5700e68.

Solidity: function lightClient() view returns(address)

func (*BridgeContractInterfaceCaller) LocalAddress

func (_BridgeContractInterface *BridgeContractInterfaceCaller) LocalAddress(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

LocalAddress is a free data retrieval call binding the contract method 0x76081bd5.

Solidity: function localAddress(address ) view returns(address)

func (*BridgeContractInterfaceCaller) Owner

func (_BridgeContractInterface *BridgeContractInterfaceCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeContractInterfaceCaller) ProxiableUUID added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*BridgeContractInterfaceCaller) RegisteredTokens

func (_BridgeContractInterface *BridgeContractInterfaceCaller) RegisteredTokens(opts *bind.CallOpts) ([]common.Address, error)

RegisteredTokens is a free data retrieval call binding the contract method 0x45466616.

Solidity: function registeredTokens() view returns(address[])

func (*BridgeContractInterfaceCaller) ShouldFinalizeEpoch added in v0.0.7

func (_BridgeContractInterface *BridgeContractInterfaceCaller) ShouldFinalizeEpoch(opts *bind.CallOpts) (bool, error)

ShouldFinalizeEpoch is a free data retrieval call binding the contract method 0x567041cd.

Solidity: function shouldFinalizeEpoch() view returns(bool)

func (*BridgeContractInterfaceCaller) TokenAddresses

func (_BridgeContractInterface *BridgeContractInterfaceCaller) TokenAddresses(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

TokenAddresses is a free data retrieval call binding the contract method 0xe5df8b84.

Solidity: function tokenAddresses(uint256 ) view returns(address)

func (*BridgeContractInterfaceCaller) UPGRADEINTERFACEVERSION added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

type BridgeContractInterfaceCallerRaw

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

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

func (*BridgeContractInterfaceCallerRaw) Call

func (_BridgeContractInterface *BridgeContractInterfaceCallerRaw) 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 BridgeContractInterfaceCallerSession

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

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

func (*BridgeContractInterfaceCallerSession) AppliedEpoch

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) AppliedEpoch() (*big.Int, error)

AppliedEpoch is a free data retrieval call binding the contract method 0x35add093.

Solidity: function appliedEpoch() view returns(uint256)

func (*BridgeContractInterfaceCallerSession) BridgeRoot

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) BridgeRoot() ([32]byte, error)

BridgeRoot is a free data retrieval call binding the contract method 0x177a0c2c.

Solidity: function bridgeRoot() view returns(bytes32)

func (*BridgeContractInterfaceCallerSession) Connectors

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) Connectors(arg0 common.Address) (common.Address, error)

Connectors is a free data retrieval call binding the contract method 0x0e53aae9.

Solidity: function connectors(address ) view returns(address)

func (*BridgeContractInterfaceCallerSession) FinalizationInterval

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) FinalizationInterval() (*big.Int, error)

FinalizationInterval is a free data retrieval call binding the contract method 0xbb04c6fc.

Solidity: function finalizationInterval() view returns(uint256)

func (*BridgeContractInterfaceCallerSession) FinalizedEpoch

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) FinalizedEpoch() (*big.Int, error)

FinalizedEpoch is a free data retrieval call binding the contract method 0x6bfa7398.

Solidity: function finalizedEpoch() view returns(uint256)

func (*BridgeContractInterfaceCallerSession) GetBridgeRoot

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) GetBridgeRoot() ([32]byte, error)

GetBridgeRoot is a free data retrieval call binding the contract method 0x695a253f.

Solidity: function getBridgeRoot() view returns(bytes32)

func (*BridgeContractInterfaceCallerSession) GetStateWithProof

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) GetStateWithProof() (SharedStructsStateWithProof, error)

GetStateWithProof is a free data retrieval call binding the contract method 0xfe65d463.

Solidity: function getStateWithProof() view returns(((uint256,(address,bytes)[]),(address,bytes32)[]) ret)

func (*BridgeContractInterfaceCallerSession) LastFinalizedBlock

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) LastFinalizedBlock() (*big.Int, error)

LastFinalizedBlock is a free data retrieval call binding the contract method 0xae1da0b5.

Solidity: function lastFinalizedBlock() view returns(uint256)

func (*BridgeContractInterfaceCallerSession) LightClient

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) LightClient() (common.Address, error)

LightClient is a free data retrieval call binding the contract method 0xb5700e68.

Solidity: function lightClient() view returns(address)

func (*BridgeContractInterfaceCallerSession) LocalAddress

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) LocalAddress(arg0 common.Address) (common.Address, error)

LocalAddress is a free data retrieval call binding the contract method 0x76081bd5.

Solidity: function localAddress(address ) view returns(address)

func (*BridgeContractInterfaceCallerSession) Owner

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeContractInterfaceCallerSession) ProxiableUUID added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*BridgeContractInterfaceCallerSession) RegisteredTokens

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) RegisteredTokens() ([]common.Address, error)

RegisteredTokens is a free data retrieval call binding the contract method 0x45466616.

Solidity: function registeredTokens() view returns(address[])

func (*BridgeContractInterfaceCallerSession) ShouldFinalizeEpoch added in v0.0.7

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) ShouldFinalizeEpoch() (bool, error)

ShouldFinalizeEpoch is a free data retrieval call binding the contract method 0x567041cd.

Solidity: function shouldFinalizeEpoch() view returns(bool)

func (*BridgeContractInterfaceCallerSession) TokenAddresses

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) TokenAddresses(arg0 *big.Int) (common.Address, error)

TokenAddresses is a free data retrieval call binding the contract method 0xe5df8b84.

Solidity: function tokenAddresses(uint256 ) view returns(address)

func (*BridgeContractInterfaceCallerSession) UPGRADEINTERFACEVERSION added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceCallerSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

type BridgeContractInterfaceConnectorRegistered added in v0.0.5

type BridgeContractInterfaceConnectorRegistered struct {
	Connector common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

BridgeContractInterfaceConnectorRegistered represents a ConnectorRegistered event raised by the BridgeContractInterface contract.

type BridgeContractInterfaceConnectorRegisteredIterator added in v0.0.5

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

BridgeContractInterfaceConnectorRegisteredIterator is returned from FilterConnectorRegistered and is used to iterate over the raw logs and unpacked data for ConnectorRegistered events raised by the BridgeContractInterface contract.

func (*BridgeContractInterfaceConnectorRegisteredIterator) Close added in v0.0.5

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

func (*BridgeContractInterfaceConnectorRegisteredIterator) Error added in v0.0.5

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeContractInterfaceConnectorRegisteredIterator) Next added in v0.0.5

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 BridgeContractInterfaceFilterer

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

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

func NewBridgeContractInterfaceFilterer

func NewBridgeContractInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeContractInterfaceFilterer, error)

NewBridgeContractInterfaceFilterer creates a new log filterer instance of BridgeContractInterface, bound to a specific deployed contract.

func (*BridgeContractInterfaceFilterer) FilterConnectorRegistered added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) FilterConnectorRegistered(opts *bind.FilterOpts, connector []common.Address) (*BridgeContractInterfaceConnectorRegisteredIterator, error)

FilterConnectorRegistered is a free log retrieval operation binding the contract event 0x069152cbb42907841c181d8a585e40e80b53f5b80110a3bd7308b035b9e57ab7.

Solidity: event ConnectorRegistered(address indexed connector)

func (*BridgeContractInterfaceFilterer) FilterFinalized added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) FilterFinalized(opts *bind.FilterOpts, epoch []*big.Int) (*BridgeContractInterfaceFinalizedIterator, error)

FilterFinalized is a free log retrieval operation binding the contract event 0xa05a0e9561eff1f01a29e7a680d5957bb7312e5766a8da1f494b6d6ac18031f4.

Solidity: event Finalized(uint256 indexed epoch, bytes32 bridgeRoot)

func (*BridgeContractInterfaceFilterer) FilterInitialized added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) FilterInitialized(opts *bind.FilterOpts) (*BridgeContractInterfaceInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*BridgeContractInterfaceFilterer) FilterOwnershipTransferred

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BridgeContractInterfaceOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeContractInterfaceFilterer) FilterStateApplied added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) FilterStateApplied(opts *bind.FilterOpts, state [][]byte, receiver []common.Address, connector []common.Address) (*BridgeContractInterfaceStateAppliedIterator, error)

FilterStateApplied is a free log retrieval operation binding the contract event 0xb3f87aed1075b6cfb4baab631c807ace0ef9b56b0a7cda905c99bce86fea6768.

Solidity: event StateApplied(bytes indexed state, address indexed receiver, address indexed connector, uint256 refund)

func (*BridgeContractInterfaceFilterer) FilterUpgraded added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*BridgeContractInterfaceUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*BridgeContractInterfaceFilterer) ParseConnectorRegistered added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) ParseConnectorRegistered(log types.Log) (*BridgeContractInterfaceConnectorRegistered, error)

ParseConnectorRegistered is a log parse operation binding the contract event 0x069152cbb42907841c181d8a585e40e80b53f5b80110a3bd7308b035b9e57ab7.

Solidity: event ConnectorRegistered(address indexed connector)

func (*BridgeContractInterfaceFilterer) ParseFinalized added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) ParseFinalized(log types.Log) (*BridgeContractInterfaceFinalized, error)

ParseFinalized is a log parse operation binding the contract event 0xa05a0e9561eff1f01a29e7a680d5957bb7312e5766a8da1f494b6d6ac18031f4.

Solidity: event Finalized(uint256 indexed epoch, bytes32 bridgeRoot)

func (*BridgeContractInterfaceFilterer) ParseInitialized added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) ParseInitialized(log types.Log) (*BridgeContractInterfaceInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*BridgeContractInterfaceFilterer) ParseOwnershipTransferred

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) ParseOwnershipTransferred(log types.Log) (*BridgeContractInterfaceOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeContractInterfaceFilterer) ParseStateApplied added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) ParseStateApplied(log types.Log) (*BridgeContractInterfaceStateApplied, error)

ParseStateApplied is a log parse operation binding the contract event 0xb3f87aed1075b6cfb4baab631c807ace0ef9b56b0a7cda905c99bce86fea6768.

Solidity: event StateApplied(bytes indexed state, address indexed receiver, address indexed connector, uint256 refund)

func (*BridgeContractInterfaceFilterer) ParseUpgraded added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) ParseUpgraded(log types.Log) (*BridgeContractInterfaceUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*BridgeContractInterfaceFilterer) WatchConnectorRegistered added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) WatchConnectorRegistered(opts *bind.WatchOpts, sink chan<- *BridgeContractInterfaceConnectorRegistered, connector []common.Address) (event.Subscription, error)

WatchConnectorRegistered is a free log subscription operation binding the contract event 0x069152cbb42907841c181d8a585e40e80b53f5b80110a3bd7308b035b9e57ab7.

Solidity: event ConnectorRegistered(address indexed connector)

func (*BridgeContractInterfaceFilterer) WatchFinalized added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) WatchFinalized(opts *bind.WatchOpts, sink chan<- *BridgeContractInterfaceFinalized, epoch []*big.Int) (event.Subscription, error)

WatchFinalized is a free log subscription operation binding the contract event 0xa05a0e9561eff1f01a29e7a680d5957bb7312e5766a8da1f494b6d6ac18031f4.

Solidity: event Finalized(uint256 indexed epoch, bytes32 bridgeRoot)

func (*BridgeContractInterfaceFilterer) WatchInitialized added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BridgeContractInterfaceInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*BridgeContractInterfaceFilterer) WatchOwnershipTransferred

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BridgeContractInterfaceOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeContractInterfaceFilterer) WatchStateApplied added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) WatchStateApplied(opts *bind.WatchOpts, sink chan<- *BridgeContractInterfaceStateApplied, state [][]byte, receiver []common.Address, connector []common.Address) (event.Subscription, error)

WatchStateApplied is a free log subscription operation binding the contract event 0xb3f87aed1075b6cfb4baab631c807ace0ef9b56b0a7cda905c99bce86fea6768.

Solidity: event StateApplied(bytes indexed state, address indexed receiver, address indexed connector, uint256 refund)

func (*BridgeContractInterfaceFilterer) WatchUpgraded added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *BridgeContractInterfaceUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

type BridgeContractInterfaceFinalized added in v0.0.5

type BridgeContractInterfaceFinalized struct {
	Epoch      *big.Int
	BridgeRoot [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

BridgeContractInterfaceFinalized represents a Finalized event raised by the BridgeContractInterface contract.

type BridgeContractInterfaceFinalizedIterator added in v0.0.5

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

BridgeContractInterfaceFinalizedIterator is returned from FilterFinalized and is used to iterate over the raw logs and unpacked data for Finalized events raised by the BridgeContractInterface contract.

func (*BridgeContractInterfaceFinalizedIterator) Close added in v0.0.5

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

func (*BridgeContractInterfaceFinalizedIterator) Error added in v0.0.5

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeContractInterfaceFinalizedIterator) Next added in v0.0.5

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 BridgeContractInterfaceInitialized added in v0.0.5

type BridgeContractInterfaceInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

BridgeContractInterfaceInitialized represents a Initialized event raised by the BridgeContractInterface contract.

type BridgeContractInterfaceInitializedIterator added in v0.0.5

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

BridgeContractInterfaceInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the BridgeContractInterface contract.

func (*BridgeContractInterfaceInitializedIterator) Close added in v0.0.5

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

func (*BridgeContractInterfaceInitializedIterator) Error added in v0.0.5

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeContractInterfaceInitializedIterator) Next added in v0.0.5

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 BridgeContractInterfaceOwnershipTransferred

type BridgeContractInterfaceOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

BridgeContractInterfaceOwnershipTransferred represents a OwnershipTransferred event raised by the BridgeContractInterface contract.

type BridgeContractInterfaceOwnershipTransferredIterator

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

BridgeContractInterfaceOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the BridgeContractInterface contract.

func (*BridgeContractInterfaceOwnershipTransferredIterator) Close

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

func (*BridgeContractInterfaceOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeContractInterfaceOwnershipTransferredIterator) 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 BridgeContractInterfaceRaw

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

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

func (*BridgeContractInterfaceRaw) Call

func (_BridgeContractInterface *BridgeContractInterfaceRaw) 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 (*BridgeContractInterfaceRaw) Transact

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

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

func (*BridgeContractInterfaceRaw) Transfer

func (_BridgeContractInterface *BridgeContractInterfaceRaw) 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 BridgeContractInterfaceSession

type BridgeContractInterfaceSession struct {
	Contract     *BridgeContractInterface // 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
}

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

func (*BridgeContractInterfaceSession) AppliedEpoch

func (_BridgeContractInterface *BridgeContractInterfaceSession) AppliedEpoch() (*big.Int, error)

AppliedEpoch is a free data retrieval call binding the contract method 0x35add093.

Solidity: function appliedEpoch() view returns(uint256)

func (*BridgeContractInterfaceSession) ApplyState

func (_BridgeContractInterface *BridgeContractInterfaceSession) ApplyState(state_with_proof SharedStructsStateWithProof) (*types.Transaction, error)

ApplyState is a paid mutator transaction binding the contract method 0x6cd50a67.

Solidity: function applyState(((uint256,(address,bytes)[]),(address,bytes32)[]) state_with_proof) returns()

func (*BridgeContractInterfaceSession) BridgeRoot

func (_BridgeContractInterface *BridgeContractInterfaceSession) BridgeRoot() ([32]byte, error)

BridgeRoot is a free data retrieval call binding the contract method 0x177a0c2c.

Solidity: function bridgeRoot() view returns(bytes32)

func (*BridgeContractInterfaceSession) Connectors

func (_BridgeContractInterface *BridgeContractInterfaceSession) Connectors(arg0 common.Address) (common.Address, error)

Connectors is a free data retrieval call binding the contract method 0x0e53aae9.

Solidity: function connectors(address ) view returns(address)

func (*BridgeContractInterfaceSession) FinalizationInterval

func (_BridgeContractInterface *BridgeContractInterfaceSession) FinalizationInterval() (*big.Int, error)

FinalizationInterval is a free data retrieval call binding the contract method 0xbb04c6fc.

Solidity: function finalizationInterval() view returns(uint256)

func (*BridgeContractInterfaceSession) FinalizeEpoch

func (_BridgeContractInterface *BridgeContractInterfaceSession) FinalizeEpoch() (*types.Transaction, error)

FinalizeEpoch is a paid mutator transaction binding the contract method 0x82ae9ef7.

Solidity: function finalizeEpoch() returns()

func (*BridgeContractInterfaceSession) FinalizedEpoch

func (_BridgeContractInterface *BridgeContractInterfaceSession) FinalizedEpoch() (*big.Int, error)

FinalizedEpoch is a free data retrieval call binding the contract method 0x6bfa7398.

Solidity: function finalizedEpoch() view returns(uint256)

func (*BridgeContractInterfaceSession) GetBridgeRoot

func (_BridgeContractInterface *BridgeContractInterfaceSession) GetBridgeRoot() ([32]byte, error)

GetBridgeRoot is a free data retrieval call binding the contract method 0x695a253f.

Solidity: function getBridgeRoot() view returns(bytes32)

func (*BridgeContractInterfaceSession) GetStateWithProof

func (_BridgeContractInterface *BridgeContractInterfaceSession) GetStateWithProof() (SharedStructsStateWithProof, error)

GetStateWithProof is a free data retrieval call binding the contract method 0xfe65d463.

Solidity: function getStateWithProof() view returns(((uint256,(address,bytes)[]),(address,bytes32)[]) ret)

func (*BridgeContractInterfaceSession) LastFinalizedBlock

func (_BridgeContractInterface *BridgeContractInterfaceSession) LastFinalizedBlock() (*big.Int, error)

LastFinalizedBlock is a free data retrieval call binding the contract method 0xae1da0b5.

Solidity: function lastFinalizedBlock() view returns(uint256)

func (*BridgeContractInterfaceSession) LightClient

func (_BridgeContractInterface *BridgeContractInterfaceSession) LightClient() (common.Address, error)

LightClient is a free data retrieval call binding the contract method 0xb5700e68.

Solidity: function lightClient() view returns(address)

func (*BridgeContractInterfaceSession) LocalAddress

func (_BridgeContractInterface *BridgeContractInterfaceSession) LocalAddress(arg0 common.Address) (common.Address, error)

LocalAddress is a free data retrieval call binding the contract method 0x76081bd5.

Solidity: function localAddress(address ) view returns(address)

func (*BridgeContractInterfaceSession) Owner

func (_BridgeContractInterface *BridgeContractInterfaceSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeContractInterfaceSession) ProxiableUUID added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*BridgeContractInterfaceSession) RegisterContract

func (_BridgeContractInterface *BridgeContractInterfaceSession) RegisterContract(connector common.Address) (*types.Transaction, error)

RegisterContract is a paid mutator transaction binding the contract method 0x22a5dde4.

Solidity: function registerContract(address connector) returns()

func (*BridgeContractInterfaceSession) RegisteredTokens

func (_BridgeContractInterface *BridgeContractInterfaceSession) RegisteredTokens() ([]common.Address, error)

RegisteredTokens is a free data retrieval call binding the contract method 0x45466616.

Solidity: function registeredTokens() view returns(address[])

func (*BridgeContractInterfaceSession) RenounceOwnership

func (_BridgeContractInterface *BridgeContractInterfaceSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeContractInterfaceSession) SetFinalizationInterval

func (_BridgeContractInterface *BridgeContractInterfaceSession) SetFinalizationInterval(_finalizationInterval *big.Int) (*types.Transaction, error)

SetFinalizationInterval is a paid mutator transaction binding the contract method 0x8f084f0f.

Solidity: function setFinalizationInterval(uint256 _finalizationInterval) returns()

func (*BridgeContractInterfaceSession) ShouldFinalizeEpoch added in v0.0.7

func (_BridgeContractInterface *BridgeContractInterfaceSession) ShouldFinalizeEpoch() (bool, error)

ShouldFinalizeEpoch is a free data retrieval call binding the contract method 0x567041cd.

Solidity: function shouldFinalizeEpoch() view returns(bool)

func (*BridgeContractInterfaceSession) TokenAddresses

func (_BridgeContractInterface *BridgeContractInterfaceSession) TokenAddresses(arg0 *big.Int) (common.Address, error)

TokenAddresses is a free data retrieval call binding the contract method 0xe5df8b84.

Solidity: function tokenAddresses(uint256 ) view returns(address)

func (*BridgeContractInterfaceSession) TransferOwnership

func (_BridgeContractInterface *BridgeContractInterfaceSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*BridgeContractInterfaceSession) UPGRADEINTERFACEVERSION added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceSession) UPGRADEINTERFACEVERSION() (string, error)

UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.

Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)

func (*BridgeContractInterfaceSession) UpgradeToAndCall added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type BridgeContractInterfaceStateApplied added in v0.0.5

type BridgeContractInterfaceStateApplied struct {
	State     common.Hash
	Receiver  common.Address
	Connector common.Address
	Refund    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

BridgeContractInterfaceStateApplied represents a StateApplied event raised by the BridgeContractInterface contract.

type BridgeContractInterfaceStateAppliedIterator added in v0.0.5

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

BridgeContractInterfaceStateAppliedIterator is returned from FilterStateApplied and is used to iterate over the raw logs and unpacked data for StateApplied events raised by the BridgeContractInterface contract.

func (*BridgeContractInterfaceStateAppliedIterator) Close added in v0.0.5

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

func (*BridgeContractInterfaceStateAppliedIterator) Error added in v0.0.5

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeContractInterfaceStateAppliedIterator) Next added in v0.0.5

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 BridgeContractInterfaceTransactor

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

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

func NewBridgeContractInterfaceTransactor

func NewBridgeContractInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeContractInterfaceTransactor, error)

NewBridgeContractInterfaceTransactor creates a new write-only instance of BridgeContractInterface, bound to a specific deployed contract.

func (*BridgeContractInterfaceTransactor) ApplyState

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) ApplyState(opts *bind.TransactOpts, state_with_proof SharedStructsStateWithProof) (*types.Transaction, error)

ApplyState is a paid mutator transaction binding the contract method 0x6cd50a67.

Solidity: function applyState(((uint256,(address,bytes)[]),(address,bytes32)[]) state_with_proof) returns()

func (*BridgeContractInterfaceTransactor) FinalizeEpoch

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) FinalizeEpoch(opts *bind.TransactOpts) (*types.Transaction, error)

FinalizeEpoch is a paid mutator transaction binding the contract method 0x82ae9ef7.

Solidity: function finalizeEpoch() returns()

func (*BridgeContractInterfaceTransactor) RegisterContract

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) RegisterContract(opts *bind.TransactOpts, connector common.Address) (*types.Transaction, error)

RegisterContract is a paid mutator transaction binding the contract method 0x22a5dde4.

Solidity: function registerContract(address connector) returns()

func (*BridgeContractInterfaceTransactor) RenounceOwnership

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeContractInterfaceTransactor) SetFinalizationInterval

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) SetFinalizationInterval(opts *bind.TransactOpts, _finalizationInterval *big.Int) (*types.Transaction, error)

SetFinalizationInterval is a paid mutator transaction binding the contract method 0x8f084f0f.

Solidity: function setFinalizationInterval(uint256 _finalizationInterval) returns()

func (*BridgeContractInterfaceTransactor) TransferOwnership

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*BridgeContractInterfaceTransactor) UpgradeToAndCall added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type BridgeContractInterfaceTransactorRaw

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

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

func (*BridgeContractInterfaceTransactorRaw) Transact

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

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

func (*BridgeContractInterfaceTransactorRaw) Transfer

func (_BridgeContractInterface *BridgeContractInterfaceTransactorRaw) 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 BridgeContractInterfaceTransactorSession

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

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

func (*BridgeContractInterfaceTransactorSession) ApplyState

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) ApplyState(state_with_proof SharedStructsStateWithProof) (*types.Transaction, error)

ApplyState is a paid mutator transaction binding the contract method 0x6cd50a67.

Solidity: function applyState(((uint256,(address,bytes)[]),(address,bytes32)[]) state_with_proof) returns()

func (*BridgeContractInterfaceTransactorSession) FinalizeEpoch

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) FinalizeEpoch() (*types.Transaction, error)

FinalizeEpoch is a paid mutator transaction binding the contract method 0x82ae9ef7.

Solidity: function finalizeEpoch() returns()

func (*BridgeContractInterfaceTransactorSession) RegisterContract

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) RegisterContract(connector common.Address) (*types.Transaction, error)

RegisterContract is a paid mutator transaction binding the contract method 0x22a5dde4.

Solidity: function registerContract(address connector) returns()

func (*BridgeContractInterfaceTransactorSession) RenounceOwnership

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeContractInterfaceTransactorSession) SetFinalizationInterval

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) SetFinalizationInterval(_finalizationInterval *big.Int) (*types.Transaction, error)

SetFinalizationInterval is a paid mutator transaction binding the contract method 0x8f084f0f.

Solidity: function setFinalizationInterval(uint256 _finalizationInterval) returns()

func (*BridgeContractInterfaceTransactorSession) TransferOwnership

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*BridgeContractInterfaceTransactorSession) UpgradeToAndCall added in v0.0.5

func (_BridgeContractInterface *BridgeContractInterfaceTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type BridgeContractInterfaceUpgraded added in v0.0.5

type BridgeContractInterfaceUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BridgeContractInterfaceUpgraded represents a Upgraded event raised by the BridgeContractInterface contract.

type BridgeContractInterfaceUpgradedIterator added in v0.0.5

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

BridgeContractInterfaceUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the BridgeContractInterface contract.

func (*BridgeContractInterfaceUpgradedIterator) Close added in v0.0.5

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

func (*BridgeContractInterfaceUpgradedIterator) Error added in v0.0.5

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeContractInterfaceUpgradedIterator) Next added in v0.0.5

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 SharedStructsBridgeState

type SharedStructsBridgeState struct {
	Epoch  *big.Int
	States []SharedStructsStateWithAddress
}

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

type SharedStructsContractStateHash

type SharedStructsContractStateHash struct {
	ContractAddress common.Address
	StateHash       [32]byte
}

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

type SharedStructsStateWithAddress

type SharedStructsStateWithAddress struct {
	ContractAddress common.Address
	State           []byte
}

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

type SharedStructsStateWithProof

type SharedStructsStateWithProof struct {
	State       SharedStructsBridgeState
	StateHashes []SharedStructsContractStateHash
}

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

Jump to

Keyboard shortcuts

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