abi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgeABI = BridgeMetaData.ABI

BridgeABI is the input ABI used to generate the binding from. Deprecated: Use BridgeMetaData.ABI instead.

View Source
var BridgeMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"attestor\",\"type\":\"address\"}],\"name\":\"AttestorAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"attestor\",\"type\":\"address\"}],\"name\":\"AttestorRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDestinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDestinationChainId\",\"type\":\"uint256\"}],\"name\":\"ChainUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sequence\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"packetHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"enumPacketLibrary.Vote\",\"name\":\"_quorum\",\"type\":\"uint8\"}],\"name\":\"Consumed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"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\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sequence\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"internalType\":\"structPacketLibrary.InNetworkAddress\",\"name\":\"sourceTokenService\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"addr\",\"type\":\"string\"}],\"internalType\":\"structPacketLibrary.OutNetworkAddress\",\"name\":\"destTokenService\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"senderAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"destTokenAddress\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"receiverAddress\",\"type\":\"string\"}],\"internalType\":\"structPacketLibrary.OutTokenMessage\",\"name\":\"message\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structPacketLibrary.OutPacket\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"PacketDispatched\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldQuorum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newQuorum\",\"type\":\"uint256\"}],\"name\":\"QuorumUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"tokenService\",\"type\":\"address\"}],\"name\":\"TokenServiceAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"tokenService\",\"type\":\"address\"}],\"name\":\"TokenServiceRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_destChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"Bridge_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"attestor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"newQuorumRequired\",\"type\":\"uint256\"}],\"name\":\"addAttestor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_attestors\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"newQuorumRequired\",\"type\":\"uint256\"}],\"name\":\"addAttestors\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_service\",\"type\":\"address\"}],\"name\":\"addTokenService\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sequence\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"addr\",\"type\":\"string\"}],\"internalType\":\"structPacketLibrary.OutNetworkAddress\",\"name\":\"sourceTokenService\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"internalType\":\"structPacketLibrary.InNetworkAddress\",\"name\":\"destTokenService\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"senderAddress\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"destTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiverAddress\",\"type\":\"address\"}],\"internalType\":\"structPacketLibrary.InTokenMessage\",\"name\":\"message\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"}],\"internalType\":\"structPacketLibrary.InPacket\",\"name\":\"packet\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"consume\",\"outputs\":[{\"internalType\":\"enumPacketLibrary.Vote\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"consumedPackets\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"destinationChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"attestor\",\"type\":\"address\"}],\"name\":\"isAttestor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_sequence\",\"type\":\"uint256\"}],\"name\":\"isPacketConsumed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_service\",\"type\":\"address\"}],\"name\":\"isRegisteredTokenService\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"}],\"name\":\"isSupportedChain\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"outgoingPackets\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"quorumRequired\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"attestor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"newQuorumRequired\",\"type\":\"uint256\"}],\"name\":\"removeAttestor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_service\",\"type\":\"address\"}],\"name\":\"removeTokenService\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sequence\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"internalType\":\"structPacketLibrary.InNetworkAddress\",\"name\":\"sourceTokenService\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"addr\",\"type\":\"string\"}],\"internalType\":\"structPacketLibrary.OutNetworkAddress\",\"name\":\"destTokenService\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"senderAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"destTokenAddress\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"receiverAddress\",\"type\":\"string\"}],\"internalType\":\"structPacketLibrary.OutTokenMessage\",\"name\":\"message\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"}],\"internalType\":\"structPacketLibrary.OutPacket\",\"name\":\"packet\",\"type\":\"tuple\"}],\"name\":\"sendMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sequence\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenServices\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDestChainId\",\"type\":\"uint256\"}],\"name\":\"updateDestinationChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newQuorumRequired\",\"type\":\"uint256\"}],\"name\":\"updateQuorum\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"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\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"addr\",\"type\":\"string\"}],\"name\":\"validateAleoAddress\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
}

BridgeMetaData contains all meta data concerning the Bridge contract.

Functions

This section is empty.

Types

type ABIInterface

