@hyperlane-xyz/core 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/hooks/{ERC5164MessageHook.sol → ERC5164/ERC5164MessageHook.sol} +4 -4
- package/contracts/hooks/OptimismMessageHook.sol +1 -1
- package/contracts/isms/{native/AbstractNativeISM.sol → hook/AbstractHookISM.sol} +4 -7
- package/contracts/isms/hook/CrossChainEnabled.sol +57 -0
- package/contracts/isms/{native → hook}/ERC5164ISM.sol +4 -4
- package/contracts/isms/hook/optimism/CrossChainEnabledOptimism.sol +50 -0
- package/contracts/isms/hook/optimism/LibOptimism.sol +41 -0
- package/contracts/isms/{native → hook/optimism}/OptimismISM.sol +8 -8
- package/contracts/middleware/InterchainAccountRouter.sol +8 -14
- package/dist/@openzeppelin/contracts/index.d.ts +0 -2
- package/dist/@openzeppelin/contracts/index.d.ts.map +1 -1
- package/dist/contracts/hooks/{ERC5164MessageHook.d.ts → ERC5164/ERC5164MessageHook.d.ts} +1 -1
- package/dist/contracts/hooks/ERC5164/ERC5164MessageHook.d.ts.map +1 -0
- package/dist/contracts/hooks/ERC5164/ERC5164MessageHook.js.map +1 -0
- package/dist/contracts/hooks/ERC5164/index.d.ts +1 -0
- package/dist/contracts/hooks/ERC5164/index.d.ts.map +1 -1
- package/dist/contracts/hooks/index.d.ts +0 -1
- package/dist/contracts/hooks/index.d.ts.map +1 -1
- package/dist/contracts/isms/{native/AbstractNativeISM.d.ts → hook/AbstractHookISM.d.ts} +11 -11
- package/dist/contracts/isms/hook/AbstractHookISM.d.ts.map +1 -0
- package/dist/contracts/isms/hook/AbstractHookISM.js +4 -0
- package/dist/contracts/isms/hook/AbstractHookISM.js.map +1 -0
- package/dist/contracts/isms/hook/CrossChainEnabled.d.ts +28 -0
- package/dist/contracts/isms/hook/CrossChainEnabled.d.ts.map +1 -0
- package/dist/contracts/isms/{native/AbstractNativeISM.js → hook/CrossChainEnabled.js} +1 -1
- package/dist/contracts/isms/hook/CrossChainEnabled.js.map +1 -0
- package/dist/contracts/isms/{native → hook}/ERC5164ISM.d.ts +7 -7
- package/dist/contracts/isms/hook/ERC5164ISM.d.ts.map +1 -0
- package/dist/contracts/isms/hook/ERC5164ISM.js.map +1 -0
- package/dist/contracts/isms/hook/index.d.ts +6 -0
- package/dist/contracts/isms/hook/index.d.ts.map +1 -0
- package/dist/contracts/isms/hook/index.js.map +1 -0
- package/dist/contracts/isms/hook/optimism/CrossChainEnabledOptimism.d.ts +28 -0
- package/dist/contracts/isms/hook/optimism/CrossChainEnabledOptimism.d.ts.map +1 -0
- package/dist/{@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger.js → contracts/isms/hook/optimism/CrossChainEnabledOptimism.js} +1 -1
- package/dist/contracts/isms/hook/optimism/CrossChainEnabledOptimism.js.map +1 -0
- package/dist/contracts/isms/hook/optimism/LibOptimism.d.ts +28 -0
- package/dist/contracts/isms/hook/optimism/LibOptimism.d.ts.map +1 -0
- package/dist/contracts/{libs/TestMerkle.sol/MerkleTree.js → isms/hook/optimism/LibOptimism.js} +1 -1
- package/dist/contracts/isms/hook/optimism/LibOptimism.js.map +1 -0
- package/dist/contracts/isms/{native → hook/optimism}/OptimismISM.d.ts +8 -8
- package/dist/contracts/isms/hook/optimism/OptimismISM.d.ts.map +1 -0
- package/dist/contracts/isms/hook/optimism/OptimismISM.js.map +1 -0
- package/dist/contracts/isms/hook/optimism/index.d.ts +4 -0
- package/dist/contracts/isms/hook/optimism/index.d.ts.map +1 -0
- package/dist/contracts/isms/hook/optimism/index.js.map +1 -0
- package/dist/contracts/isms/index.d.ts +2 -2
- package/dist/contracts/isms/index.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts/index.d.ts +0 -1
- package/dist/factories/@openzeppelin/contracts/index.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts/index.js +1 -2
- package/dist/factories/@openzeppelin/contracts/index.js.map +1 -1
- package/dist/factories/contracts/hooks/{ERC5164MessageHook__factory.d.ts → ERC5164/ERC5164MessageHook__factory.d.ts} +2 -2
- package/dist/factories/contracts/hooks/ERC5164/ERC5164MessageHook__factory.d.ts.map +1 -0
- package/dist/factories/contracts/hooks/{ERC5164MessageHook__factory.js → ERC5164/ERC5164MessageHook__factory.js} +1 -1
- package/dist/factories/contracts/hooks/ERC5164/ERC5164MessageHook__factory.js.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/index.d.ts +1 -0
- package/dist/factories/contracts/hooks/ERC5164/index.d.ts.map +1 -1
- package/dist/factories/contracts/hooks/ERC5164/index.js +3 -1
- package/dist/factories/contracts/hooks/ERC5164/index.js.map +1 -1
- package/dist/factories/contracts/hooks/OptimismMessageHook__factory.d.ts +1 -1
- package/dist/factories/contracts/hooks/OptimismMessageHook__factory.js +1 -1
- package/dist/factories/contracts/hooks/index.d.ts +0 -1
- package/dist/factories/contracts/hooks/index.d.ts.map +1 -1
- package/dist/factories/contracts/hooks/index.js +1 -3
- package/dist/factories/contracts/hooks/index.js.map +1 -1
- package/dist/factories/contracts/isms/{native/AbstractNativeISM__factory.d.ts → hook/AbstractHookISM__factory.d.ts} +5 -5
- package/dist/factories/contracts/isms/hook/AbstractHookISM__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/{native/AbstractNativeISM__factory.js → hook/AbstractHookISM__factory.js} +12 -7
- package/dist/factories/contracts/isms/hook/AbstractHookISM__factory.js.map +1 -0
- package/dist/factories/contracts/isms/hook/CrossChainEnabled__factory.d.ts +17 -0
- package/dist/factories/contracts/isms/hook/CrossChainEnabled__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/hook/CrossChainEnabled__factory.js +39 -0
- package/dist/factories/contracts/isms/hook/CrossChainEnabled__factory.js.map +1 -0
- package/dist/factories/contracts/isms/{native → hook}/ERC5164ISM__factory.d.ts +2 -2
- package/dist/factories/contracts/isms/hook/ERC5164ISM__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/{native → hook}/ERC5164ISM__factory.js +8 -3
- package/dist/factories/contracts/isms/hook/ERC5164ISM__factory.js.map +1 -0
- package/dist/factories/contracts/isms/hook/index.d.ts +5 -0
- package/dist/factories/contracts/isms/hook/index.d.ts.map +1 -0
- package/dist/factories/{@openzeppelin/contracts/vendor → contracts/isms/hook}/index.js +7 -1
- package/dist/factories/contracts/isms/hook/index.js.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/CrossChainEnabledOptimism__factory.d.ts +17 -0
- package/dist/factories/contracts/isms/hook/optimism/CrossChainEnabledOptimism__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/CrossChainEnabledOptimism__factory.js +39 -0
- package/dist/factories/contracts/isms/hook/optimism/CrossChainEnabledOptimism__factory.js.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/LibOptimism__factory.d.ts +25 -0
- package/dist/factories/contracts/isms/hook/optimism/LibOptimism__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/LibOptimism__factory.js +46 -0
- package/dist/factories/contracts/isms/hook/optimism/LibOptimism__factory.js.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/OptimismISM__factory.d.ts +70 -0
- package/dist/factories/contracts/isms/hook/optimism/OptimismISM__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/{native → hook/optimism}/OptimismISM__factory.js +29 -3
- package/dist/factories/contracts/isms/hook/optimism/OptimismISM__factory.js.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/index.d.ts +4 -0
- package/dist/factories/contracts/isms/hook/optimism/index.d.ts.map +1 -0
- package/dist/factories/contracts/isms/hook/optimism/index.js +13 -0
- package/dist/factories/contracts/isms/hook/optimism/index.js.map +1 -0
- package/dist/factories/contracts/isms/index.d.ts +1 -1
- package/dist/factories/contracts/isms/index.d.ts.map +1 -1
- package/dist/factories/contracts/isms/index.js +2 -2
- package/dist/factories/contracts/isms/index.js.map +1 -1
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.d.ts +3 -3
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.js +5 -10
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.js.map +1 -1
- package/dist/index.d.ts +14 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/@openzeppelin/contracts/vendor/index.d.ts +0 -3
- package/dist/@openzeppelin/contracts/vendor/index.d.ts.map +0 -1
- package/dist/@openzeppelin/contracts/vendor/index.js.map +0 -1
- package/dist/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger.d.ts +0 -102
- package/dist/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger.d.ts.map +0 -1
- package/dist/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger.js.map +0 -1
- package/dist/@openzeppelin/contracts/vendor/optimism/index.d.ts +0 -2
- package/dist/@openzeppelin/contracts/vendor/optimism/index.d.ts.map +0 -1
- package/dist/@openzeppelin/contracts/vendor/optimism/index.js.map +0 -1
- package/dist/contracts/CheckpointFraudProofs.d.ts +0 -103
- package/dist/contracts/CheckpointFraudProofs.d.ts.map +0 -1
- package/dist/contracts/CheckpointFraudProofs.js +0 -4
- package/dist/contracts/CheckpointFraudProofs.js.map +0 -1
- package/dist/contracts/hooks/ERC5164MessageHook.d.ts.map +0 -1
- package/dist/contracts/hooks/ERC5164MessageHook.js.map +0 -1
- package/dist/contracts/isms/native/AbstractNativeISM.d.ts.map +0 -1
- package/dist/contracts/isms/native/AbstractNativeISM.js.map +0 -1
- package/dist/contracts/isms/native/ERC5164ISM.d.ts.map +0 -1
- package/dist/contracts/isms/native/ERC5164ISM.js.map +0 -1
- package/dist/contracts/isms/native/OptimismISM.d.ts.map +0 -1
- package/dist/contracts/isms/native/OptimismISM.js.map +0 -1
- package/dist/contracts/isms/native/index.d.ts +0 -4
- package/dist/contracts/isms/native/index.d.ts.map +0 -1
- package/dist/contracts/isms/native/index.js +0 -3
- package/dist/contracts/isms/native/index.js.map +0 -1
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.d.ts +0 -77
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.d.ts.map +0 -1
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.js.map +0 -1
- package/dist/contracts/libs/TestMerkle.sol/index.d.ts +0 -2
- package/dist/contracts/libs/TestMerkle.sol/index.d.ts.map +0 -1
- package/dist/contracts/libs/TestMerkle.sol/index.js +0 -3
- package/dist/contracts/libs/TestMerkle.sol/index.js.map +0 -1
- package/dist/factories/@openzeppelin/contracts/vendor/index.d.ts +0 -2
- package/dist/factories/@openzeppelin/contracts/vendor/index.d.ts.map +0 -1
- package/dist/factories/@openzeppelin/contracts/vendor/index.js.map +0 -1
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger__factory.d.ts +0 -43
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger__factory.d.ts.map +0 -1
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger__factory.js +0 -117
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/ICrossDomainMessenger__factory.js.map +0 -1
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/index.d.ts +0 -2
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/index.d.ts.map +0 -1
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/index.js +0 -9
- package/dist/factories/@openzeppelin/contracts/vendor/optimism/index.js.map +0 -1
- package/dist/factories/contracts/CheckpointFraudProofs__factory.d.ts +0 -45
- package/dist/factories/contracts/CheckpointFraudProofs__factory.d.ts.map +0 -1
- package/dist/factories/contracts/CheckpointFraudProofs__factory.js +0 -231
- package/dist/factories/contracts/CheckpointFraudProofs__factory.js.map +0 -1
- package/dist/factories/contracts/hooks/ERC5164MessageHook__factory.d.ts.map +0 -1
- package/dist/factories/contracts/hooks/ERC5164MessageHook__factory.js.map +0 -1
- package/dist/factories/contracts/isms/native/AbstractNativeISM__factory.d.ts.map +0 -1
- package/dist/factories/contracts/isms/native/AbstractNativeISM__factory.js.map +0 -1
- package/dist/factories/contracts/isms/native/ERC5164ISM__factory.d.ts.map +0 -1
- package/dist/factories/contracts/isms/native/ERC5164ISM__factory.js.map +0 -1
- package/dist/factories/contracts/isms/native/OptimismISM__factory.d.ts +0 -66
- package/dist/factories/contracts/isms/native/OptimismISM__factory.d.ts.map +0 -1
- package/dist/factories/contracts/isms/native/OptimismISM__factory.js.map +0 -1
- package/dist/factories/contracts/isms/native/index.d.ts +0 -4
- package/dist/factories/contracts/isms/native/index.d.ts.map +0 -1
- package/dist/factories/contracts/isms/native/index.js +0 -13
- package/dist/factories/contracts/isms/native/index.js.map +0 -1
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.d.ts +0 -41
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.d.ts.map +0 -1
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.js +0 -151
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.js.map +0 -1
- package/dist/factories/contracts/libs/TestMerkle.sol/index.d.ts +0 -2
- package/dist/factories/contracts/libs/TestMerkle.sol/index.d.ts.map +0 -1
- package/dist/factories/contracts/libs/TestMerkle.sol/index.js +0 -9
- package/dist/factories/contracts/libs/TestMerkle.sol/index.js.map +0 -1
- package/docs/book.css +0 -13
- package/docs/book.toml +0 -12
- package/docs/solidity.min.js +0 -74
- package/docs/src/README.md +0 -15
- package/docs/src/SUMMARY.md +0 -128
- package/docs/src/contracts/GasRouter.sol/abstract.GasRouter.md +0 -124
- package/docs/src/contracts/HyperlaneConnectionClient.sol/abstract.HyperlaneConnectionClient.md +0 -191
- package/docs/src/contracts/Mailbox.sol/contract.Mailbox.md +0 -251
- package/docs/src/contracts/OwnableMulticall.sol/contract.OwnableMulticall.md +0 -41
- package/docs/src/contracts/PausableReentrancyGuard.sol/abstract.PausableReentrancyGuardUpgradeable.md +0 -100
- package/docs/src/contracts/README.md +0 -19
- package/docs/src/contracts/Router.sol/abstract.Router.md +0 -255
- package/docs/src/contracts/ValidatorAnnounce.sol/contract.ValidatorAnnounce.md +0 -117
- package/docs/src/contracts/hooks/OptimismMessageHook.sol/contract.OptimismMessageHook.md +0 -71
- package/docs/src/contracts/hooks/README.md +0 -4
- package/docs/src/contracts/igps/InterchainGasPaymaster.sol/contract.InterchainGasPaymaster.md +0 -231
- package/docs/src/contracts/igps/OverheadIgp.sol/contract.OverheadIgp.md +0 -161
- package/docs/src/contracts/igps/README.md +0 -6
- package/docs/src/contracts/igps/gas-oracles/README.md +0 -4
- package/docs/src/contracts/igps/gas-oracles/StorageGasOracle.sol/contract.StorageGasOracle.md +0 -114
- package/docs/src/contracts/interfaces/IGasOracle.sol/interface.IGasOracle.md +0 -25
- package/docs/src/contracts/interfaces/IHyperlaneConnectionClient.sol/interface.IHyperlaneConnectionClient.md +0 -43
- package/docs/src/contracts/interfaces/IInterchainGasPaymaster.sol/interface.IInterchainGasPaymaster.md +0 -33
- package/docs/src/contracts/interfaces/IInterchainSecurityModule.sol/interface.IInterchainSecurityModule.md +0 -55
- package/docs/src/contracts/interfaces/IInterchainSecurityModule.sol/interface.ISpecifiesInterchainSecurityModule.md +0 -12
- package/docs/src/contracts/interfaces/ILiquidityLayerMessageRecipient.sol/interface.ILiquidityLayerMessageRecipient.md +0 -13
- package/docs/src/contracts/interfaces/ILiquidityLayerRouter.sol/interface.ILiquidityLayerRouter.md +0 -19
- package/docs/src/contracts/interfaces/IMailbox.sol/interface.IMailbox.md +0 -103
- package/docs/src/contracts/interfaces/IMessageRecipient.sol/interface.IMessageRecipient.md +0 -12
- package/docs/src/contracts/interfaces/IRouter.sol/interface.IRouter.md +0 -33
- package/docs/src/contracts/interfaces/IValidatorAnnounce.sol/interface.IValidatorAnnounce.md +0 -78
- package/docs/src/contracts/interfaces/README.md +0 -17
- package/docs/src/contracts/interfaces/hooks/IMessageHook.sol/interface.IMessageHook.md +0 -12
- package/docs/src/contracts/interfaces/hooks/README.md +0 -4
- package/docs/src/contracts/interfaces/isms/IAggregationIsm.sol/interface.IAggregationIsm.md +0 -36
- package/docs/src/contracts/interfaces/isms/IMultisigIsm.sol/interface.IMultisigIsm.md +0 -36
- package/docs/src/contracts/interfaces/isms/IRoutingIsm.sol/interface.IRoutingIsm.md +0 -31
- package/docs/src/contracts/interfaces/isms/README.md +0 -6
- package/docs/src/contracts/interfaces/middleware/IInterchainAccountRouter.sol/interface.IInterchainAccountRouter.md +0 -64
- package/docs/src/contracts/interfaces/middleware/IInterchainQueryRouter.sol/interface.IInterchainQueryRouter.md +0 -21
- package/docs/src/contracts/interfaces/middleware/README.md +0 -5
- package/docs/src/contracts/isms/README.md +0 -7
- package/docs/src/contracts/isms/aggregation/AbstractAggregationIsm.sol/abstract.AbstractAggregationIsm.md +0 -60
- package/docs/src/contracts/isms/aggregation/README.md +0 -6
- package/docs/src/contracts/isms/aggregation/StaticAggregationIsm.sol/contract.StaticAggregationIsm.md +0 -30
- package/docs/src/contracts/isms/aggregation/StaticAggregationIsmFactory.sol/contract.StaticAggregationIsmFactory.md +0 -15
- package/docs/src/contracts/isms/multisig/AbstractMerkleRootMultisigIsm.sol/abstract.AbstractMerkleRootMultisigIsm.md +0 -78
- package/docs/src/contracts/isms/multisig/AbstractMessageIdMultisigIsm.sol/abstract.AbstractMessageIdMultisigIsm.md +0 -69
- package/docs/src/contracts/isms/multisig/AbstractMultisigIsm.sol/abstract.AbstractMultisigIsm.md +0 -102
- package/docs/src/contracts/isms/multisig/LegacyMultisigIsm.sol/contract.LegacyMultisigIsm.md +0 -355
- package/docs/src/contracts/isms/multisig/README.md +0 -12
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/abstract.AbstractMetaProxyMultisigIsm.md +0 -36
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMerkleRootMultisigIsm.md +0 -11
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMerkleRootMultisigIsmFactory.md +0 -15
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMessageIdMultisigIsm.md +0 -10
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMessageIdMultisigIsmFactory.md +0 -15
- package/docs/src/contracts/isms/native/AbstractNativeISM.sol/abstract.AbstractNativeISM.md +0 -44
- package/docs/src/contracts/isms/native/OptimismISM.sol/contract.OptimismISM.md +0 -66
- package/docs/src/contracts/isms/native/README.md +0 -5
- package/docs/src/contracts/isms/routing/AbstractRoutingIsm.sol/abstract.AbstractRoutingIsm.md +0 -55
- package/docs/src/contracts/isms/routing/DomainRoutingIsm.sol/contract.DomainRoutingIsm.md +0 -112
- package/docs/src/contracts/isms/routing/DomainRoutingIsmFactory.sol/contract.DomainRoutingIsmFactory.md +0 -47
- package/docs/src/contracts/isms/routing/InterchainAccountIsm.sol/contract.InterchainAccountIsm.md +0 -44
- package/docs/src/contracts/isms/routing/README.md +0 -7
- package/docs/src/contracts/libs/Call.sol/library.CallLib.md +0 -124
- package/docs/src/contracts/libs/CheckpointLib.sol/library.CheckpointLib.md +0 -61
- package/docs/src/contracts/libs/EnumerableMapExtended.sol/library.EnumerableMapExtended.md +0 -63
- package/docs/src/contracts/libs/LegacyCheckpointLib.sol/library.LegacyCheckpointLib.md +0 -55
- package/docs/src/contracts/libs/Merkle.sol/library.MerkleLib.md +0 -354
- package/docs/src/contracts/libs/Message.sol/library.Message.md +0 -304
- package/docs/src/contracts/libs/MetaProxy.sol/library.MetaProxy.md +0 -36
- package/docs/src/contracts/libs/MinimalProxy.sol/library.MinimalProxy.md +0 -34
- package/docs/src/contracts/libs/README.md +0 -16
- package/docs/src/contracts/libs/StaticMOfNAddressSetFactory.sol/abstract.StaticMOfNAddressSetFactory.md +0 -123
- package/docs/src/contracts/libs/TestMerkle.sol/contract.MerkleTree.md +0 -66
- package/docs/src/contracts/libs/TypeCasts.sol/library.TypeCasts.md +0 -19
- package/docs/src/contracts/libs/ValidatorAnnouncements.sol/library.ValidatorAnnouncements.md +0 -31
- package/docs/src/contracts/libs/isms/AggregationIsmMetadata.sol/library.AggregationIsmMetadata.md +0 -97
- package/docs/src/contracts/libs/isms/LegacyMultisigIsmMetadata.sol/library.LegacyMultisigIsmMetadata.md +0 -296
- package/docs/src/contracts/libs/isms/MerkleRootMultisigIsmMetadata.sol/library.MerkleRootMultisigIsmMetadata.md +0 -177
- package/docs/src/contracts/libs/isms/MessageIdMultisigIsmMetadata.sol/library.MessageIdMultisigIsmMetadata.md +0 -109
- package/docs/src/contracts/libs/isms/README.md +0 -7
- package/docs/src/contracts/libs/middleware/InterchainAccountMessage.sol/library.InterchainAccountMessage.md +0 -134
- package/docs/src/contracts/libs/middleware/InterchainQueryMessage.sol/library.InterchainQueryMessage.md +0 -203
- package/docs/src/contracts/libs/middleware/README.md +0 -5
- package/docs/src/contracts/middleware/InterchainAccountRouter.sol/contract.InterchainAccountRouter.md +0 -545
- package/docs/src/contracts/middleware/InterchainQueryRouter.sol/contract.InterchainQueryRouter.md +0 -119
- package/docs/src/contracts/middleware/README.md +0 -6
- package/docs/src/contracts/middleware/liquidity-layer/LiquidityLayerRouter.sol/contract.LiquidityLayerRouter.md +0 -81
- package/docs/src/contracts/middleware/liquidity-layer/README.md +0 -6
- package/docs/src/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.sol/contract.CircleBridgeAdapter.md +0 -197
- package/docs/src/contracts/middleware/liquidity-layer/adapters/PortalAdapter.sol/contract.PortalAdapter.md +0 -189
- package/docs/src/contracts/middleware/liquidity-layer/adapters/README.md +0 -5
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter.sol/interface.ILiquidityLayerAdapter.md +0 -23
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/README.md +0 -6
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter.sol/interface.ICircleMessageTransmitter.md +0 -54
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/circle/ITokenMessenger.sol/interface.ITokenMessenger.md +0 -92
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/circle/README.md +0 -5
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.sol/interface.IPortalTokenBridge.md +0 -131
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/portal/README.md +0 -4
- package/docs/src/contracts/mock/MockCircleMessageTransmitter.sol/contract.MockCircleMessageTransmitter.md +0 -58
- package/docs/src/contracts/mock/MockCircleTokenMessenger.sol/contract.MockCircleTokenMessenger.md +0 -44
- package/docs/src/contracts/mock/MockHyperlaneEnvironment.sol/contract.MockHyperlaneEnvironment.md +0 -69
- package/docs/src/contracts/mock/MockMailbox.sol/contract.MockMailbox.md +0 -137
- package/docs/src/contracts/mock/MockPortalBridge.sol/contract.MockPortalBridge.md +0 -82
- package/docs/src/contracts/mock/MockToken.sol/contract.MockToken.md +0 -22
- package/docs/src/contracts/mock/README.md +0 -9
- package/docs/src/contracts/test/LightTestRecipient.sol/contract.LightTestRecipient.md +0 -15
- package/docs/src/contracts/test/README.md +0 -20
- package/docs/src/contracts/test/TestGasRouter.sol/contract.TestGasRouter.md +0 -27
- package/docs/src/contracts/test/TestHyperlaneConnectionClient.sol/contract.TestHyperlaneConnectionClient.md +0 -29
- package/docs/src/contracts/test/TestInterchainGasPaymaster.sol/contract.TestInterchainGasPaymaster.md +0 -30
- package/docs/src/contracts/test/TestLegacyMultisigIsm.sol/contract.TestLegacyMultisigIsm.md +0 -15
- package/docs/src/contracts/test/TestLiquidityLayerMessageRecipient.sol/contract.TestLiquidityLayerMessageRecipient.md +0 -23
- package/docs/src/contracts/test/TestMailbox.sol/contract.TestMailbox.md +0 -29
- package/docs/src/contracts/test/TestMerkle.sol/contract.TestMerkle.md +0 -50
- package/docs/src/contracts/test/TestMessage.sol/contract.TestMessage.md +0 -68
- package/docs/src/contracts/test/TestMultisigIsm.sol/contract.TestMultisigIsm.md +0 -51
- package/docs/src/contracts/test/TestQuery.sol/contract.TestQuery.md +0 -45
- package/docs/src/contracts/test/TestQuerySender.sol/contract.TestQuerySender.md +0 -128
- package/docs/src/contracts/test/TestRecipient.sol/contract.TestRecipient.md +0 -78
- package/docs/src/contracts/test/TestRouter.sol/contract.TestRouter.md +0 -63
- package/docs/src/contracts/test/TestSendReceiver.sol/contract.TestSendReceiver.md +0 -49
- package/docs/src/contracts/test/TestTokenRecipient.sol/contract.TestTokenRecipient.md +0 -80
- package/docs/src/contracts/test/bad-recipient/BadRecipient1.sol/contract.BadRecipient1.md +0 -15
- package/docs/src/contracts/test/bad-recipient/BadRecipient2.sol/contract.BadRecipient2.md +0 -12
- package/docs/src/contracts/test/bad-recipient/BadRecipient3.sol/contract.BadRecipient3.md +0 -15
- package/docs/src/contracts/test/bad-recipient/BadRecipient5.sol/contract.BadRecipient5.md +0 -15
- package/docs/src/contracts/test/bad-recipient/BadRecipient6.sol/contract.BadRecipient6.md +0 -15
- package/docs/src/contracts/test/bad-recipient/README.md +0 -8
- package/docs/src/contracts/upgrade/README.md +0 -4
- package/docs/src/contracts/upgrade/Versioned.sol/contract.Versioned.md +0 -14
- /package/dist/contracts/hooks/{ERC5164MessageHook.js → ERC5164/ERC5164MessageHook.js} +0 -0
- /package/dist/contracts/isms/{native → hook}/ERC5164ISM.js +0 -0
- /package/dist/{@openzeppelin/contracts/vendor → contracts/isms/hook}/index.js +0 -0
- /package/dist/contracts/isms/{native → hook/optimism}/OptimismISM.js +0 -0
- /package/dist/{@openzeppelin/contracts/vendor → contracts/isms/hook}/optimism/index.js +0 -0
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
# Router
|
|
2
|
-
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/Router.sol)
|
|
3
|
-
|
|
4
|
-
**Inherits:**
|
|
5
|
-
[HyperlaneConnectionClient](/contracts/HyperlaneConnectionClient.sol/abstract.HyperlaneConnectionClient.md), [IMessageRecipient](/contracts/interfaces/IMessageRecipient.sol/interface.IMessageRecipient.md)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## State Variables
|
|
9
|
-
### NO_ROUTER_ENROLLED_REVERT_MESSAGE
|
|
10
|
-
|
|
11
|
-
```solidity
|
|
12
|
-
string private constant NO_ROUTER_ENROLLED_REVERT_MESSAGE =
|
|
13
|
-
"No router enrolled for domain. Did you specify the right domain ID?";
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### _routers
|
|
18
|
-
|
|
19
|
-
```solidity
|
|
20
|
-
EnumerableMapExtended.UintToBytes32Map internal _routers;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### __GAP
|
|
25
|
-
|
|
26
|
-
```solidity
|
|
27
|
-
uint256[49] private __GAP;
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## Functions
|
|
32
|
-
### onlyRemoteRouter
|
|
33
|
-
|
|
34
|
-
Only accept messages from a remote Router contract
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
```solidity
|
|
38
|
-
modifier onlyRemoteRouter(uint32 _origin, bytes32 _router);
|
|
39
|
-
```
|
|
40
|
-
**Parameters**
|
|
41
|
-
|
|
42
|
-
|Name|Type|Description|
|
|
43
|
-
|----|----|-----------|
|
|
44
|
-
|`_origin`|`uint32`|The domain the message is coming from|
|
|
45
|
-
|`_router`|`bytes32`|The address the message is coming from|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### __Router_initialize
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
```solidity
|
|
52
|
-
function __Router_initialize(address _mailbox) internal onlyInitializing;
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### __Router_initialize
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```solidity
|
|
59
|
-
function __Router_initialize(address _mailbox, address _interchainGasPaymaster) internal onlyInitializing;
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### __Router_initialize
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
```solidity
|
|
66
|
-
function __Router_initialize(address _mailbox, address _interchainGasPaymaster, address _interchainSecurityModule)
|
|
67
|
-
internal
|
|
68
|
-
onlyInitializing;
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### domains
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
```solidity
|
|
75
|
-
function domains() external view returns (uint32[] memory);
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### routers
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
```solidity
|
|
82
|
-
function routers(uint32 _domain) public view returns (bytes32);
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### enrollRemoteRouter
|
|
86
|
-
|
|
87
|
-
Register the address of a Router contract for the same Application on a remote chain
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
```solidity
|
|
91
|
-
function enrollRemoteRouter(uint32 _domain, bytes32 _router) external virtual onlyOwner;
|
|
92
|
-
```
|
|
93
|
-
**Parameters**
|
|
94
|
-
|
|
95
|
-
|Name|Type|Description|
|
|
96
|
-
|----|----|-----------|
|
|
97
|
-
|`_domain`|`uint32`|The domain of the remote Application Router|
|
|
98
|
-
|`_router`|`bytes32`|The address of the remote Application Router|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### enrollRemoteRouters
|
|
102
|
-
|
|
103
|
-
Batch version of `enrollRemoteRouter`
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
```solidity
|
|
107
|
-
function enrollRemoteRouters(uint32[] calldata _domains, bytes32[] calldata _addresses) external virtual onlyOwner;
|
|
108
|
-
```
|
|
109
|
-
**Parameters**
|
|
110
|
-
|
|
111
|
-
|Name|Type|Description|
|
|
112
|
-
|----|----|-----------|
|
|
113
|
-
|`_domains`|`uint32[]`|The domaisn of the remote Application Routers|
|
|
114
|
-
|`_addresses`|`bytes32[]`|The addresses of the remote Application Routers|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### handle
|
|
118
|
-
|
|
119
|
-
Handles an incoming message
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
```solidity
|
|
123
|
-
function handle(uint32 _origin, bytes32 _sender, bytes calldata _message)
|
|
124
|
-
external
|
|
125
|
-
virtual
|
|
126
|
-
override
|
|
127
|
-
onlyMailbox
|
|
128
|
-
onlyRemoteRouter(_origin, _sender);
|
|
129
|
-
```
|
|
130
|
-
**Parameters**
|
|
131
|
-
|
|
132
|
-
|Name|Type|Description|
|
|
133
|
-
|----|----|-----------|
|
|
134
|
-
|`_origin`|`uint32`|The origin domain|
|
|
135
|
-
|`_sender`|`bytes32`|The sender address|
|
|
136
|
-
|`_message`|`bytes`|The message|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
### _handle
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
```solidity
|
|
143
|
-
function _handle(uint32 _origin, bytes32 _sender, bytes calldata _message) internal virtual;
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### _enrollRemoteRouter
|
|
147
|
-
|
|
148
|
-
Set the router for a given domain
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
```solidity
|
|
152
|
-
function _enrollRemoteRouter(uint32 _domain, bytes32 _address) internal;
|
|
153
|
-
```
|
|
154
|
-
**Parameters**
|
|
155
|
-
|
|
156
|
-
|Name|Type|Description|
|
|
157
|
-
|----|----|-----------|
|
|
158
|
-
|`_domain`|`uint32`|The domain|
|
|
159
|
-
|`_address`|`bytes32`|The new router|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### _isRemoteRouter
|
|
163
|
-
|
|
164
|
-
Return true if the given domain / router is the address of a remote Application Router
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
```solidity
|
|
168
|
-
function _isRemoteRouter(uint32 _domain, bytes32 _address) internal view returns (bool);
|
|
169
|
-
```
|
|
170
|
-
**Parameters**
|
|
171
|
-
|
|
172
|
-
|Name|Type|Description|
|
|
173
|
-
|----|----|-----------|
|
|
174
|
-
|`_domain`|`uint32`|The domain of the potential remote Application Router|
|
|
175
|
-
|`_address`|`bytes32`|The address of the potential remote Application Router|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### _mustHaveRemoteRouter
|
|
179
|
-
|
|
180
|
-
Assert that the given domain has a Application Router registered and return its address
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
```solidity
|
|
184
|
-
function _mustHaveRemoteRouter(uint32 _domain) internal view returns (bytes32 _router);
|
|
185
|
-
```
|
|
186
|
-
**Parameters**
|
|
187
|
-
|
|
188
|
-
|Name|Type|Description|
|
|
189
|
-
|----|----|-----------|
|
|
190
|
-
|`_domain`|`uint32`|The domain of the chain for which to get the Application Router|
|
|
191
|
-
|
|
192
|
-
**Returns**
|
|
193
|
-
|
|
194
|
-
|Name|Type|Description|
|
|
195
|
-
|----|----|-----------|
|
|
196
|
-
|`_router`|`bytes32`|The address of the remote Application Router on _domain|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
### _dispatchWithGas
|
|
200
|
-
|
|
201
|
-
Dispatches a message to an enrolled router via the local router's Mailbox
|
|
202
|
-
and pays for it to be relayed to the destination.
|
|
203
|
-
|
|
204
|
-
*Reverts if there is no enrolled router for _destinationDomain.*
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
```solidity
|
|
208
|
-
function _dispatchWithGas(
|
|
209
|
-
uint32 _destinationDomain,
|
|
210
|
-
bytes memory _messageBody,
|
|
211
|
-
uint256 _gasAmount,
|
|
212
|
-
uint256 _gasPayment,
|
|
213
|
-
address _gasPaymentRefundAddress
|
|
214
|
-
) internal returns (bytes32 _messageId);
|
|
215
|
-
```
|
|
216
|
-
**Parameters**
|
|
217
|
-
|
|
218
|
-
|Name|Type|Description|
|
|
219
|
-
|----|----|-----------|
|
|
220
|
-
|`_destinationDomain`|`uint32`|The domain of the chain to which to send the message.|
|
|
221
|
-
|`_messageBody`|`bytes`|Raw bytes content of message.|
|
|
222
|
-
|`_gasAmount`|`uint256`|The amount of destination gas for the message that is requested via the InterchainGasPaymaster.|
|
|
223
|
-
|`_gasPayment`|`uint256`|The amount of native tokens to pay for the message to be relayed.|
|
|
224
|
-
|`_gasPaymentRefundAddress`|`address`|The address to refund any gas overpayment to.|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### _dispatch
|
|
228
|
-
|
|
229
|
-
Dispatches a message to an enrolled router via the provided Mailbox.
|
|
230
|
-
|
|
231
|
-
*Does not pay interchain gas.*
|
|
232
|
-
|
|
233
|
-
*Reverts if there is no enrolled router for _destinationDomain.*
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
```solidity
|
|
237
|
-
function _dispatch(uint32 _destinationDomain, bytes memory _messageBody) internal virtual returns (bytes32);
|
|
238
|
-
```
|
|
239
|
-
**Parameters**
|
|
240
|
-
|
|
241
|
-
|Name|Type|Description|
|
|
242
|
-
|----|----|-----------|
|
|
243
|
-
|`_destinationDomain`|`uint32`|The domain of the chain to which to send the message.|
|
|
244
|
-
|`_messageBody`|`bytes`|Raw bytes content of message.|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
## Events
|
|
248
|
-
### RemoteRouterEnrolled
|
|
249
|
-
Emitted when a router is set.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
```solidity
|
|
253
|
-
event RemoteRouterEnrolled(uint32 indexed domain, bytes32 router);
|
|
254
|
-
```
|
|
255
|
-
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# ValidatorAnnounce
|
|
2
|
-
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/ValidatorAnnounce.sol)
|
|
3
|
-
|
|
4
|
-
**Inherits:**
|
|
5
|
-
[IValidatorAnnounce](/contracts/interfaces/IValidatorAnnounce.sol/interface.IValidatorAnnounce.md)
|
|
6
|
-
|
|
7
|
-
Stores the location(s) of validator signed checkpoints
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## State Variables
|
|
11
|
-
### mailbox
|
|
12
|
-
|
|
13
|
-
```solidity
|
|
14
|
-
address public immutable mailbox;
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### localDomain
|
|
19
|
-
|
|
20
|
-
```solidity
|
|
21
|
-
uint32 public immutable localDomain;
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### validators
|
|
26
|
-
|
|
27
|
-
```solidity
|
|
28
|
-
EnumerableSet.AddressSet private validators;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### storageLocations
|
|
33
|
-
|
|
34
|
-
```solidity
|
|
35
|
-
mapping(address => string[]) private storageLocations;
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### replayProtection
|
|
40
|
-
|
|
41
|
-
```solidity
|
|
42
|
-
mapping(bytes32 => bool) private replayProtection;
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## Functions
|
|
47
|
-
### constructor
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
```solidity
|
|
51
|
-
constructor(address _mailbox);
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### announce
|
|
55
|
-
|
|
56
|
-
Announces a validator signature storage location
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
```solidity
|
|
60
|
-
function announce(address _validator, string calldata _storageLocation, bytes calldata _signature)
|
|
61
|
-
external
|
|
62
|
-
returns (bool);
|
|
63
|
-
```
|
|
64
|
-
**Parameters**
|
|
65
|
-
|
|
66
|
-
|Name|Type|Description|
|
|
67
|
-
|----|----|-----------|
|
|
68
|
-
|`_validator`|`address`||
|
|
69
|
-
|`_storageLocation`|`string`|Information encoding the location of signed checkpoints|
|
|
70
|
-
|`_signature`|`bytes`|The signed validator announcement|
|
|
71
|
-
|
|
72
|
-
**Returns**
|
|
73
|
-
|
|
74
|
-
|Name|Type|Description|
|
|
75
|
-
|----|----|-----------|
|
|
76
|
-
|`<none>`|`bool`|True upon success|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### getAnnouncedStorageLocations
|
|
80
|
-
|
|
81
|
-
Returns a list of all announced storage locations
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
```solidity
|
|
85
|
-
function getAnnouncedStorageLocations(address[] calldata _validators) external view returns (string[][] memory);
|
|
86
|
-
```
|
|
87
|
-
**Parameters**
|
|
88
|
-
|
|
89
|
-
|Name|Type|Description|
|
|
90
|
-
|----|----|-----------|
|
|
91
|
-
|`_validators`|`address[]`|The list of validators to get registrations for|
|
|
92
|
-
|
|
93
|
-
**Returns**
|
|
94
|
-
|
|
95
|
-
|Name|Type|Description|
|
|
96
|
-
|----|----|-----------|
|
|
97
|
-
|`<none>`|`string[][]`|A list of registered storage metadata|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### getAnnouncedValidators
|
|
101
|
-
|
|
102
|
-
Returns a list of validators that have made announcements
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
```solidity
|
|
106
|
-
function getAnnouncedValidators() external view returns (address[] memory);
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Events
|
|
110
|
-
### ValidatorAnnouncement
|
|
111
|
-
Emitted when a new validator announcement is made
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
```solidity
|
|
115
|
-
event ValidatorAnnouncement(address indexed validator, string storageLocation);
|
|
116
|
-
```
|
|
117
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# OptimismMessageHook
|
|
2
|
-
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/hooks/OptimismMessageHook.sol)
|
|
3
|
-
|
|
4
|
-
**Inherits:**
|
|
5
|
-
[IMessageHook](/contracts/interfaces/hooks/IMessageHook.sol/interface.IMessageHook.md)
|
|
6
|
-
|
|
7
|
-
Message hook to inform the Optimism ISM of messages published through
|
|
8
|
-
the native Optimism bridge.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## State Variables
|
|
12
|
-
### destinationDomain
|
|
13
|
-
|
|
14
|
-
```solidity
|
|
15
|
-
uint32 public immutable destinationDomain;
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### l1Messenger
|
|
20
|
-
|
|
21
|
-
```solidity
|
|
22
|
-
ICrossDomainMessenger public immutable l1Messenger;
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### ism
|
|
27
|
-
|
|
28
|
-
```solidity
|
|
29
|
-
address public immutable ism;
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
### GAS_LIMIT
|
|
34
|
-
|
|
35
|
-
```solidity
|
|
36
|
-
uint32 internal constant GAS_LIMIT = 1_920_000;
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## Functions
|
|
41
|
-
### constructor
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
```solidity
|
|
45
|
-
constructor(uint32 _destinationDomain, address _messenger, address _ism);
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### postDispatch
|
|
49
|
-
|
|
50
|
-
Hook to inform the optimism ISM of messages published through.
|
|
51
|
-
|
|
52
|
-
*anyone can call this function, that's why we need to send msg.sender*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
```solidity
|
|
56
|
-
function postDispatch(uint32 _destination, bytes32 _messageId) public payable override returns (uint256);
|
|
57
|
-
```
|
|
58
|
-
**Parameters**
|
|
59
|
-
|
|
60
|
-
|Name|Type|Description|
|
|
61
|
-
|----|----|-----------|
|
|
62
|
-
|`_destination`|`uint32`|The destination domain of the message.|
|
|
63
|
-
|`_messageId`|`bytes32`|The message ID.|
|
|
64
|
-
|
|
65
|
-
**Returns**
|
|
66
|
-
|
|
67
|
-
|Name|Type|Description|
|
|
68
|
-
|----|----|-----------|
|
|
69
|
-
|`<none>`|`uint256`|gasOverhead The gas overhead for the function call on L2.|
|
|
70
|
-
|
|
71
|
-
|
package/docs/src/contracts/igps/InterchainGasPaymaster.sol/contract.InterchainGasPaymaster.md
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
# InterchainGasPaymaster
|
|
2
|
-
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/igps/InterchainGasPaymaster.sol)
|
|
3
|
-
|
|
4
|
-
**Inherits:**
|
|
5
|
-
[IInterchainGasPaymaster](/contracts/interfaces/IInterchainGasPaymaster.sol/interface.IInterchainGasPaymaster.md), [IGasOracle](/contracts/interfaces/IGasOracle.sol/interface.IGasOracle.md), OwnableUpgradeable
|
|
6
|
-
|
|
7
|
-
Manages payments on a source chain to cover gas costs of relaying
|
|
8
|
-
messages to destination chains.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## State Variables
|
|
12
|
-
### TOKEN_EXCHANGE_RATE_SCALE
|
|
13
|
-
The scale of gas oracle token exchange rates.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```solidity
|
|
17
|
-
uint256 internal constant TOKEN_EXCHANGE_RATE_SCALE = 1e10;
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### gasOracles
|
|
22
|
-
Keyed by remote domain, the gas oracle to use for the domain.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```solidity
|
|
26
|
-
mapping(uint32 => IGasOracle) public gasOracles;
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### beneficiary
|
|
31
|
-
The benficiary that can receive native tokens paid into this contract.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
```solidity
|
|
35
|
-
address public beneficiary;
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## Functions
|
|
40
|
-
### initialize
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```solidity
|
|
44
|
-
function initialize(address _owner, address _beneficiary) public initializer;
|
|
45
|
-
```
|
|
46
|
-
**Parameters**
|
|
47
|
-
|
|
48
|
-
|Name|Type|Description|
|
|
49
|
-
|----|----|-----------|
|
|
50
|
-
|`_owner`|`address`|The owner of the contract.|
|
|
51
|
-
|`_beneficiary`|`address`|The beneficiary.|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### payForGas
|
|
55
|
-
|
|
56
|
-
Deposits msg.value as a payment for the relaying of a message
|
|
57
|
-
to its destination chain.
|
|
58
|
-
|
|
59
|
-
*Overpayment will result in a refund of native tokens to the _refundAddress.
|
|
60
|
-
Callers should be aware that this may present reentrancy issues.*
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```solidity
|
|
64
|
-
function payForGas(bytes32 _messageId, uint32 _destinationDomain, uint256 _gasAmount, address _refundAddress)
|
|
65
|
-
external
|
|
66
|
-
payable
|
|
67
|
-
override;
|
|
68
|
-
```
|
|
69
|
-
**Parameters**
|
|
70
|
-
|
|
71
|
-
|Name|Type|Description|
|
|
72
|
-
|----|----|-----------|
|
|
73
|
-
|`_messageId`|`bytes32`|The ID of the message to pay for.|
|
|
74
|
-
|`_destinationDomain`|`uint32`|The domain of the message's destination chain.|
|
|
75
|
-
|`_gasAmount`|`uint256`|The amount of destination gas to pay for.|
|
|
76
|
-
|`_refundAddress`|`address`|The address to refund any overpayment to.|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### claim
|
|
80
|
-
|
|
81
|
-
Transfers the entire native token balance to the beneficiary.
|
|
82
|
-
|
|
83
|
-
*The beneficiary must be able to receive native tokens.*
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
```solidity
|
|
87
|
-
function claim() external;
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### setGasOracles
|
|
91
|
-
|
|
92
|
-
Sets the gas oracles for remote domains specified in the config array.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```solidity
|
|
96
|
-
function setGasOracles(GasOracleConfig[] calldata _configs) external onlyOwner;
|
|
97
|
-
```
|
|
98
|
-
**Parameters**
|
|
99
|
-
|
|
100
|
-
|Name|Type|Description|
|
|
101
|
-
|----|----|-----------|
|
|
102
|
-
|`_configs`|`GasOracleConfig[]`|An array of configs including the remote domain and gas oracles to set.|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### setBeneficiary
|
|
106
|
-
|
|
107
|
-
Sets the beneficiary.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
```solidity
|
|
111
|
-
function setBeneficiary(address _beneficiary) external onlyOwner;
|
|
112
|
-
```
|
|
113
|
-
**Parameters**
|
|
114
|
-
|
|
115
|
-
|Name|Type|Description|
|
|
116
|
-
|----|----|-----------|
|
|
117
|
-
|`_beneficiary`|`address`|The new beneficiary.|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
### quoteGasPayment
|
|
121
|
-
|
|
122
|
-
Quotes the amount of native tokens to pay for interchain gas.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
```solidity
|
|
126
|
-
function quoteGasPayment(uint32 _destinationDomain, uint256 _gasAmount)
|
|
127
|
-
public
|
|
128
|
-
view
|
|
129
|
-
virtual
|
|
130
|
-
override
|
|
131
|
-
returns (uint256);
|
|
132
|
-
```
|
|
133
|
-
**Parameters**
|
|
134
|
-
|
|
135
|
-
|Name|Type|Description|
|
|
136
|
-
|----|----|-----------|
|
|
137
|
-
|`_destinationDomain`|`uint32`|The domain of the message's destination chain.|
|
|
138
|
-
|`_gasAmount`|`uint256`|The amount of destination gas to pay for.|
|
|
139
|
-
|
|
140
|
-
**Returns**
|
|
141
|
-
|
|
142
|
-
|Name|Type|Description|
|
|
143
|
-
|----|----|-----------|
|
|
144
|
-
|`<none>`|`uint256`|The amount of native tokens required to pay for interchain gas.|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### getExchangeRateAndGasPrice
|
|
148
|
-
|
|
149
|
-
Gets the token exchange rate and gas price from the configured gas oracle
|
|
150
|
-
for a given destination domain.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
```solidity
|
|
154
|
-
function getExchangeRateAndGasPrice(uint32 _destinationDomain)
|
|
155
|
-
public
|
|
156
|
-
view
|
|
157
|
-
override
|
|
158
|
-
returns (uint128 tokenExchangeRate, uint128 gasPrice);
|
|
159
|
-
```
|
|
160
|
-
**Parameters**
|
|
161
|
-
|
|
162
|
-
|Name|Type|Description|
|
|
163
|
-
|----|----|-----------|
|
|
164
|
-
|`_destinationDomain`|`uint32`|The destination domain.|
|
|
165
|
-
|
|
166
|
-
**Returns**
|
|
167
|
-
|
|
168
|
-
|Name|Type|Description|
|
|
169
|
-
|----|----|-----------|
|
|
170
|
-
|`tokenExchangeRate`|`uint128`|The exchange rate of the remote native token quoted in the local native token.|
|
|
171
|
-
|`gasPrice`|`uint128`|The gas price on the remote chain.|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
### _setBeneficiary
|
|
175
|
-
|
|
176
|
-
Sets the beneficiary.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
```solidity
|
|
180
|
-
function _setBeneficiary(address _beneficiary) internal;
|
|
181
|
-
```
|
|
182
|
-
**Parameters**
|
|
183
|
-
|
|
184
|
-
|Name|Type|Description|
|
|
185
|
-
|----|----|-----------|
|
|
186
|
-
|`_beneficiary`|`address`|The new beneficiary.|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
### _setGasOracle
|
|
190
|
-
|
|
191
|
-
Sets the gas oracle for a remote domain.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
```solidity
|
|
195
|
-
function _setGasOracle(uint32 _remoteDomain, address _gasOracle) internal;
|
|
196
|
-
```
|
|
197
|
-
**Parameters**
|
|
198
|
-
|
|
199
|
-
|Name|Type|Description|
|
|
200
|
-
|----|----|-----------|
|
|
201
|
-
|`_remoteDomain`|`uint32`|The remote domain.|
|
|
202
|
-
|`_gasOracle`|`address`|The gas oracle.|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
## Events
|
|
206
|
-
### GasOracleSet
|
|
207
|
-
Emitted when the gas oracle for a remote domain is set.
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
```solidity
|
|
211
|
-
event GasOracleSet(uint32 indexed remoteDomain, address gasOracle);
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### BeneficiarySet
|
|
215
|
-
Emitted when the beneficiary is set.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
```solidity
|
|
219
|
-
event BeneficiarySet(address beneficiary);
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
## Structs
|
|
223
|
-
### GasOracleConfig
|
|
224
|
-
|
|
225
|
-
```solidity
|
|
226
|
-
struct GasOracleConfig {
|
|
227
|
-
uint32 remoteDomain;
|
|
228
|
-
address gasOracle;
|
|
229
|
-
}
|
|
230
|
-
```
|
|
231
|
-
|