@hyperlane-xyz/core 1.3.0 → 1.3.1
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/igps/InterchainGasPaymaster.sol +0 -6
- package/contracts/test/TestInterchainGasPaymaster.sol +3 -1
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.d.ts +75 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.d.ts.map +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js +4 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js.map +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +2 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts.map +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +3 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +3 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.js +4 -0
- package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
- package/dist/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -1
- package/dist/@openzeppelin/contracts/token/ERC20/index.js +1 -0
- package/dist/@openzeppelin/contracts/token/ERC20/index.js.map +1 -1
- package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.d.ts +202 -0
- package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.d.ts.map +1 -0
- package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.js +4 -0
- package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.js.map +1 -0
- package/dist/contracts/ImmutableConnectionClient.sol/index.d.ts +2 -0
- package/dist/contracts/ImmutableConnectionClient.sol/index.d.ts.map +1 -0
- package/dist/contracts/ImmutableConnectionClient.sol/index.js +3 -0
- package/dist/contracts/ImmutableConnectionClient.sol/index.js.map +1 -0
- package/dist/contracts/InterchainGasPaymaster.d.ts +162 -0
- package/dist/contracts/InterchainGasPaymaster.d.ts.map +1 -0
- package/dist/contracts/InterchainGasPaymaster.js +4 -0
- package/dist/contracts/InterchainGasPaymaster.js.map +1 -0
- package/dist/contracts/index.d.ts +0 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/isms/MultisigIsm.d.ts +290 -0
- package/dist/contracts/isms/MultisigIsm.d.ts.map +1 -0
- package/dist/contracts/isms/MultisigIsm.js +4 -0
- package/dist/contracts/isms/MultisigIsm.js.map +1 -0
- package/dist/contracts/libs/ImmutableOwnable.d.ts +43 -0
- package/dist/contracts/libs/ImmutableOwnable.d.ts.map +1 -0
- package/dist/contracts/libs/ImmutableOwnable.js +4 -0
- package/dist/contracts/libs/ImmutableOwnable.js.map +1 -0
- package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.d.ts +78 -0
- package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.d.ts.map +1 -0
- package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.js +4 -0
- package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.js.map +1 -0
- package/dist/contracts/mock/MockCircleBridge.d.ts +86 -0
- package/dist/contracts/mock/MockCircleBridge.d.ts.map +1 -0
- package/dist/contracts/mock/MockCircleBridge.js +4 -0
- package/dist/contracts/mock/MockCircleBridge.js.map +1 -0
- package/dist/contracts/mock/MockInterchainAccountRouter.d.ts +422 -0
- package/dist/contracts/mock/MockInterchainAccountRouter.d.ts.map +1 -0
- package/dist/contracts/mock/MockInterchainAccountRouter.js +4 -0
- package/dist/contracts/mock/MockInterchainAccountRouter.js.map +1 -0
- package/dist/contracts/test/TestMultisigIsm.d.ts +306 -0
- package/dist/contracts/test/TestMultisigIsm.d.ts.map +1 -0
- package/dist/contracts/test/TestMultisigIsm.js +4 -0
- package/dist/contracts/test/TestMultisigIsm.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.d.ts +23 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js +93 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +2 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +9 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +2 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +31 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/factories/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -1
- package/dist/factories/@openzeppelin/contracts/token/ERC20/index.js +25 -1
- package/dist/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -1
- package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.d.ts +43 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.d.ts.map +1 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.js +200 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.js.map +1 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/index.d.ts +2 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/index.d.ts.map +1 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/index.js +9 -0
- package/dist/factories/contracts/ImmutableConnectionClient.sol/index.js.map +1 -0
- package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts +62 -0
- package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts.map +1 -0
- package/dist/factories/contracts/InterchainGasPaymaster__factory.js +178 -0
- package/dist/factories/contracts/InterchainGasPaymaster__factory.js.map +1 -0
- package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.d.ts +4 -15
- package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.d.ts.map +1 -1
- package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.js +5 -16
- package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.js.map +1 -1
- package/dist/factories/contracts/index.d.ts +0 -1
- package/dist/factories/contracts/index.d.ts.map +1 -1
- package/dist/factories/contracts/index.js +1 -3
- package/dist/factories/contracts/index.js.map +1 -1
- package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts +55 -0
- package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts.map +1 -0
- package/dist/factories/contracts/isms/MultisigIsm__factory.js +437 -0
- package/dist/factories/contracts/isms/MultisigIsm__factory.js.map +1 -0
- package/dist/factories/contracts/libs/ImmutableOwnable__factory.d.ts +19 -0
- package/dist/factories/contracts/libs/ImmutableOwnable__factory.d.ts.map +1 -0
- package/dist/factories/contracts/libs/ImmutableOwnable__factory.js +31 -0
- package/dist/factories/contracts/libs/ImmutableOwnable__factory.js.map +1 -0
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.d.ts +36 -0
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.d.ts.map +1 -0
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.js +104 -0
- package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.js.map +1 -0
- package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts +59 -0
- package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts.map +1 -0
- package/dist/factories/contracts/mock/MockCircleBridge__factory.js +151 -0
- package/dist/factories/contracts/mock/MockCircleBridge__factory.js.map +1 -0
- 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 +1 -1
- package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js.map +1 -1
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts +69 -0
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts.map +1 -0
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js +556 -0
- package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js.map +1 -0
- package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.d.ts +1 -1
- package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.d.ts.map +1 -1
- package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.js +1 -1
- package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.js.map +1 -1
- package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts +48 -0
- package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts.map +1 -0
- package/dist/factories/contracts/test/TestMultisigIsm__factory.js +480 -0
- package/dist/factories/contracts/test/TestMultisigIsm__factory.js.map +1 -0
- package/dist/factories/interfaces/IAggregationIsm__factory.d.ts +23 -0
- package/dist/factories/interfaces/IAggregationIsm__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IAggregationIsm__factory.js +79 -0
- package/dist/factories/interfaces/IAggregationIsm__factory.js.map +1 -0
- package/dist/factories/interfaces/IGasOracle__factory.d.ts +23 -0
- package/dist/factories/interfaces/IGasOracle__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IGasOracle__factory.js +42 -0
- package/dist/factories/interfaces/IGasOracle__factory.js.map +1 -0
- package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.d.ts +29 -0
- package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.js +96 -0
- package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.js.map +1 -0
- package/dist/factories/interfaces/IInterchainAccountRouter__factory.d.ts +33 -0
- package/dist/factories/interfaces/IInterchainAccountRouter__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IInterchainAccountRouter__factory.js +107 -0
- package/dist/factories/interfaces/IInterchainAccountRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts +19 -0
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js +46 -0
- package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js.map +1 -0
- package/dist/factories/interfaces/IInterchainQueryRouter__factory.d.ts +33 -0
- package/dist/factories/interfaces/IInterchainQueryRouter__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IInterchainQueryRouter__factory.js +134 -0
- package/dist/factories/interfaces/IInterchainQueryRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts +23 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js +55 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js.map +1 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts +19 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js +31 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js.map +1 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.d.ts +3 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +1 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.js +11 -0
- package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.js.map +1 -0
- package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts +19 -0
- package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.js +51 -0
- package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.js.map +1 -0
- package/dist/factories/interfaces/ILiquidityLayerRouter__factory.d.ts +23 -0
- package/dist/factories/interfaces/ILiquidityLayerRouter__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/ILiquidityLayerRouter__factory.js +62 -0
- package/dist/factories/interfaces/ILiquidityLayerRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/IMailbox__factory.d.ts +23 -0
- package/dist/factories/interfaces/IMailbox__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IMailbox__factory.js +141 -0
- package/dist/factories/interfaces/IMailbox__factory.js.map +1 -0
- package/dist/factories/interfaces/IMessageRecipient__factory.d.ts +19 -0
- package/dist/factories/interfaces/IMessageRecipient__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IMessageRecipient__factory.js +41 -0
- package/dist/factories/interfaces/IMessageRecipient__factory.js.map +1 -0
- package/dist/factories/interfaces/IMultisigIsm__factory.d.ts +23 -0
- package/dist/factories/interfaces/IMultisigIsm__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IMultisigIsm__factory.js +79 -0
- package/dist/factories/interfaces/IMultisigIsm__factory.js.map +1 -0
- package/dist/factories/interfaces/IRouter__factory.d.ts +23 -0
- package/dist/factories/interfaces/IRouter__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IRouter__factory.js +86 -0
- package/dist/factories/interfaces/IRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/IValidatorAnnounce__factory.d.ts +23 -0
- package/dist/factories/interfaces/IValidatorAnnounce__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/IValidatorAnnounce__factory.js +105 -0
- package/dist/factories/interfaces/IValidatorAnnounce__factory.js.map +1 -0
- package/dist/factories/interfaces/index.d.ts +10 -0
- package/dist/factories/interfaces/index.d.ts.map +1 -0
- package/dist/factories/interfaces/index.js +47 -0
- package/dist/factories/interfaces/index.js.map +1 -0
- package/dist/factories/interfaces/isms/IMultisigIsm__factory.d.ts +23 -0
- package/dist/factories/interfaces/isms/IMultisigIsm__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/isms/IMultisigIsm__factory.js +79 -0
- package/dist/factories/interfaces/isms/IMultisigIsm__factory.js.map +1 -0
- package/dist/factories/interfaces/isms/index.d.ts +2 -0
- package/dist/factories/interfaces/isms/index.d.ts.map +1 -0
- package/dist/factories/interfaces/isms/index.js +9 -0
- package/dist/factories/interfaces/isms/index.js.map +1 -0
- package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.d.ts +33 -0
- package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.js +265 -0
- package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.d.ts +43 -0
- package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.d.ts.map +1 -0
- package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.js +100 -0
- package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.js.map +1 -0
- package/dist/factories/interfaces/middleware/index.d.ts +3 -0
- package/dist/factories/interfaces/middleware/index.d.ts.map +1 -0
- package/dist/factories/interfaces/middleware/index.js +11 -0
- package/dist/factories/interfaces/middleware/index.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IAggregationIsm.d.ts +76 -0
- package/dist/interfaces/IAggregationIsm.d.ts.map +1 -0
- package/dist/interfaces/IAggregationIsm.js +4 -0
- package/dist/interfaces/IAggregationIsm.js.map +1 -0
- package/dist/interfaces/IGasOracle.d.ts +61 -0
- package/dist/interfaces/IGasOracle.d.ts.map +1 -0
- package/dist/interfaces/IGasOracle.js +4 -0
- package/dist/interfaces/IGasOracle.js.map +1 -0
- package/dist/interfaces/IHyperlaneConnectionClient.d.ts +107 -0
- package/dist/interfaces/IHyperlaneConnectionClient.d.ts.map +1 -0
- package/dist/interfaces/IHyperlaneConnectionClient.js +4 -0
- package/dist/interfaces/IHyperlaneConnectionClient.js.map +1 -0
- package/dist/interfaces/IInterchainAccountRouter.d.ts +83 -0
- package/dist/interfaces/IInterchainAccountRouter.d.ts.map +1 -0
- package/dist/interfaces/IInterchainAccountRouter.js +4 -0
- package/dist/interfaces/IInterchainAccountRouter.js.map +1 -0
- package/dist/interfaces/IInterchainGasPaymaster.d.ts +51 -0
- package/dist/interfaces/IInterchainGasPaymaster.d.ts.map +1 -0
- package/dist/interfaces/IInterchainGasPaymaster.js +4 -0
- package/dist/interfaces/IInterchainGasPaymaster.js.map +1 -0
- package/dist/interfaces/IInterchainQueryRouter.d.ts +91 -0
- package/dist/interfaces/IInterchainQueryRouter.d.ts.map +1 -0
- package/dist/interfaces/IInterchainQueryRouter.js +4 -0
- package/dist/interfaces/IInterchainQueryRouter.js.map +1 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts +59 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts.map +1 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js +4 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js.map +1 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts +43 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts.map +1 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js +4 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js.map +1 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/index.d.ts +3 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +1 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/index.js +3 -0
- package/dist/interfaces/IInterchainSecurityModule.sol/index.js.map +1 -0
- package/dist/interfaces/ILiquidityLayerMessageRecipient.d.ts +51 -0
- package/dist/interfaces/ILiquidityLayerMessageRecipient.d.ts.map +1 -0
- package/dist/interfaces/ILiquidityLayerMessageRecipient.js +4 -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 +107 -0
- package/dist/interfaces/IMailbox.d.ts.map +1 -0
- package/dist/interfaces/IMailbox.js +4 -0
- package/dist/interfaces/IMailbox.js.map +1 -0
- package/dist/interfaces/IMessageRecipient.d.ts +51 -0
- package/dist/interfaces/IMessageRecipient.d.ts.map +1 -0
- package/dist/interfaces/IMessageRecipient.js +4 -0
- package/dist/interfaces/IMessageRecipient.js.map +1 -0
- package/dist/interfaces/IMultisigIsm.d.ts +82 -0
- package/dist/interfaces/IMultisigIsm.d.ts.map +1 -0
- package/dist/interfaces/IMultisigIsm.js +4 -0
- package/dist/interfaces/IMultisigIsm.js.map +1 -0
- package/dist/interfaces/IRouter.d.ts +83 -0
- package/dist/interfaces/IRouter.d.ts.map +1 -0
- package/dist/interfaces/IRouter.js +4 -0
- package/dist/interfaces/IRouter.js.map +1 -0
- package/dist/interfaces/IValidatorAnnounce.d.ts +83 -0
- package/dist/interfaces/IValidatorAnnounce.d.ts.map +1 -0
- package/dist/interfaces/IValidatorAnnounce.js +4 -0
- package/dist/interfaces/IValidatorAnnounce.js.map +1 -0
- package/dist/interfaces/index.d.ts +11 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/index.js +4 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/isms/IMultisigIsm.d.ts +82 -0
- package/dist/interfaces/isms/IMultisigIsm.d.ts.map +1 -0
- package/dist/interfaces/isms/IMultisigIsm.js +4 -0
- package/dist/interfaces/isms/IMultisigIsm.js.map +1 -0
- package/dist/interfaces/isms/index.d.ts +2 -0
- package/dist/interfaces/isms/index.d.ts.map +1 -0
- package/dist/interfaces/isms/index.js +3 -0
- package/dist/interfaces/isms/index.js.map +1 -0
- package/dist/interfaces/middleware/IInterchainAccountRouter.d.ts +127 -0
- package/dist/interfaces/middleware/IInterchainAccountRouter.d.ts.map +1 -0
- package/dist/interfaces/middleware/IInterchainAccountRouter.js +4 -0
- package/dist/interfaces/middleware/IInterchainAccountRouter.js.map +1 -0
- package/dist/interfaces/middleware/IInterchainQueryRouter.d.ts +88 -0
- package/dist/interfaces/middleware/IInterchainQueryRouter.d.ts.map +1 -0
- package/dist/interfaces/middleware/IInterchainQueryRouter.js +4 -0
- package/dist/interfaces/middleware/IInterchainQueryRouter.js.map +1 -0
- package/dist/interfaces/middleware/index.d.ts +3 -0
- package/dist/interfaces/middleware/index.d.ts.map +1 -0
- package/dist/interfaces/middleware/index.js +3 -0
- package/dist/interfaces/middleware/index.js.map +1 -0
- package/package.json +3 -3
- package/contracts/Create2Factory.sol +0 -114
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
// Copied from https://github.com/axelarnetwork/axelar-utils-solidity/commits/main/contracts/ConstAddressDeployer.sol
|
|
3
|
-
|
|
4
|
-
pragma solidity ^0.8.0;
|
|
5
|
-
|
|
6
|
-
contract Create2Factory {
|
|
7
|
-
error EmptyBytecode();
|
|
8
|
-
error FailedDeploy();
|
|
9
|
-
error FailedInit();
|
|
10
|
-
|
|
11
|
-
event Deployed(
|
|
12
|
-
bytes32 indexed bytecodeHash,
|
|
13
|
-
bytes32 indexed salt,
|
|
14
|
-
address indexed deployedAddress
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @dev Deploys a contract using `CREATE2`. The address where the contract
|
|
19
|
-
* will be deployed can be known in advance via {deployedAddress}.
|
|
20
|
-
*
|
|
21
|
-
* The bytecode for a contract can be obtained from Solidity with
|
|
22
|
-
* `type(contractName).creationCode`.
|
|
23
|
-
*
|
|
24
|
-
* Requirements:
|
|
25
|
-
*
|
|
26
|
-
* - `bytecode` must not be empty.
|
|
27
|
-
* - `salt` must have not been used for `bytecode` already by the same `msg.sender`.
|
|
28
|
-
*/
|
|
29
|
-
function deploy(bytes memory bytecode, bytes32 salt)
|
|
30
|
-
external
|
|
31
|
-
returns (address deployedAddress_)
|
|
32
|
-
{
|
|
33
|
-
deployedAddress_ = _deploy(
|
|
34
|
-
bytecode,
|
|
35
|
-
keccak256(abi.encode(msg.sender, salt))
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @dev Deploys a contract using `CREATE2` and initialize it. The address where the contract
|
|
41
|
-
* will be deployed can be known in advance via {deployedAddress}.
|
|
42
|
-
*
|
|
43
|
-
* The bytecode for a contract can be obtained from Solidity with
|
|
44
|
-
* `type(contractName).creationCode`.
|
|
45
|
-
*
|
|
46
|
-
* Requirements:
|
|
47
|
-
*
|
|
48
|
-
* - `bytecode` must not be empty.
|
|
49
|
-
* - `salt` must have not been used for `bytecode` already by the same `msg.sender`.
|
|
50
|
-
* - `init` is used to initialize the deployed contract
|
|
51
|
-
* as an option to not have the constructor args affect the address derived by `CREATE2`.
|
|
52
|
-
*/
|
|
53
|
-
function deployAndInit(
|
|
54
|
-
bytes memory bytecode,
|
|
55
|
-
bytes32 salt,
|
|
56
|
-
bytes calldata init
|
|
57
|
-
) external returns (address deployedAddress_) {
|
|
58
|
-
deployedAddress_ = _deploy(
|
|
59
|
-
bytecode,
|
|
60
|
-
keccak256(abi.encode(msg.sender, salt))
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
// solhint-disable-next-line avoid-low-level-calls
|
|
64
|
-
(bool success, ) = deployedAddress_.call(init);
|
|
65
|
-
if (!success) revert FailedInit();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @dev Returns the address where a contract will be stored if deployed via {deploy} or {deployAndInit} by `sender`.
|
|
70
|
-
* Any change in the `bytecode`, `sender`, or `salt` will result in a new destination address.
|
|
71
|
-
*/
|
|
72
|
-
function deployedAddress(
|
|
73
|
-
bytes calldata bytecode,
|
|
74
|
-
address sender,
|
|
75
|
-
bytes32 salt
|
|
76
|
-
) external view returns (address deployedAddress_) {
|
|
77
|
-
bytes32 newSalt = keccak256(abi.encode(sender, salt));
|
|
78
|
-
deployedAddress_ = address(
|
|
79
|
-
uint160(
|
|
80
|
-
uint256(
|
|
81
|
-
keccak256(
|
|
82
|
-
abi.encodePacked(
|
|
83
|
-
hex"ff",
|
|
84
|
-
address(this),
|
|
85
|
-
newSalt,
|
|
86
|
-
keccak256(bytecode) // init code hash
|
|
87
|
-
)
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
)
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function _deploy(bytes memory bytecode, bytes32 salt)
|
|
95
|
-
internal
|
|
96
|
-
returns (address deployedAddress_)
|
|
97
|
-
{
|
|
98
|
-
if (bytecode.length == 0) revert EmptyBytecode();
|
|
99
|
-
|
|
100
|
-
// solhint-disable-next-line no-inline-assembly
|
|
101
|
-
assembly {
|
|
102
|
-
deployedAddress_ := create2(
|
|
103
|
-
0,
|
|
104
|
-
add(bytecode, 32),
|
|
105
|
-
mload(bytecode),
|
|
106
|
-
salt
|
|
107
|
-
)
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (deployedAddress_ == address(0)) revert FailedDeploy();
|
|
111
|
-
|
|
112
|
-
emit Deployed(keccak256(bytecode), salt, deployedAddress_);
|
|
113
|
-
}
|
|
114
|
-
}
|