@hyperlane-xyz/core 0.5.5 → 1.0.0-beta1
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/{AbacusConnectionClient.sol → HyperlaneConnectionClient.sol} +71 -58
- package/contracts/InterchainGasPaymaster.sol +20 -13
- package/contracts/Mailbox.sol +244 -44
- package/contracts/PausableReentrancyGuard.sol +69 -0
- package/contracts/Router.sol +49 -52
- package/contracts/isms/MultisigIsm.sol +373 -0
- package/contracts/libs/Message.sol +107 -66
- package/contracts/libs/MultisigIsmMetadata.sol +185 -0
- package/contracts/middleware/InterchainAccountRouter.sol +13 -12
- package/contracts/middleware/InterchainQueryRouter.sol +17 -16
- package/contracts/middleware/liquidity-layer/LiquidityLayerRouter.sol +21 -14
- package/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.sol +0 -4
- package/contracts/mock/MockHyperlaneEnvironment.sol +24 -48
- package/contracts/mock/MockInterchainAccountRouter.sol +4 -4
- package/contracts/mock/MockMailbox.sol +79 -0
- package/contracts/test/TestHyperlaneConnectionClient.sol +14 -0
- package/contracts/test/TestIsm.sol +20 -0
- package/contracts/test/TestLiquidityLayerMessageRecipient.sol +1 -1
- package/contracts/test/TestMailbox.sol +34 -4
- package/contracts/test/TestMerkle.sol +9 -4
- package/contracts/test/TestMessage.sol +24 -12
- package/contracts/test/TestMultisigIsm.sol +23 -0
- package/contracts/test/TestRouter.sol +14 -6
- package/contracts/test/TestSendReceiver.sol +22 -16
- package/contracts/test/TestTokenRecipient.sol +1 -1
- package/contracts/upgrade/ProxyAdmin.sol +6 -0
- package/contracts/upgrade/TransparentUpgradeableProxy.sol +6 -0
- package/dist/@openzeppelin/contracts/index.d.ts +4 -0
- package/dist/@openzeppelin/contracts/index.d.ts.map +1 -1
- package/dist/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.d.ts +43 -0
- package/dist/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.d.ts.map +1 -0
- package/dist/{contracts/MerkleTreeManager.js → @openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.js} +1 -1
- package/dist/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.js.map +1 -0
- package/dist/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.d.ts +2 -0
- package/dist/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.d.ts.map +1 -0
- package/dist/@openzeppelin/{contracts-upgradeable/security → contracts/interfaces/draft-IERC1822.sol}/index.js +0 -0
- package/dist/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js.map +1 -0
- package/dist/@openzeppelin/contracts/interfaces/index.d.ts +3 -0
- package/dist/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -0
- package/dist/{contracts/middleware/token-bridge → @openzeppelin/contracts/interfaces}/index.js +0 -0
- package/dist/@openzeppelin/contracts/interfaces/index.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.d.ts +64 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.d.ts.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.js +4 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.d.ts +64 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.d.ts.map +1 -0
- package/dist/{contracts/middleware/liquidity-layer/adapters/PortalAdapter.js → @openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.js} +1 -1
- package/dist/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +3 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/index.d.ts.map +1 -0
- package/dist/{contracts/middleware/liquidity-layer/interfaces/portal → @openzeppelin/contracts/proxy/ERC1967}/index.js +0 -0
- package/dist/@openzeppelin/contracts/proxy/ERC1967/index.js.map +1 -0
- package/dist/{contracts/upgrade/UpgradeBeaconProxy.d.ts → @openzeppelin/contracts/proxy/Proxy.d.ts} +5 -5
- package/dist/@openzeppelin/contracts/proxy/Proxy.d.ts.map +1 -0
- package/dist/{contracts/Inbox.js → @openzeppelin/contracts/proxy/Proxy.js} +1 -1
- package/dist/@openzeppelin/contracts/proxy/Proxy.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/beacon/IBeacon.d.ts +43 -0
- package/dist/@openzeppelin/contracts/proxy/beacon/IBeacon.d.ts.map +1 -0
- package/dist/{contracts/Outbox.js → @openzeppelin/contracts/proxy/beacon/IBeacon.js} +1 -1
- package/dist/@openzeppelin/contracts/proxy/beacon/IBeacon.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/beacon/index.d.ts +2 -0
- package/dist/@openzeppelin/contracts/proxy/beacon/index.d.ts.map +1 -0
- package/dist/{contracts/middleware/token-bridge/adapters → @openzeppelin/contracts/proxy/beacon}/index.js +0 -0
- package/dist/@openzeppelin/contracts/proxy/beacon/index.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/index.d.ts +8 -0
- package/dist/@openzeppelin/contracts/proxy/index.d.ts.map +1 -0
- package/dist/{contracts/middleware/token-bridge/interfaces → @openzeppelin/contracts/proxy}/index.js +0 -0
- package/dist/@openzeppelin/contracts/proxy/index.js.map +1 -0
- package/dist/{contracts/upgrade/UpgradeBeaconController.d.ts → @openzeppelin/contracts/proxy/transparent/ProxyAdmin.d.ts} +60 -25
- package/dist/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.d.ts.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.js +4 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.d.ts +150 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.d.ts.map +1 -0
- package/dist/@openzeppelin/{contracts-upgradeable/security/ReentrancyGuardUpgradeable.js → contracts/proxy/transparent/TransparentUpgradeableProxy.js} +1 -1
- package/dist/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.js.map +1 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/index.d.ts +3 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/index.d.ts.map +1 -0
- package/dist/{contracts/middleware/token-bridge/interfaces/circle → @openzeppelin/contracts/proxy/transparent}/index.js +0 -0
- package/dist/@openzeppelin/contracts/proxy/transparent/index.js.map +1 -0
- package/dist/@openzeppelin/contracts-upgradeable/index.d.ts +0 -2
- package/dist/@openzeppelin/contracts-upgradeable/index.d.ts.map +1 -1
- package/dist/contracts/InterchainGasPaymaster.d.ts +15 -15
- package/dist/contracts/InterchainGasPaymaster.d.ts.map +1 -1
- package/dist/contracts/Mailbox.d.ts +237 -27
- package/dist/contracts/Mailbox.d.ts.map +1 -1
- package/dist/{@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.d.ts → contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable.d.ts} +5 -5
- package/dist/contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable.d.ts.map +1 -0
- package/dist/contracts/{AbacusConnectionClient.js → PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable.js} +1 -1
- package/dist/contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable.js.map +1 -0
- package/dist/contracts/PausableReentrancyGuard.sol/index.d.ts +2 -0
- package/dist/contracts/PausableReentrancyGuard.sol/index.d.ts.map +1 -0
- package/dist/contracts/{validator-manager → PausableReentrancyGuard.sol}/index.js +0 -0
- package/dist/contracts/PausableReentrancyGuard.sol/index.js.map +1 -0
- package/dist/contracts/Router.d.ts +81 -32
- package/dist/contracts/Router.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +2 -7
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/isms/MultisigIsm.d.ts +63 -24
- package/dist/contracts/isms/MultisigIsm.d.ts.map +1 -1
- package/dist/contracts/middleware/InterchainAccountRouter.d.ts +88 -39
- package/dist/contracts/middleware/InterchainAccountRouter.d.ts.map +1 -1
- package/dist/contracts/middleware/InterchainQueryRouter.d.ts +89 -40
- package/dist/contracts/middleware/InterchainQueryRouter.d.ts.map +1 -1
- package/dist/contracts/middleware/liquidity-layer/LiquidityLayerRouter.d.ts +87 -38
- package/dist/contracts/middleware/liquidity-layer/LiquidityLayerRouter.d.ts.map +1 -1
- package/dist/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.d.ts +81 -32
- package/dist/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.d.ts.map +1 -1
- package/dist/contracts/middleware/liquidity-layer/adapters/index.d.ts +0 -1
- package/dist/contracts/middleware/liquidity-layer/adapters/index.d.ts.map +1 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/index.d.ts +0 -3
- package/dist/contracts/middleware/liquidity-layer/interfaces/index.d.ts.map +1 -1
- package/dist/contracts/mock/MockHyperlaneEnvironment.d.ts +25 -33
- package/dist/contracts/mock/MockHyperlaneEnvironment.d.ts.map +1 -1
- package/dist/contracts/mock/MockInterchainAccountRouter.d.ts +2 -2
- package/dist/contracts/mock/MockInterchainAccountRouter.d.ts.map +1 -1
- package/dist/contracts/mock/index.d.ts +0 -3
- package/dist/contracts/mock/index.d.ts.map +1 -1
- package/dist/contracts/test/TestMailbox.d.ts +250 -32
- package/dist/contracts/test/TestMailbox.d.ts.map +1 -1
- package/dist/contracts/test/TestMessage.d.ts +30 -10
- package/dist/contracts/test/TestMessage.d.ts.map +1 -1
- package/dist/contracts/test/TestMultisigIsm.d.ts +63 -24
- package/dist/contracts/test/TestMultisigIsm.d.ts.map +1 -1
- package/dist/contracts/test/TestRouter.d.ts +93 -44
- package/dist/contracts/test/TestRouter.d.ts.map +1 -1
- package/dist/contracts/test/TestSendReceiver.d.ts +14 -6
- package/dist/contracts/test/TestSendReceiver.d.ts.map +1 -1
- package/dist/contracts/test/index.d.ts +0 -8
- package/dist/contracts/test/index.d.ts.map +1 -1
- package/dist/contracts/upgrade/index.d.ts +0 -3
- package/dist/contracts/upgrade/index.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/factories/@openzeppelin/contracts/index.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts/index.js +3 -1
- package/dist/factories/@openzeppelin/contracts/index.js.map +1 -1
- package/dist/factories/{interfaces/IMultisigValidatorManager__factory.d.ts → @openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.d.ts} +5 -5
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.js +31 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.d.ts +2 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js +9 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
- package/dist/factories/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -0
- package/dist/factories/{contracts/middleware/token-bridge → @openzeppelin/contracts/interfaces}/index.js +2 -5
- package/dist/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +48 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js +110 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/{contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.d.ts → contracts/proxy/ERC1967/ERC1967Upgrade__factory.d.ts} +5 -5
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.js +63 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +3 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/index.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/index.js +11 -0
- package/dist/factories/@openzeppelin/contracts/proxy/ERC1967/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/Proxy__factory.d.ts +12 -0
- package/dist/factories/@openzeppelin/contracts/proxy/Proxy__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/Proxy__factory.js +26 -0
- package/dist/factories/@openzeppelin/contracts/proxy/Proxy__factory.js.map +1 -0
- package/dist/factories/{contracts/test/MysteryMath__factory.d.ts → @openzeppelin/contracts/proxy/beacon/IBeacon__factory.d.ts} +6 -10
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.js +31 -0
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +2 -0
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/index.js +9 -0
- package/dist/factories/@openzeppelin/contracts/proxy/beacon/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/index.d.ts +5 -0
- package/dist/factories/@openzeppelin/contracts/proxy/index.d.ts.map +1 -0
- package/dist/factories/{contracts/middleware/token-bridge/interfaces → @openzeppelin/contracts/proxy}/index.js +6 -6
- package/dist/factories/@openzeppelin/contracts/proxy/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +48 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js +190 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.d.ts +73 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.js +185 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +3 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/index.js +11 -0
- package/dist/factories/@openzeppelin/contracts/proxy/transparent/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts-upgradeable/index.d.ts +0 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/index.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/index.js +1 -2
- package/dist/factories/@openzeppelin/contracts-upgradeable/index.js.map +1 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.d.ts +1 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.js +1 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.js.map +1 -1
- package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts +1 -1
- package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts.map +1 -1
- package/dist/factories/contracts/InterchainGasPaymaster__factory.js +19 -14
- package/dist/factories/contracts/InterchainGasPaymaster__factory.js.map +1 -1
- package/dist/factories/contracts/Mailbox__factory.d.ts +29 -13
- package/dist/factories/contracts/Mailbox__factory.d.ts.map +1 -1
- package/dist/factories/contracts/Mailbox__factory.js +327 -10
- package/dist/factories/contracts/Mailbox__factory.js.map +1 -1
- package/dist/factories/contracts/OwnableMulticall__factory.d.ts +1 -1
- package/dist/factories/contracts/OwnableMulticall__factory.d.ts.map +1 -1
- package/dist/factories/contracts/OwnableMulticall__factory.js +1 -1
- package/dist/factories/contracts/OwnableMulticall__factory.js.map +1 -1
- package/dist/factories/contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable__factory.d.ts +19 -0
- package/dist/factories/contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable__factory.d.ts.map +1 -0
- package/dist/factories/{@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.js → contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable__factory.js} +5 -5
- package/dist/factories/contracts/PausableReentrancyGuard.sol/PausableReentrancyGuardUpgradeable__factory.js.map +1 -0
- package/dist/factories/contracts/PausableReentrancyGuard.sol/index.d.ts +2 -0
- package/dist/factories/contracts/PausableReentrancyGuard.sol/index.d.ts.map +1 -0
- package/dist/factories/contracts/PausableReentrancyGuard.sol/index.js +9 -0
- package/dist/factories/contracts/PausableReentrancyGuard.sol/index.js.map +1 -0
- package/dist/factories/contracts/Router__factory.d.ts.map +1 -1
- package/dist/factories/contracts/Router__factory.js +83 -26
- package/dist/factories/contracts/Router__factory.js.map +1 -1
- package/dist/factories/contracts/index.d.ts +1 -6
- package/dist/factories/contracts/index.d.ts.map +1 -1
- package/dist/factories/contracts/index.js +2 -12
- package/dist/factories/contracts/index.js.map +1 -1
- package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts +1 -1
- package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts.map +1 -1
- package/dist/factories/contracts/isms/MultisigIsm__factory.js +62 -25
- package/dist/factories/contracts/isms/MultisigIsm__factory.js.map +1 -1
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.d.ts +1 -1
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.js +95 -38
- package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.js.map +1 -1
- package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.d.ts +1 -1
- package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.js +96 -39
- package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.js.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.d.ts +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.js +97 -34
- package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.js.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.d.ts +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.js +88 -31
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.js.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.d.ts +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.js +1 -3
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.js.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.d.ts +0 -2
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.d.ts.map +1 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.js +1 -4
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.js.map +1 -1
- package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts +1 -1
- package/dist/factories/contracts/mock/MockCircleBridge__factory.js +1 -1
- package/dist/factories/contracts/mock/MockCircleMessageTransmitter__factory.d.ts +1 -1
- package/dist/factories/contracts/mock/MockCircleMessageTransmitter__factory.js +1 -1
- package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.d.ts +1 -1
- package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.d.ts.map +1 -1
- package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js +7 -26
- package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js.map +1 -1
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts +1 -1
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js +5 -5
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js.map +1 -1
- package/dist/factories/contracts/mock/MockToken__factory.d.ts +1 -1
- package/dist/factories/contracts/mock/MockToken__factory.d.ts.map +1 -1
- package/dist/factories/contracts/mock/MockToken__factory.js +1 -1
- package/dist/factories/contracts/mock/MockToken__factory.js.map +1 -1
- package/dist/factories/contracts/mock/index.d.ts +0 -3
- package/dist/factories/contracts/mock/index.d.ts.map +1 -1
- package/dist/factories/contracts/mock/index.js +1 -7
- package/dist/factories/contracts/mock/index.js.map +1 -1
- package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.js +1 -1
- package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestLiquidityLayerMessageRecipient__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestLiquidityLayerMessageRecipient__factory.js +1 -1
- package/dist/factories/contracts/test/TestMailbox__factory.d.ts +1 -8
- package/dist/factories/contracts/test/TestMailbox__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestMailbox__factory.js +322 -11
- package/dist/factories/contracts/test/TestMailbox__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestMerkle__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestMerkle__factory.js +1 -1
- package/dist/factories/contracts/test/TestMessage__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestMessage__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestMessage__factory.js +40 -7
- package/dist/factories/contracts/test/TestMessage__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestMultisigIsm__factory.js +62 -25
- package/dist/factories/contracts/test/TestMultisigIsm__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestQuerySender__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestQuerySender__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestQuerySender__factory.js +1 -1
- package/dist/factories/contracts/test/TestQuerySender__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestQuery__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestQuery__factory.js +1 -1
- package/dist/factories/contracts/test/TestRouter__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestRouter__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestRouter__factory.js +101 -34
- package/dist/factories/contracts/test/TestRouter__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestSendReceiver__factory.d.ts +12 -1
- package/dist/factories/contracts/test/TestSendReceiver__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestSendReceiver__factory.js +16 -3
- package/dist/factories/contracts/test/TestSendReceiver__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestTokenRecipient__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestTokenRecipient__factory.js +1 -1
- package/dist/factories/contracts/test/index.d.ts +0 -8
- package/dist/factories/contracts/test/index.d.ts.map +1 -1
- package/dist/factories/contracts/test/index.js +1 -17
- package/dist/factories/contracts/test/index.js.map +1 -1
- package/dist/factories/contracts/upgrade/index.d.ts +0 -3
- package/dist/factories/contracts/upgrade/index.d.ts.map +1 -1
- package/dist/factories/contracts/upgrade/index.js +1 -7
- package/dist/factories/contracts/upgrade/index.js.map +1 -1
- package/dist/factories/interfaces/IInterchainAccountRouter__factory.js +4 -4
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts.map +1 -1
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js +13 -8
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js.map +1 -1
- package/dist/factories/interfaces/IInterchainQueryRouter__factory.js +6 -6
- package/dist/factories/{contracts/middleware/liquidity-layer/interfaces → interfaces}/ILiquidityLayerMessageRecipient__factory.d.ts +1 -1
- package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts.map +1 -0
- package/dist/factories/{contracts/middleware/liquidity-layer/interfaces → interfaces}/ILiquidityLayerMessageRecipient__factory.js +0 -0
- package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.js.map +1 -0
- package/dist/factories/interfaces/{IOutbox__factory.d.ts → ILiquidityLayerRouter__factory.d.ts} +5 -5
- package/dist/factories/interfaces/ILiquidityLayerRouter__factory.d.ts.map +1 -0
- package/dist/factories/{contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient__factory.js → interfaces/ILiquidityLayerRouter__factory.js} +22 -11
- package/dist/factories/interfaces/ILiquidityLayerRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/IMailbox__factory.d.ts +5 -1
- package/dist/factories/interfaces/IMailbox__factory.d.ts.map +1 -1
- package/dist/factories/interfaces/IMailbox__factory.js +81 -3
- package/dist/factories/interfaces/IMailbox__factory.js.map +1 -1
- package/dist/factories/interfaces/IMultisigIsm__factory.js +2 -2
- package/dist/factories/interfaces/IMultisigIsm__factory.js.map +1 -1
- package/dist/factories/interfaces/index.d.ts +2 -4
- package/dist/factories/interfaces/index.d.ts.map +1 -1
- package/dist/factories/interfaces/index.js +5 -9
- package/dist/factories/interfaces/index.js.map +1 -1
- package/dist/index.d.ts +20 -60
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -62
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IInterchainAccountRouter.d.ts +2 -2
- package/dist/interfaces/IInterchainAccountRouter.d.ts.map +1 -1
- package/dist/interfaces/IInterchainGasPaymaster.d.ts +9 -9
- package/dist/interfaces/IInterchainGasPaymaster.d.ts.map +1 -1
- package/dist/interfaces/IInterchainQueryRouter.d.ts +3 -3
- package/dist/interfaces/IInterchainQueryRouter.d.ts.map +1 -1
- package/dist/{contracts/middleware/liquidity-layer/interfaces → interfaces}/ILiquidityLayerMessageRecipient.d.ts +1 -1
- package/dist/interfaces/ILiquidityLayerMessageRecipient.d.ts.map +1 -0
- package/dist/{contracts/middleware/liquidity-layer/interfaces → interfaces}/ILiquidityLayerMessageRecipient.js +0 -0
- package/dist/interfaces/ILiquidityLayerMessageRecipient.js.map +1 -0
- package/dist/interfaces/ILiquidityLayerRouter.d.ts +51 -0
- package/dist/interfaces/ILiquidityLayerRouter.d.ts.map +1 -0
- package/dist/interfaces/ILiquidityLayerRouter.js +4 -0
- package/dist/interfaces/ILiquidityLayerRouter.js.map +1 -0
- package/dist/interfaces/IMailbox.d.ts +58 -10
- package/dist/interfaces/IMailbox.d.ts.map +1 -1
- package/dist/interfaces/IMultisigIsm.d.ts +3 -3
- package/dist/interfaces/IMultisigIsm.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +2 -4
- package/dist/interfaces/index.d.ts.map +1 -1
- package/interfaces/IInterchainAccountRouter.sol +2 -2
- package/interfaces/IInterchainGasPaymaster.sol +5 -4
- package/interfaces/IInterchainQueryRouter.sol +3 -3
- package/interfaces/IInterchainSecurityModule.sol +16 -0
- package/{contracts/middleware/liquidity-layer/interfaces → interfaces}/ILiquidityLayerMessageRecipient.sol +0 -0
- package/interfaces/ILiquidityLayerRouter.sol +15 -0
- package/interfaces/IMailbox.sol +15 -2
- package/interfaces/IMultisigIsm.sol +18 -0
- package/package.json +5 -5
- package/contracts/AbacusConnectionManager.sol +0 -145
- package/contracts/Inbox.sol +0 -148
- package/contracts/MerkleTreeManager.sol +0 -32
- package/contracts/Outbox.sol +0 -191
- package/contracts/middleware/liquidity-layer/adapters/PortalAdapter.sol +0 -215
- package/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.sol +0 -87
- package/contracts/mock/MockInbox.sol +0 -52
- package/contracts/mock/MockOutbox.sol +0 -30
- package/contracts/mock/MockPortalBridge.sol +0 -89
- package/contracts/test/MysteryMath.sol +0 -21
- package/contracts/test/MysteryMathV1.sol +0 -22
- package/contracts/test/MysteryMathV2.sol +0 -22
- package/contracts/test/TestAbacusConnectionClient.sol +0 -23
- package/contracts/test/TestInbox.sol +0 -54
- package/contracts/test/TestMultisigValidatorManager.sol +0 -26
- package/contracts/test/TestOutbox.sol +0 -46
- package/contracts/test/TestValidatorManager.sol +0 -21
- package/contracts/upgrade/UpgradeBeacon.sol +0 -98
- package/contracts/upgrade/UpgradeBeaconController.sol +0 -48
- package/contracts/upgrade/UpgradeBeaconProxy.sol +0 -176
- package/contracts/validator-manager/InboxValidatorManager.sol +0 -58
- package/contracts/validator-manager/MultisigValidatorManager.sol +0 -271
- package/contracts/validator-manager/OutboxValidatorManager.sol +0 -244
- package/dist/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.d.ts.map +0 -1
- package/dist/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.js.map +0 -1
- package/dist/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -2
- package/dist/@openzeppelin/contracts-upgradeable/security/index.d.ts.map +0 -1
- package/dist/@openzeppelin/contracts-upgradeable/security/index.js.map +0 -1
- package/dist/contracts/AbacusConnectionClient.d.ts +0 -169
- package/dist/contracts/AbacusConnectionClient.d.ts.map +0 -1
- package/dist/contracts/AbacusConnectionClient.js.map +0 -1
- package/dist/contracts/AbacusConnectionManager.d.ts +0 -213
- package/dist/contracts/AbacusConnectionManager.d.ts.map +0 -1
- package/dist/contracts/AbacusConnectionManager.js +0 -4
- package/dist/contracts/AbacusConnectionManager.js.map +0 -1
- package/dist/contracts/Inbox.d.ts +0 -207
- package/dist/contracts/Inbox.d.ts.map +0 -1
- package/dist/contracts/Inbox.js.map +0 -1
- package/dist/contracts/MerkleTreeManager.d.ts +0 -53
- package/dist/contracts/MerkleTreeManager.d.ts.map +0 -1
- package/dist/contracts/MerkleTreeManager.js.map +0 -1
- package/dist/contracts/Outbox.d.ts +0 -331
- package/dist/contracts/Outbox.d.ts.map +0 -1
- package/dist/contracts/Outbox.js.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/adapters/PortalAdapter.d.ts +0 -378
- package/dist/contracts/middleware/liquidity-layer/adapters/PortalAdapter.d.ts.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/adapters/PortalAdapter.js.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient.d.ts.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient.js.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.d.ts +0 -148
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.d.ts.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.js +0 -4
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge.js.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/index.d.ts +0 -2
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/index.d.ts.map +0 -1
- package/dist/contracts/middleware/liquidity-layer/interfaces/portal/index.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/TokenBridgeRouter.d.ts +0 -291
- package/dist/contracts/middleware/token-bridge/TokenBridgeRouter.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/TokenBridgeRouter.js +0 -4
- package/dist/contracts/middleware/token-bridge/TokenBridgeRouter.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter.d.ts +0 -416
- package/dist/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter.js +0 -4
- package/dist/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/adapters/index.d.ts +0 -2
- package/dist/contracts/middleware/token-bridge/adapters/index.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/adapters/index.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/index.d.ts +0 -6
- package/dist/contracts/middleware/token-bridge/index.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/index.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter.d.ts +0 -67
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter.js +0 -4
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient.d.ts +0 -51
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient.js +0 -4
- package/dist/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge.d.ts +0 -78
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge.js +0 -4
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter.d.ts +0 -59
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter.js +0 -4
- package/dist/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/circle/index.d.ts +0 -3
- package/dist/contracts/middleware/token-bridge/interfaces/circle/index.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/circle/index.js.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/index.d.ts +0 -5
- package/dist/contracts/middleware/token-bridge/interfaces/index.d.ts.map +0 -1
- package/dist/contracts/middleware/token-bridge/interfaces/index.js.map +0 -1
- package/dist/contracts/mock/MockInbox.d.ts +0 -67
- package/dist/contracts/mock/MockInbox.d.ts.map +0 -1
- package/dist/contracts/mock/MockInbox.js +0 -4
- package/dist/contracts/mock/MockInbox.js.map +0 -1
- package/dist/contracts/mock/MockOutbox.d.ts +0 -51
- package/dist/contracts/mock/MockOutbox.d.ts.map +0 -1
- package/dist/contracts/mock/MockOutbox.js +0 -4
- package/dist/contracts/mock/MockOutbox.js.map +0 -1
- package/dist/contracts/mock/MockPortalBridge.d.ts +0 -164
- package/dist/contracts/mock/MockPortalBridge.d.ts.map +0 -1
- package/dist/contracts/mock/MockPortalBridge.js +0 -4
- package/dist/contracts/mock/MockPortalBridge.js.map +0 -1
- package/dist/contracts/test/MysteryMath.d.ts +0 -77
- package/dist/contracts/test/MysteryMath.d.ts.map +0 -1
- package/dist/contracts/test/MysteryMath.js +0 -4
- package/dist/contracts/test/MysteryMath.js.map +0 -1
- package/dist/contracts/test/MysteryMathV1.d.ts +0 -85
- package/dist/contracts/test/MysteryMathV1.d.ts.map +0 -1
- package/dist/contracts/test/MysteryMathV1.js +0 -4
- package/dist/contracts/test/MysteryMathV1.js.map +0 -1
- package/dist/contracts/test/MysteryMathV2.d.ts +0 -85
- package/dist/contracts/test/MysteryMathV2.d.ts.map +0 -1
- package/dist/contracts/test/MysteryMathV2.js +0 -4
- package/dist/contracts/test/MysteryMathV2.js.map +0 -1
- package/dist/contracts/test/TestAbacusConnectionClient.d.ts +0 -209
- package/dist/contracts/test/TestAbacusConnectionClient.d.ts.map +0 -1
- package/dist/contracts/test/TestAbacusConnectionClient.js +0 -4
- package/dist/contracts/test/TestAbacusConnectionClient.js.map +0 -1
- package/dist/contracts/test/TestInbox.d.ts +0 -263
- package/dist/contracts/test/TestInbox.d.ts.map +0 -1
- package/dist/contracts/test/TestInbox.js +0 -4
- package/dist/contracts/test/TestInbox.js.map +0 -1
- package/dist/contracts/test/TestMultisigValidatorManager.d.ts +0 -247
- package/dist/contracts/test/TestMultisigValidatorManager.d.ts.map +0 -1
- package/dist/contracts/test/TestMultisigValidatorManager.js +0 -4
- package/dist/contracts/test/TestMultisigValidatorManager.js.map +0 -1
- package/dist/contracts/test/TestOutbox.d.ts +0 -371
- package/dist/contracts/test/TestOutbox.d.ts.map +0 -1
- package/dist/contracts/test/TestOutbox.js +0 -4
- package/dist/contracts/test/TestOutbox.js.map +0 -1
- package/dist/contracts/test/TestTokenBridgeMessageRecipient.d.ts +0 -72
- package/dist/contracts/test/TestTokenBridgeMessageRecipient.d.ts.map +0 -1
- package/dist/contracts/test/TestTokenBridgeMessageRecipient.js +0 -4
- package/dist/contracts/test/TestTokenBridgeMessageRecipient.js.map +0 -1
- package/dist/contracts/test/TestValidatorManager.d.ts +0 -58
- package/dist/contracts/test/TestValidatorManager.d.ts.map +0 -1
- package/dist/contracts/test/TestValidatorManager.js +0 -4
- package/dist/contracts/test/TestValidatorManager.js.map +0 -1
- package/dist/contracts/upgrade/UpgradeBeacon.d.ts +0 -40
- package/dist/contracts/upgrade/UpgradeBeacon.d.ts.map +0 -1
- package/dist/contracts/upgrade/UpgradeBeacon.js +0 -4
- package/dist/contracts/upgrade/UpgradeBeacon.js.map +0 -1
- package/dist/contracts/upgrade/UpgradeBeaconController.d.ts.map +0 -1
- package/dist/contracts/upgrade/UpgradeBeaconController.js +0 -4
- package/dist/contracts/upgrade/UpgradeBeaconController.js.map +0 -1
- package/dist/contracts/upgrade/UpgradeBeaconProxy.d.ts.map +0 -1
- package/dist/contracts/upgrade/UpgradeBeaconProxy.js +0 -4
- package/dist/contracts/upgrade/UpgradeBeaconProxy.js.map +0 -1
- package/dist/contracts/validator-manager/InboxValidatorManager.d.ts +0 -263
- package/dist/contracts/validator-manager/InboxValidatorManager.d.ts.map +0 -1
- package/dist/contracts/validator-manager/InboxValidatorManager.js +0 -4
- package/dist/contracts/validator-manager/InboxValidatorManager.js.map +0 -1
- package/dist/contracts/validator-manager/MultisigValidatorManager.d.ts +0 -239
- package/dist/contracts/validator-manager/MultisigValidatorManager.d.ts.map +0 -1
- package/dist/contracts/validator-manager/MultisigValidatorManager.js +0 -4
- package/dist/contracts/validator-manager/MultisigValidatorManager.js.map +0 -1
- package/dist/contracts/validator-manager/OutboxValidatorManager.d.ts +0 -335
- package/dist/contracts/validator-manager/OutboxValidatorManager.d.ts.map +0 -1
- package/dist/contracts/validator-manager/OutboxValidatorManager.js +0 -4
- package/dist/contracts/validator-manager/OutboxValidatorManager.js.map +0 -1
- package/dist/contracts/validator-manager/index.d.ts +0 -4
- package/dist/contracts/validator-manager/index.d.ts.map +0 -1
- package/dist/contracts/validator-manager/index.js.map +0 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.d.ts.map +0 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.js.map +0 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -2
- package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts.map +0 -1
- package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.js +0 -9
- package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +0 -1
- package/dist/factories/contracts/AbacusConnectionClient__factory.d.ts +0 -43
- package/dist/factories/contracts/AbacusConnectionClient__factory.d.ts.map +0 -1
- package/dist/factories/contracts/AbacusConnectionClient__factory.js +0 -161
- package/dist/factories/contracts/AbacusConnectionClient__factory.js.map +0 -1
- package/dist/factories/contracts/AbacusConnectionManager__factory.d.ts +0 -55
- package/dist/factories/contracts/AbacusConnectionManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/AbacusConnectionManager__factory.js +0 -276
- package/dist/factories/contracts/AbacusConnectionManager__factory.js.map +0 -1
- package/dist/factories/contracts/Inbox__factory.d.ts +0 -59
- package/dist/factories/contracts/Inbox__factory.d.ts.map +0 -1
- package/dist/factories/contracts/Inbox__factory.js +0 -278
- package/dist/factories/contracts/Inbox__factory.js.map +0 -1
- package/dist/factories/contracts/MerkleTreeManager__factory.d.ts +0 -31
- package/dist/factories/contracts/MerkleTreeManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/MerkleTreeManager__factory.js +0 -67
- package/dist/factories/contracts/MerkleTreeManager__factory.js.map +0 -1
- package/dist/factories/contracts/Outbox__factory.d.ts +0 -59
- package/dist/factories/contracts/Outbox__factory.d.ts.map +0 -1
- package/dist/factories/contracts/Outbox__factory.js +0 -415
- package/dist/factories/contracts/Outbox__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/PortalAdapter__factory.d.ts +0 -48
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/PortalAdapter__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/PortalAdapter__factory.js +0 -540
- package/dist/factories/contracts/middleware/liquidity-layer/adapters/PortalAdapter__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge__factory.d.ts +0 -56
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge__factory.js +0 -204
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/IPortalTokenBridge__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/index.d.ts +0 -2
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/index.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/index.js +0 -9
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/portal/index.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/TokenBridgeRouter__factory.d.ts +0 -48
- package/dist/factories/contracts/middleware/token-bridge/TokenBridgeRouter__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/TokenBridgeRouter__factory.js +0 -380
- package/dist/factories/contracts/middleware/token-bridge/TokenBridgeRouter__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter__factory.d.ts +0 -48
- package/dist/factories/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter__factory.js +0 -584
- package/dist/factories/contracts/middleware/token-bridge/adapters/CircleBridgeAdapter__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/adapters/index.d.ts +0 -2
- package/dist/factories/contracts/middleware/token-bridge/adapters/index.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/adapters/index.js +0 -9
- package/dist/factories/contracts/middleware/token-bridge/adapters/index.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/index.d.ts +0 -4
- package/dist/factories/contracts/middleware/token-bridge/index.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/index.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter__factory.d.ts +0 -23
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter__factory.js +0 -91
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeAdapter__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient__factory.d.ts +0 -19
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/ITokenBridgeMessageRecipient__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge__factory.d.ts +0 -36
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge__factory.js +0 -104
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleBridge__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter__factory.d.ts +0 -23
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter__factory.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter__factory.js +0 -61
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/ICircleMessageTransmitter__factory.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/index.d.ts +0 -3
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/index.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/index.js +0 -11
- package/dist/factories/contracts/middleware/token-bridge/interfaces/circle/index.js.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/index.d.ts +0 -4
- package/dist/factories/contracts/middleware/token-bridge/interfaces/index.d.ts.map +0 -1
- package/dist/factories/contracts/middleware/token-bridge/interfaces/index.js.map +0 -1
- package/dist/factories/contracts/mock/MockInbox__factory.d.ts +0 -31
- package/dist/factories/contracts/mock/MockInbox__factory.d.ts.map +0 -1
- package/dist/factories/contracts/mock/MockInbox__factory.js +0 -76
- package/dist/factories/contracts/mock/MockInbox__factory.js.map +0 -1
- package/dist/factories/contracts/mock/MockOutbox__factory.d.ts +0 -45
- package/dist/factories/contracts/mock/MockOutbox__factory.d.ts.map +0 -1
- package/dist/factories/contracts/mock/MockOutbox__factory.js +0 -86
- package/dist/factories/contracts/mock/MockOutbox__factory.js.map +0 -1
- package/dist/factories/contracts/mock/MockPortalBridge__factory.d.ts +0 -79
- package/dist/factories/contracts/mock/MockPortalBridge__factory.d.ts.map +0 -1
- package/dist/factories/contracts/mock/MockPortalBridge__factory.js +0 -296
- package/dist/factories/contracts/mock/MockPortalBridge__factory.js.map +0 -1
- package/dist/factories/contracts/test/MysteryMathV1__factory.d.ts +0 -41
- package/dist/factories/contracts/test/MysteryMathV1__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/MysteryMathV1__factory.js +0 -122
- package/dist/factories/contracts/test/MysteryMathV1__factory.js.map +0 -1
- package/dist/factories/contracts/test/MysteryMathV2__factory.d.ts +0 -41
- package/dist/factories/contracts/test/MysteryMathV2__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/MysteryMathV2__factory.js +0 -122
- package/dist/factories/contracts/test/MysteryMathV2__factory.js.map +0 -1
- package/dist/factories/contracts/test/MysteryMath__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/MysteryMath__factory.js +0 -81
- package/dist/factories/contracts/test/MysteryMath__factory.js.map +0 -1
- package/dist/factories/contracts/test/TestAbacusConnectionClient__factory.d.ts +0 -48
- package/dist/factories/contracts/test/TestAbacusConnectionClient__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/TestAbacusConnectionClient__factory.js +0 -242
- package/dist/factories/contracts/test/TestAbacusConnectionClient__factory.js.map +0 -1
- package/dist/factories/contracts/test/TestInbox__factory.d.ts +0 -59
- package/dist/factories/contracts/test/TestInbox__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/TestInbox__factory.js +0 -371
- package/dist/factories/contracts/test/TestInbox__factory.js.map +0 -1
- package/dist/factories/contracts/test/TestMultisigValidatorManager__factory.d.ts +0 -59
- package/dist/factories/contracts/test/TestMultisigValidatorManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/TestMultisigValidatorManager__factory.js +0 -349
- package/dist/factories/contracts/test/TestMultisigValidatorManager__factory.js.map +0 -1
- package/dist/factories/contracts/test/TestOutbox__factory.d.ts +0 -59
- package/dist/factories/contracts/test/TestOutbox__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/TestOutbox__factory.js +0 -483
- package/dist/factories/contracts/test/TestOutbox__factory.js.map +0 -1
- package/dist/factories/contracts/test/TestTokenBridgeMessageRecipient__factory.d.ts +0 -44
- package/dist/factories/contracts/test/TestTokenBridgeMessageRecipient__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/TestTokenBridgeMessageRecipient__factory.js +0 -111
- package/dist/factories/contracts/test/TestTokenBridgeMessageRecipient__factory.js.map +0 -1
- package/dist/factories/contracts/test/TestValidatorManager__factory.d.ts +0 -31
- package/dist/factories/contracts/test/TestValidatorManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/test/TestValidatorManager__factory.js +0 -79
- package/dist/factories/contracts/test/TestValidatorManager__factory.js.map +0 -1
- package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.d.ts +0 -55
- package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.d.ts.map +0 -1
- package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.js +0 -130
- package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.js.map +0 -1
- package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.d.ts +0 -33
- package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.d.ts.map +0 -1
- package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.js +0 -65
- package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.js.map +0 -1
- package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.d.ts +0 -48
- package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.d.ts.map +0 -1
- package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.js +0 -74
- package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.js.map +0 -1
- package/dist/factories/contracts/validator-manager/InboxValidatorManager__factory.d.ts +0 -59
- package/dist/factories/contracts/validator-manager/InboxValidatorManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/validator-manager/InboxValidatorManager__factory.js +0 -373
- package/dist/factories/contracts/validator-manager/InboxValidatorManager__factory.js.map +0 -1
- package/dist/factories/contracts/validator-manager/MultisigValidatorManager__factory.d.ts +0 -36
- package/dist/factories/contracts/validator-manager/MultisigValidatorManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/validator-manager/MultisigValidatorManager__factory.js +0 -286
- package/dist/factories/contracts/validator-manager/MultisigValidatorManager__factory.js.map +0 -1
- package/dist/factories/contracts/validator-manager/OutboxValidatorManager__factory.d.ts +0 -59
- package/dist/factories/contracts/validator-manager/OutboxValidatorManager__factory.d.ts.map +0 -1
- package/dist/factories/contracts/validator-manager/OutboxValidatorManager__factory.js +0 -560
- package/dist/factories/contracts/validator-manager/OutboxValidatorManager__factory.js.map +0 -1
- package/dist/factories/contracts/validator-manager/index.d.ts +0 -4
- package/dist/factories/contracts/validator-manager/index.d.ts.map +0 -1
- package/dist/factories/contracts/validator-manager/index.js +0 -13
- package/dist/factories/contracts/validator-manager/index.js.map +0 -1
- package/dist/factories/interfaces/IAbacusConnectionManager__factory.d.ts +0 -23
- package/dist/factories/interfaces/IAbacusConnectionManager__factory.d.ts.map +0 -1
- package/dist/factories/interfaces/IAbacusConnectionManager__factory.js +0 -63
- package/dist/factories/interfaces/IAbacusConnectionManager__factory.js.map +0 -1
- package/dist/factories/interfaces/IInbox__factory.d.ts +0 -29
- package/dist/factories/interfaces/IInbox__factory.d.ts.map +0 -1
- package/dist/factories/interfaces/IInbox__factory.js +0 -90
- package/dist/factories/interfaces/IInbox__factory.js.map +0 -1
- package/dist/factories/interfaces/IMultisigValidatorManager__factory.d.ts.map +0 -1
- package/dist/factories/interfaces/IMultisigValidatorManager__factory.js +0 -57
- package/dist/factories/interfaces/IMultisigValidatorManager__factory.js.map +0 -1
- package/dist/factories/interfaces/IOutbox__factory.d.ts.map +0 -1
- package/dist/factories/interfaces/IOutbox__factory.js +0 -155
- package/dist/factories/interfaces/IOutbox__factory.js.map +0 -1
- package/dist/interfaces/IAbacusConnectionManager.d.ts +0 -59
- package/dist/interfaces/IAbacusConnectionManager.d.ts.map +0 -1
- package/dist/interfaces/IAbacusConnectionManager.js +0 -4
- package/dist/interfaces/IAbacusConnectionManager.js.map +0 -1
- package/dist/interfaces/IInbox.d.ts +0 -83
- package/dist/interfaces/IInbox.d.ts.map +0 -1
- package/dist/interfaces/IInbox.js +0 -4
- package/dist/interfaces/IInbox.js.map +0 -1
- package/dist/interfaces/IMultisigValidatorManager.d.ts +0 -59
- package/dist/interfaces/IMultisigValidatorManager.d.ts.map +0 -1
- package/dist/interfaces/IMultisigValidatorManager.js +0 -4
- package/dist/interfaces/IMultisigValidatorManager.js.map +0 -1
- package/dist/interfaces/IOutbox.d.ts +0 -148
- package/dist/interfaces/IOutbox.d.ts.map +0 -1
- package/dist/interfaces/IOutbox.js +0 -4
- package/dist/interfaces/IOutbox.js.map +0 -1
- package/interfaces/IAbacusConnectionManager.sol +0 -12
- package/interfaces/IInbox.sol +0 -16
- package/interfaces/IMultisigValidatorManager.sol +0 -11
- package/interfaces/IOutbox.sol +0 -27
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
|
|
3
|
-
pragma solidity >=0.8.0;
|
|
4
|
-
|
|
5
|
-
abstract contract MysteryMath {
|
|
6
|
-
uint256 public stateVar;
|
|
7
|
-
|
|
8
|
-
function setState(uint256 _var) external {
|
|
9
|
-
stateVar = _var;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function getState() external view returns (uint256) {
|
|
13
|
-
return stateVar;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function doMath(uint256 a, uint256 b)
|
|
17
|
-
external
|
|
18
|
-
pure
|
|
19
|
-
virtual
|
|
20
|
-
returns (uint256 _result);
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
|
|
3
|
-
pragma solidity >=0.8.0;
|
|
4
|
-
|
|
5
|
-
import "./MysteryMath.sol";
|
|
6
|
-
|
|
7
|
-
contract MysteryMathV1 is MysteryMath {
|
|
8
|
-
uint32 public immutable version;
|
|
9
|
-
|
|
10
|
-
constructor() {
|
|
11
|
-
version = 1;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function doMath(uint256 a, uint256 b)
|
|
15
|
-
external
|
|
16
|
-
pure
|
|
17
|
-
override
|
|
18
|
-
returns (uint256 _result)
|
|
19
|
-
{
|
|
20
|
-
_result = a + b;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
|
|
3
|
-
pragma solidity >=0.8.0;
|
|
4
|
-
|
|
5
|
-
import "./MysteryMath.sol";
|
|
6
|
-
|
|
7
|
-
contract MysteryMathV2 is MysteryMath {
|
|
8
|
-
uint32 public immutable version;
|
|
9
|
-
|
|
10
|
-
constructor() {
|
|
11
|
-
version = 2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function doMath(uint256 a, uint256 b)
|
|
15
|
-
external
|
|
16
|
-
pure
|
|
17
|
-
override
|
|
18
|
-
returns (uint256 _result)
|
|
19
|
-
{
|
|
20
|
-
_result = a * b;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.6.11;
|
|
3
|
-
import {IOutbox} from "../../interfaces/IOutbox.sol";
|
|
4
|
-
|
|
5
|
-
import "../AbacusConnectionClient.sol";
|
|
6
|
-
|
|
7
|
-
contract TestAbacusConnectionClient is AbacusConnectionClient {
|
|
8
|
-
function initialize(address _abacusConnectionManager) external initializer {
|
|
9
|
-
__AbacusConnectionClient_initialize(_abacusConnectionManager);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function outbox() external view returns (IOutbox) {
|
|
13
|
-
return _outbox();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function isInbox(address _potentialInbox) external view returns (bool) {
|
|
17
|
-
return _isInbox(_potentialInbox);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function localDomain() external view returns (uint32) {
|
|
21
|
-
return _localDomain();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
import "../Inbox.sol";
|
|
5
|
-
|
|
6
|
-
contract TestInbox is Inbox {
|
|
7
|
-
using Message for bytes32;
|
|
8
|
-
using TypeCasts for bytes32;
|
|
9
|
-
|
|
10
|
-
constructor(uint32 _localDomain) Inbox(_localDomain) {} // solhint-disable-line no-empty-blocks
|
|
11
|
-
|
|
12
|
-
function testBranchRoot(
|
|
13
|
-
bytes32 leaf,
|
|
14
|
-
bytes32[32] calldata proof,
|
|
15
|
-
uint256 index
|
|
16
|
-
) external pure returns (bytes32) {
|
|
17
|
-
return MerkleLib.branchRoot(leaf, proof, index);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function testProcess(bytes calldata _message, uint256 leafIndex) external {
|
|
21
|
-
bytes32 _messageHash = keccak256(abi.encodePacked(_message, leafIndex));
|
|
22
|
-
_process(_message, _messageHash);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function testHandle(
|
|
26
|
-
uint32 origin,
|
|
27
|
-
bytes32 sender,
|
|
28
|
-
bytes32 recipient,
|
|
29
|
-
bytes calldata body
|
|
30
|
-
) external {
|
|
31
|
-
IMessageRecipient(recipient.bytes32ToAddress()).handle(
|
|
32
|
-
origin,
|
|
33
|
-
sender,
|
|
34
|
-
body
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function setMessageStatus(bytes32 _leaf, MessageStatus status) external {
|
|
39
|
-
messages[_leaf] = status;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function getRevertMsg(bytes calldata _res)
|
|
43
|
-
internal
|
|
44
|
-
pure
|
|
45
|
-
returns (string memory)
|
|
46
|
-
{
|
|
47
|
-
// If the _res length is less than 68, then the transaction failed
|
|
48
|
-
// silently (without a revert message)
|
|
49
|
-
if (_res.length < 68) return "Transaction reverted silently";
|
|
50
|
-
|
|
51
|
-
// Remove the selector (first 4 bytes) and decode revert string
|
|
52
|
-
return abi.decode(_res[4:], (string));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
import {MultisigValidatorManager} from "../validator-manager/MultisigValidatorManager.sol";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* This contract exists to test MultisigValidatorManager.sol, which is abstract
|
|
8
|
-
* and cannot be deployed directly.
|
|
9
|
-
*/
|
|
10
|
-
contract TestMultisigValidatorManager is MultisigValidatorManager {
|
|
11
|
-
// solhint-disable-next-line no-empty-blocks
|
|
12
|
-
constructor(
|
|
13
|
-
uint32 _domain,
|
|
14
|
-
address[] memory _validators,
|
|
15
|
-
uint256 _threshold
|
|
16
|
-
) MultisigValidatorManager(_domain, _validators, _threshold) {}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @notice Hash of domain concatenated with "ABACUS".
|
|
20
|
-
* @dev This is a public getter of _domainHash to test with.
|
|
21
|
-
* @param _domain The domain to hash.
|
|
22
|
-
*/
|
|
23
|
-
function getDomainHash(uint32 _domain) external pure returns (bytes32) {
|
|
24
|
-
return _domainHash(_domain);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
// ============ Internal Imports ============
|
|
5
|
-
import "../Outbox.sol";
|
|
6
|
-
import {MerkleLib} from "../libs/Merkle.sol";
|
|
7
|
-
|
|
8
|
-
contract TestOutbox is Outbox {
|
|
9
|
-
constructor(uint32 _localDomain) Outbox(_localDomain) {} // solhint-disable-line no-empty-blocks
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @notice Set the validator manager
|
|
13
|
-
* @param _validatorManager Address of the validator manager
|
|
14
|
-
*/
|
|
15
|
-
function testSetValidatorManager(address _validatorManager) external {
|
|
16
|
-
validatorManager = _validatorManager;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function proof() external view returns (bytes32[32] memory) {
|
|
20
|
-
bytes32[32] memory _zeroes = MerkleLib.zeroHashes();
|
|
21
|
-
uint256 _index = tree.count - 1;
|
|
22
|
-
bytes32[32] memory _proof;
|
|
23
|
-
|
|
24
|
-
for (uint256 i = 0; i < 32; i++) {
|
|
25
|
-
uint256 _ithBit = (_index >> i) & 0x01;
|
|
26
|
-
if (_ithBit == 1) {
|
|
27
|
-
_proof[i] = tree.branch[i];
|
|
28
|
-
} else {
|
|
29
|
-
_proof[i] = _zeroes[i];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return _proof;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function branch() external view returns (bytes32[32] memory) {
|
|
36
|
-
return tree.branch;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function branchRoot(
|
|
40
|
-
bytes32 _item,
|
|
41
|
-
bytes32[32] memory _branch,
|
|
42
|
-
uint256 _index
|
|
43
|
-
) external pure returns (bytes32) {
|
|
44
|
-
return MerkleLib.branchRoot(_item, _branch, _index);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
import {IInbox} from "../../interfaces/IInbox.sol";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Intended for testing Inbox.sol, which requires its validator manager
|
|
8
|
-
* to be a contract.
|
|
9
|
-
*/
|
|
10
|
-
contract TestValidatorManager {
|
|
11
|
-
function process(
|
|
12
|
-
IInbox _inbox,
|
|
13
|
-
bytes32 _root,
|
|
14
|
-
uint256 _index,
|
|
15
|
-
bytes calldata _message,
|
|
16
|
-
bytes32[32] calldata _proof,
|
|
17
|
-
uint256 _leafIndex
|
|
18
|
-
) external {
|
|
19
|
-
_inbox.process(_root, _index, _message, _proof, _leafIndex);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
// ============ External Imports ============
|
|
5
|
-
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @title UpgradeBeacon
|
|
9
|
-
* @notice Stores the address of an implementation contract
|
|
10
|
-
* and allows a controller to upgrade the implementation address
|
|
11
|
-
* @dev This implementation combines the gas savings of having no function selectors
|
|
12
|
-
* found in 0age's implementation:
|
|
13
|
-
* https://github.com/dharma-eng/dharma-smart-wallet/blob/master/contracts/proxies/smart-wallet/UpgradeBeaconProxyV1.sol
|
|
14
|
-
* With the added niceties of a safety check that each implementation is a contract
|
|
15
|
-
* and an Upgrade event emitted each time the implementation is changed
|
|
16
|
-
* found in OpenZeppelin's implementation:
|
|
17
|
-
* https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/beacon/BeaconProxy.sol
|
|
18
|
-
*/
|
|
19
|
-
contract UpgradeBeacon {
|
|
20
|
-
// ============ Immutables ============
|
|
21
|
-
|
|
22
|
-
// The controller is capable of modifying the implementation address
|
|
23
|
-
address private immutable controller;
|
|
24
|
-
|
|
25
|
-
// ============ Private Storage Variables ============
|
|
26
|
-
|
|
27
|
-
// The implementation address is held in storage slot zero.
|
|
28
|
-
address private implementation;
|
|
29
|
-
|
|
30
|
-
// ============ Events ============
|
|
31
|
-
|
|
32
|
-
// Upgrade event is emitted each time the implementation address is set
|
|
33
|
-
// (including deployment)
|
|
34
|
-
event Upgrade(address indexed implementation);
|
|
35
|
-
|
|
36
|
-
// ============ Constructor ============
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @notice Validate the initial implementation and store it.
|
|
40
|
-
* Store the controller immutably.
|
|
41
|
-
* @param _initialImplementation Address of the initial implementation contract
|
|
42
|
-
* @param _controller Address of the controller who can upgrade the implementation
|
|
43
|
-
*/
|
|
44
|
-
constructor(address _initialImplementation, address _controller) payable {
|
|
45
|
-
_setImplementation(_initialImplementation);
|
|
46
|
-
controller = _controller;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// ============ External Functions ============
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @notice For all callers except the controller, return the current implementation address.
|
|
53
|
-
* If called by the Controller, update the implementation address
|
|
54
|
-
* to the address passed in the calldata.
|
|
55
|
-
* Note: this requires inline assembly because Solidity fallback functions
|
|
56
|
-
* do not natively take arguments or return values.
|
|
57
|
-
*/
|
|
58
|
-
fallback() external payable {
|
|
59
|
-
if (msg.sender != controller) {
|
|
60
|
-
// if not called by the controller,
|
|
61
|
-
// load implementation address from storage slot zero
|
|
62
|
-
// and return it.
|
|
63
|
-
assembly {
|
|
64
|
-
mstore(0, sload(0))
|
|
65
|
-
return(0, 32)
|
|
66
|
-
}
|
|
67
|
-
} else {
|
|
68
|
-
// if called by the controller,
|
|
69
|
-
// load new implementation address from the first word of the calldata
|
|
70
|
-
address _newImplementation;
|
|
71
|
-
assembly {
|
|
72
|
-
_newImplementation := calldataload(0)
|
|
73
|
-
}
|
|
74
|
-
// set the new implementation
|
|
75
|
-
_setImplementation(_newImplementation);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// ============ Private Functions ============
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @notice Perform checks on the new implementation address
|
|
83
|
-
* then upgrade the stored implementation.
|
|
84
|
-
* @param _newImplementation Address of the new implementation contract which will replace the old one
|
|
85
|
-
*/
|
|
86
|
-
function _setImplementation(address _newImplementation) private {
|
|
87
|
-
// Require that the new implementation is different from the current one
|
|
88
|
-
require(implementation != _newImplementation, "!upgrade");
|
|
89
|
-
// Require that the new implementation is a contract
|
|
90
|
-
require(
|
|
91
|
-
Address.isContract(_newImplementation),
|
|
92
|
-
"implementation !contract"
|
|
93
|
-
);
|
|
94
|
-
// set the new implementation
|
|
95
|
-
implementation = _newImplementation;
|
|
96
|
-
emit Upgrade(_newImplementation);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
// ============ Internal Imports ============
|
|
5
|
-
import {UpgradeBeacon} from "./UpgradeBeacon.sol";
|
|
6
|
-
// ============ External Imports ============
|
|
7
|
-
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
|
|
8
|
-
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @title UpgradeBeaconController
|
|
12
|
-
* @notice Set as the controller of UpgradeBeacon contract(s),
|
|
13
|
-
* capable of changing their stored implementation address.
|
|
14
|
-
* @dev This implementation is a minimal version inspired by 0age's implementation:
|
|
15
|
-
* https://github.com/dharma-eng/dharma-smart-wallet/blob/master/contracts/upgradeability/DharmaUpgradeBeaconController.sol
|
|
16
|
-
*/
|
|
17
|
-
contract UpgradeBeaconController is Ownable {
|
|
18
|
-
// ============ Events ============
|
|
19
|
-
|
|
20
|
-
event BeaconUpgraded(address indexed beacon, address implementation);
|
|
21
|
-
|
|
22
|
-
// ============ External Functions ============
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @notice Modify the implementation stored in the UpgradeBeacon,
|
|
26
|
-
* which will upgrade the implementation used by all
|
|
27
|
-
* Proxy contracts using that UpgradeBeacon
|
|
28
|
-
* @param _beacon Address of the UpgradeBeacon which will be updated
|
|
29
|
-
* @param _implementation Address of the Implementation contract to upgrade the Beacon to
|
|
30
|
-
*/
|
|
31
|
-
function upgrade(address _beacon, address _implementation)
|
|
32
|
-
external
|
|
33
|
-
onlyOwner
|
|
34
|
-
{
|
|
35
|
-
// Require that the beacon is a contract
|
|
36
|
-
require(Address.isContract(_beacon), "beacon !contract");
|
|
37
|
-
// Call into beacon and supply address of new implementation to update it.
|
|
38
|
-
(bool _success, ) = _beacon.call(abi.encode(_implementation));
|
|
39
|
-
// Revert with message on failure (i.e. if the beacon is somehow incorrect).
|
|
40
|
-
if (!_success) {
|
|
41
|
-
assembly {
|
|
42
|
-
returndatacopy(0, 0, returndatasize())
|
|
43
|
-
revert(0, returndatasize())
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
emit BeaconUpgraded(_beacon, _implementation);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
// ============ External Imports ============
|
|
5
|
-
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @title UpgradeBeaconProxy
|
|
9
|
-
* @notice
|
|
10
|
-
* Proxy contract which delegates all logic, including initialization,
|
|
11
|
-
* to an implementation contract.
|
|
12
|
-
* The implementation contract is stored within an Upgrade Beacon contract;
|
|
13
|
-
* the implementation contract can be changed by performing an upgrade on the Upgrade Beacon contract.
|
|
14
|
-
* The Upgrade Beacon contract for this Proxy is immutably specified at deployment.
|
|
15
|
-
* @dev This implementation combines the gas savings of keeping the UpgradeBeacon address outside of contract storage
|
|
16
|
-
* found in 0age's implementation:
|
|
17
|
-
* https://github.com/dharma-eng/dharma-smart-wallet/blob/master/contracts/proxies/smart-wallet/UpgradeBeaconProxyV1.sol
|
|
18
|
-
* With the added safety checks that the UpgradeBeacon and implementation are contracts at time of deployment
|
|
19
|
-
* found in OpenZeppelin's implementation:
|
|
20
|
-
* https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/beacon/BeaconProxy.sol
|
|
21
|
-
*/
|
|
22
|
-
contract UpgradeBeaconProxy {
|
|
23
|
-
// ============ Immutables ============
|
|
24
|
-
|
|
25
|
-
// Upgrade Beacon address is immutable (therefore not kept in contract storage)
|
|
26
|
-
address private immutable upgradeBeacon;
|
|
27
|
-
|
|
28
|
-
// ============ Constructor ============
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @notice Validate that the Upgrade Beacon is a contract, then set its
|
|
32
|
-
* address immutably within this contract.
|
|
33
|
-
* Validate that the implementation is also a contract,
|
|
34
|
-
* Then call the initialization function defined at the implementation.
|
|
35
|
-
* The deployment will revert and pass along the
|
|
36
|
-
* revert reason if the initialization function reverts.
|
|
37
|
-
* @param _upgradeBeacon Address of the Upgrade Beacon to be stored immutably in the contract
|
|
38
|
-
* @param _initializationCalldata Calldata supplied when calling the initialization function
|
|
39
|
-
*/
|
|
40
|
-
constructor(address _upgradeBeacon, bytes memory _initializationCalldata)
|
|
41
|
-
payable
|
|
42
|
-
{
|
|
43
|
-
// Validate the Upgrade Beacon is a contract
|
|
44
|
-
require(Address.isContract(_upgradeBeacon), "beacon !contract");
|
|
45
|
-
// set the Upgrade Beacon
|
|
46
|
-
upgradeBeacon = _upgradeBeacon;
|
|
47
|
-
// Validate the implementation is a contract
|
|
48
|
-
address _implementation = _getImplementation(_upgradeBeacon);
|
|
49
|
-
require(
|
|
50
|
-
Address.isContract(_implementation),
|
|
51
|
-
"beacon implementation !contract"
|
|
52
|
-
);
|
|
53
|
-
// Call the initialization function on the implementation
|
|
54
|
-
if (_initializationCalldata.length > 0) {
|
|
55
|
-
_initialize(_implementation, _initializationCalldata);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// ============ External Functions ============
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @notice Forwards all calls with data to _fallback()
|
|
63
|
-
* No public functions are declared on the contract, so all calls hit fallback
|
|
64
|
-
*/
|
|
65
|
-
fallback() external payable {
|
|
66
|
-
_fallback();
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @notice Forwards all calls with no data to _fallback()
|
|
71
|
-
*/
|
|
72
|
-
receive() external payable {
|
|
73
|
-
_fallback();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ============ Private Functions ============
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @notice Call the initialization function on the implementation
|
|
80
|
-
* Used at deployment to initialize the proxy
|
|
81
|
-
* based on the logic for initialization defined at the implementation
|
|
82
|
-
* @param _implementation - Contract to which the initalization is delegated
|
|
83
|
-
* @param _initializationCalldata - Calldata supplied when calling the initialization function
|
|
84
|
-
*/
|
|
85
|
-
function _initialize(
|
|
86
|
-
address _implementation,
|
|
87
|
-
bytes memory _initializationCalldata
|
|
88
|
-
) private {
|
|
89
|
-
// Delegatecall into the implementation, supplying initialization calldata.
|
|
90
|
-
(bool _ok, ) = _implementation.delegatecall(_initializationCalldata);
|
|
91
|
-
// Revert and include revert data if delegatecall to implementation reverts.
|
|
92
|
-
if (!_ok) {
|
|
93
|
-
assembly {
|
|
94
|
-
returndatacopy(0, 0, returndatasize())
|
|
95
|
-
revert(0, returndatasize())
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @notice Delegates function calls to the implementation contract returned by the Upgrade Beacon
|
|
102
|
-
*/
|
|
103
|
-
function _fallback() private {
|
|
104
|
-
_delegate(_getImplementation());
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @notice Delegate function execution to the implementation contract
|
|
109
|
-
* @dev This is a low level function that doesn't return to its internal
|
|
110
|
-
* call site. It will return whatever is returned by the implementation to the
|
|
111
|
-
* external caller, reverting and returning the revert data if implementation
|
|
112
|
-
* reverts.
|
|
113
|
-
* @param _implementation - Address to which the function execution is delegated
|
|
114
|
-
*/
|
|
115
|
-
function _delegate(address _implementation) private {
|
|
116
|
-
assembly {
|
|
117
|
-
// Copy msg.data. We take full control of memory in this inline assembly
|
|
118
|
-
// block because it will not return to Solidity code. We overwrite the
|
|
119
|
-
// Solidity scratch pad at memory position 0.
|
|
120
|
-
calldatacopy(0, 0, calldatasize())
|
|
121
|
-
// Delegatecall to the implementation, supplying calldata and gas.
|
|
122
|
-
// Out and outsize are set to zero - instead, use the return buffer.
|
|
123
|
-
let result := delegatecall(
|
|
124
|
-
gas(),
|
|
125
|
-
_implementation,
|
|
126
|
-
0,
|
|
127
|
-
calldatasize(),
|
|
128
|
-
0,
|
|
129
|
-
0
|
|
130
|
-
)
|
|
131
|
-
// Copy the returned data from the return buffer.
|
|
132
|
-
returndatacopy(0, 0, returndatasize())
|
|
133
|
-
switch result
|
|
134
|
-
// Delegatecall returns 0 on error.
|
|
135
|
-
case 0 {
|
|
136
|
-
revert(0, returndatasize())
|
|
137
|
-
}
|
|
138
|
-
default {
|
|
139
|
-
return(0, returndatasize())
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @notice Call the Upgrade Beacon to get the current implementation contract address
|
|
146
|
-
* @return _implementation Address of the current implementation.
|
|
147
|
-
*/
|
|
148
|
-
function _getImplementation()
|
|
149
|
-
private
|
|
150
|
-
view
|
|
151
|
-
returns (address _implementation)
|
|
152
|
-
{
|
|
153
|
-
_implementation = _getImplementation(upgradeBeacon);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @notice Call the Upgrade Beacon to get the current implementation contract address
|
|
158
|
-
* @dev _upgradeBeacon is passed as a parameter so that
|
|
159
|
-
* we can also use this function in the constructor,
|
|
160
|
-
* where we can't access immutable variables.
|
|
161
|
-
* @param _upgradeBeacon Address of the UpgradeBeacon storing the current implementation
|
|
162
|
-
* @return _implementation Address of the current implementation.
|
|
163
|
-
*/
|
|
164
|
-
function _getImplementation(address _upgradeBeacon)
|
|
165
|
-
private
|
|
166
|
-
view
|
|
167
|
-
returns (address _implementation)
|
|
168
|
-
{
|
|
169
|
-
// Get the current implementation address from the upgrade beacon.
|
|
170
|
-
(bool _ok, bytes memory _returnData) = _upgradeBeacon.staticcall("");
|
|
171
|
-
// Revert and pass along revert message if call to upgrade beacon reverts.
|
|
172
|
-
require(_ok, string(_returnData));
|
|
173
|
-
// Set the implementation to the address returned from the upgrade beacon.
|
|
174
|
-
_implementation = abi.decode(_returnData, (address));
|
|
175
|
-
}
|
|
176
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
2
|
-
pragma solidity >=0.8.0;
|
|
3
|
-
|
|
4
|
-
// ============ Internal Imports ============
|
|
5
|
-
import {IInbox} from "../../interfaces/IInbox.sol";
|
|
6
|
-
import {MultisigValidatorManager} from "./MultisigValidatorManager.sol";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @title InboxValidatorManager
|
|
10
|
-
* @notice Verifies checkpoints are signed by a quorum of validators and submits
|
|
11
|
-
* them to an Inbox.
|
|
12
|
-
*/
|
|
13
|
-
contract InboxValidatorManager is MultisigValidatorManager {
|
|
14
|
-
// ============ Constructor ============
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @dev Reverts if `_validators` has any duplicates.
|
|
18
|
-
* @param _remoteDomain The remote domain of the outbox chain.
|
|
19
|
-
* @param _validators The set of validator addresses.
|
|
20
|
-
* @param _threshold The quorum threshold. Must be greater than or equal
|
|
21
|
-
* to the length of `_validators`.
|
|
22
|
-
*/
|
|
23
|
-
// solhint-disable-next-line no-empty-blocks
|
|
24
|
-
constructor(
|
|
25
|
-
uint32 _remoteDomain,
|
|
26
|
-
address[] memory _validators,
|
|
27
|
-
uint256 _threshold
|
|
28
|
-
) MultisigValidatorManager(_remoteDomain, _validators, _threshold) {}
|
|
29
|
-
|
|
30
|
-
// ============ External Functions ============
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @notice Verifies a signed checkpoint and submits a message for processing.
|
|
34
|
-
* @dev Reverts if `_signatures` is not a quorum of validator signatures.
|
|
35
|
-
* @dev Reverts if `_signatures` is not sorted in ascending order by the signer
|
|
36
|
-
* address, which is required for duplicate detection.
|
|
37
|
-
* @param _inbox The inbox to submit the message to.
|
|
38
|
-
* @param _root The merkle root of the signed checkpoint.
|
|
39
|
-
* @param _index The index of the signed checkpoint.
|
|
40
|
-
* @param _signatures Signatures over the checkpoint to be checked for a validator
|
|
41
|
-
* quorum. Must be sorted in ascending order by signer address.
|
|
42
|
-
* @param _message The message to process.
|
|
43
|
-
* @param _proof Merkle proof of inclusion for message's leaf
|
|
44
|
-
* @param _leafIndex Index of leaf in outbox's merkle tree
|
|
45
|
-
*/
|
|
46
|
-
function process(
|
|
47
|
-
IInbox _inbox,
|
|
48
|
-
bytes32 _root,
|
|
49
|
-
uint256 _index,
|
|
50
|
-
bytes[] calldata _signatures,
|
|
51
|
-
bytes calldata _message,
|
|
52
|
-
bytes32[32] calldata _proof,
|
|
53
|
-
uint256 _leafIndex
|
|
54
|
-
) external {
|
|
55
|
-
require(isQuorum(_root, _index, _signatures), "!quorum");
|
|
56
|
-
_inbox.process(_root, _index, _message, _proof, _leafIndex);
|
|
57
|
-
}
|
|
58
|
-
}
|