From 612d4163ac8821889ad67f8b9422560e498f3200 Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Thu, 4 Jan 2024 11:54:34 -0500 Subject: [PATCH] Add mailbox version const to SDK (#3125) --- .changeset/healthy-waves-cheat.md | 5 +++++ typescript/sdk/src/consts/mailbox.ts | 2 ++ typescript/sdk/src/index.ts | 1 + 3 files changed, 8 insertions(+) create mode 100644 .changeset/healthy-waves-cheat.md create mode 100644 typescript/sdk/src/consts/mailbox.ts diff --git a/.changeset/healthy-waves-cheat.md b/.changeset/healthy-waves-cheat.md new file mode 100644 index 0000000000..c2c679974f --- /dev/null +++ b/.changeset/healthy-waves-cheat.md @@ -0,0 +1,5 @@ +--- +'@hyperlane-xyz/sdk': patch +--- + +Add mailbox version const to SDK diff --git a/typescript/sdk/src/consts/mailbox.ts b/typescript/sdk/src/consts/mailbox.ts new file mode 100644 index 0000000000..b1e3d5be48 --- /dev/null +++ b/typescript/sdk/src/consts/mailbox.ts @@ -0,0 +1,2 @@ +// Pairs well with /utils/src/messages.ts#formatMessage +export const MAILBOX_VERSION = 3; diff --git a/typescript/sdk/src/index.ts b/typescript/sdk/src/index.ts index 06195db0d0..f6616b3844 100644 --- a/typescript/sdk/src/index.ts +++ b/typescript/sdk/src/index.ts @@ -29,6 +29,7 @@ export { hyperlaneContractAddresses, hyperlaneEnvironments, } from './consts/environments'; +export { MAILBOX_VERSION } from './consts/mailbox'; export { defaultMultisigConfigs } from './consts/multisigIsm'; export { SEALEVEL_SPL_NOOP_ADDRESS } from './consts/sealevel'; export {