type ABIInterface interface {
	OutgoingPackets(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (struct {
		Version            *big.Int
		Sequence           *big.Int
		SourceTokenService PacketLibraryInNetworkAddress
		DestTokenService   PacketLibraryOutNetworkAddress
		Message            PacketLibraryOutTokenMessage
		Height             *big.Int
	}, error)
	ReceivePacket(opts *bind.TransactOpts, packet PacketLibraryInPacket) (*types.Transaction, error)
}

type Bridge

type Bridge struct {
	BridgeCaller     // Read-only binding to the contract
	BridgeTransactor // Write-only binding to the contract
	BridgeFilterer   // Log filterer for contract events
}

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

func NewBridge

func NewBridge(address common.Address, backend bind.ContractBackend) (*Bridge, error)

NewBridge creates a new instance of Bridge, bound to a specific deployed contract.

type BridgeAdminChanged

type BridgeAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

BridgeAdminChanged represents a AdminChanged event raised by the Bridge contract.

type BridgeAdminChangedIterator

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

BridgeAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Bridge contract.

func (*BridgeAdminChangedIterator) Close

func (it *BridgeAdminChangedIterator) Close() error

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

func (*BridgeAdminChangedIterator) Error

func (it *BridgeAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeAdminChangedIterator) Next

func (it *BridgeAdminChangedIterator) Next() bool

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 BridgeAttestorAdded

type BridgeAttestorAdded struct {
	Attestor common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

BridgeAttestorAdded represents a AttestorAdded event raised by the Bridge contract.

type BridgeAttestorAddedIterator

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

BridgeAttestorAddedIterator is returned from FilterAttestorAdded and is used to iterate over the raw logs and unpacked data for AttestorAdded events raised by the Bridge contract.

func (*BridgeAttestorAddedIterator) Close

func (it *BridgeAttestorAddedIterator) Close() error

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

func (*BridgeAttestorAddedIterator) Error

func (it *BridgeAttestorAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeAttestorAddedIterator) Next

func (it *BridgeAttestorAddedIterator) Next() bool

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 BridgeAttestorRemoved

type BridgeAttestorRemoved struct {
	Attestor common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

BridgeAttestorRemoved represents a AttestorRemoved event raised by the Bridge contract.

type BridgeAttestorRemovedIterator

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

BridgeAttestorRemovedIterator is returned from FilterAttestorRemoved and is used to iterate over the raw logs and unpacked data for AttestorRemoved events raised by the Bridge contract.

func (*BridgeAttestorRemovedIterator) Close

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

func (*BridgeAttestorRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeAttestorRemovedIterator) 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 BridgeBeaconUpgraded

type BridgeBeaconUpgraded struct {
	Beacon common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

BridgeBeaconUpgraded represents a BeaconUpgraded event raised by the Bridge contract.

type BridgeBeaconUpgradedIterator

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

BridgeBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Bridge contract.

func (*BridgeBeaconUpgradedIterator) Close

func (it *BridgeBeaconUpgradedIterator) Close() error

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

func (*BridgeBeaconUpgradedIterator) Error

func (it *BridgeBeaconUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeBeaconUpgradedIterator) 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 BridgeCaller

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

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

func NewBridgeCaller

func NewBridgeCaller(address common.Address, caller bind.ContractCaller) (*BridgeCaller, error)

NewBridgeCaller creates a new read-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeCaller) ConsumedPackets

func (_Bridge *BridgeCaller) ConsumedPackets(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

ConsumedPackets is a free data retrieval call binding the contract method 0x011f2b28.

Solidity: function consumedPackets(uint256 ) view returns(bytes32)

func (*BridgeCaller) DestinationChainId

func (_Bridge *BridgeCaller) DestinationChainId(opts *bind.CallOpts) (*big.Int, error)

DestinationChainId is a free data retrieval call binding the contract method 0xb0750611.

Solidity: function destinationChainId() view returns(uint256)

func (*BridgeCaller) IsAttestor

func (_Bridge *BridgeCaller) IsAttestor(opts *bind.CallOpts, attestor common.Address) (bool, error)

IsAttestor is a free data retrieval call binding the contract method 0x2e2f4e24.

Solidity: function isAttestor(address attestor) view returns(bool)

func (*BridgeCaller) IsPacketConsumed

func (_Bridge *BridgeCaller) IsPacketConsumed(opts *bind.CallOpts, _sequence *big.Int) (bool, error)

IsPacketConsumed is a free data retrieval call binding the contract method 0x25bddae1.

Solidity: function isPacketConsumed(uint256 _sequence) view returns(bool)

func (*BridgeCaller) IsRegisteredTokenService

func (_Bridge *BridgeCaller) IsRegisteredTokenService(opts *bind.CallOpts, _service common.Address) (bool, error)

IsRegisteredTokenService is a free data retrieval call binding the contract method 0x6b3da26f.

Solidity: function isRegisteredTokenService(address _service) view returns(bool)

func (*BridgeCaller) IsSupportedChain

func (_Bridge *BridgeCaller) IsSupportedChain(opts *bind.CallOpts, destChainId *big.Int) (bool, error)

IsSupportedChain is a free data retrieval call binding the contract method 0x5153d467.

Solidity: function isSupportedChain(uint256 destChainId) view returns(bool)

func (*BridgeCaller) OutgoingPackets

func (_Bridge *BridgeCaller) OutgoingPackets(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

OutgoingPackets is a free data retrieval call binding the contract method 0x759f0299.

Solidity: function outgoingPackets(uint256 ) view returns(bytes32)

func (*BridgeCaller) Owner

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) Paused

func (_Bridge *BridgeCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*BridgeCaller) ProxiableUUID

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) QuorumRequired

func (_Bridge *BridgeCaller) QuorumRequired(opts *bind.CallOpts) (*big.Int, error)

QuorumRequired is a free data retrieval call binding the contract method 0x088868e8.

Solidity: function quorumRequired() view returns(uint256)

func (*BridgeCaller) Sequence

func (_Bridge *BridgeCaller) Sequence(opts *bind.CallOpts) (*big.Int, error)

Sequence is a free data retrieval call binding the contract method 0x529d15cc.

Solidity: function sequence() view returns(uint256)

func (*BridgeCaller) TokenServices

func (_Bridge *BridgeCaller) TokenServices(opts *bind.CallOpts, arg0 common.Address) (bool, error)

TokenServices is a free data retrieval call binding the contract method 0x12abc1b9.

Solidity: function tokenServices(address ) view returns(bool)

func (*BridgeCaller) ValidateAleoAddress

func (_Bridge *BridgeCaller) ValidateAleoAddress(opts *bind.CallOpts, addr string) (bool, error)

ValidateAleoAddress is a free data retrieval call binding the contract method 0x79d0705e.

Solidity: function validateAleoAddress(string addr) pure returns(bool)

type BridgeCallerRaw

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

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

func (*BridgeCallerRaw) Call

func (_Bridge *BridgeCallerRaw) 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 BridgeCallerSession

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

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

func (*BridgeCallerSession) ConsumedPackets

func (_Bridge *BridgeCallerSession) ConsumedPackets(arg0 *big.Int) ([32]byte, error)

ConsumedPackets is a free data retrieval call binding the contract method 0x011f2b28.

Solidity: function consumedPackets(uint256 ) view returns(bytes32)

func (*BridgeCallerSession) DestinationChainId

func (_Bridge *BridgeCallerSession) DestinationChainId() (*big.Int, error)

DestinationChainId is a free data retrieval call binding the contract method 0xb0750611.

Solidity: function destinationChainId() view returns(uint256)

func (*BridgeCallerSession) IsAttestor

func (_Bridge *BridgeCallerSession) IsAttestor(attestor common.Address) (bool, error)

IsAttestor is a free data retrieval call binding the contract method 0x2e2f4e24.

Solidity: function isAttestor(address attestor) view returns(bool)

func (*BridgeCallerSession) IsPacketConsumed

func (_Bridge *BridgeCallerSession) IsPacketConsumed(_sequence *big.Int) (bool, error)

IsPacketConsumed is a free data retrieval call binding the contract method 0x25bddae1.

Solidity: function isPacketConsumed(uint256 _sequence) view returns(bool)

func (*BridgeCallerSession) IsRegisteredTokenService

func (_Bridge *BridgeCallerSession) IsRegisteredTokenService(_service common.Address) (bool, error)

IsRegisteredTokenService is a free data retrieval call binding the contract method 0x6b3da26f.

Solidity: function isRegisteredTokenService(address _service) view returns(bool)

func (*BridgeCallerSession) IsSupportedChain

func (_Bridge *BridgeCallerSession) IsSupportedChain(destChainId *big.Int) (bool, error)

IsSupportedChain is a free data retrieval call binding the contract method 0x5153d467.

Solidity: function isSupportedChain(uint256 destChainId) view returns(bool)

func (*BridgeCallerSession) OutgoingPackets

func (_Bridge *BridgeCallerSession) OutgoingPackets(arg0 *big.Int) ([32]byte, error)

OutgoingPackets is a free data retrieval call binding the contract method 0x759f0299.

Solidity: function outgoingPackets(uint256 ) view returns(bytes32)

func (*BridgeCallerSession) Owner

func (_Bridge *BridgeCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BridgeCallerSession) Paused

func (_Bridge *BridgeCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*BridgeCallerSession) ProxiableUUID

func (_Bridge *BridgeCallerSession) ProxiableUUID() ([32]byte, error)

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

Solidity: function proxiableUUID() view returns(bytes32)

func (*BridgeCallerSession) QuorumRequired

func (_Bridge *BridgeCallerSession) QuorumRequired() (*big.Int, error)

QuorumRequired is a free data retrieval call binding the contract method 0x088868e8.

Solidity: function quorumRequired() view returns(uint256)

func (*BridgeCallerSession) Sequence

func (_Bridge *BridgeCallerSession) Sequence() (*big.Int, error)

Sequence is a free data retrieval call binding the contract method 0x529d15cc.

Solidity: function sequence() view returns(uint256)

func (*BridgeCallerSession) TokenServices

func (_Bridge *BridgeCallerSession) TokenServices(arg0 common.Address) (bool, error)

TokenServices is a free data retrieval call binding the contract method 0x12abc1b9.

Solidity: function tokenServices(address ) view returns(bool)

func (*BridgeCallerSession) ValidateAleoAddress

func (_Bridge *BridgeCallerSession) ValidateAleoAddress(addr string) (bool, error)

ValidateAleoAddress is a free data retrieval call binding the contract method 0x79d0705e.

Solidity: function validateAleoAddress(string addr) pure returns(bool)

type BridgeChainUpdated

type BridgeChainUpdated struct {
	OldDestinationChainId *big.Int
	NewDestinationChainId *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

BridgeChainUpdated represents a ChainUpdated event raised by the Bridge contract.

type BridgeChainUpdatedIterator

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

BridgeChainUpdatedIterator is returned from FilterChainUpdated and is used to iterate over the raw logs and unpacked data for ChainUpdated events raised by the Bridge contract.

func (*BridgeChainUpdatedIterator) Close

func (it *BridgeChainUpdatedIterator) Close() error

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

func (*BridgeChainUpdatedIterator) Error

func (it *BridgeChainUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeChainUpdatedIterator) Next

func (it *BridgeChainUpdatedIterator) Next() bool

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 BridgeConsumed

type BridgeConsumed struct {
	ChainId    *big.Int
	Sequence   *big.Int
	PacketHash [32]byte
	Quorum     uint8
	Raw        types.Log // Blockchain specific contextual infos
}

BridgeConsumed represents a Consumed event raised by the Bridge contract.

type BridgeConsumedIterator

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

BridgeConsumedIterator is returned from FilterConsumed and is used to iterate over the raw logs and unpacked data for Consumed events raised by the Bridge contract.

func (*BridgeConsumedIterator) Close

func (it *BridgeConsumedIterator) Close() error

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

func (*BridgeConsumedIterator) Error

func (it *BridgeConsumedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeConsumedIterator) Next

func (it *BridgeConsumedIterator) Next() bool

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 BridgeFilterer

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

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

func NewBridgeFilterer

func NewBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeFilterer, error)

NewBridgeFilterer creates a new log filterer instance of Bridge, bound to a specific deployed contract.

func (*BridgeFilterer) FilterAdminChanged

func (_Bridge *BridgeFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*BridgeAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*BridgeFilterer) FilterAttestorAdded

func (_Bridge *BridgeFilterer) FilterAttestorAdded(opts *bind.FilterOpts, attestor []common.Address) (*BridgeAttestorAddedIterator, error)

FilterAttestorAdded is a free log retrieval operation binding the contract event 0x945c4a21d3fce955d17e31fcc471734b3d754c032b3805b02fe75d89c29b2a3a.

Solidity: event AttestorAdded(address indexed attestor)

func (*BridgeFilterer) FilterAttestorRemoved

func (_Bridge *BridgeFilterer) FilterAttestorRemoved(opts *bind.FilterOpts, attestor []common.Address) (*BridgeAttestorRemovedIterator, error)

FilterAttestorRemoved is a free log retrieval operation binding the contract event 0x7b1e5155c9ac76eaa3c56fcf63a3383cd696a6fa84c49901c7ae374c0a508612.

Solidity: event AttestorRemoved(address indexed attestor)

func (*BridgeFilterer) FilterBeaconUpgraded

func (_Bridge *BridgeFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*BridgeBeaconUpgradedIterator, error)

FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*BridgeFilterer) FilterChainUpdated

func (_Bridge *BridgeFilterer) FilterChainUpdated(opts *bind.FilterOpts) (*BridgeChainUpdatedIterator, error)

FilterChainUpdated is a free log retrieval operation binding the contract event 0xb6fa2f2ef6dbc76619532f8a9afc075b44c8b0464fec94b57e91eaa478d177f5.

Solidity: event ChainUpdated(uint256 oldDestinationChainId, uint256 newDestinationChainId)

func (*BridgeFilterer) FilterConsumed

func (_Bridge *BridgeFilterer) FilterConsumed(opts *bind.FilterOpts) (*BridgeConsumedIterator, error)

FilterConsumed is a free log retrieval operation binding the contract event 0x34becda61bb85f635633727b86333631320ead15d08be6dc1e8049014f0da149.

Solidity: event Consumed(uint256 chainId, uint256 sequence, bytes32 packetHash, uint8 _quorum)

func (*BridgeFilterer) FilterInitialized

func (_Bridge *BridgeFilterer) FilterInitialized(opts *bind.FilterOpts) (*BridgeInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*BridgeFilterer) FilterOwnershipTransferred

func (_Bridge *BridgeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BridgeOwnershipTransferredIterator, error)

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

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

func (*BridgeFilterer) FilterPacketDispatched

func (_Bridge *BridgeFilterer) FilterPacketDispatched(opts *bind.FilterOpts) (*BridgePacketDispatchedIterator, error)

FilterPacketDispatched is a free log retrieval operation binding the contract event 0x23b9e965d90a00cd3ad31e46b58592d41203f5789805c086b955e34ecd462eb9.

Solidity: event PacketDispatched((uint256,uint256,(uint256,address),(uint256,string),(address,string,uint256,string),uint256) packet)

func (*BridgeFilterer) FilterPaused

func (_Bridge *BridgeFilterer) FilterPaused(opts *bind.FilterOpts) (*BridgePausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*BridgeFilterer) FilterQuorumUpdated

func (_Bridge *BridgeFilterer) FilterQuorumUpdated(opts *bind.FilterOpts) (*BridgeQuorumUpdatedIterator, error)

FilterQuorumUpdated is a free log retrieval operation binding the contract event 0x6784e9bcb845caaa98267d7b0918f97d3d17f7cb35a05b52010f7eb587a0acb0.

Solidity: event QuorumUpdated(uint256 oldQuorum, uint256 newQuorum)

func (*BridgeFilterer) FilterTokenServiceAdded

func (_Bridge *BridgeFilterer) FilterTokenServiceAdded(opts *bind.FilterOpts) (*BridgeTokenServiceAddedIterator, error)

FilterTokenServiceAdded is a free log retrieval operation binding the contract event 0x94a4797e4c030e498da08bb8871d39298528d0f1269fba1da4363703331d58e9.

Solidity: event TokenServiceAdded(address tokenService)

func (*BridgeFilterer) FilterTokenServiceRemoved

func (_Bridge *BridgeFilterer) FilterTokenServiceRemoved(opts *bind.FilterOpts) (*BridgeTokenServiceRemovedIterator, error)

FilterTokenServiceRemoved is a free log retrieval operation binding the contract event 0x18952ed4229327e2d83d53a06b823c2da3b19cb320c82017b8da5f60b6dfe8f0.

Solidity: event TokenServiceRemoved(address tokenService)

func (*BridgeFilterer) FilterUnpaused

func (_Bridge *BridgeFilterer) FilterUnpaused(opts *bind.FilterOpts) (*BridgeUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*BridgeFilterer) FilterUpgraded

func (_Bridge *BridgeFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*BridgeUpgradedIterator, error)

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

Solidity: event Upgraded(address indexed implementation)

func (*BridgeFilterer) ParseAdminChanged

func (_Bridge *BridgeFilterer) ParseAdminChanged(log types.Log) (*BridgeAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*BridgeFilterer) ParseAttestorAdded

func (_Bridge *BridgeFilterer) ParseAttestorAdded(log types.Log) (*BridgeAttestorAdded, error)

ParseAttestorAdded is a log parse operation binding the contract event 0x945c4a21d3fce955d17e31fcc471734b3d754c032b3805b02fe75d89c29b2a3a.

Solidity: event AttestorAdded(address indexed attestor)

func (*BridgeFilterer) ParseAttestorRemoved

func (_Bridge *BridgeFilterer) ParseAttestorRemoved(log types.Log) (*BridgeAttestorRemoved, error)

ParseAttestorRemoved is a log parse operation binding the contract event 0x7b1e5155c9ac76eaa3c56fcf63a3383cd696a6fa84c49901c7ae374c0a508612.

Solidity: event AttestorRemoved(address indexed attestor)

func (*BridgeFilterer) ParseBeaconUpgraded

func (_Bridge *BridgeFilterer) ParseBeaconUpgraded(log types.Log) (*BridgeBeaconUpgraded, error)

ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*BridgeFilterer) ParseChainUpdated

func (_Bridge *BridgeFilterer) ParseChainUpdated(log types.Log) (*BridgeChainUpdated, error)

ParseChainUpdated is a log parse operation binding the contract event 0xb6fa2f2ef6dbc76619532f8a9afc075b44c8b0464fec94b57e91eaa478d177f5.

Solidity: event ChainUpdated(uint256 oldDestinationChainId, uint256 newDestinationChainId)

func (*BridgeFilterer) ParseConsumed

func (_Bridge *BridgeFilterer) ParseConsumed(log types.Log) (*BridgeConsumed, error)

ParseConsumed is a log parse operation binding the contract event 0x34becda61bb85f635633727b86333631320ead15d08be6dc1e8049014f0da149.

Solidity: event Consumed(uint256 chainId, uint256 sequence, bytes32 packetHash, uint8 _quorum)

func (*BridgeFilterer) ParseInitialized

func (_Bridge *BridgeFilterer) ParseInitialized(log types.Log) (*BridgeInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*BridgeFilterer) ParseOwnershipTransferred

func (_Bridge *BridgeFilterer) ParseOwnershipTransferred(log types.Log) (*BridgeOwnershipTransferred, error)

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

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

func (*BridgeFilterer) ParsePacketDispatched

func (_Bridge *BridgeFilterer) ParsePacketDispatched(log types.Log) (*BridgePacketDispatched, error)

ParsePacketDispatched is a log parse operation binding the contract event 0x23b9e965d90a00cd3ad31e46b58592d41203f5789805c086b955e34ecd462eb9.

Solidity: event PacketDispatched((uint256,uint256,(uint256,address),(uint256,string),(address,string,uint256,string),uint256) packet)

func (*BridgeFilterer) ParsePaused

func (_Bridge *BridgeFilterer) ParsePaused(log types.Log) (*BridgePaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*BridgeFilterer) ParseQuorumUpdated

func (_Bridge *BridgeFilterer) ParseQuorumUpdated(log types.Log) (*BridgeQuorumUpdated, error)

ParseQuorumUpdated is a log parse operation binding the contract event 0x6784e9bcb845caaa98267d7b0918f97d3d17f7cb35a05b52010f7eb587a0acb0.

Solidity: event QuorumUpdated(uint256 oldQuorum, uint256 newQuorum)

func (*BridgeFilterer) ParseTokenServiceAdded

func (_Bridge *BridgeFilterer) ParseTokenServiceAdded(log types.Log) (*BridgeTokenServiceAdded, error)

ParseTokenServiceAdded is a log parse operation binding the contract event 0x94a4797e4c030e498da08bb8871d39298528d0f1269fba1da4363703331d58e9.

Solidity: event TokenServiceAdded(address tokenService)

func (*BridgeFilterer) ParseTokenServiceRemoved

func (_Bridge *BridgeFilterer) ParseTokenServiceRemoved(log types.Log) (*BridgeTokenServiceRemoved, error)

ParseTokenServiceRemoved is a log parse operation binding the contract event 0x18952ed4229327e2d83d53a06b823c2da3b19cb320c82017b8da5f60b6dfe8f0.

Solidity: event TokenServiceRemoved(address tokenService)

func (*BridgeFilterer) ParseUnpaused

func (_Bridge *BridgeFilterer) ParseUnpaused(log types.Log) (*BridgeUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*BridgeFilterer) ParseUpgraded

func (_Bridge *BridgeFilterer) ParseUpgraded(log types.Log) (*BridgeUpgraded, error)

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

Solidity: event Upgraded(address indexed implementation)

func (*BridgeFilterer) WatchAdminChanged

func (_Bridge *BridgeFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *BridgeAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*BridgeFilterer) WatchAttestorAdded

func (_Bridge *BridgeFilterer) WatchAttestorAdded(opts *bind.WatchOpts, sink chan<- *BridgeAttestorAdded, attestor []common.Address) (event.Subscription, error)

WatchAttestorAdded is a free log subscription operation binding the contract event 0x945c4a21d3fce955d17e31fcc471734b3d754c032b3805b02fe75d89c29b2a3a.

Solidity: event AttestorAdded(address indexed attestor)

func (*BridgeFilterer) WatchAttestorRemoved

func (_Bridge *BridgeFilterer) WatchAttestorRemoved(opts *bind.WatchOpts, sink chan<- *BridgeAttestorRemoved, attestor []common.Address) (event.Subscription, error)

WatchAttestorRemoved is a free log subscription operation binding the contract event 0x7b1e5155c9ac76eaa3c56fcf63a3383cd696a6fa84c49901c7ae374c0a508612.

Solidity: event AttestorRemoved(address indexed attestor)

func (*BridgeFilterer) WatchBeaconUpgraded

func (_Bridge *BridgeFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *BridgeBeaconUpgraded, beacon []common.Address) (event.Subscription, error)

WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*BridgeFilterer) WatchChainUpdated

