Documentation ¶
Index ¶
- Variables
- type Ibridgel2sovereignchains
- type Ibridgel2sovereignchainsCaller
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCaller) GetTokenMetadata(opts *bind.CallOpts, token common.Address) ([]byte, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCaller) WrappedTokenToTokenInfo(opts *bind.CallOpts, destinationAddress common.Address) (uint32, common.Address, error)
- type Ibridgel2sovereignchainsCallerRaw
- type Ibridgel2sovereignchainsCallerSession
- type Ibridgel2sovereignchainsFilterer
- type Ibridgel2sovereignchainsRaw
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Ibridgel2sovereignchainsSession
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) ActivateEmergencyState() (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) BridgeAsset(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) DeactivateEmergencyState() (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) GetTokenMetadata(token common.Address) ([]byte, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) Initialize0(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) UpdateGlobalExitRoot() (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) WrappedTokenToTokenInfo(destinationAddress common.Address) (uint32, common.Address, error)
- type Ibridgel2sovereignchainsTransactor
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) BridgeAsset(opts *bind.TransactOpts, destinationNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) BridgeMessage(opts *bind.TransactOpts, destinationNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) BridgeMessageWETH(opts *bind.TransactOpts, destinationNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) ClaimAsset(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) ClaimMessage(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) Initialize(opts *bind.TransactOpts, _networkID uint32, _gasTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) Initialize0(opts *bind.TransactOpts, _networkID uint32, _gasTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) UpdateGlobalExitRoot(opts *bind.TransactOpts) (*types.Transaction, error)
- type Ibridgel2sovereignchainsTransactorRaw
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Ibridgel2sovereignchainsTransactorSession
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) ActivateEmergencyState() (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) BridgeAsset(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) DeactivateEmergencyState() (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) Initialize0(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, ...) (*types.Transaction, error)
- func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) UpdateGlobalExitRoot() (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var Ibridgel2sovereignchainsABI = Ibridgel2sovereignchainsMetaData.ABI
Ibridgel2sovereignchainsABI is the input ABI used to generate the binding from. Deprecated: Use Ibridgel2sovereignchainsMetaData.ABI instead.
var Ibridgel2sovereignchainsMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AmountDoesNotMatchMsgValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DestinationNetworkInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmergencyStateNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EtherTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedTokenWrappedDeployment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GasTokenNetworkMustBeZeroOnEther\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GlobalExitRootInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputArraysLengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitializeFunction\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSmtProof\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSovereignWETHAddressParams\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MessageFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MsgValueNotZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NativeTokenIsEther\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoValueInMessagesOnGasTokenNetworks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidSpender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyBridgeManager\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRollupManager\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OriginNetworkInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenAlreadyMapped\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenAlreadyUpdated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenNotMapped\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenNotRemapped\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WETHRemappingNotSupportedOnGasTokenNetworks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"activateEmergencyState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"forceUpdateGlobalExitRoot\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"permitData\",\"type\":\"bytes\"}],\"name\":\"bridgeAsset\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"forceUpdateGlobalExitRoot\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"bridgeMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountWETH\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"forceUpdateGlobalExitRoot\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"bridgeMessageWETH\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"claimAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"claimMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deactivateEmergencyState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenMetadata\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_networkID\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"_gasTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"_gasTokenNetwork\",\"type\":\"uint32\"},{\"internalType\":\"contractIBasePolygonZkEVMGlobalExitRoot\",\"name\":\"_globalExitRootManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_polygonRollupManager\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_gasTokenMetadata\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_bridgeManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sovereignWETHAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_sovereignWETHAddressIsNotMintable\",\"type\":\"bool\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_networkID\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"_gasTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"_gasTokenNetwork\",\"type\":\"uint32\"},{\"internalType\":\"contractIBasePolygonZkEVMGlobalExitRoot\",\"name\":\"_globalExitRootManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_polygonRollupManager\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_gasTokenMetadata\",\"type\":\"bytes\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateGlobalExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"}],\"name\":\"wrappedTokenToTokenInfo\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
Ibridgel2sovereignchainsMetaData contains all meta data concerning the Ibridgel2sovereignchains contract.
Functions ¶
This section is empty.
Types ¶
type Ibridgel2sovereignchains ¶
type Ibridgel2sovereignchains struct { Ibridgel2sovereignchainsCaller // Read-only binding to the contract Ibridgel2sovereignchainsTransactor // Write-only binding to the contract Ibridgel2sovereignchainsFilterer // Log filterer for contract events }
Ibridgel2sovereignchains is an auto generated Go binding around an Ethereum contract.
func NewIbridgel2sovereignchains ¶
func NewIbridgel2sovereignchains(address common.Address, backend bind.ContractBackend) (*Ibridgel2sovereignchains, error)
NewIbridgel2sovereignchains creates a new instance of Ibridgel2sovereignchains, bound to a specific deployed contract.
type Ibridgel2sovereignchainsCaller ¶
type Ibridgel2sovereignchainsCaller struct {
// contains filtered or unexported fields
}
Ibridgel2sovereignchainsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIbridgel2sovereignchainsCaller ¶
func NewIbridgel2sovereignchainsCaller(address common.Address, caller bind.ContractCaller) (*Ibridgel2sovereignchainsCaller, error)
NewIbridgel2sovereignchainsCaller creates a new read-only instance of Ibridgel2sovereignchains, bound to a specific deployed contract.
func (*Ibridgel2sovereignchainsCaller) GetTokenMetadata ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCaller) GetTokenMetadata(opts *bind.CallOpts, token common.Address) ([]byte, error)
GetTokenMetadata is a free data retrieval call binding the contract method 0xc00f14ab.
Solidity: function getTokenMetadata(address token) view returns(bytes)
func (*Ibridgel2sovereignchainsCaller) WrappedTokenToTokenInfo ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCaller) WrappedTokenToTokenInfo(opts *bind.CallOpts, destinationAddress common.Address) (uint32, common.Address, error)
WrappedTokenToTokenInfo is a free data retrieval call binding the contract method 0x318aee3d.
Solidity: function wrappedTokenToTokenInfo(address destinationAddress) view returns(uint32, address)
type Ibridgel2sovereignchainsCallerRaw ¶
type Ibridgel2sovereignchainsCallerRaw struct {
Contract *Ibridgel2sovereignchainsCaller // Generic read-only contract binding to access the raw methods on
}
Ibridgel2sovereignchainsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Ibridgel2sovereignchainsCallerRaw) Call ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCallerRaw) 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 Ibridgel2sovereignchainsCallerSession ¶
type Ibridgel2sovereignchainsCallerSession struct { Contract *Ibridgel2sovereignchainsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Ibridgel2sovereignchainsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Ibridgel2sovereignchainsCallerSession) GetTokenMetadata ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCallerSession) GetTokenMetadata(token common.Address) ([]byte, error)
GetTokenMetadata is a free data retrieval call binding the contract method 0xc00f14ab.
Solidity: function getTokenMetadata(address token) view returns(bytes)
func (*Ibridgel2sovereignchainsCallerSession) WrappedTokenToTokenInfo ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsCallerSession) WrappedTokenToTokenInfo(destinationAddress common.Address) (uint32, common.Address, error)
WrappedTokenToTokenInfo is a free data retrieval call binding the contract method 0x318aee3d.
Solidity: function wrappedTokenToTokenInfo(address destinationAddress) view returns(uint32, address)
type Ibridgel2sovereignchainsFilterer ¶
type Ibridgel2sovereignchainsFilterer struct {
// contains filtered or unexported fields
}
Ibridgel2sovereignchainsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIbridgel2sovereignchainsFilterer ¶
func NewIbridgel2sovereignchainsFilterer(address common.Address, filterer bind.ContractFilterer) (*Ibridgel2sovereignchainsFilterer, error)
NewIbridgel2sovereignchainsFilterer creates a new log filterer instance of Ibridgel2sovereignchains, bound to a specific deployed contract.
type Ibridgel2sovereignchainsRaw ¶
type Ibridgel2sovereignchainsRaw struct {
Contract *Ibridgel2sovereignchains // Generic contract binding to access the raw methods on
}
Ibridgel2sovereignchainsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*Ibridgel2sovereignchainsRaw) Call ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsRaw) 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 (*Ibridgel2sovereignchainsRaw) Transact ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Ibridgel2sovereignchainsRaw) Transfer ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsRaw) 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 Ibridgel2sovereignchainsSession ¶
type Ibridgel2sovereignchainsSession struct { Contract *Ibridgel2sovereignchains // 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 }
Ibridgel2sovereignchainsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Ibridgel2sovereignchainsSession) ActivateEmergencyState ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) ActivateEmergencyState() (*types.Transaction, error)
ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.
Solidity: function activateEmergencyState() returns()
func (*Ibridgel2sovereignchainsSession) BridgeAsset ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) BridgeAsset(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, token common.Address, forceUpdateGlobalExitRoot bool, permitData []byte) (*types.Transaction, error)
BridgeAsset is a paid mutator transaction binding the contract method 0xcd586579.
Solidity: function bridgeAsset(uint32 destinationNetwork, address destinationAddress, uint256 amount, address token, bool forceUpdateGlobalExitRoot, bytes permitData) payable returns()
func (*Ibridgel2sovereignchainsSession) BridgeMessage ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)
BridgeMessage is a paid mutator transaction binding the contract method 0x240ff378.
Solidity: function bridgeMessage(uint32 destinationNetwork, address destinationAddress, bool forceUpdateGlobalExitRoot, bytes metadata) payable returns()
func (*Ibridgel2sovereignchainsSession) BridgeMessageWETH ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, amountWETH *big.Int, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)
BridgeMessageWETH is a paid mutator transaction binding the contract method 0xb8b284d0.
Solidity: function bridgeMessageWETH(uint32 destinationNetwork, address destinationAddress, uint256 amountWETH, bool forceUpdateGlobalExitRoot, bytes metadata) returns()
func (*Ibridgel2sovereignchainsSession) ClaimAsset ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimAsset is a paid mutator transaction binding the contract method 0xccaa2d11.
Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()
func (*Ibridgel2sovereignchainsSession) ClaimMessage ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimMessage is a paid mutator transaction binding the contract method 0xf5efcd79.
Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()
func (*Ibridgel2sovereignchainsSession) DeactivateEmergencyState ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) DeactivateEmergencyState() (*types.Transaction, error)
DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.
Solidity: function deactivateEmergencyState() returns()
func (*Ibridgel2sovereignchainsSession) GetTokenMetadata ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) GetTokenMetadata(token common.Address) ([]byte, error)
GetTokenMetadata is a free data retrieval call binding the contract method 0xc00f14ab.
Solidity: function getTokenMetadata(address token) view returns(bytes)
func (*Ibridgel2sovereignchainsSession) Initialize ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte, _bridgeManager common.Address, sovereignWETHAddress common.Address, _sovereignWETHAddressIsNotMintable bool) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8c0dd470.
Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata, address _bridgeManager, address sovereignWETHAddress, bool _sovereignWETHAddressIsNotMintable) returns()
func (*Ibridgel2sovereignchainsSession) Initialize0 ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) Initialize0(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)
Initialize0 is a paid mutator transaction binding the contract method 0xf811bff7.
Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata) returns()
func (*Ibridgel2sovereignchainsSession) UpdateGlobalExitRoot ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) UpdateGlobalExitRoot() (*types.Transaction, error)
UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.
Solidity: function updateGlobalExitRoot() returns()
func (*Ibridgel2sovereignchainsSession) WrappedTokenToTokenInfo ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsSession) WrappedTokenToTokenInfo(destinationAddress common.Address) (uint32, common.Address, error)
WrappedTokenToTokenInfo is a free data retrieval call binding the contract method 0x318aee3d.
Solidity: function wrappedTokenToTokenInfo(address destinationAddress) view returns(uint32, address)
type Ibridgel2sovereignchainsTransactor ¶
type Ibridgel2sovereignchainsTransactor struct {
// contains filtered or unexported fields
}
Ibridgel2sovereignchainsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIbridgel2sovereignchainsTransactor ¶
func NewIbridgel2sovereignchainsTransactor(address common.Address, transactor bind.ContractTransactor) (*Ibridgel2sovereignchainsTransactor, error)
NewIbridgel2sovereignchainsTransactor creates a new write-only instance of Ibridgel2sovereignchains, bound to a specific deployed contract.
func (*Ibridgel2sovereignchainsTransactor) ActivateEmergencyState ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.
Solidity: function activateEmergencyState() returns()
func (*Ibridgel2sovereignchainsTransactor) BridgeAsset ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) BridgeAsset(opts *bind.TransactOpts, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, token common.Address, forceUpdateGlobalExitRoot bool, permitData []byte) (*types.Transaction, error)
BridgeAsset is a paid mutator transaction binding the contract method 0xcd586579.
Solidity: function bridgeAsset(uint32 destinationNetwork, address destinationAddress, uint256 amount, address token, bool forceUpdateGlobalExitRoot, bytes permitData) payable returns()
func (*Ibridgel2sovereignchainsTransactor) BridgeMessage ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) BridgeMessage(opts *bind.TransactOpts, destinationNetwork uint32, destinationAddress common.Address, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)
BridgeMessage is a paid mutator transaction binding the contract method 0x240ff378.
Solidity: function bridgeMessage(uint32 destinationNetwork, address destinationAddress, bool forceUpdateGlobalExitRoot, bytes metadata) payable returns()
func (*Ibridgel2sovereignchainsTransactor) BridgeMessageWETH ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) BridgeMessageWETH(opts *bind.TransactOpts, destinationNetwork uint32, destinationAddress common.Address, amountWETH *big.Int, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)
BridgeMessageWETH is a paid mutator transaction binding the contract method 0xb8b284d0.
Solidity: function bridgeMessageWETH(uint32 destinationNetwork, address destinationAddress, uint256 amountWETH, bool forceUpdateGlobalExitRoot, bytes metadata) returns()
func (*Ibridgel2sovereignchainsTransactor) ClaimAsset ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) ClaimAsset(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimAsset is a paid mutator transaction binding the contract method 0xccaa2d11.
Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()
func (*Ibridgel2sovereignchainsTransactor) ClaimMessage ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) ClaimMessage(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimMessage is a paid mutator transaction binding the contract method 0xf5efcd79.
Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()
func (*Ibridgel2sovereignchainsTransactor) DeactivateEmergencyState ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.
Solidity: function deactivateEmergencyState() returns()
func (*Ibridgel2sovereignchainsTransactor) Initialize ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) Initialize(opts *bind.TransactOpts, _networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte, _bridgeManager common.Address, sovereignWETHAddress common.Address, _sovereignWETHAddressIsNotMintable bool) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8c0dd470.
Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata, address _bridgeManager, address sovereignWETHAddress, bool _sovereignWETHAddressIsNotMintable) returns()
func (*Ibridgel2sovereignchainsTransactor) Initialize0 ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) Initialize0(opts *bind.TransactOpts, _networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)
Initialize0 is a paid mutator transaction binding the contract method 0xf811bff7.
Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata) returns()
func (*Ibridgel2sovereignchainsTransactor) UpdateGlobalExitRoot ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactor) UpdateGlobalExitRoot(opts *bind.TransactOpts) (*types.Transaction, error)
UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.
Solidity: function updateGlobalExitRoot() returns()
type Ibridgel2sovereignchainsTransactorRaw ¶
type Ibridgel2sovereignchainsTransactorRaw struct {
Contract *Ibridgel2sovereignchainsTransactor // Generic write-only contract binding to access the raw methods on
}
Ibridgel2sovereignchainsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Ibridgel2sovereignchainsTransactorRaw) Transact ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Ibridgel2sovereignchainsTransactorRaw) Transfer ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorRaw) 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 Ibridgel2sovereignchainsTransactorSession ¶
type Ibridgel2sovereignchainsTransactorSession struct { Contract *Ibridgel2sovereignchainsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Ibridgel2sovereignchainsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Ibridgel2sovereignchainsTransactorSession) ActivateEmergencyState ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) ActivateEmergencyState() (*types.Transaction, error)
ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.
Solidity: function activateEmergencyState() returns()
func (*Ibridgel2sovereignchainsTransactorSession) BridgeAsset ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) BridgeAsset(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, token common.Address, forceUpdateGlobalExitRoot bool, permitData []byte) (*types.Transaction, error)
BridgeAsset is a paid mutator transaction binding the contract method 0xcd586579.
Solidity: function bridgeAsset(uint32 destinationNetwork, address destinationAddress, uint256 amount, address token, bool forceUpdateGlobalExitRoot, bytes permitData) payable returns()
func (*Ibridgel2sovereignchainsTransactorSession) BridgeMessage ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)
BridgeMessage is a paid mutator transaction binding the contract method 0x240ff378.
Solidity: function bridgeMessage(uint32 destinationNetwork, address destinationAddress, bool forceUpdateGlobalExitRoot, bytes metadata) payable returns()
func (*Ibridgel2sovereignchainsTransactorSession) BridgeMessageWETH ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, amountWETH *big.Int, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)
BridgeMessageWETH is a paid mutator transaction binding the contract method 0xb8b284d0.
Solidity: function bridgeMessageWETH(uint32 destinationNetwork, address destinationAddress, uint256 amountWETH, bool forceUpdateGlobalExitRoot, bytes metadata) returns()
func (*Ibridgel2sovereignchainsTransactorSession) ClaimAsset ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimAsset is a paid mutator transaction binding the contract method 0xccaa2d11.
Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()
func (*Ibridgel2sovereignchainsTransactorSession) ClaimMessage ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)
ClaimMessage is a paid mutator transaction binding the contract method 0xf5efcd79.
Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()
func (*Ibridgel2sovereignchainsTransactorSession) DeactivateEmergencyState ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) DeactivateEmergencyState() (*types.Transaction, error)
DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.
Solidity: function deactivateEmergencyState() returns()
func (*Ibridgel2sovereignchainsTransactorSession) Initialize ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte, _bridgeManager common.Address, sovereignWETHAddress common.Address, _sovereignWETHAddressIsNotMintable bool) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8c0dd470.
Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata, address _bridgeManager, address sovereignWETHAddress, bool _sovereignWETHAddressIsNotMintable) returns()
func (*Ibridgel2sovereignchainsTransactorSession) Initialize0 ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) Initialize0(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)
Initialize0 is a paid mutator transaction binding the contract method 0xf811bff7.
Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata) returns()
func (*Ibridgel2sovereignchainsTransactorSession) UpdateGlobalExitRoot ¶
func (_Ibridgel2sovereignchains *Ibridgel2sovereignchainsTransactorSession) UpdateGlobalExitRoot() (*types.Transaction, error)
UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.
Solidity: function updateGlobalExitRoot() returns()