ipolygonzkevmbridge

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IpolygonzkevmbridgeABI = IpolygonzkevmbridgeMetaData.ABI

IpolygonzkevmbridgeABI is the input ABI used to generate the binding from. Deprecated: Use IpolygonzkevmbridgeMetaData.ABI instead.

View Source
var IpolygonzkevmbridgeMetaData = &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\":\"GlobalExitRootInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSmtProof\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MessageFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MsgValueNotZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidSpender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPolygonZkEVM\",\"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\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"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\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"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\":[],\"name\":\"updateGlobalExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IpolygonzkevmbridgeMetaData contains all meta data concerning the Ipolygonzkevmbridge contract.

Functions

This section is empty.

Types

type Ipolygonzkevmbridge

type Ipolygonzkevmbridge struct {
	IpolygonzkevmbridgeCaller     // Read-only binding to the contract
	IpolygonzkevmbridgeTransactor // Write-only binding to the contract
	IpolygonzkevmbridgeFilterer   // Log filterer for contract events
}

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

func NewIpolygonzkevmbridge

func NewIpolygonzkevmbridge(address common.Address, backend bind.ContractBackend) (*Ipolygonzkevmbridge, error)

NewIpolygonzkevmbridge creates a new instance of Ipolygonzkevmbridge, bound to a specific deployed contract.

type IpolygonzkevmbridgeCaller

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

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

func NewIpolygonzkevmbridgeCaller

func NewIpolygonzkevmbridgeCaller(address common.Address, caller bind.ContractCaller) (*IpolygonzkevmbridgeCaller, error)

NewIpolygonzkevmbridgeCaller creates a new read-only instance of Ipolygonzkevmbridge, bound to a specific deployed contract.

type IpolygonzkevmbridgeCallerRaw

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

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

func (*IpolygonzkevmbridgeCallerRaw) Call

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeCallerRaw) 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 IpolygonzkevmbridgeCallerSession

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

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

type IpolygonzkevmbridgeFilterer

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

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

func NewIpolygonzkevmbridgeFilterer

func NewIpolygonzkevmbridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*IpolygonzkevmbridgeFilterer, error)

NewIpolygonzkevmbridgeFilterer creates a new log filterer instance of Ipolygonzkevmbridge, bound to a specific deployed contract.

type IpolygonzkevmbridgeRaw

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

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

func (*IpolygonzkevmbridgeRaw) Call

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeRaw) 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 (*IpolygonzkevmbridgeRaw) Transact

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

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

func (*IpolygonzkevmbridgeRaw) Transfer

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeRaw) 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 IpolygonzkevmbridgeSession

type IpolygonzkevmbridgeSession struct {
	Contract     *Ipolygonzkevmbridge // 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
}

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

func (*IpolygonzkevmbridgeSession) ActivateEmergencyState

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) ActivateEmergencyState() (*types.Transaction, error)

ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.

Solidity: function activateEmergencyState() returns()

func (*IpolygonzkevmbridgeSession) BridgeAsset

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) 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 (*IpolygonzkevmbridgeSession) BridgeMessage

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) 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 (*IpolygonzkevmbridgeSession) ClaimAsset

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) ClaimAsset(smtProof [32][32]byte, index uint32, 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 0x2cffd02e.

Solidity: function claimAsset(bytes32[32] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*IpolygonzkevmbridgeSession) ClaimMessage

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) ClaimMessage(smtProof [32][32]byte, index uint32, 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 0x2d2c9d94.

Solidity: function claimMessage(bytes32[32] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*IpolygonzkevmbridgeSession) DeactivateEmergencyState

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) DeactivateEmergencyState() (*types.Transaction, error)

DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.

Solidity: function deactivateEmergencyState() returns()

func (*IpolygonzkevmbridgeSession) UpdateGlobalExitRoot

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeSession) UpdateGlobalExitRoot() (*types.Transaction, error)

UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.

Solidity: function updateGlobalExitRoot() returns()

type IpolygonzkevmbridgeTransactor

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

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

func NewIpolygonzkevmbridgeTransactor

func NewIpolygonzkevmbridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*IpolygonzkevmbridgeTransactor, error)

NewIpolygonzkevmbridgeTransactor creates a new write-only instance of Ipolygonzkevmbridge, bound to a specific deployed contract.

func (*IpolygonzkevmbridgeTransactor) ActivateEmergencyState

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)

ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.

Solidity: function activateEmergencyState() returns()

func (*IpolygonzkevmbridgeTransactor) BridgeAsset

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) 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 (*IpolygonzkevmbridgeTransactor) BridgeMessage

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) 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 (*IpolygonzkevmbridgeTransactor) ClaimAsset

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) ClaimAsset(opts *bind.TransactOpts, smtProof [32][32]byte, index uint32, 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 0x2cffd02e.

Solidity: function claimAsset(bytes32[32] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*IpolygonzkevmbridgeTransactor) ClaimMessage

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) ClaimMessage(opts *bind.TransactOpts, smtProof [32][32]byte, index uint32, 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 0x2d2c9d94.

Solidity: function claimMessage(bytes32[32] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*IpolygonzkevmbridgeTransactor) DeactivateEmergencyState

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)

DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.

Solidity: function deactivateEmergencyState() returns()

func (*IpolygonzkevmbridgeTransactor) UpdateGlobalExitRoot

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactor) UpdateGlobalExitRoot(opts *bind.TransactOpts) (*types.Transaction, error)

UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.

Solidity: function updateGlobalExitRoot() returns()

type IpolygonzkevmbridgeTransactorRaw

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

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

func (*IpolygonzkevmbridgeTransactorRaw) Transact

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

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

func (*IpolygonzkevmbridgeTransactorRaw) Transfer

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorRaw) 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 IpolygonzkevmbridgeTransactorSession

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

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

func (*IpolygonzkevmbridgeTransactorSession) ActivateEmergencyState

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) ActivateEmergencyState() (*types.Transaction, error)

ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.

Solidity: function activateEmergencyState() returns()

func (*IpolygonzkevmbridgeTransactorSession) BridgeAsset

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) 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 (*IpolygonzkevmbridgeTransactorSession) BridgeMessage

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) 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 (*IpolygonzkevmbridgeTransactorSession) ClaimAsset

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) ClaimAsset(smtProof [32][32]byte, index uint32, 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 0x2cffd02e.

Solidity: function claimAsset(bytes32[32] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*IpolygonzkevmbridgeTransactorSession) ClaimMessage

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) ClaimMessage(smtProof [32][32]byte, index uint32, 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 0x2d2c9d94.

Solidity: function claimMessage(bytes32[32] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*IpolygonzkevmbridgeTransactorSession) DeactivateEmergencyState

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) DeactivateEmergencyState() (*types.Transaction, error)

DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.

Solidity: function deactivateEmergencyState() returns()

func (*IpolygonzkevmbridgeTransactorSession) UpdateGlobalExitRoot

func (_Ipolygonzkevmbridge *IpolygonzkevmbridgeTransactorSession) UpdateGlobalExitRoot() (*types.Transaction, error)

UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.

Solidity: function updateGlobalExitRoot() returns()

Jump to

Keyboard shortcuts

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