func (_Bridge *BridgeFilterer) WatchChainUpdated(opts *bind.WatchOpts, sink chan<- *BridgeChainUpdated) (event.Subscription, error)

WatchChainUpdated is a free log subscription operation binding the contract event 0xb6fa2f2ef6dbc76619532f8a9afc075b44c8b0464fec94b57e91eaa478d177f5.

Solidity: event ChainUpdated(uint256 oldDestinationChainId, uint256 newDestinationChainId)

func (*BridgeFilterer) WatchConsumed

func (_Bridge *BridgeFilterer) WatchConsumed(opts *bind.WatchOpts, sink chan<- *BridgeConsumed) (event.Subscription, error)

WatchConsumed is a free log subscription operation binding the contract event 0x34becda61bb85f635633727b86333631320ead15d08be6dc1e8049014f0da149.

Solidity: event Consumed(uint256 chainId, uint256 sequence, bytes32 packetHash, uint8 _quorum)

func (*BridgeFilterer) WatchInitialized

func (_Bridge *BridgeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BridgeInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*BridgeFilterer) WatchOwnershipTransferred

func (_Bridge *BridgeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BridgeOwnershipTransferred, 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 (*BridgeFilterer) WatchPacketDispatched

func (_Bridge *BridgeFilterer) WatchPacketDispatched(opts *bind.WatchOpts, sink chan<- *BridgePacketDispatched) (event.Subscription, error)

WatchPacketDispatched is a free log subscription operation binding the contract event 0x23b9e965d90a00cd3ad31e46b58592d41203f5789805c086b955e34ecd462eb9.

Solidity: event PacketDispatched((uint256,uint256,(uint256,address),(uint256,string),(address,string,uint256,string),uint256) packet)

func (*BridgeFilterer) WatchPaused

func (_Bridge *BridgeFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *BridgePaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*BridgeFilterer) WatchQuorumUpdated

func (_Bridge *BridgeFilterer) WatchQuorumUpdated(opts *bind.WatchOpts, sink chan<- *BridgeQuorumUpdated) (event.Subscription, error)

WatchQuorumUpdated is a free log subscription operation binding the contract event 0x6784e9bcb845caaa98267d7b0918f97d3d17f7cb35a05b52010f7eb587a0acb0.

Solidity: event QuorumUpdated(uint256 oldQuorum, uint256 newQuorum)

func (*BridgeFilterer) WatchTokenServiceAdded

func (_Bridge *BridgeFilterer) WatchTokenServiceAdded(opts *bind.WatchOpts, sink chan<- *BridgeTokenServiceAdded) (event.Subscription, error)

WatchTokenServiceAdded is a free log subscription operation binding the contract event 0x94a4797e4c030e498da08bb8871d39298528d0f1269fba1da4363703331d58e9.

Solidity: event TokenServiceAdded(address tokenService)

func (*BridgeFilterer) WatchTokenServiceRemoved

func (_Bridge *BridgeFilterer) WatchTokenServiceRemoved(opts *bind.WatchOpts, sink chan<- *BridgeTokenServiceRemoved) (event.Subscription, error)

WatchTokenServiceRemoved is a free log subscription operation binding the contract event 0x18952ed4229327e2d83d53a06b823c2da3b19cb320c82017b8da5f60b6dfe8f0.

Solidity: event TokenServiceRemoved(address tokenService)

func (*BridgeFilterer) WatchUnpaused

func (_Bridge *BridgeFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *BridgeUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*BridgeFilterer) WatchUpgraded

func (_Bridge *BridgeFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *BridgeUpgraded, 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 BridgeInitialized

type BridgeInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

BridgeInitialized represents a Initialized event raised by the Bridge contract.

type BridgeInitializedIterator

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

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

func (*BridgeInitializedIterator) Close

func (it *BridgeInitializedIterator) Close() error

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

func (*BridgeInitializedIterator) Error

func (it *BridgeInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeInitializedIterator) Next

func (it *BridgeInitializedIterator) Next() bool

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 BridgeOwnershipTransferred

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

BridgeOwnershipTransferred represents a OwnershipTransferred event raised by the Bridge contract.

type BridgeOwnershipTransferredIterator

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

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

func (*BridgeOwnershipTransferredIterator) Close

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

func (*BridgeOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeOwnershipTransferredIterator) 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 BridgePacketDispatched

type BridgePacketDispatched struct {
	Packet PacketLibraryOutPacket
	Raw    types.Log // Blockchain specific contextual infos
}

BridgePacketDispatched represents a PacketDispatched event raised by the Bridge contract.

type BridgePacketDispatchedIterator

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

BridgePacketDispatchedIterator is returned from FilterPacketDispatched and is used to iterate over the raw logs and unpacked data for PacketDispatched events raised by the Bridge contract.

func (*BridgePacketDispatchedIterator) Close

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

func (*BridgePacketDispatchedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgePacketDispatchedIterator) 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 BridgePaused

type BridgePaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BridgePaused represents a Paused event raised by the Bridge contract.

type BridgePausedIterator

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

BridgePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Bridge contract.

func (*BridgePausedIterator) Close

func (it *BridgePausedIterator) Close() error

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

func (*BridgePausedIterator) Error

func (it *BridgePausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgePausedIterator) Next

func (it *BridgePausedIterator) Next() bool

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 BridgeQuorumUpdated

type BridgeQuorumUpdated struct {
	OldQuorum *big.Int
	NewQuorum *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

BridgeQuorumUpdated represents a QuorumUpdated event raised by the Bridge contract.

type BridgeQuorumUpdatedIterator

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

BridgeQuorumUpdatedIterator is returned from FilterQuorumUpdated and is used to iterate over the raw logs and unpacked data for QuorumUpdated events raised by the Bridge contract.

func (*BridgeQuorumUpdatedIterator) Close

func (it *BridgeQuorumUpdatedIterator) Close() error

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

func (*BridgeQuorumUpdatedIterator) Error

func (it *BridgeQuorumUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeQuorumUpdatedIterator) Next

func (it *BridgeQuorumUpdatedIterator) Next() bool

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 BridgeRaw

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

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

func (*BridgeRaw) Call

func (_Bridge *BridgeRaw) 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 (*BridgeRaw) Transact

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

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

func (*BridgeRaw) Transfer

func (_Bridge *BridgeRaw) 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 BridgeSession

type BridgeSession struct {
	Contract     *Bridge           // 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
}

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

func (*BridgeSession) AddAttestor

func (_Bridge *BridgeSession) AddAttestor(attestor common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

AddAttestor is a paid mutator transaction binding the contract method 0xea6469f8.

Solidity: function addAttestor(address attestor, uint256 newQuorumRequired) returns()

func (*BridgeSession) AddAttestors

func (_Bridge *BridgeSession) AddAttestors(_attestors []common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

AddAttestors is a paid mutator transaction binding the contract method 0x7ce5be0d.

Solidity: function addAttestors(address[] _attestors, uint256 newQuorumRequired) returns()

func (*BridgeSession) AddTokenService

func (_Bridge *BridgeSession) AddTokenService(_service common.Address) (*types.Transaction, error)

AddTokenService is a paid mutator transaction binding the contract method 0xf78dd84d.

Solidity: function addTokenService(address _service) returns()

func (*BridgeSession) BridgeInit

func (_Bridge *BridgeSession) BridgeInit(_destChainId *big.Int, _owner common.Address) (*types.Transaction, error)

BridgeInit is a paid mutator transaction binding the contract method 0x49427c55.

Solidity: function Bridge_init(uint256 _destChainId, address _owner) returns()

func (*BridgeSession) Consume

func (_Bridge *BridgeSession) Consume(packet PacketLibraryInPacket, signatures []byte) (*types.Transaction, error)

Consume is a paid mutator transaction binding the contract method 0x97067823.

Solidity: function consume((uint256,uint256,(uint256,string),(uint256,address),(string,address,uint256,address),uint256) packet, bytes signatures) returns(uint8)

func (*BridgeSession) ConsumedPackets

func (_Bridge *BridgeSession) ConsumedPackets(arg0 *big.Int) ([32]byte, error)

ConsumedPackets is a free data retrieval call binding the contract method 0x011f2b28.

Solidity: function consumedPackets(uint256 ) view returns(bytes32)

func (*BridgeSession) DestinationChainId

func (_Bridge *BridgeSession) DestinationChainId() (*big.Int, error)

DestinationChainId is a free data retrieval call binding the contract method 0xb0750611.

Solidity: function destinationChainId() view returns(uint256)

func (*BridgeSession) IsAttestor

func (_Bridge *BridgeSession) IsAttestor(attestor common.Address) (bool, error)

IsAttestor is a free data retrieval call binding the contract method 0x2e2f4e24.

Solidity: function isAttestor(address attestor) view returns(bool)

func (*BridgeSession) IsPacketConsumed

func (_Bridge *BridgeSession) IsPacketConsumed(_sequence *big.Int) (bool, error)

IsPacketConsumed is a free data retrieval call binding the contract method 0x25bddae1.

Solidity: function isPacketConsumed(uint256 _sequence) view returns(bool)

func (*BridgeSession) IsRegisteredTokenService

func (_Bridge *BridgeSession) IsRegisteredTokenService(_service common.Address) (bool, error)

IsRegisteredTokenService is a free data retrieval call binding the contract method 0x6b3da26f.

Solidity: function isRegisteredTokenService(address _service) view returns(bool)

func (*BridgeSession) IsSupportedChain

func (_Bridge *BridgeSession) IsSupportedChain(destChainId *big.Int) (bool, error)

IsSupportedChain is a free data retrieval call binding the contract method 0x5153d467.

Solidity: function isSupportedChain(uint256 destChainId) view returns(bool)

func (*BridgeSession) OutgoingPackets

func (_Bridge *BridgeSession) OutgoingPackets(arg0 *big.Int) ([32]byte, error)

OutgoingPackets is a free data retrieval call binding the contract method 0x759f0299.

Solidity: function outgoingPackets(uint256 ) view returns(bytes32)

func (*BridgeSession) Owner

func (_Bridge *BridgeSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BridgeSession) Pause

func (_Bridge *BridgeSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*BridgeSession) Paused

func (_Bridge *BridgeSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*BridgeSession) ProxiableUUID

func (_Bridge *BridgeSession) ProxiableUUID() ([32]byte, error)

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

Solidity: function proxiableUUID() view returns(bytes32)

func (*BridgeSession) QuorumRequired

func (_Bridge *BridgeSession) QuorumRequired() (*big.Int, error)

QuorumRequired is a free data retrieval call binding the contract method 0x088868e8.

Solidity: function quorumRequired() view returns(uint256)

func (*BridgeSession) RemoveAttestor

func (_Bridge *BridgeSession) RemoveAttestor(attestor common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

RemoveAttestor is a paid mutator transaction binding the contract method 0x91e8d207.

Solidity: function removeAttestor(address attestor, uint256 newQuorumRequired) returns()

func (*BridgeSession) RemoveTokenService

func (_Bridge *BridgeSession) RemoveTokenService(_service common.Address) (*types.Transaction, error)

RemoveTokenService is a paid mutator transaction binding the contract method 0x05cd5a36.

Solidity: function removeTokenService(address _service) returns()

func (*BridgeSession) RenounceOwnership

func (_Bridge *BridgeSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BridgeSession) SendMessage

func (_Bridge *BridgeSession) SendMessage(packet PacketLibraryOutPacket) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0xe71d86dc.

Solidity: function sendMessage((uint256,uint256,(uint256,address),(uint256,string),(address,string,uint256,string),uint256) packet) returns()

func (*BridgeSession) Sequence

func (_Bridge *BridgeSession) Sequence() (*big.Int, error)

Sequence is a free data retrieval call binding the contract method 0x529d15cc.

Solidity: function sequence() view returns(uint256)

func (*BridgeSession) TokenServices

func (_Bridge *BridgeSession) TokenServices(arg0 common.Address) (bool, error)

TokenServices is a free data retrieval call binding the contract method 0x12abc1b9.

Solidity: function tokenServices(address ) view returns(bool)

func (*BridgeSession) TransferOwnership

func (_Bridge *BridgeSession) 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 (*BridgeSession) Unpause

func (_Bridge *BridgeSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*BridgeSession) UpdateDestinationChainId

func (_Bridge *BridgeSession) UpdateDestinationChainId(newDestChainId *big.Int) (*types.Transaction, error)

UpdateDestinationChainId is a paid mutator transaction binding the contract method 0xb93429a8.

Solidity: function updateDestinationChainId(uint256 newDestChainId) returns()

func (*BridgeSession) UpdateQuorum

func (_Bridge *BridgeSession) UpdateQuorum(newQuorumRequired *big.Int) (*types.Transaction, error)

UpdateQuorum is a paid mutator transaction binding the contract method 0x35680dc2.

Solidity: function updateQuorum(uint256 newQuorumRequired) returns()

func (*BridgeSession) UpgradeTo

func (_Bridge *BridgeSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*BridgeSession) UpgradeToAndCall

func (_Bridge *BridgeSession) 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()

func (*BridgeSession) ValidateAleoAddress

func (_Bridge *BridgeSession) ValidateAleoAddress(addr string) (bool, error)

ValidateAleoAddress is a free data retrieval call binding the contract method 0x79d0705e.

Solidity: function validateAleoAddress(string addr) pure returns(bool)

type BridgeTokenServiceAdded

type BridgeTokenServiceAdded struct {
	TokenService common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

BridgeTokenServiceAdded represents a TokenServiceAdded event raised by the Bridge contract.

type BridgeTokenServiceAddedIterator

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

BridgeTokenServiceAddedIterator is returned from FilterTokenServiceAdded and is used to iterate over the raw logs and unpacked data for TokenServiceAdded events raised by the Bridge contract.

func (*BridgeTokenServiceAddedIterator) Close

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

func (*BridgeTokenServiceAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeTokenServiceAddedIterator) 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 BridgeTokenServiceRemoved

type BridgeTokenServiceRemoved struct {
	TokenService common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

BridgeTokenServiceRemoved represents a TokenServiceRemoved event raised by the Bridge contract.

type BridgeTokenServiceRemovedIterator

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

BridgeTokenServiceRemovedIterator is returned from FilterTokenServiceRemoved and is used to iterate over the raw logs and unpacked data for TokenServiceRemoved events raised by the Bridge contract.

func (*BridgeTokenServiceRemovedIterator) Close

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

func (*BridgeTokenServiceRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeTokenServiceRemovedIterator) 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 BridgeTransactor

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

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

func NewBridgeTransactor

func NewBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeTransactor, error)

NewBridgeTransactor creates a new write-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeTransactor) AddAttestor

func (_Bridge *BridgeTransactor) AddAttestor(opts *bind.TransactOpts, attestor common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

AddAttestor is a paid mutator transaction binding the contract method 0xea6469f8.

Solidity: function addAttestor(address attestor, uint256 newQuorumRequired) returns()

func (*BridgeTransactor) AddAttestors

func (_Bridge *BridgeTransactor) AddAttestors(opts *bind.TransactOpts, _attestors []common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

AddAttestors is a paid mutator transaction binding the contract method 0x7ce5be0d.

Solidity: function addAttestors(address[] _attestors, uint256 newQuorumRequired) returns()

func (*BridgeTransactor) AddTokenService

func (_Bridge *BridgeTransactor) AddTokenService(opts *bind.TransactOpts, _service common.Address) (*types.Transaction, error)

AddTokenService is a paid mutator transaction binding the contract method 0xf78dd84d.

Solidity: function addTokenService(address _service) returns()

func (*BridgeTransactor) BridgeInit

func (_Bridge *BridgeTransactor) BridgeInit(opts *bind.TransactOpts, _destChainId *big.Int, _owner common.Address) (*types.Transaction, error)

BridgeInit is a paid mutator transaction binding the contract method 0x49427c55.

Solidity: function Bridge_init(uint256 _destChainId, address _owner) returns()

func (*BridgeTransactor) Consume

func (_Bridge *BridgeTransactor) Consume(opts *bind.TransactOpts, packet PacketLibraryInPacket, signatures []byte) (*types.Transaction, error)

Consume is a paid mutator transaction binding the contract method 0x97067823.

Solidity: function consume((uint256,uint256,(uint256,string),(uint256,address),(string,address,uint256,address),uint256) packet, bytes signatures) returns(uint8)

func (*BridgeTransactor) Pause

func (_Bridge *BridgeTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*BridgeTransactor) RemoveAttestor

func (_Bridge *BridgeTransactor) RemoveAttestor(opts *bind.TransactOpts, attestor common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

RemoveAttestor is a paid mutator transaction binding the contract method 0x91e8d207.

Solidity: function removeAttestor(address attestor, uint256 newQuorumRequired) returns()

func (*BridgeTransactor) RemoveTokenService

func (_Bridge *BridgeTransactor) RemoveTokenService(opts *bind.TransactOpts, _service common.Address) (*types.Transaction, error)

RemoveTokenService is a paid mutator transaction binding the contract method 0x05cd5a36.

Solidity: function removeTokenService(address _service) returns()

func (*BridgeTransactor) RenounceOwnership

func (_Bridge *BridgeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BridgeTransactor) SendMessage

func (_Bridge *BridgeTransactor) SendMessage(opts *bind.TransactOpts, packet PacketLibraryOutPacket) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0xe71d86dc.

Solidity: function sendMessage((uint256,uint256,(uint256,address),(uint256,string),(address,string,uint256,string),uint256) packet) returns()

func (*BridgeTransactor) TransferOwnership

func (_Bridge *BridgeTransactor) 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 (*BridgeTransactor) Unpause

func (_Bridge *BridgeTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*BridgeTransactor) UpdateDestinationChainId

func (_Bridge *BridgeTransactor) UpdateDestinationChainId(opts *bind.TransactOpts, newDestChainId *big.Int) (*types.Transaction, error)

UpdateDestinationChainId is a paid mutator transaction binding the contract method 0xb93429a8.

Solidity: function updateDestinationChainId(uint256 newDestChainId) returns()

func (*BridgeTransactor) UpdateQuorum

func (_Bridge *BridgeTransactor) UpdateQuorum(opts *bind.TransactOpts, newQuorumRequired *big.Int) (*types.Transaction, error)

UpdateQuorum is a paid mutator transaction binding the contract method 0x35680dc2.

Solidity: function updateQuorum(uint256 newQuorumRequired) returns()

func (*BridgeTransactor) UpgradeTo

func (_Bridge *BridgeTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*BridgeTransactor) UpgradeToAndCall

func (_Bridge *BridgeTransactor) 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 BridgeTransactorRaw

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

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

func (*BridgeTransactorRaw) Transact

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

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

func (*BridgeTransactorRaw) Transfer

func (_Bridge *BridgeTransactorRaw) 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 BridgeTransactorSession

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

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

func (*BridgeTransactorSession) AddAttestor

func (_Bridge *BridgeTransactorSession) AddAttestor(attestor common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

AddAttestor is a paid mutator transaction binding the contract method 0xea6469f8.

Solidity: function addAttestor(address attestor, uint256 newQuorumRequired) returns()

func (*BridgeTransactorSession) AddAttestors

func (_Bridge *BridgeTransactorSession) AddAttestors(_attestors []common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

AddAttestors is a paid mutator transaction binding the contract method 0x7ce5be0d.

Solidity: function addAttestors(address[] _attestors, uint256 newQuorumRequired) returns()

func (*BridgeTransactorSession) AddTokenService

func (_Bridge *BridgeTransactorSession) AddTokenService(_service common.Address) (*types.Transaction, error)

AddTokenService is a paid mutator transaction binding the contract method 0xf78dd84d.

Solidity: function addTokenService(address _service) returns()

func (*BridgeTransactorSession) BridgeInit

func (_Bridge *BridgeTransactorSession) BridgeInit(_destChainId *big.Int, _owner common.Address) (*types.Transaction, error)

BridgeInit is a paid mutator transaction binding the contract method 0x49427c55.

Solidity: function Bridge_init(uint256 _destChainId, address _owner) returns()

func (*BridgeTransactorSession) Consume

func (_Bridge *BridgeTransactorSession) Consume(packet PacketLibraryInPacket, signatures []byte) (*types.Transaction, error)

Consume is a paid mutator transaction binding the contract method 0x97067823.

Solidity: function consume((uint256,uint256,(uint256,string),(uint256,address),(string,address,uint256,address),uint256) packet, bytes signatures) returns(uint8)

func (*BridgeTransactorSession) Pause

func (_Bridge *BridgeTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*BridgeTransactorSession) RemoveAttestor

func (_Bridge *BridgeTransactorSession) RemoveAttestor(attestor common.Address, newQuorumRequired *big.Int) (*types.Transaction, error)

RemoveAttestor is a paid mutator transaction binding the contract method 0x91e8d207.

Solidity: function removeAttestor(address attestor, uint256 newQuorumRequired) returns()

func (*BridgeTransactorSession) RemoveTokenService

func (_Bridge *BridgeTransactorSession) RemoveTokenService(_service common.Address) (*types.Transaction, error)

RemoveTokenService is a paid mutator transaction binding the contract method 0x05cd5a36.

Solidity: function removeTokenService(address _service) returns()

func (*BridgeTransactorSession) RenounceOwnership

func (_Bridge *BridgeTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BridgeTransactorSession) SendMessage

func (_Bridge *BridgeTransactorSession) SendMessage(packet PacketLibraryOutPacket) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0xe71d86dc.

Solidity: function sendMessage((uint256,uint256,(uint256,address),(uint256,string),(address,string,uint256,string),uint256) packet) returns()

func (*BridgeTransactorSession) TransferOwnership

func (_Bridge *BridgeTransactorSession) 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 (*BridgeTransactorSession) Unpause

func (_Bridge *BridgeTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*BridgeTransactorSession) UpdateDestinationChainId

func (_Bridge *BridgeTransactorSession) UpdateDestinationChainId(newDestChainId *big.Int) (*types.Transaction, error)

UpdateDestinationChainId is a paid mutator transaction binding the contract method 0xb93429a8.

Solidity: function updateDestinationChainId(uint256 newDestChainId) returns()

func (*BridgeTransactorSession) UpdateQuorum

func (_Bridge *BridgeTransactorSession) UpdateQuorum(newQuorumRequired *big.Int) (*types.Transaction, error)

UpdateQuorum is a paid mutator transaction binding the contract method 0x35680dc2.

Solidity: function updateQuorum(uint256 newQuorumRequired) returns()

func (*BridgeTransactorSession) UpgradeTo

func (_Bridge *BridgeTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*BridgeTransactorSession) UpgradeToAndCall

func (_Bridge *BridgeTransactorSession) 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 BridgeUnpaused

type BridgeUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BridgeUnpaused represents a Unpaused event raised by the Bridge contract.

type BridgeUnpausedIterator

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

BridgeUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Bridge contract.

func (*BridgeUnpausedIterator) Close

func (it *BridgeUnpausedIterator) Close() error

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

func (*BridgeUnpausedIterator) Error

func (it *BridgeUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeUnpausedIterator) Next

func (it *BridgeUnpausedIterator) Next() bool

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 BridgeUpgraded

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

BridgeUpgraded represents a Upgraded event raised by the Bridge contract.

type BridgeUpgradedIterator

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

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

func (*BridgeUpgradedIterator) Close

func (it *BridgeUpgradedIterator) Close() error

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

func (*BridgeUpgradedIterator) Error

func (it *BridgeUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeUpgradedIterator) Next

func (it *BridgeUpgradedIterator) Next() bool

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 PacketLibraryInNetworkAddress

type PacketLibraryInNetworkAddress struct {
	ChainId *big.Int
	Addr    common.Address
}

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

type PacketLibraryInPacket

type PacketLibraryInPacket struct {
	Version            *big.Int
	Sequence           *big.Int
	SourceTokenService PacketLibraryOutNetworkAddress
	DestTokenService   PacketLibraryInNetworkAddress
	Message            PacketLibraryInTokenMessage
	Height             *big.Int
}

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

type PacketLibraryInTokenMessage

type PacketLibraryInTokenMessage struct {
	SenderAddress    string
	DestTokenAddress common.Address
	Amount           *big.Int
	ReceiverAddress  common.Address
}

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

type PacketLibraryOutNetworkAddress

type PacketLibraryOutNetworkAddress struct {
	ChainId *big.Int
	Addr    string
}

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

type PacketLibraryOutPacket

type PacketLibraryOutPacket struct {
	Version            *big.Int
	Sequence           *big.Int
	SourceTokenService PacketLibraryInNetworkAddress
	DestTokenService   PacketLibraryOutNetworkAddress
	Message            PacketLibraryOutTokenMessage
	Height             *big.Int
}

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

type PacketLibraryOutTokenMessage

type PacketLibraryOutTokenMessage struct {
	SenderAddress    common.Address
	DestTokenAddress string
	Amount           *big.Int
	ReceiverAddress  string
}

PacketLibraryOutTokenMessage 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