Documentation ¶
Index ¶
- Variables
- type Ipolygonzkevmbridgev2
- type Ipolygonzkevmbridgev2Caller
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Caller) GetTokenMetadata(opts *bind.CallOpts, token common.Address) ([]byte, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Caller) WrappedTokenToTokenInfo(opts *bind.CallOpts, destinationAddress common.Address) (uint32, common.Address, error)
- type Ipolygonzkevmbridgev2CallerRaw
- type Ipolygonzkevmbridgev2CallerSession
- type Ipolygonzkevmbridgev2Filterer
- type Ipolygonzkevmbridgev2Raw
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Ipolygonzkevmbridgev2Session
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) ActivateEmergencyState() (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) BridgeAsset(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) DeactivateEmergencyState() (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) GetTokenMetadata(token common.Address) ([]byte, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) UpdateGlobalExitRoot() (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) WrappedTokenToTokenInfo(destinationAddress common.Address) (uint32, common.Address, error)
- type Ipolygonzkevmbridgev2Transactor
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) BridgeAsset(opts *bind.TransactOpts, destinationNetwork uint32, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) BridgeMessage(opts *bind.TransactOpts, destinationNetwork uint32, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) BridgeMessageWETH(opts *bind.TransactOpts, destinationNetwork uint32, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) ClaimAsset(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) ClaimMessage(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) Initialize(opts *bind.TransactOpts, _networkID uint32, _gasTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) UpdateGlobalExitRoot(opts *bind.TransactOpts) (*types.Transaction, error)
- type Ipolygonzkevmbridgev2TransactorRaw
- type Ipolygonzkevmbridgev2TransactorSession
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) ActivateEmergencyState() (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) BridgeAsset(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) DeactivateEmergencyState() (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, ...) (*types.Transaction, error)
- func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) UpdateGlobalExitRoot() (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var Ipolygonzkevmbridgev2ABI = Ipolygonzkevmbridgev2MetaData.ABI
Ipolygonzkevmbridgev2ABI is the input ABI used to generate the binding from. Deprecated: Use Ipolygonzkevmbridgev2MetaData.ABI instead.
var Ipolygonzkevmbridgev2MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AmountDoesNotMatchMsgValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DestinationNetworkInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EtherTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedTokenWrappedDeployment\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GasTokenNetworkMustBeZeroOnEther\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GlobalExitRootInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSmtProof\",\"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\":\"OnlyRollupManager\",\"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\"}],\"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\"}]",
}
Ipolygonzkevmbridgev2MetaData contains all meta data concerning the Ipolygonzkevmbridgev2 contract.
Functions ¶
This section is empty.
Types ¶
type Ipolygonzkevmbridgev2 ¶
type Ipolygonzkevmbridgev2 struct { Ipolygonzkevmbridgev2Caller // Read-only binding to the contract Ipolygonzkevmbridgev2Transactor // Write-only binding to the contract Ipolygonzkevmbridgev2Filterer // Log filterer for contract events }
Ipolygonzkevmbridgev2 is an auto generated Go binding around an Ethereum contract.
func NewIpolygonzkevmbridgev2 ¶
func NewIpolygonzkevmbridgev2(address common.Address, backend bind.ContractBackend) (*Ipolygonzkevmbridgev2, error)
NewIpolygonzkevmbridgev2 creates a new instance of Ipolygonzkevmbridgev2, bound to a specific deployed contract.
type Ipolygonzkevmbridgev2Caller ¶
type Ipolygonzkevmbridgev2Caller struct {
// contains filtered or unexported fields
}
Ipolygonzkevmbridgev2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewIpolygonzkevmbridgev2Caller ¶
func NewIpolygonzkevmbridgev2Caller(address common.Address, caller bind.ContractCaller) (*Ipolygonzkevmbridgev2Caller, error)
NewIpolygonzkevmbridgev2Caller creates a new read-only instance of Ipolygonzkevmbridgev2, bound to a specific deployed contract.
func (*Ipolygonzkevmbridgev2Caller) GetTokenMetadata ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Caller) 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 (*Ipolygonzkevmbridgev2Caller) WrappedTokenToTokenInfo ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Caller) 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 Ipolygonzkevmbridgev2CallerRaw ¶
type Ipolygonzkevmbridgev2CallerRaw struct {
Contract *Ipolygonzkevmbridgev2Caller // Generic read-only contract binding to access the raw methods on
}
Ipolygonzkevmbridgev2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Ipolygonzkevmbridgev2CallerRaw) Call ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2CallerRaw) 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 Ipolygonzkevmbridgev2CallerSession ¶
type Ipolygonzkevmbridgev2CallerSession struct { Contract *Ipolygonzkevmbridgev2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Ipolygonzkevmbridgev2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Ipolygonzkevmbridgev2CallerSession) GetTokenMetadata ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2CallerSession) 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 (*Ipolygonzkevmbridgev2CallerSession) WrappedTokenToTokenInfo ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2CallerSession) 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 Ipolygonzkevmbridgev2Filterer ¶
type Ipolygonzkevmbridgev2Filterer struct {
// contains filtered or unexported fields
}
Ipolygonzkevmbridgev2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIpolygonzkevmbridgev2Filterer ¶
func NewIpolygonzkevmbridgev2Filterer(address common.Address, filterer bind.ContractFilterer) (*Ipolygonzkevmbridgev2Filterer, error)
NewIpolygonzkevmbridgev2Filterer creates a new log filterer instance of Ipolygonzkevmbridgev2, bound to a specific deployed contract.
type Ipolygonzkevmbridgev2Raw ¶
type Ipolygonzkevmbridgev2Raw struct {
Contract *Ipolygonzkevmbridgev2 // Generic contract binding to access the raw methods on
}
Ipolygonzkevmbridgev2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Ipolygonzkevmbridgev2Raw) Call ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Raw) 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 (*Ipolygonzkevmbridgev2Raw) Transact ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Ipolygonzkevmbridgev2Raw) Transfer ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Raw) 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 Ipolygonzkevmbridgev2Session ¶
type Ipolygonzkevmbridgev2Session struct { Contract *Ipolygonzkevmbridgev2 // 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 }
Ipolygonzkevmbridgev2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Ipolygonzkevmbridgev2Session) ActivateEmergencyState ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) ActivateEmergencyState() (*types.Transaction, error)
ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.
Solidity: function activateEmergencyState() returns()
func (*Ipolygonzkevmbridgev2Session) BridgeAsset ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 (*Ipolygonzkevmbridgev2Session) BridgeMessage ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 (*Ipolygonzkevmbridgev2Session) BridgeMessageWETH ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 (*Ipolygonzkevmbridgev2Session) ClaimAsset ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 (*Ipolygonzkevmbridgev2Session) ClaimMessage ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 (*Ipolygonzkevmbridgev2Session) DeactivateEmergencyState ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) DeactivateEmergencyState() (*types.Transaction, error)
DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.
Solidity: function deactivateEmergencyState() returns()
func (*Ipolygonzkevmbridgev2Session) GetTokenMetadata ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 (*Ipolygonzkevmbridgev2Session) Initialize ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)
Initialize 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 (*Ipolygonzkevmbridgev2Session) UpdateGlobalExitRoot ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) UpdateGlobalExitRoot() (*types.Transaction, error)
UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.
Solidity: function updateGlobalExitRoot() returns()
func (*Ipolygonzkevmbridgev2Session) WrappedTokenToTokenInfo ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Session) 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 Ipolygonzkevmbridgev2Transactor ¶
type Ipolygonzkevmbridgev2Transactor struct {
// contains filtered or unexported fields
}
Ipolygonzkevmbridgev2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIpolygonzkevmbridgev2Transactor ¶
func NewIpolygonzkevmbridgev2Transactor(address common.Address, transactor bind.ContractTransactor) (*Ipolygonzkevmbridgev2Transactor, error)
NewIpolygonzkevmbridgev2Transactor creates a new write-only instance of Ipolygonzkevmbridgev2, bound to a specific deployed contract.
func (*Ipolygonzkevmbridgev2Transactor) ActivateEmergencyState ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.
Solidity: function activateEmergencyState() returns()
func (*Ipolygonzkevmbridgev2Transactor) BridgeAsset ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) 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 (*Ipolygonzkevmbridgev2Transactor) BridgeMessage ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) 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 (*Ipolygonzkevmbridgev2Transactor) BridgeMessageWETH ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) 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 (*Ipolygonzkevmbridgev2Transactor) ClaimAsset ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) 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 (*Ipolygonzkevmbridgev2Transactor) ClaimMessage ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) 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 (*Ipolygonzkevmbridgev2Transactor) DeactivateEmergencyState ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)
DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.
Solidity: function deactivateEmergencyState() returns()
func (*Ipolygonzkevmbridgev2Transactor) Initialize ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) Initialize(opts *bind.TransactOpts, _networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)
Initialize 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 (*Ipolygonzkevmbridgev2Transactor) UpdateGlobalExitRoot ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2Transactor) UpdateGlobalExitRoot(opts *bind.TransactOpts) (*types.Transaction, error)
UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.
Solidity: function updateGlobalExitRoot() returns()
type Ipolygonzkevmbridgev2TransactorRaw ¶
type Ipolygonzkevmbridgev2TransactorRaw struct {
Contract *Ipolygonzkevmbridgev2Transactor // Generic write-only contract binding to access the raw methods on
}
Ipolygonzkevmbridgev2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Ipolygonzkevmbridgev2TransactorRaw) Transact ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Ipolygonzkevmbridgev2TransactorRaw) Transfer ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorRaw) 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 Ipolygonzkevmbridgev2TransactorSession ¶
type Ipolygonzkevmbridgev2TransactorSession struct { Contract *Ipolygonzkevmbridgev2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Ipolygonzkevmbridgev2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Ipolygonzkevmbridgev2TransactorSession) ActivateEmergencyState ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) ActivateEmergencyState() (*types.Transaction, error)
ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.
Solidity: function activateEmergencyState() returns()
func (*Ipolygonzkevmbridgev2TransactorSession) BridgeAsset ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) 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 (*Ipolygonzkevmbridgev2TransactorSession) BridgeMessage ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) 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 (*Ipolygonzkevmbridgev2TransactorSession) BridgeMessageWETH ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) 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 (*Ipolygonzkevmbridgev2TransactorSession) ClaimAsset ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) 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 (*Ipolygonzkevmbridgev2TransactorSession) ClaimMessage ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) 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 (*Ipolygonzkevmbridgev2TransactorSession) DeactivateEmergencyState ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) DeactivateEmergencyState() (*types.Transaction, error)
DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.
Solidity: function deactivateEmergencyState() returns()
func (*Ipolygonzkevmbridgev2TransactorSession) Initialize ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) Initialize(_networkID uint32, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)
Initialize 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 (*Ipolygonzkevmbridgev2TransactorSession) UpdateGlobalExitRoot ¶
func (_Ipolygonzkevmbridgev2 *Ipolygonzkevmbridgev2TransactorSession) UpdateGlobalExitRoot() (*types.Transaction, error)
UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.
Solidity: function updateGlobalExitRoot() returns()