@humanode-hyperlane/helloworld 0.0.0-stage → 30.0.0-humanode.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/LICENSE.md +193 -0
- package/README.md +26 -2
- package/contracts/HelloWorld.sol +107 -0
- package/dist/app/app.d.ts +17 -0
- package/dist/app/app.d.ts.map +1 -0
- package/dist/app/app.js +55 -0
- package/dist/app/app.js.map +1 -0
- package/dist/app/contracts.d.ts +6 -0
- package/dist/app/contracts.d.ts.map +1 -0
- package/dist/app/contracts.js +5 -0
- package/dist/app/contracts.js.map +1 -0
- package/dist/app/types.d.ts +5 -0
- package/dist/app/types.d.ts.map +1 -0
- package/dist/app/types.js +2 -0
- package/dist/app/types.js.map +1 -0
- package/dist/deploy/check.d.ts +7 -0
- package/dist/deploy/check.d.ts.map +1 -0
- package/dist/deploy/check.js +4 -0
- package/dist/deploy/check.js.map +1 -0
- package/dist/deploy/config.d.ts +6 -0
- package/dist/deploy/config.d.ts.map +1 -0
- package/dist/deploy/config.js +6 -0
- package/dist/deploy/config.js.map +1 -0
- package/dist/deploy/deploy.d.ts +14 -0
- package/dist/deploy/deploy.d.ts.map +1 -0
- package/dist/deploy/deploy.js +32 -0
- package/dist/deploy/deploy.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/multiProtocolApp/evmAdapter.d.ts +20 -0
- package/dist/multiProtocolApp/evmAdapter.d.ts.map +1 -0
- package/dist/multiProtocolApp/evmAdapter.js +46 -0
- package/dist/multiProtocolApp/evmAdapter.js.map +1 -0
- package/dist/multiProtocolApp/multiProtocolApp.d.ts +15 -0
- package/dist/multiProtocolApp/multiProtocolApp.d.ts.map +1 -0
- package/dist/multiProtocolApp/multiProtocolApp.js +35 -0
- package/dist/multiProtocolApp/multiProtocolApp.js.map +1 -0
- package/dist/multiProtocolApp/sealevelAdapter.d.ts +62 -0
- package/dist/multiProtocolApp/sealevelAdapter.d.ts.map +1 -0
- package/dist/multiProtocolApp/sealevelAdapter.js +233 -0
- package/dist/multiProtocolApp/sealevelAdapter.js.map +1 -0
- package/dist/multiProtocolApp/types.d.ts +7 -0
- package/dist/multiProtocolApp/types.d.ts.map +1 -0
- package/dist/multiProtocolApp/types.js +2 -0
- package/dist/multiProtocolApp/types.js.map +1 -0
- package/dist/scripts/check.d.ts +2 -0
- package/dist/scripts/check.d.ts.map +1 -0
- package/dist/scripts/check.js +28 -0
- package/dist/scripts/check.js.map +1 -0
- package/dist/scripts/deploy.d.ts +2 -0
- package/dist/scripts/deploy.d.ts.map +1 -0
- package/dist/scripts/deploy.js +25 -0
- package/dist/scripts/deploy.js.map +1 -0
- package/dist/test/deploy.test.d.ts +2 -0
- package/dist/test/deploy.test.d.ts.map +1 -0
- package/dist/test/deploy.test.js +39 -0
- package/dist/test/deploy.test.js.map +1 -0
- package/dist/test/helloworld.test.d.ts +2 -0
- package/dist/test/helloworld.test.d.ts.map +1 -0
- package/dist/test/helloworld.test.js +70 -0
- package/dist/test/helloworld.test.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/PackageVersioned.d.ts +50 -0
- package/dist/types/@humanode-hyperlane/core/contracts/PackageVersioned.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/PackageVersioned.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/PackageVersioned.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/MailboxClient.d.ts +295 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/MailboxClient.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/MailboxClient.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/MailboxClient.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/Router.d.ts +480 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/Router.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/Router.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/Router.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/index.d.ts +3 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/client/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/index.d.ts +3 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata.d.ts +50 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/index.d.ts +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/hooks/libs/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/index.d.ts +8 -0
- package/dist/types/@humanode-hyperlane/core/contracts/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts +81 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts +50 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.d.ts +3 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMailbox.d.ts +324 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMailbox.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMailbox.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMailbox.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient.d.ts +66 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook.d.ts +111 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/index.d.ts +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/hooks/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/index.d.ts +7 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/contracts/interfaces/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/core/index.d.ts +3 -0
- package/dist/types/@humanode-hyperlane/core/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/core/index.js +2 -0
- package/dist/types/@humanode-hyperlane/core/index.js.map +1 -0
- package/dist/types/@humanode-hyperlane/index.d.ts +3 -0
- package/dist/types/@humanode-hyperlane/index.d.ts.map +1 -0
- package/dist/types/@humanode-hyperlane/index.js +2 -0
- package/dist/types/@humanode-hyperlane/index.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts +138 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/index.d.ts +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/index.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/index.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/access/index.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/index.d.ts +7 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/index.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/index.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/index.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +3 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/index.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/index.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/index.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +41 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/proxy/utils/index.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +41 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/index.d.ts.map +1 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/index.js +2 -0
- package/dist/types/@openzeppelin/contracts-upgradeable/utils/index.js.map +1 -0
- package/dist/types/@openzeppelin/index.d.ts +3 -0
- package/dist/types/@openzeppelin/index.d.ts.map +1 -0
- package/dist/types/@openzeppelin/index.js +2 -0
- package/dist/types/@openzeppelin/index.js.map +1 -0
- package/dist/types/common.d.ts +22 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +2 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/contracts/HelloWorld.d.ts +649 -0
- package/dist/types/contracts/HelloWorld.d.ts.map +1 -0
- package/dist/types/contracts/HelloWorld.js +2 -0
- package/dist/types/contracts/HelloWorld.js.map +1 -0
- package/dist/types/contracts/index.d.ts +2 -0
- package/dist/types/contracts/index.d.ts.map +1 -0
- package/dist/types/contracts/index.js +2 -0
- package/dist/types/contracts/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/PackageVersioned__factory.d.ts +19 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/PackageVersioned__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/PackageVersioned__factory.js +30 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/PackageVersioned__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/MailboxClient__factory.d.ts +150 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/MailboxClient__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/MailboxClient__factory.js +199 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/MailboxClient__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/Router__factory.d.ts +240 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/Router__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/Router__factory.js +316 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/Router__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/index.d.ts +3 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/index.js +7 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/client/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/index.d.ts +2 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/index.js +6 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata__factory.d.ts +31 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata__factory.js +53 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/index.d.ts +2 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/index.js +6 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/hooks/libs/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/index.d.ts +5 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/index.js +9 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts +37 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js +54 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts +19 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js +30 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.d.ts +3 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.js +7 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IInterchainSecurityModule.sol/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMailbox__factory.d.ts +332 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMailbox__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMailbox__factory.js +437 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMailbox__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient__factory.d.ts +27 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient__factory.js +40 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/IMessageRecipient__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook__factory.d.ts +65 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook__factory.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook__factory.js +91 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/IPostDispatchHook__factory.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/index.d.ts +2 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/index.js +6 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/hooks/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/index.d.ts +5 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/index.js +9 -0
- package/dist/types/factories/@humanode-hyperlane/core/contracts/interfaces/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/index.d.ts +2 -0
- package/dist/types/factories/@humanode-hyperlane/core/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/core/index.js +6 -0
- package/dist/types/factories/@humanode-hyperlane/core/index.js.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/index.d.ts +2 -0
- package/dist/types/factories/@humanode-hyperlane/index.d.ts.map +1 -0
- package/dist/types/factories/@humanode-hyperlane/index.js +6 -0
- package/dist/types/factories/@humanode-hyperlane/index.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts +60 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js +82 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +2 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/index.js +6 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/access/index.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/index.d.ts +4 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/index.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/index.js +8 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/index.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +2 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/index.js +6 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/index.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +19 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js +30 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +2 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +6 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +19 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js +30 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/index.js +6 -0
- package/dist/types/factories/@openzeppelin/contracts-upgradeable/utils/index.js.map +1 -0
- package/dist/types/factories/@openzeppelin/index.d.ts +2 -0
- package/dist/types/factories/@openzeppelin/index.d.ts.map +1 -0
- package/dist/types/factories/@openzeppelin/index.js +6 -0
- package/dist/types/factories/@openzeppelin/index.js.map +1 -0
- package/dist/types/factories/contracts/HelloWorld__factory.d.ts +414 -0
- package/dist/types/factories/contracts/HelloWorld__factory.d.ts.map +1 -0
- package/dist/types/factories/contracts/HelloWorld__factory.js +549 -0
- package/dist/types/factories/contracts/HelloWorld__factory.js.map +1 -0
- package/dist/types/factories/contracts/index.d.ts +2 -0
- package/dist/types/factories/contracts/index.d.ts.map +1 -0
- package/dist/types/factories/contracts/index.js +6 -0
- package/dist/types/factories/contracts/index.js.map +1 -0
- package/dist/types/factories/index.d.ts +4 -0
- package/dist/types/factories/index.d.ts.map +1 -0
- package/dist/types/factories/index.js +8 -0
- package/dist/types/factories/index.js.map +1 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +15 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +72 -3
package/LICENSE.md
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# Apache License
|
|
2
|
+
|
|
3
|
+
_Version 2.0, January 2004_
|
|
4
|
+
_<<http://www.apache.org/licenses/>>_
|
|
5
|
+
|
|
6
|
+
### Terms and Conditions for use, reproduction, and distribution
|
|
7
|
+
|
|
8
|
+
#### 1. Definitions
|
|
9
|
+
|
|
10
|
+
“License” shall mean the terms and conditions for use, reproduction, and
|
|
11
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
“Licensor” shall mean the copyright owner or entity authorized by the copyright
|
|
14
|
+
owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
“Legal Entity” shall mean the union of the acting entity and all other entities
|
|
17
|
+
that control, are controlled by, or are under common control with that entity.
|
|
18
|
+
For the purposes of this definition, “control” means **(i)** the power, direct or
|
|
19
|
+
indirect, to cause the direction or management of such entity, whether by
|
|
20
|
+
contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or **(iii)** beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
“You” (or “Your”) shall mean an individual or Legal Entity exercising
|
|
24
|
+
permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
“Source” form shall mean the preferred form for making modifications, including
|
|
27
|
+
but not limited to software source code, documentation source, and configuration
|
|
28
|
+
files.
|
|
29
|
+
|
|
30
|
+
“Object” form shall mean any form resulting from mechanical transformation or
|
|
31
|
+
translation of a Source form, including but not limited to compiled object code,
|
|
32
|
+
generated documentation, and conversions to other media types.
|
|
33
|
+
|
|
34
|
+
“Work” shall mean the work of authorship, whether in Source or Object form, made
|
|
35
|
+
available under the License, as indicated by a copyright notice that is included
|
|
36
|
+
in or attached to the work (an example is provided in the Appendix below).
|
|
37
|
+
|
|
38
|
+
“Derivative Works” shall mean any work, whether in Source or Object form, that
|
|
39
|
+
is based on (or derived from) the Work and for which the editorial revisions,
|
|
40
|
+
annotations, elaborations, or other modifications represent, as a whole, an
|
|
41
|
+
original work of authorship. For the purposes of this License, Derivative Works
|
|
42
|
+
shall not include works that remain separable from, or merely link (or bind by
|
|
43
|
+
name) to the interfaces of, the Work and Derivative Works thereof.
|
|
44
|
+
|
|
45
|
+
“Contribution” shall mean any work of authorship, including the original version
|
|
46
|
+
of the Work and any modifications or additions to that Work or Derivative Works
|
|
47
|
+
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
48
|
+
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
49
|
+
on behalf of the copyright owner. For the purposes of this definition,
|
|
50
|
+
“submitted” means any form of electronic, verbal, or written communication sent
|
|
51
|
+
to the Licensor or its representatives, including but not limited to
|
|
52
|
+
communication on electronic mailing lists, source code control systems, and
|
|
53
|
+
issue tracking systems that are managed by, or on behalf of, the Licensor for
|
|
54
|
+
the purpose of discussing and improving the Work, but excluding communication
|
|
55
|
+
that is conspicuously marked or otherwise designated in writing by the copyright
|
|
56
|
+
owner as “Not a Contribution.”
|
|
57
|
+
|
|
58
|
+
“Contributor” shall mean Licensor and any individual or Legal Entity on behalf
|
|
59
|
+
of whom a Contribution has been received by Licensor and subsequently
|
|
60
|
+
incorporated within the Work.
|
|
61
|
+
|
|
62
|
+
#### 2. Grant of Copyright License
|
|
63
|
+
|
|
64
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
65
|
+
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
66
|
+
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
67
|
+
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
68
|
+
Derivative Works in Source or Object form.
|
|
69
|
+
|
|
70
|
+
#### 3. Grant of Patent License
|
|
71
|
+
|
|
72
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
73
|
+
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
74
|
+
irrevocable (except as stated in this section) patent license to make, have
|
|
75
|
+
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
|
76
|
+
such license applies only to those patent claims licensable by such Contributor
|
|
77
|
+
that are necessarily infringed by their Contribution(s) alone or by combination
|
|
78
|
+
of their Contribution(s) with the Work to which such Contribution(s) was
|
|
79
|
+
submitted. If You institute patent litigation against any entity (including a
|
|
80
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
|
81
|
+
Contribution incorporated within the Work constitutes direct or contributory
|
|
82
|
+
patent infringement, then any patent licenses granted to You under this License
|
|
83
|
+
for that Work shall terminate as of the date such litigation is filed.
|
|
84
|
+
|
|
85
|
+
#### 4. Redistribution
|
|
86
|
+
|
|
87
|
+
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
88
|
+
in any medium, with or without modifications, and in Source or Object form,
|
|
89
|
+
provided that You meet the following conditions:
|
|
90
|
+
|
|
91
|
+
- **(a)** You must give any other recipients of the Work or Derivative Works a copy of
|
|
92
|
+
this License; and
|
|
93
|
+
- **(b)** You must cause any modified files to carry prominent notices stating that You
|
|
94
|
+
changed the files; and
|
|
95
|
+
- **(c)** You must retain, in the Source form of any Derivative Works that You distribute,
|
|
96
|
+
all copyright, patent, trademark, and attribution notices from the Source form
|
|
97
|
+
of the Work, excluding those notices that do not pertain to any part of the
|
|
98
|
+
Derivative Works; and
|
|
99
|
+
- **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any
|
|
100
|
+
Derivative Works that You distribute must include a readable copy of the
|
|
101
|
+
attribution notices contained within such NOTICE file, excluding those notices
|
|
102
|
+
that do not pertain to any part of the Derivative Works, in at least one of the
|
|
103
|
+
following places: within a NOTICE text file distributed as part of the
|
|
104
|
+
Derivative Works; within the Source form or documentation, if provided along
|
|
105
|
+
with the Derivative Works; or, within a display generated by the Derivative
|
|
106
|
+
Works, if and wherever such third-party notices normally appear. The contents of
|
|
107
|
+
the NOTICE file are for informational purposes only and do not modify the
|
|
108
|
+
License. You may add Your own attribution notices within Derivative Works that
|
|
109
|
+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
|
110
|
+
provided that such additional attribution notices cannot be construed as
|
|
111
|
+
modifying the License.
|
|
112
|
+
|
|
113
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
114
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
115
|
+
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
116
|
+
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
117
|
+
with the conditions stated in this License.
|
|
118
|
+
|
|
119
|
+
#### 5. Submission of Contributions
|
|
120
|
+
|
|
121
|
+
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
122
|
+
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
123
|
+
conditions of this License, without any additional terms or conditions.
|
|
124
|
+
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
|
125
|
+
any separate license agreement you may have executed with Licensor regarding
|
|
126
|
+
such Contributions.
|
|
127
|
+
|
|
128
|
+
#### 6. Trademarks
|
|
129
|
+
|
|
130
|
+
This License does not grant permission to use the trade names, trademarks,
|
|
131
|
+
service marks, or product names of the Licensor, except as required for
|
|
132
|
+
reasonable and customary use in describing the origin of the Work and
|
|
133
|
+
reproducing the content of the NOTICE file.
|
|
134
|
+
|
|
135
|
+
#### 7. Disclaimer of Warranty
|
|
136
|
+
|
|
137
|
+
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
138
|
+
Work (and each Contributor provides its Contributions) on an “AS IS” BASIS,
|
|
139
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
|
140
|
+
including, without limitation, any warranties or conditions of TITLE,
|
|
141
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
|
142
|
+
solely responsible for determining the appropriateness of using or
|
|
143
|
+
redistributing the Work and assume any risks associated with Your exercise of
|
|
144
|
+
permissions under this License.
|
|
145
|
+
|
|
146
|
+
#### 8. Limitation of Liability
|
|
147
|
+
|
|
148
|
+
In no event and under no legal theory, whether in tort (including negligence),
|
|
149
|
+
contract, or otherwise, unless required by applicable law (such as deliberate
|
|
150
|
+
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
|
151
|
+
liable to You for damages, including any direct, indirect, special, incidental,
|
|
152
|
+
or consequential damages of any character arising as a result of this License or
|
|
153
|
+
out of the use or inability to use the Work (including but not limited to
|
|
154
|
+
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
|
155
|
+
any and all other commercial damages or losses), even if such Contributor has
|
|
156
|
+
been advised of the possibility of such damages.
|
|
157
|
+
|
|
158
|
+
#### 9. Accepting Warranty or Additional Liability
|
|
159
|
+
|
|
160
|
+
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
161
|
+
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
162
|
+
other liability obligations and/or rights consistent with this License. However,
|
|
163
|
+
in accepting such obligations, You may act only on Your own behalf and on Your
|
|
164
|
+
sole responsibility, not on behalf of any other Contributor, and only if You
|
|
165
|
+
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
|
166
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
167
|
+
accepting any such warranty or additional liability.
|
|
168
|
+
|
|
169
|
+
_END OF TERMS AND CONDITIONS_
|
|
170
|
+
|
|
171
|
+
### APPENDIX: How to apply the Apache License to your work
|
|
172
|
+
|
|
173
|
+
To apply the Apache License to your work, attach the following boilerplate
|
|
174
|
+
notice, with the fields enclosed by brackets `[]` replaced with your own
|
|
175
|
+
identifying information. (Don't include the brackets!) The text should be
|
|
176
|
+
enclosed in the appropriate comment syntax for the file format. We also
|
|
177
|
+
recommend that a file or class name and description of purpose be included on
|
|
178
|
+
the same “printed page” as the copyright notice for easier identification within
|
|
179
|
+
third-party archives.
|
|
180
|
+
|
|
181
|
+
Copyright [yyyy] [name of copyright owner]
|
|
182
|
+
|
|
183
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
184
|
+
you may not use this file except in compliance with the License.
|
|
185
|
+
You may obtain a copy of the License at
|
|
186
|
+
|
|
187
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
188
|
+
|
|
189
|
+
Unless required by applicable law or agreed to in writing, software
|
|
190
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
191
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
192
|
+
See the License for the specific language governing permissions and
|
|
193
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Hyperlane 'Hello World' App Template
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A basic Hyperlane application with a router contract that can dispatch messages.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
# Install dependencies
|
|
9
|
+
pnpm install
|
|
10
|
+
|
|
11
|
+
# Build source and generate types
|
|
12
|
+
pnpm build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Test
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
# Run all unit tests
|
|
19
|
+
pnpm test
|
|
20
|
+
|
|
21
|
+
# Lint check code
|
|
22
|
+
pnpm lint
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Learn more
|
|
26
|
+
|
|
27
|
+
For more information, see the [Hyperlane documentation](https://docs.hyperlane.xyz/docs/intro).
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
pragma solidity ^0.8.13;
|
|
3
|
+
|
|
4
|
+
// ============ External Imports ============
|
|
5
|
+
import {Router} from "@humanode-hyperlane/core/contracts/client/Router.sol";
|
|
6
|
+
import {StandardHookMetadata} from "@humanode-hyperlane/core/contracts/hooks/libs/StandardHookMetadata.sol";
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* @title The Hello World App
|
|
10
|
+
* @dev You can use this simple app as a starting point for your own application.
|
|
11
|
+
*/
|
|
12
|
+
contract HelloWorld is Router {
|
|
13
|
+
// A generous upper bound on the amount of gas to use in the handle
|
|
14
|
+
// function when a message is processed. Used for paying for gas.
|
|
15
|
+
uint256 public constant HANDLE_GAS_AMOUNT = 50_000;
|
|
16
|
+
|
|
17
|
+
// A counter of how many messages have been sent from this contract.
|
|
18
|
+
uint256 public sent;
|
|
19
|
+
// A counter of how many messages have been received by this contract.
|
|
20
|
+
uint256 public received;
|
|
21
|
+
|
|
22
|
+
// Keyed by domain, a counter of how many messages that have been sent
|
|
23
|
+
// from this contract to the domain.
|
|
24
|
+
mapping(uint32 => uint256) public sentTo;
|
|
25
|
+
// Keyed by domain, a counter of how many messages that have been received
|
|
26
|
+
// by this contract from the domain.
|
|
27
|
+
mapping(uint32 => uint256) public receivedFrom;
|
|
28
|
+
|
|
29
|
+
// ============ Events ============
|
|
30
|
+
event SentHelloWorld(
|
|
31
|
+
uint32 indexed origin,
|
|
32
|
+
uint32 indexed destination,
|
|
33
|
+
string message
|
|
34
|
+
);
|
|
35
|
+
event ReceivedHelloWorld(
|
|
36
|
+
uint32 indexed origin,
|
|
37
|
+
uint32 indexed destination,
|
|
38
|
+
bytes32 sender,
|
|
39
|
+
string message
|
|
40
|
+
);
|
|
41
|
+
event HandleGasAmountSet(
|
|
42
|
+
uint32 indexed destination,
|
|
43
|
+
uint256 handleGasAmount
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
constructor(address _mailbox, address _hook) Router(_mailbox) {
|
|
47
|
+
// Transfer ownership of the contract to deployer
|
|
48
|
+
_transferOwnership(msg.sender);
|
|
49
|
+
setHook(_hook);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ============ External functions ============
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @notice Sends a message to the _destinationDomain. Any msg.value is
|
|
56
|
+
* used as interchain gas payment.
|
|
57
|
+
* @param _destinationDomain The destination domain to send the message to.
|
|
58
|
+
* @param _message The message to send.
|
|
59
|
+
*/
|
|
60
|
+
function sendHelloWorld(
|
|
61
|
+
uint32 _destinationDomain,
|
|
62
|
+
string calldata _message
|
|
63
|
+
) external payable {
|
|
64
|
+
sent += 1;
|
|
65
|
+
sentTo[_destinationDomain] += 1;
|
|
66
|
+
_Router_dispatch(_destinationDomain, msg.value, bytes(_message));
|
|
67
|
+
emit SentHelloWorld(
|
|
68
|
+
mailbox.localDomain(),
|
|
69
|
+
_destinationDomain,
|
|
70
|
+
_message
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @notice Fetches the amount of gas that will be used when a message is
|
|
76
|
+
* dispatched to the given domain.
|
|
77
|
+
*/
|
|
78
|
+
function quoteDispatch(
|
|
79
|
+
uint32 _destinationDomain,
|
|
80
|
+
bytes calldata _message
|
|
81
|
+
) external view returns (uint256) {
|
|
82
|
+
return _Router_quoteDispatch(_destinationDomain, _message);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// ============ Internal functions ============
|
|
86
|
+
/**
|
|
87
|
+
* @notice Handles a message from a remote router.
|
|
88
|
+
* @dev Only called for messages sent from a remote router, as enforced by Router.sol.
|
|
89
|
+
* @param _origin The domain of the origin of the message.
|
|
90
|
+
* @param _sender The sender of the message.
|
|
91
|
+
* @param _message The message body.
|
|
92
|
+
*/
|
|
93
|
+
function _handle(
|
|
94
|
+
uint32 _origin,
|
|
95
|
+
bytes32 _sender,
|
|
96
|
+
bytes calldata _message
|
|
97
|
+
) internal override {
|
|
98
|
+
received += 1;
|
|
99
|
+
receivedFrom[_origin] += 1;
|
|
100
|
+
emit ReceivedHelloWorld(
|
|
101
|
+
_origin,
|
|
102
|
+
mailbox.localDomain(),
|
|
103
|
+
_sender,
|
|
104
|
+
string(_message)
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BigNumber, ethers } from 'ethers';
|
|
2
|
+
import { ChainMap, ChainName, HyperlaneContracts, HyperlaneContractsMap, HyperlaneCore, MultiProvider, RouterApp } from '@humanode-hyperlane/sdk';
|
|
3
|
+
import { Address } from '@humanode-hyperlane/utils';
|
|
4
|
+
import { HelloWorld } from '../types/index.js';
|
|
5
|
+
import { HelloWorldFactories } from './contracts.js';
|
|
6
|
+
import { StatCounts } from './types.js';
|
|
7
|
+
export declare class HelloWorldApp extends RouterApp<HelloWorldFactories> {
|
|
8
|
+
readonly core: HyperlaneCore;
|
|
9
|
+
constructor(core: HyperlaneCore, contractsMap: HyperlaneContractsMap<HelloWorldFactories>, multiProvider: MultiProvider, foreignDeployments?: ChainMap<Address>);
|
|
10
|
+
router(contracts: HyperlaneContracts<HelloWorldFactories>): HelloWorld;
|
|
11
|
+
sendHelloWorld(from: ChainName, to: ChainName, message: string, value: BigNumber): Promise<ethers.ContractReceipt>;
|
|
12
|
+
waitForMessageReceipt(receipt: ethers.ContractReceipt): Promise<ethers.ContractReceipt[]>;
|
|
13
|
+
waitForMessageProcessed(receipt: ethers.ContractReceipt): Promise<void>;
|
|
14
|
+
channelStats(from: ChainName, to: ChainName): Promise<StatCounts>;
|
|
15
|
+
stats(): Promise<ChainMap<ChainMap<StatCounts>>>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EACL,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,SAAS,EACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,OAAO,EAGR,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,aAAc,SAAQ,SAAS,CAAC,mBAAmB,CAAC;aAE7C,IAAI,EAAE,aAAa;gBAAnB,IAAI,EAAE,aAAa,EACnC,YAAY,EAAE,qBAAqB,CAAC,mBAAmB,CAAC,EACxD,aAAa,EAAE,aAAa,EAC5B,kBAAkB,GAAE,QAAQ,CAAC,OAAO,CAAM;IAU5C,MAAM,CAAC,SAAS,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,GAAG,UAAU;IAIhE,cAAc,CAClB,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,SAAS,EACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,SAAS,GACf,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;IA4B5B,qBAAqB,CACzB,OAAO,EAAE,MAAM,CAAC,eAAe,GAC9B,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;IAI9B,uBAAuB,CAC3B,OAAO,EAAE,MAAM,CAAC,eAAe,GAC9B,OAAO,CAAC,IAAI,CAAC;IAIV,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC;IAWjE,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;CAevD"}
|
package/dist/app/app.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RouterApp, } from '@humanode-hyperlane/sdk';
|
|
2
|
+
import { addBufferToGasLimit, rootLogger, } from '@humanode-hyperlane/utils';
|
|
3
|
+
export class HelloWorldApp extends RouterApp {
|
|
4
|
+
core;
|
|
5
|
+
constructor(core, contractsMap, multiProvider, foreignDeployments = {}) {
|
|
6
|
+
super(contractsMap, multiProvider, rootLogger.child({ module: 'HelloWorldApp' }), foreignDeployments);
|
|
7
|
+
this.core = core;
|
|
8
|
+
}
|
|
9
|
+
router(contracts) {
|
|
10
|
+
return contracts.router;
|
|
11
|
+
}
|
|
12
|
+
async sendHelloWorld(from, to, message, value) {
|
|
13
|
+
const sender = this.getContracts(from).router;
|
|
14
|
+
const toDomain = this.multiProvider.getDomainId(to);
|
|
15
|
+
const { blocks, transactionOverrides } = this.multiProvider.getChainMetadata(from);
|
|
16
|
+
// apply gas buffer due to https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/634
|
|
17
|
+
const estimated = await sender.estimateGas.sendHelloWorld(toDomain, message, { ...transactionOverrides, value });
|
|
18
|
+
const quote = await sender.quoteDispatch(toDomain, message);
|
|
19
|
+
const tx = await sender.sendHelloWorld(toDomain, message, {
|
|
20
|
+
gasLimit: addBufferToGasLimit(estimated),
|
|
21
|
+
...transactionOverrides,
|
|
22
|
+
value: value.add(quote),
|
|
23
|
+
});
|
|
24
|
+
this.logger.info('Sending hello message', {
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
message,
|
|
28
|
+
tx,
|
|
29
|
+
});
|
|
30
|
+
return tx.wait(blocks?.confirmations ?? 1);
|
|
31
|
+
}
|
|
32
|
+
async waitForMessageReceipt(receipt) {
|
|
33
|
+
return this.core.waitForMessageProcessing(receipt);
|
|
34
|
+
}
|
|
35
|
+
async waitForMessageProcessed(receipt) {
|
|
36
|
+
return this.core.waitForMessageProcessed(receipt);
|
|
37
|
+
}
|
|
38
|
+
async channelStats(from, to) {
|
|
39
|
+
const sent = await this.getContracts(from).router.sentTo(this.multiProvider.getDomainId(to));
|
|
40
|
+
const received = await this.getContracts(to).router.receivedFrom(this.multiProvider.getDomainId(from));
|
|
41
|
+
return { sent: sent.toNumber(), received: received.toNumber() };
|
|
42
|
+
}
|
|
43
|
+
async stats() {
|
|
44
|
+
const entries = await Promise.all(this.chains().map(async (source) => {
|
|
45
|
+
const remoteChains = await this.remoteChains(source);
|
|
46
|
+
const destinationEntries = await Promise.all(remoteChains.map(async (destination) => [
|
|
47
|
+
destination,
|
|
48
|
+
await this.channelStats(source, destination),
|
|
49
|
+
]));
|
|
50
|
+
return [source, Object.fromEntries(destinationEntries)];
|
|
51
|
+
}));
|
|
52
|
+
return Object.fromEntries(entries);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,SAAS,GACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,mBAAmB,EACnB,UAAU,GACX,MAAM,2BAA2B,CAAC;AAOnC,MAAM,OAAO,aAAc,SAAQ,SAA8B;IAE7C;IADlB,YACkB,IAAmB,EACnC,YAAwD,EACxD,aAA4B,EAC5B,qBAAwC,EAAE;QAE1C,KAAK,CACH,YAAY,EACZ,aAAa,EACb,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,EAC7C,kBAAkB,CACnB,CAAC;QAVc,SAAI,GAAJ,IAAI,CAAe;IAWrC,CAAC;IAED,MAAM,CAAC,SAAkD;QACvD,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,IAAe,EACf,EAAa,EACb,OAAe,EACf,KAAgB;QAEhB,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QAC9C,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACpD,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,GACpC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAE5C,yFAAyF;QACzF,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,cAAc,CACvD,QAAQ,EACR,OAAO,EACP,EAAE,GAAG,oBAAoB,EAAE,KAAK,EAAE,CACnC,CAAC;QAEF,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC5D,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE;YACxD,QAAQ,EAAE,mBAAmB,CAAC,SAAS,CAAC;YACxC,GAAG,oBAAoB;YACvB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;SACxB,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YACxC,IAAI;YACJ,EAAE;YACF,OAAO;YACP,EAAE;SACH,CAAC,CAAC;QACH,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,IAAI,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,OAA+B;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,OAA+B;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAe,EAAE,EAAa;QAC/C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CACtD,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,CACnC,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAC9D,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CACrC,CAAC;QAEF,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,GAA6C,MAAM,OAAO,CAAC,GAAG,CACzE,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACjC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YACrD,MAAM,kBAAkB,GAAG,MAAM,OAAO,CAAC,GAAG,CAC1C,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC;gBACtC,WAAW;gBACX,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC;aAC7C,CAAC,CACH,CAAC;YACF,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CACH,CAAC;QACF,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/app/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,mBAAmB;;CAE/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/app/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,IAAI,mBAAmB,EAAE;CAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/app/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/app/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HyperlaneRouterChecker } from '@humanode-hyperlane/sdk';
|
|
2
|
+
import { HelloWorldApp } from '../app/app.js';
|
|
3
|
+
import { HelloWorldFactories } from '../app/contracts.js';
|
|
4
|
+
import { HelloWorldConfig } from './config.js';
|
|
5
|
+
export declare class HelloWorldChecker extends HyperlaneRouterChecker<HelloWorldFactories, HelloWorldApp, HelloWorldConfig> {
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/deploy/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,qBAAa,iBAAkB,SAAQ,sBAAsB,CAC3D,mBAAmB,EACnB,aAAa,EACb,gBAAgB,CACjB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/deploy/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAOjE,MAAM,OAAO,iBAAkB,SAAQ,sBAItC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/deploy/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAG5C,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/deploy/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAK7D,qEAAqE;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,aAAa;CACjB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChainName, ContractVerifier, HyperlaneContracts, HyperlaneIsmFactory, HyperlaneRouterDeployer, MultiProvider } from '@humanode-hyperlane/sdk';
|
|
2
|
+
import { HelloWorldFactories } from '../app/contracts.js';
|
|
3
|
+
import { HelloWorld } from '../types/index.js';
|
|
4
|
+
import { HelloWorldConfig } from './config.js';
|
|
5
|
+
export declare class HelloWorldDeployer extends HyperlaneRouterDeployer<HelloWorldConfig, HelloWorldFactories> {
|
|
6
|
+
readonly ismFactory?: HyperlaneIsmFactory | undefined;
|
|
7
|
+
readonly contractVerifier?: ContractVerifier | undefined;
|
|
8
|
+
constructor(multiProvider: MultiProvider, ismFactory?: HyperlaneIsmFactory | undefined, contractVerifier?: ContractVerifier | undefined, concurrentDeploy?: boolean);
|
|
9
|
+
router(contracts: HyperlaneContracts<HelloWorldFactories>): HelloWorld;
|
|
10
|
+
deployContracts(chain: ChainName, config: HelloWorldConfig): Promise<{
|
|
11
|
+
router: HelloWorld;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/deploy/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACd,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAuB,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,qBAAa,kBAAmB,SAAQ,uBAAuB,CAC7D,gBAAgB,EAChB,mBAAmB,CACpB;IAGG,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB;IACzC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB;gBAF5C,aAAa,EAAE,aAAa,EACnB,UAAU,CAAC,EAAE,mBAAmB,YAAA,EAChC,gBAAgB,CAAC,EAAE,gBAAgB,YAAA,EAC5C,gBAAgB,UAAQ;IAS1B,MAAM,CAAC,SAAS,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,GAAG,UAAU;IAMhE,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB;;;CAUjE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
import { HyperlaneRouterDeployer, } from '@humanode-hyperlane/sdk';
|
|
3
|
+
import { helloWorldFactories } from '../app/contracts.js';
|
|
4
|
+
export class HelloWorldDeployer extends HyperlaneRouterDeployer {
|
|
5
|
+
ismFactory;
|
|
6
|
+
contractVerifier;
|
|
7
|
+
constructor(multiProvider, ismFactory, contractVerifier, concurrentDeploy = false) {
|
|
8
|
+
super(multiProvider, helloWorldFactories, {
|
|
9
|
+
ismFactory,
|
|
10
|
+
contractVerifier,
|
|
11
|
+
concurrentDeploy,
|
|
12
|
+
});
|
|
13
|
+
this.ismFactory = ismFactory;
|
|
14
|
+
this.contractVerifier = contractVerifier;
|
|
15
|
+
}
|
|
16
|
+
router(contracts) {
|
|
17
|
+
return contracts.router;
|
|
18
|
+
}
|
|
19
|
+
// Custom contract deployment logic can go here
|
|
20
|
+
// If no custom logic is needed, call deployContract for the router
|
|
21
|
+
async deployContracts(chain, config) {
|
|
22
|
+
const router = await this.deployContract(chain, 'router', [
|
|
23
|
+
config.mailbox,
|
|
24
|
+
ethers.constants.AddressZero,
|
|
25
|
+
]);
|
|
26
|
+
await super.configureClient(chain, router, config);
|
|
27
|
+
return {
|
|
28
|
+
router,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=deploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/deploy/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAKL,uBAAuB,GAExB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAuB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAK/E,MAAM,OAAO,kBAAmB,SAAQ,uBAGvC;IAGY;IACA;IAHX,YACE,aAA4B,EACnB,UAAgC,EAChC,gBAAmC,EAC5C,gBAAgB,GAAG,KAAK;QAExB,KAAK,CAAC,aAAa,EAAE,mBAAmB,EAAE;YACxC,UAAU;YACV,gBAAgB;YAChB,gBAAgB;SACjB,CAAC,CAAC;QARM,eAAU,GAAV,UAAU,CAAsB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAmB;IAQ9C,CAAC;IAED,MAAM,CAAC,SAAkD;QACvD,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,+CAA+C;IAC/C,mEAAmE;IACnE,KAAK,CAAC,eAAe,CAAC,KAAgB,EAAE,MAAwB;QAC9D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE;YACxD,MAAM,CAAC,OAAO;YACd,MAAM,CAAC,SAAS,CAAC,WAAW;SAC7B,CAAC,CAAC;QACH,MAAM,KAAK,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACnD,OAAO;YACL,MAAM;SACP,CAAC;IACJ,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { HelloWorldApp } from './app/app.js';
|
|
2
|
+
export { HelloWorldFactories, helloWorldFactories } from './app/contracts.js';
|
|
3
|
+
export { HelloWorldChecker } from './deploy/check.js';
|
|
4
|
+
export { HelloWorldConfig } from './deploy/config.js';
|
|
5
|
+
export { HelloWorldDeployer } from './deploy/deploy.js';
|
|
6
|
+
export { EvmHelloWorldAdapter } from './multiProtocolApp/evmAdapter.js';
|
|
7
|
+
export { HelloMultiProtocolApp } from './multiProtocolApp/multiProtocolApp.js';
|
|
8
|
+
export { SealevelHelloWorldAdapter } from './multiProtocolApp/sealevelAdapter.js';
|
|
9
|
+
export { IHelloWorldAdapter } from './multiProtocolApp/types.js';
|
|
10
|
+
export * as types from './types/index.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { HelloWorldApp } from './app/app.js';
|
|
2
|
+
export { helloWorldFactories } from './app/contracts.js';
|
|
3
|
+
export { HelloWorldChecker } from './deploy/check.js';
|
|
4
|
+
export { HelloWorldDeployer } from './deploy/deploy.js';
|
|
5
|
+
export { EvmHelloWorldAdapter } from './multiProtocolApp/evmAdapter.js';
|
|
6
|
+
export { HelloMultiProtocolApp } from './multiProtocolApp/multiProtocolApp.js';
|
|
7
|
+
export { SealevelHelloWorldAdapter } from './multiProtocolApp/sealevelAdapter.js';
|
|
8
|
+
export * as types from './types/index.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAuB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChainName, EthersV5Transaction, EvmRouterAdapter, MultiProtocolProvider } from '@humanode-hyperlane/sdk';
|
|
2
|
+
import { Address } from '@humanode-hyperlane/utils';
|
|
3
|
+
import { HelloWorld } from '../types/index.js';
|
|
4
|
+
import { IHelloWorldAdapter } from './types.js';
|
|
5
|
+
export declare class EvmHelloWorldAdapter extends EvmRouterAdapter implements IHelloWorldAdapter {
|
|
6
|
+
readonly chainName: ChainName;
|
|
7
|
+
readonly multiProvider: MultiProtocolProvider;
|
|
8
|
+
readonly addresses: {
|
|
9
|
+
router: Address;
|
|
10
|
+
mailbox: Address;
|
|
11
|
+
};
|
|
12
|
+
constructor(chainName: ChainName, multiProvider: MultiProtocolProvider, addresses: {
|
|
13
|
+
router: Address;
|
|
14
|
+
mailbox: Address;
|
|
15
|
+
});
|
|
16
|
+
populateSendHelloTx(destination: ChainName, message: string, value: string, sender: Address): Promise<EthersV5Transaction>;
|
|
17
|
+
sentStat(destination: ChainName): Promise<number>;
|
|
18
|
+
getConnectedContract(): HelloWorld;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=evmAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evmAdapter.d.ts","sourceRoot":"","sources":["../../src/multiProtocolApp/evmAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAuB,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAuB,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,qBAAa,oBACX,SAAQ,gBACR,YAAW,kBAAkB;aAGX,SAAS,EAAE,SAAS;aACpB,aAAa,EAAE,qBAAqB;aACpC,SAAS,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;gBAFhD,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,qBAAqB,EACpC,SAAS,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;IAK5D,mBAAmB,CACvB,WAAW,EAAE,SAAS,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,mBAAmB,CAAC;IAqCzB,QAAQ,CAAC,WAAW,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAO9C,oBAAoB,IAAI,UAAU;CAM5C"}
|