@hyperlane-xyz/core 1.3.7 → 1.3.8
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/README.md +6 -4
- package/contracts/hooks/ERC5164/interfaces/IMessageDispatcher.sol +30 -0
- package/contracts/hooks/ERC5164MessageHook.sol +95 -0
- package/contracts/hooks/OptimismMessageHook.sol +3 -1
- package/contracts/isms/multisig/AbstractMerkleRootMultisigIsm.sol +10 -4
- package/contracts/isms/multisig/AbstractMessageIdMultisigIsm.sol +8 -3
- package/contracts/isms/native/AbstractNativeISM.sol +17 -6
- package/contracts/isms/native/ERC5164ISM.sol +75 -0
- package/contracts/isms/native/OptimismISM.sol +15 -4
- package/contracts/mock/MockERC5164.sol +26 -0
- package/dist/contracts/CheckpointFraudProofs.d.ts +103 -0
- package/dist/contracts/CheckpointFraudProofs.d.ts.map +1 -0
- package/dist/contracts/CheckpointFraudProofs.js +4 -0
- package/dist/contracts/CheckpointFraudProofs.js.map +1 -0
- package/dist/contracts/hooks/ERC5164/index.d.ts +3 -0
- package/dist/contracts/hooks/ERC5164/index.d.ts.map +1 -0
- package/dist/contracts/hooks/ERC5164/index.js +4 -0
- package/dist/contracts/hooks/ERC5164/index.js.map +1 -0
- package/dist/contracts/hooks/ERC5164/interfaces/IMessageDispatcher.d.ts +72 -0
- package/dist/contracts/hooks/ERC5164/interfaces/IMessageDispatcher.d.ts.map +1 -0
- package/dist/contracts/hooks/ERC5164/interfaces/IMessageDispatcher.js +4 -0
- package/dist/contracts/hooks/ERC5164/interfaces/IMessageDispatcher.js.map +1 -0
- package/dist/contracts/hooks/ERC5164/interfaces/index.d.ts +2 -0
- package/dist/contracts/hooks/ERC5164/interfaces/index.d.ts.map +1 -0
- package/dist/contracts/hooks/ERC5164/interfaces/index.js +3 -0
- package/dist/contracts/hooks/ERC5164/interfaces/index.js.map +1 -0
- package/dist/contracts/hooks/ERC5164MessageHook.d.ts +75 -0
- package/dist/contracts/hooks/ERC5164MessageHook.d.ts.map +1 -0
- package/dist/contracts/hooks/ERC5164MessageHook.js +4 -0
- package/dist/contracts/hooks/ERC5164MessageHook.js.map +1 -0
- package/dist/contracts/hooks/index.d.ts +3 -0
- package/dist/contracts/hooks/index.d.ts.map +1 -1
- package/dist/contracts/hooks/index.js +1 -0
- package/dist/contracts/hooks/index.js.map +1 -1
- package/dist/contracts/isms/native/AbstractNativeISM.d.ts +10 -10
- package/dist/contracts/isms/native/AbstractNativeISM.d.ts.map +1 -1
- package/dist/contracts/isms/native/ERC5164ISM.d.ts +107 -0
- package/dist/contracts/isms/native/ERC5164ISM.d.ts.map +1 -0
- package/dist/contracts/isms/native/ERC5164ISM.js +4 -0
- package/dist/contracts/isms/native/ERC5164ISM.js.map +1 -0
- package/dist/contracts/isms/native/OptimismISM.d.ts +17 -17
- package/dist/contracts/isms/native/OptimismISM.d.ts.map +1 -1
- package/dist/contracts/isms/native/index.d.ts +1 -0
- package/dist/contracts/isms/native/index.d.ts.map +1 -1
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.d.ts +77 -0
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.d.ts.map +1 -0
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.js +4 -0
- package/dist/contracts/libs/TestMerkle.sol/MerkleTree.js.map +1 -0
- package/dist/contracts/libs/TestMerkle.sol/index.d.ts +2 -0
- package/dist/contracts/libs/TestMerkle.sol/index.d.ts.map +1 -0
- package/dist/contracts/libs/TestMerkle.sol/index.js +3 -0
- package/dist/contracts/libs/TestMerkle.sol/index.js.map +1 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageDispatcher.d.ts +72 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageDispatcher.d.ts.map +1 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageDispatcher.js +4 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageDispatcher.js.map +1 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageExecutor.d.ts +44 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageExecutor.d.ts.map +1 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageExecutor.js +4 -0
- package/dist/contracts/mock/MockERC5164.sol/MockMessageExecutor.js.map +1 -0
- package/dist/contracts/mock/MockERC5164.sol/index.d.ts +3 -0
- package/dist/contracts/mock/MockERC5164.sol/index.d.ts.map +1 -0
- package/dist/contracts/mock/MockERC5164.sol/index.js +3 -0
- package/dist/contracts/mock/MockERC5164.sol/index.js.map +1 -0
- package/dist/contracts/mock/index.d.ts +2 -0
- package/dist/contracts/mock/index.d.ts.map +1 -1
- package/dist/contracts/mock/index.js +1 -0
- package/dist/contracts/mock/index.js.map +1 -1
- package/dist/factories/contracts/CheckpointFraudProofs__factory.d.ts +45 -0
- package/dist/factories/contracts/CheckpointFraudProofs__factory.d.ts.map +1 -0
- package/dist/factories/contracts/CheckpointFraudProofs__factory.js +231 -0
- package/dist/factories/contracts/CheckpointFraudProofs__factory.js.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/index.d.ts +2 -0
- package/dist/factories/contracts/hooks/ERC5164/index.d.ts.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/index.js +31 -0
- package/dist/factories/contracts/hooks/ERC5164/index.js.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/IMessageDispatcher__factory.d.ts +36 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/IMessageDispatcher__factory.d.ts.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/IMessageDispatcher__factory.js +84 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/IMessageDispatcher__factory.js.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/index.d.ts +2 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/index.d.ts.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/index.js +9 -0
- package/dist/factories/contracts/hooks/ERC5164/interfaces/index.js.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164MessageHook__factory.d.ts +45 -0
- package/dist/factories/contracts/hooks/ERC5164MessageHook__factory.d.ts.map +1 -0
- package/dist/factories/contracts/hooks/ERC5164MessageHook__factory.js +125 -0
- package/dist/factories/contracts/hooks/ERC5164MessageHook__factory.js.map +1 -0
- package/dist/factories/contracts/hooks/OptimismMessageHook__factory.d.ts +1 -1
- package/dist/factories/contracts/hooks/OptimismMessageHook__factory.d.ts.map +1 -1
- package/dist/factories/contracts/hooks/OptimismMessageHook__factory.js +1 -1
- package/dist/factories/contracts/hooks/OptimismMessageHook__factory.js.map +1 -1
- package/dist/factories/contracts/hooks/index.d.ts +2 -0
- package/dist/factories/contracts/hooks/index.d.ts.map +1 -1
- package/dist/factories/contracts/hooks/index.js +27 -1
- package/dist/factories/contracts/hooks/index.js.map +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMerkleRootMultisigIsmFactory__factory.d.ts +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMerkleRootMultisigIsmFactory__factory.js +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMerkleRootMultisigIsm__factory.d.ts +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMerkleRootMultisigIsm__factory.js +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMessageIdMultisigIsmFactory__factory.d.ts +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMessageIdMultisigIsmFactory__factory.js +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMessageIdMultisigIsm__factory.d.ts +1 -1
- package/dist/factories/contracts/isms/multisig/StaticMultisigIsm.sol/StaticMessageIdMultisigIsm__factory.js +1 -1
- package/dist/factories/contracts/isms/native/AbstractNativeISM__factory.d.ts.map +1 -1
- package/dist/factories/contracts/isms/native/AbstractNativeISM__factory.js +4 -9
- package/dist/factories/contracts/isms/native/AbstractNativeISM__factory.js.map +1 -1
- package/dist/factories/contracts/isms/native/ERC5164ISM__factory.d.ts +59 -0
- package/dist/factories/contracts/isms/native/ERC5164ISM__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/native/ERC5164ISM__factory.js +171 -0
- package/dist/factories/contracts/isms/native/ERC5164ISM__factory.js.map +1 -0
- package/dist/factories/contracts/isms/native/OptimismISM__factory.d.ts +1 -1
- package/dist/factories/contracts/isms/native/OptimismISM__factory.d.ts.map +1 -1
- package/dist/factories/contracts/isms/native/OptimismISM__factory.js +7 -12
- package/dist/factories/contracts/isms/native/OptimismISM__factory.js.map +1 -1
- package/dist/factories/contracts/isms/native/index.d.ts +1 -0
- package/dist/factories/contracts/isms/native/index.d.ts.map +1 -1
- package/dist/factories/contracts/isms/native/index.js +3 -1
- package/dist/factories/contracts/isms/native/index.js.map +1 -1
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.d.ts +41 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.d.ts.map +1 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.js +151 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/MerkleTree__factory.js.map +1 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/index.d.ts +2 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/index.d.ts.map +1 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/index.js +9 -0
- package/dist/factories/contracts/libs/TestMerkle.sol/index.js.map +1 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageDispatcher__factory.d.ts +48 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageDispatcher__factory.d.ts.map +1 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageDispatcher__factory.js +107 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageDispatcher__factory.js.map +1 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageExecutor__factory.d.ts +31 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageExecutor__factory.d.ts.map +1 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageExecutor__factory.js +60 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/MockMessageExecutor__factory.js.map +1 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/index.d.ts +3 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/index.d.ts.map +1 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/index.js +11 -0
- package/dist/factories/contracts/mock/MockERC5164.sol/index.js.map +1 -0
- package/dist/factories/contracts/mock/index.d.ts +1 -0
- package/dist/factories/contracts/mock/index.d.ts.map +1 -1
- package/dist/factories/contracts/mock/index.js +25 -1
- package/dist/factories/contracts/mock/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/docs/book.css +13 -0
- package/docs/book.toml +12 -0
- package/docs/solidity.min.js +74 -0
- package/docs/src/README.md +15 -0
- package/docs/src/SUMMARY.md +128 -0
- package/docs/src/contracts/GasRouter.sol/abstract.GasRouter.md +124 -0
- package/docs/src/contracts/HyperlaneConnectionClient.sol/abstract.HyperlaneConnectionClient.md +191 -0
- package/docs/src/contracts/Mailbox.sol/contract.Mailbox.md +251 -0
- package/docs/src/contracts/OwnableMulticall.sol/contract.OwnableMulticall.md +41 -0
- package/docs/src/contracts/PausableReentrancyGuard.sol/abstract.PausableReentrancyGuardUpgradeable.md +100 -0
- package/docs/src/contracts/README.md +19 -0
- package/docs/src/contracts/Router.sol/abstract.Router.md +255 -0
- package/docs/src/contracts/ValidatorAnnounce.sol/contract.ValidatorAnnounce.md +117 -0
- package/docs/src/contracts/hooks/OptimismMessageHook.sol/contract.OptimismMessageHook.md +71 -0
- package/docs/src/contracts/hooks/README.md +4 -0
- package/docs/src/contracts/igps/InterchainGasPaymaster.sol/contract.InterchainGasPaymaster.md +231 -0
- package/docs/src/contracts/igps/OverheadIgp.sol/contract.OverheadIgp.md +161 -0
- package/docs/src/contracts/igps/README.md +6 -0
- package/docs/src/contracts/igps/gas-oracles/README.md +4 -0
- package/docs/src/contracts/igps/gas-oracles/StorageGasOracle.sol/contract.StorageGasOracle.md +114 -0
- package/docs/src/contracts/interfaces/IGasOracle.sol/interface.IGasOracle.md +25 -0
- package/docs/src/contracts/interfaces/IHyperlaneConnectionClient.sol/interface.IHyperlaneConnectionClient.md +43 -0
- package/docs/src/contracts/interfaces/IInterchainGasPaymaster.sol/interface.IInterchainGasPaymaster.md +33 -0
- package/docs/src/contracts/interfaces/IInterchainSecurityModule.sol/interface.IInterchainSecurityModule.md +55 -0
- package/docs/src/contracts/interfaces/IInterchainSecurityModule.sol/interface.ISpecifiesInterchainSecurityModule.md +12 -0
- package/docs/src/contracts/interfaces/ILiquidityLayerMessageRecipient.sol/interface.ILiquidityLayerMessageRecipient.md +13 -0
- package/docs/src/contracts/interfaces/ILiquidityLayerRouter.sol/interface.ILiquidityLayerRouter.md +19 -0
- package/docs/src/contracts/interfaces/IMailbox.sol/interface.IMailbox.md +103 -0
- package/docs/src/contracts/interfaces/IMessageRecipient.sol/interface.IMessageRecipient.md +12 -0
- package/docs/src/contracts/interfaces/IRouter.sol/interface.IRouter.md +33 -0
- package/docs/src/contracts/interfaces/IValidatorAnnounce.sol/interface.IValidatorAnnounce.md +78 -0
- package/docs/src/contracts/interfaces/README.md +17 -0
- package/docs/src/contracts/interfaces/hooks/IMessageHook.sol/interface.IMessageHook.md +12 -0
- package/docs/src/contracts/interfaces/hooks/README.md +4 -0
- package/docs/src/contracts/interfaces/isms/IAggregationIsm.sol/interface.IAggregationIsm.md +36 -0
- package/docs/src/contracts/interfaces/isms/IMultisigIsm.sol/interface.IMultisigIsm.md +36 -0
- package/docs/src/contracts/interfaces/isms/IRoutingIsm.sol/interface.IRoutingIsm.md +31 -0
- package/docs/src/contracts/interfaces/isms/README.md +6 -0
- package/docs/src/contracts/interfaces/middleware/IInterchainAccountRouter.sol/interface.IInterchainAccountRouter.md +64 -0
- package/docs/src/contracts/interfaces/middleware/IInterchainQueryRouter.sol/interface.IInterchainQueryRouter.md +21 -0
- package/docs/src/contracts/interfaces/middleware/README.md +5 -0
- package/docs/src/contracts/isms/README.md +7 -0
- package/docs/src/contracts/isms/aggregation/AbstractAggregationIsm.sol/abstract.AbstractAggregationIsm.md +60 -0
- package/docs/src/contracts/isms/aggregation/README.md +6 -0
- package/docs/src/contracts/isms/aggregation/StaticAggregationIsm.sol/contract.StaticAggregationIsm.md +30 -0
- package/docs/src/contracts/isms/aggregation/StaticAggregationIsmFactory.sol/contract.StaticAggregationIsmFactory.md +15 -0
- package/docs/src/contracts/isms/multisig/AbstractMerkleRootMultisigIsm.sol/abstract.AbstractMerkleRootMultisigIsm.md +78 -0
- package/docs/src/contracts/isms/multisig/AbstractMessageIdMultisigIsm.sol/abstract.AbstractMessageIdMultisigIsm.md +69 -0
- package/docs/src/contracts/isms/multisig/AbstractMultisigIsm.sol/abstract.AbstractMultisigIsm.md +102 -0
- package/docs/src/contracts/isms/multisig/LegacyMultisigIsm.sol/contract.LegacyMultisigIsm.md +355 -0
- package/docs/src/contracts/isms/multisig/README.md +12 -0
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/abstract.AbstractMetaProxyMultisigIsm.md +36 -0
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMerkleRootMultisigIsm.md +11 -0
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMerkleRootMultisigIsmFactory.md +15 -0
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMessageIdMultisigIsm.md +10 -0
- package/docs/src/contracts/isms/multisig/StaticMultisigIsm.sol/contract.StaticMessageIdMultisigIsmFactory.md +15 -0
- package/docs/src/contracts/isms/native/AbstractNativeISM.sol/abstract.AbstractNativeISM.md +44 -0
- package/docs/src/contracts/isms/native/OptimismISM.sol/contract.OptimismISM.md +66 -0
- package/docs/src/contracts/isms/native/README.md +5 -0
- package/docs/src/contracts/isms/routing/AbstractRoutingIsm.sol/abstract.AbstractRoutingIsm.md +55 -0
- package/docs/src/contracts/isms/routing/DomainRoutingIsm.sol/contract.DomainRoutingIsm.md +112 -0
- package/docs/src/contracts/isms/routing/DomainRoutingIsmFactory.sol/contract.DomainRoutingIsmFactory.md +47 -0
- package/docs/src/contracts/isms/routing/InterchainAccountIsm.sol/contract.InterchainAccountIsm.md +44 -0
- package/docs/src/contracts/isms/routing/README.md +7 -0
- package/docs/src/contracts/libs/Call.sol/library.CallLib.md +124 -0
- package/docs/src/contracts/libs/CheckpointLib.sol/library.CheckpointLib.md +61 -0
- package/docs/src/contracts/libs/EnumerableMapExtended.sol/library.EnumerableMapExtended.md +63 -0
- package/docs/src/contracts/libs/LegacyCheckpointLib.sol/library.LegacyCheckpointLib.md +55 -0
- package/docs/src/contracts/libs/Merkle.sol/library.MerkleLib.md +354 -0
- package/docs/src/contracts/libs/Message.sol/library.Message.md +304 -0
- package/docs/src/contracts/libs/MetaProxy.sol/library.MetaProxy.md +36 -0
- package/docs/src/contracts/libs/MinimalProxy.sol/library.MinimalProxy.md +34 -0
- package/docs/src/contracts/libs/README.md +16 -0
- package/docs/src/contracts/libs/StaticMOfNAddressSetFactory.sol/abstract.StaticMOfNAddressSetFactory.md +123 -0
- package/docs/src/contracts/libs/TestMerkle.sol/contract.MerkleTree.md +66 -0
- package/docs/src/contracts/libs/TypeCasts.sol/library.TypeCasts.md +19 -0
- package/docs/src/contracts/libs/ValidatorAnnouncements.sol/library.ValidatorAnnouncements.md +31 -0
- package/docs/src/contracts/libs/isms/AggregationIsmMetadata.sol/library.AggregationIsmMetadata.md +97 -0
- package/docs/src/contracts/libs/isms/LegacyMultisigIsmMetadata.sol/library.LegacyMultisigIsmMetadata.md +296 -0
- package/docs/src/contracts/libs/isms/MerkleRootMultisigIsmMetadata.sol/library.MerkleRootMultisigIsmMetadata.md +177 -0
- package/docs/src/contracts/libs/isms/MessageIdMultisigIsmMetadata.sol/library.MessageIdMultisigIsmMetadata.md +109 -0
- package/docs/src/contracts/libs/isms/README.md +7 -0
- package/docs/src/contracts/libs/middleware/InterchainAccountMessage.sol/library.InterchainAccountMessage.md +134 -0
- package/docs/src/contracts/libs/middleware/InterchainQueryMessage.sol/library.InterchainQueryMessage.md +203 -0
- package/docs/src/contracts/libs/middleware/README.md +5 -0
- package/docs/src/contracts/middleware/InterchainAccountRouter.sol/contract.InterchainAccountRouter.md +545 -0
- package/docs/src/contracts/middleware/InterchainQueryRouter.sol/contract.InterchainQueryRouter.md +119 -0
- package/docs/src/contracts/middleware/README.md +6 -0
- package/docs/src/contracts/middleware/liquidity-layer/LiquidityLayerRouter.sol/contract.LiquidityLayerRouter.md +81 -0
- package/docs/src/contracts/middleware/liquidity-layer/README.md +6 -0
- package/docs/src/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.sol/contract.CircleBridgeAdapter.md +197 -0
- package/docs/src/contracts/middleware/liquidity-layer/adapters/PortalAdapter.sol/contract.PortalAdapter.md +189 -0
- package/docs/src/contracts/middleware/liquidity-layer/adapters/README.md +5 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter.sol/interface.ILiquidityLayerAdapter.md +23 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/README.md +6 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter.sol/interface.ICircleMessageTransmitter.md +54 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/circle/ITokenMessenger.sol/interface.ITokenMessenger.md +92 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/circle/README.md +5 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.sol/interface.IPortalTokenBridge.md +131 -0
- package/docs/src/contracts/middleware/liquidity-layer/interfaces/portal/README.md +4 -0
- package/docs/src/contracts/mock/MockCircleMessageTransmitter.sol/contract.MockCircleMessageTransmitter.md +58 -0
- package/docs/src/contracts/mock/MockCircleTokenMessenger.sol/contract.MockCircleTokenMessenger.md +44 -0
- package/docs/src/contracts/mock/MockHyperlaneEnvironment.sol/contract.MockHyperlaneEnvironment.md +69 -0
- package/docs/src/contracts/mock/MockMailbox.sol/contract.MockMailbox.md +137 -0
- package/docs/src/contracts/mock/MockPortalBridge.sol/contract.MockPortalBridge.md +82 -0
- package/docs/src/contracts/mock/MockToken.sol/contract.MockToken.md +22 -0
- package/docs/src/contracts/mock/README.md +9 -0
- package/docs/src/contracts/test/LightTestRecipient.sol/contract.LightTestRecipient.md +15 -0
- package/docs/src/contracts/test/README.md +20 -0
- package/docs/src/contracts/test/TestGasRouter.sol/contract.TestGasRouter.md +27 -0
- package/docs/src/contracts/test/TestHyperlaneConnectionClient.sol/contract.TestHyperlaneConnectionClient.md +29 -0
- package/docs/src/contracts/test/TestInterchainGasPaymaster.sol/contract.TestInterchainGasPaymaster.md +30 -0
- package/docs/src/contracts/test/TestLegacyMultisigIsm.sol/contract.TestLegacyMultisigIsm.md +15 -0
- package/docs/src/contracts/test/TestLiquidityLayerMessageRecipient.sol/contract.TestLiquidityLayerMessageRecipient.md +23 -0
- package/docs/src/contracts/test/TestMailbox.sol/contract.TestMailbox.md +29 -0
- package/docs/src/contracts/test/TestMerkle.sol/contract.TestMerkle.md +50 -0
- package/docs/src/contracts/test/TestMessage.sol/contract.TestMessage.md +68 -0
- package/docs/src/contracts/test/TestMultisigIsm.sol/contract.TestMultisigIsm.md +51 -0
- package/docs/src/contracts/test/TestQuery.sol/contract.TestQuery.md +45 -0
- package/docs/src/contracts/test/TestQuerySender.sol/contract.TestQuerySender.md +128 -0
- package/docs/src/contracts/test/TestRecipient.sol/contract.TestRecipient.md +78 -0
- package/docs/src/contracts/test/TestRouter.sol/contract.TestRouter.md +63 -0
- package/docs/src/contracts/test/TestSendReceiver.sol/contract.TestSendReceiver.md +49 -0
- package/docs/src/contracts/test/TestTokenRecipient.sol/contract.TestTokenRecipient.md +80 -0
- package/docs/src/contracts/test/bad-recipient/BadRecipient1.sol/contract.BadRecipient1.md +15 -0
- package/docs/src/contracts/test/bad-recipient/BadRecipient2.sol/contract.BadRecipient2.md +12 -0
- package/docs/src/contracts/test/bad-recipient/BadRecipient3.sol/contract.BadRecipient3.md +15 -0
- package/docs/src/contracts/test/bad-recipient/BadRecipient5.sol/contract.BadRecipient5.md +15 -0
- package/docs/src/contracts/test/bad-recipient/BadRecipient6.sol/contract.BadRecipient6.md +15 -0
- package/docs/src/contracts/test/bad-recipient/README.md +8 -0
- package/docs/src/contracts/upgrade/README.md +4 -0
- package/docs/src/contracts/upgrade/Versioned.sol/contract.Versioned.md +14 -0
- package/package.json +6 -4
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# GasRouter
|
|
2
|
+
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/GasRouter.sol)
|
|
3
|
+
|
|
4
|
+
**Inherits:**
|
|
5
|
+
[Router](/contracts/Router.sol/abstract.Router.md)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## State Variables
|
|
9
|
+
### destinationGas
|
|
10
|
+
|
|
11
|
+
```solidity
|
|
12
|
+
mapping(uint32 => uint256) public destinationGas;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Functions
|
|
17
|
+
### setDestinationGas
|
|
18
|
+
|
|
19
|
+
Sets the gas amount dispatched for each configured domain.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
```solidity
|
|
23
|
+
function setDestinationGas(GasRouterConfig[] calldata gasConfigs) external onlyOwner;
|
|
24
|
+
```
|
|
25
|
+
**Parameters**
|
|
26
|
+
|
|
27
|
+
|Name|Type|Description|
|
|
28
|
+
|----|----|-----------|
|
|
29
|
+
|`gasConfigs`|`GasRouterConfig[]`|The array of GasRouterConfig structs|
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### quoteGasPayment
|
|
33
|
+
|
|
34
|
+
Returns the gas payment required to dispatch a message to the given domain's router.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
```solidity
|
|
38
|
+
function quoteGasPayment(uint32 _destinationDomain) external view returns (uint256 _gasPayment);
|
|
39
|
+
```
|
|
40
|
+
**Parameters**
|
|
41
|
+
|
|
42
|
+
|Name|Type|Description|
|
|
43
|
+
|----|----|-----------|
|
|
44
|
+
|`_destinationDomain`|`uint32`|The domain of the router.|
|
|
45
|
+
|
|
46
|
+
**Returns**
|
|
47
|
+
|
|
48
|
+
|Name|Type|Description|
|
|
49
|
+
|----|----|-----------|
|
|
50
|
+
|`_gasPayment`|`uint256`|Payment computed by the registered InterchainGasPaymaster.|
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### _setDestinationGas
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
```solidity
|
|
57
|
+
function _setDestinationGas(uint32 domain, uint256 gas) internal;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### _dispatchWithGas
|
|
61
|
+
|
|
62
|
+
Dispatches a message to an enrolled router via the local router's Mailbox
|
|
63
|
+
and pays for it to be relayed to the destination.
|
|
64
|
+
|
|
65
|
+
*Uses the destinationGas mapping to populate the gas amount for the message.*
|
|
66
|
+
|
|
67
|
+
*Reverts if there is no enrolled router for _destinationDomain.*
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
```solidity
|
|
71
|
+
function _dispatchWithGas(
|
|
72
|
+
uint32 _destinationDomain,
|
|
73
|
+
bytes memory _messageBody,
|
|
74
|
+
uint256 _gasPayment,
|
|
75
|
+
address _gasPaymentRefundAddress
|
|
76
|
+
) internal returns (bytes32 _messageId);
|
|
77
|
+
```
|
|
78
|
+
**Parameters**
|
|
79
|
+
|
|
80
|
+
|Name|Type|Description|
|
|
81
|
+
|----|----|-----------|
|
|
82
|
+
|`_destinationDomain`|`uint32`|The domain of the chain to which to send the message.|
|
|
83
|
+
|`_messageBody`|`bytes`|Raw bytes content of message.|
|
|
84
|
+
|`_gasPayment`|`uint256`|The amount of native tokens to pay for the message to be relayed.|
|
|
85
|
+
|`_gasPaymentRefundAddress`|`address`|The address to refund any gas overpayment to.|
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### _dispatchWithGas
|
|
89
|
+
|
|
90
|
+
*Passes `msg.value` as gas payment and `msg.sender` as gas payment refund address.*
|
|
91
|
+
|
|
92
|
+
*Uses the destinationGas mapping to populate the gas amount for the message.*
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
```solidity
|
|
96
|
+
function _dispatchWithGas(uint32 _destinationDomain, bytes memory _messageBody) internal returns (bytes32 _messageId);
|
|
97
|
+
```
|
|
98
|
+
**Parameters**
|
|
99
|
+
|
|
100
|
+
|Name|Type|Description|
|
|
101
|
+
|----|----|-----------|
|
|
102
|
+
|`_destinationDomain`|`uint32`|The domain of the chain to send the message.|
|
|
103
|
+
|`_messageBody`|`bytes`|Raw bytes content of message.|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Events
|
|
107
|
+
### DestinationGasSet
|
|
108
|
+
Emitted when a domain's destination gas is set.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
```solidity
|
|
112
|
+
event DestinationGasSet(uint32 indexed domain, uint256 gas);
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Structs
|
|
116
|
+
### GasRouterConfig
|
|
117
|
+
|
|
118
|
+
```solidity
|
|
119
|
+
struct GasRouterConfig {
|
|
120
|
+
uint32 domain;
|
|
121
|
+
uint256 gas;
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
package/docs/src/contracts/HyperlaneConnectionClient.sol/abstract.HyperlaneConnectionClient.md
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# HyperlaneConnectionClient
|
|
2
|
+
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/HyperlaneConnectionClient.sol)
|
|
3
|
+
|
|
4
|
+
**Inherits:**
|
|
5
|
+
OwnableUpgradeable, [IHyperlaneConnectionClient](/contracts/interfaces/IHyperlaneConnectionClient.sol/interface.IHyperlaneConnectionClient.md)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## State Variables
|
|
9
|
+
### mailbox
|
|
10
|
+
|
|
11
|
+
```solidity
|
|
12
|
+
IMailbox public mailbox;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### interchainGasPaymaster
|
|
17
|
+
|
|
18
|
+
```solidity
|
|
19
|
+
IInterchainGasPaymaster public interchainGasPaymaster;
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### interchainSecurityModule
|
|
24
|
+
|
|
25
|
+
```solidity
|
|
26
|
+
IInterchainSecurityModule public interchainSecurityModule;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### __GAP
|
|
31
|
+
|
|
32
|
+
```solidity
|
|
33
|
+
uint256[48] private __GAP;
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Functions
|
|
38
|
+
### onlyMailbox
|
|
39
|
+
|
|
40
|
+
Only accept messages from an Hyperlane Mailbox contract
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
```solidity
|
|
44
|
+
modifier onlyMailbox();
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### onlyContract
|
|
48
|
+
|
|
49
|
+
Only accept addresses that at least have contract code
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
```solidity
|
|
53
|
+
modifier onlyContract(address _contract);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### __HyperlaneConnectionClient_initialize
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
```solidity
|
|
60
|
+
function __HyperlaneConnectionClient_initialize(address _mailbox) internal onlyInitializing;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### __HyperlaneConnectionClient_initialize
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
```solidity
|
|
67
|
+
function __HyperlaneConnectionClient_initialize(address _mailbox, address _interchainGasPaymaster)
|
|
68
|
+
internal
|
|
69
|
+
onlyInitializing;
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### __HyperlaneConnectionClient_initialize
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
```solidity
|
|
76
|
+
function __HyperlaneConnectionClient_initialize(
|
|
77
|
+
address _mailbox,
|
|
78
|
+
address _interchainGasPaymaster,
|
|
79
|
+
address _interchainSecurityModule
|
|
80
|
+
) internal onlyInitializing;
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### __HyperlaneConnectionClient_initialize
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
```solidity
|
|
87
|
+
function __HyperlaneConnectionClient_initialize(
|
|
88
|
+
address _mailbox,
|
|
89
|
+
address _interchainGasPaymaster,
|
|
90
|
+
address _interchainSecurityModule,
|
|
91
|
+
address _owner
|
|
92
|
+
) internal onlyInitializing;
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### setMailbox
|
|
96
|
+
|
|
97
|
+
Sets the address of the application's Mailbox.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
```solidity
|
|
101
|
+
function setMailbox(address _mailbox) external virtual onlyOwner;
|
|
102
|
+
```
|
|
103
|
+
**Parameters**
|
|
104
|
+
|
|
105
|
+
|Name|Type|Description|
|
|
106
|
+
|----|----|-----------|
|
|
107
|
+
|`_mailbox`|`address`|The address of the Mailbox contract.|
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### setInterchainGasPaymaster
|
|
111
|
+
|
|
112
|
+
Sets the address of the application's InterchainGasPaymaster.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
```solidity
|
|
116
|
+
function setInterchainGasPaymaster(address _interchainGasPaymaster) external virtual onlyOwner;
|
|
117
|
+
```
|
|
118
|
+
**Parameters**
|
|
119
|
+
|
|
120
|
+
|Name|Type|Description|
|
|
121
|
+
|----|----|-----------|
|
|
122
|
+
|`_interchainGasPaymaster`|`address`|The address of the InterchainGasPaymaster contract.|
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### setInterchainSecurityModule
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
```solidity
|
|
129
|
+
function setInterchainSecurityModule(address _module) external virtual onlyOwner;
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### _setInterchainGasPaymaster
|
|
133
|
+
|
|
134
|
+
Sets the address of the application's InterchainGasPaymaster.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
```solidity
|
|
138
|
+
function _setInterchainGasPaymaster(address _interchainGasPaymaster) internal onlyContract(_interchainGasPaymaster);
|
|
139
|
+
```
|
|
140
|
+
**Parameters**
|
|
141
|
+
|
|
142
|
+
|Name|Type|Description|
|
|
143
|
+
|----|----|-----------|
|
|
144
|
+
|`_interchainGasPaymaster`|`address`|The address of the InterchainGasPaymaster contract.|
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### _setMailbox
|
|
148
|
+
|
|
149
|
+
Modify the contract the Application uses to validate Mailbox contracts
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
```solidity
|
|
153
|
+
function _setMailbox(address _mailbox) internal onlyContract(_mailbox);
|
|
154
|
+
```
|
|
155
|
+
**Parameters**
|
|
156
|
+
|
|
157
|
+
|Name|Type|Description|
|
|
158
|
+
|----|----|-----------|
|
|
159
|
+
|`_mailbox`|`address`|The address of the mailbox contract|
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### _setInterchainSecurityModule
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
```solidity
|
|
166
|
+
function _setInterchainSecurityModule(address _module) internal;
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Events
|
|
170
|
+
### MailboxSet
|
|
171
|
+
Emitted when a new mailbox is set.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
```solidity
|
|
175
|
+
event MailboxSet(address indexed mailbox);
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### InterchainGasPaymasterSet
|
|
179
|
+
Emitted when a new Interchain Gas Paymaster is set.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
```solidity
|
|
183
|
+
event InterchainGasPaymasterSet(address indexed interchainGasPaymaster);
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### InterchainSecurityModuleSet
|
|
187
|
+
|
|
188
|
+
```solidity
|
|
189
|
+
event InterchainSecurityModuleSet(address indexed module);
|
|
190
|
+
```
|
|
191
|
+
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Mailbox
|
|
2
|
+
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/Mailbox.sol)
|
|
3
|
+
|
|
4
|
+
**Inherits:**
|
|
5
|
+
[IMailbox](/contracts/interfaces/IMailbox.sol/interface.IMailbox.md), OwnableUpgradeable, [PausableReentrancyGuardUpgradeable](/contracts/PausableReentrancyGuard.sol/abstract.PausableReentrancyGuardUpgradeable.md), [Versioned](/contracts/upgrade/Versioned.sol/contract.Versioned.md)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## State Variables
|
|
9
|
+
### MAX_MESSAGE_BODY_BYTES
|
|
10
|
+
|
|
11
|
+
```solidity
|
|
12
|
+
uint256 public constant MAX_MESSAGE_BODY_BYTES = 2 * 2 ** 10;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### localDomain
|
|
17
|
+
|
|
18
|
+
```solidity
|
|
19
|
+
uint32 public immutable localDomain;
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### defaultIsm
|
|
24
|
+
|
|
25
|
+
```solidity
|
|
26
|
+
IInterchainSecurityModule public defaultIsm;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### tree
|
|
31
|
+
|
|
32
|
+
```solidity
|
|
33
|
+
MerkleLib.Tree public tree;
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### delivered
|
|
38
|
+
|
|
39
|
+
```solidity
|
|
40
|
+
mapping(bytes32 => bool) public delivered;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### __GAP
|
|
45
|
+
|
|
46
|
+
```solidity
|
|
47
|
+
uint256[47] private __GAP;
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Functions
|
|
52
|
+
### constructor
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
```solidity
|
|
56
|
+
constructor(uint32 _localDomain);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### initialize
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
```solidity
|
|
63
|
+
function initialize(address _owner, address _defaultIsm) external initializer;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### setDefaultIsm
|
|
67
|
+
|
|
68
|
+
Sets the default ISM for the Mailbox.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
```solidity
|
|
72
|
+
function setDefaultIsm(address _module) external onlyOwner;
|
|
73
|
+
```
|
|
74
|
+
**Parameters**
|
|
75
|
+
|
|
76
|
+
|Name|Type|Description|
|
|
77
|
+
|----|----|-----------|
|
|
78
|
+
|`_module`|`address`|The new default ISM. Must be a contract.|
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### dispatch
|
|
82
|
+
|
|
83
|
+
Dispatches a message to the destination domain & recipient.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
```solidity
|
|
87
|
+
function dispatch(uint32 _destinationDomain, bytes32 _recipientAddress, bytes calldata _messageBody)
|
|
88
|
+
external
|
|
89
|
+
override
|
|
90
|
+
notPaused
|
|
91
|
+
returns (bytes32);
|
|
92
|
+
```
|
|
93
|
+
**Parameters**
|
|
94
|
+
|
|
95
|
+
|Name|Type|Description|
|
|
96
|
+
|----|----|-----------|
|
|
97
|
+
|`_destinationDomain`|`uint32`|Domain of destination chain|
|
|
98
|
+
|`_recipientAddress`|`bytes32`|Address of recipient on destination chain as bytes32|
|
|
99
|
+
|`_messageBody`|`bytes`|Raw bytes content of message body|
|
|
100
|
+
|
|
101
|
+
**Returns**
|
|
102
|
+
|
|
103
|
+
|Name|Type|Description|
|
|
104
|
+
|----|----|-----------|
|
|
105
|
+
|`<none>`|`bytes32`|The message ID inserted into the Mailbox's merkle tree|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### process
|
|
109
|
+
|
|
110
|
+
Attempts to deliver `_message` to its recipient. Verifies
|
|
111
|
+
`_message` via the recipient's ISM using the provided `_metadata`.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
```solidity
|
|
115
|
+
function process(bytes calldata _metadata, bytes calldata _message) external override nonReentrantAndNotPaused;
|
|
116
|
+
```
|
|
117
|
+
**Parameters**
|
|
118
|
+
|
|
119
|
+
|Name|Type|Description|
|
|
120
|
+
|----|----|-----------|
|
|
121
|
+
|`_metadata`|`bytes`|Metadata used by the ISM to verify `_message`.|
|
|
122
|
+
|`_message`|`bytes`|Formatted Hyperlane message (refer to Message.sol).|
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### root
|
|
126
|
+
|
|
127
|
+
Calculates and returns tree's current root
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
```solidity
|
|
131
|
+
function root() public view returns (bytes32);
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### count
|
|
135
|
+
|
|
136
|
+
Returns the number of inserted leaves in the tree
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
```solidity
|
|
140
|
+
function count() public view returns (uint32);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### latestCheckpoint
|
|
144
|
+
|
|
145
|
+
Returns a checkpoint representing the current merkle tree.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
```solidity
|
|
149
|
+
function latestCheckpoint() external view returns (bytes32, uint32);
|
|
150
|
+
```
|
|
151
|
+
**Returns**
|
|
152
|
+
|
|
153
|
+
|Name|Type|Description|
|
|
154
|
+
|----|----|-----------|
|
|
155
|
+
|`<none>`|`bytes32`|root The root of the Mailbox's merkle tree.|
|
|
156
|
+
|`<none>`|`uint32`|index The index of the last element in the tree.|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### pause
|
|
160
|
+
|
|
161
|
+
Pauses mailbox and prevents further dispatch/process calls
|
|
162
|
+
|
|
163
|
+
*Only `owner` can pause the mailbox.*
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
```solidity
|
|
167
|
+
function pause() external onlyOwner;
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### unpause
|
|
171
|
+
|
|
172
|
+
Unpauses mailbox and allows for message processing.
|
|
173
|
+
|
|
174
|
+
*Only `owner` can unpause the mailbox.*
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
```solidity
|
|
178
|
+
function unpause() external onlyOwner;
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### isPaused
|
|
182
|
+
|
|
183
|
+
Returns whether mailbox is paused.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
```solidity
|
|
187
|
+
function isPaused() external view returns (bool);
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### recipientIsm
|
|
191
|
+
|
|
192
|
+
Returns the ISM to use for the recipient, defaulting to the
|
|
193
|
+
default ISM if none is specified.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
```solidity
|
|
197
|
+
function recipientIsm(address _recipient) public view returns (IInterchainSecurityModule);
|
|
198
|
+
```
|
|
199
|
+
**Parameters**
|
|
200
|
+
|
|
201
|
+
|Name|Type|Description|
|
|
202
|
+
|----|----|-----------|
|
|
203
|
+
|`_recipient`|`address`|The message recipient whose ISM should be returned.|
|
|
204
|
+
|
|
205
|
+
**Returns**
|
|
206
|
+
|
|
207
|
+
|Name|Type|Description|
|
|
208
|
+
|----|----|-----------|
|
|
209
|
+
|`<none>`|`IInterchainSecurityModule`|The ISM to use for `_recipient`.|
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### _setDefaultIsm
|
|
213
|
+
|
|
214
|
+
Sets the default ISM for the Mailbox.
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
```solidity
|
|
218
|
+
function _setDefaultIsm(address _module) internal;
|
|
219
|
+
```
|
|
220
|
+
**Parameters**
|
|
221
|
+
|
|
222
|
+
|Name|Type|Description|
|
|
223
|
+
|----|----|-----------|
|
|
224
|
+
|`_module`|`address`|The new default ISM. Must be a contract.|
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## Events
|
|
228
|
+
### DefaultIsmSet
|
|
229
|
+
Emitted when the default ISM is updated
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
```solidity
|
|
233
|
+
event DefaultIsmSet(address indexed module);
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Paused
|
|
237
|
+
Emitted when Mailbox is paused
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
```solidity
|
|
241
|
+
event Paused();
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Unpaused
|
|
245
|
+
Emitted when Mailbox is unpaused
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
```solidity
|
|
249
|
+
event Unpaused();
|
|
250
|
+
```
|
|
251
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# OwnableMulticall
|
|
2
|
+
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/OwnableMulticall.sol)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## State Variables
|
|
6
|
+
### owner
|
|
7
|
+
|
|
8
|
+
```solidity
|
|
9
|
+
address public immutable owner;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Functions
|
|
14
|
+
### constructor
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
```solidity
|
|
18
|
+
constructor(address _owner);
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### onlyOwner
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
```solidity
|
|
25
|
+
modifier onlyOwner();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### multicall
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
```solidity
|
|
32
|
+
function multicall(CallLib.Call[] calldata calls) external onlyOwner;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### receive
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
```solidity
|
|
39
|
+
receive() external payable;
|
|
40
|
+
```
|
|
41
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# PausableReentrancyGuardUpgradeable
|
|
2
|
+
[Git Source](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/60f321f452052881dce4e22999022e11fc117456/contracts/PausableReentrancyGuard.sol)
|
|
3
|
+
|
|
4
|
+
**Inherits:**
|
|
5
|
+
Initializable
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## State Variables
|
|
9
|
+
### _ENTERED
|
|
10
|
+
|
|
11
|
+
```solidity
|
|
12
|
+
uint256 private constant _ENTERED = 0;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### _NOT_ENTERED
|
|
17
|
+
|
|
18
|
+
```solidity
|
|
19
|
+
uint256 private constant _NOT_ENTERED = 1;
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### _PAUSED
|
|
24
|
+
|
|
25
|
+
```solidity
|
|
26
|
+
uint256 private constant _PAUSED = 2;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### _status
|
|
31
|
+
|
|
32
|
+
```solidity
|
|
33
|
+
uint256 private _status;
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### __gap
|
|
38
|
+
*This empty reserved space is put in place to allow future versions to add new
|
|
39
|
+
variables without shifting down storage in the inheritance chain.
|
|
40
|
+
See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps*
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
```solidity
|
|
44
|
+
uint256[49] private __gap;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## Functions
|
|
49
|
+
### __PausableReentrancyGuard_init
|
|
50
|
+
|
|
51
|
+
*MUST be called for `nonReentrant` to not always revert*
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
```solidity
|
|
55
|
+
function __PausableReentrancyGuard_init() internal onlyInitializing;
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### _isPaused
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
```solidity
|
|
62
|
+
function _isPaused() internal view returns (bool);
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### _pause
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
```solidity
|
|
69
|
+
function _pause() internal notPaused;
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### _unpause
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
```solidity
|
|
76
|
+
function _unpause() internal;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### notPaused
|
|
80
|
+
|
|
81
|
+
*Prevents a contract from being entered when paused.*
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
```solidity
|
|
85
|
+
modifier notPaused();
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### nonReentrantAndNotPaused
|
|
89
|
+
|
|
90
|
+
*Prevents a contract from calling itself, directly or indirectly.
|
|
91
|
+
Calling a `nonReentrant` function from another `nonReentrant`
|
|
92
|
+
function is not supported. It is possible to prevent this from happening
|
|
93
|
+
by making the `nonReentrant` function external, and making it call a
|
|
94
|
+
`private` function that does the actual work.*
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
```solidity
|
|
98
|
+
modifier nonReentrantAndNotPaused();
|
|
99
|
+
```
|
|
100
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# Contents
|
|
4
|
+
- [hooks](/contracts/hooks)
|
|
5
|
+
- [igps](/contracts/igps)
|
|
6
|
+
- [interfaces](/contracts/interfaces)
|
|
7
|
+
- [isms](/contracts/isms)
|
|
8
|
+
- [libs](/contracts/libs)
|
|
9
|
+
- [middleware](/contracts/middleware)
|
|
10
|
+
- [mock](/contracts/mock)
|
|
11
|
+
- [test](/contracts/test)
|
|
12
|
+
- [upgrade](/contracts/upgrade)
|
|
13
|
+
- [GasRouter](GasRouter.sol/abstract.GasRouter.md)
|
|
14
|
+
- [HyperlaneConnectionClient](HyperlaneConnectionClient.sol/abstract.HyperlaneConnectionClient.md)
|
|
15
|
+
- [Mailbox](Mailbox.sol/contract.Mailbox.md)
|
|
16
|
+
- [OwnableMulticall](OwnableMulticall.sol/contract.OwnableMulticall.md)
|
|
17
|
+
- [PausableReentrancyGuardUpgradeable](PausableReentrancyGuard.sol/abstract.PausableReentrancyGuardUpgradeable.md)
|
|
18
|
+
- [Router](Router.sol/abstract.Router.md)
|
|
19
|
+
- [ValidatorAnnounce](ValidatorAnnounce.sol/contract.ValidatorAnnounce.md)
|