From 66a8aa2a1e0f30d662d667940245c3b24f63b81a Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Mon, 24 Jun 2024 18:05:55 -0500 Subject: [PATCH] fixup! feat: vat-safe denomHash using noble sha256 --- packages/orchestration/src/utils/denomHash.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/orchestration/src/utils/denomHash.js b/packages/orchestration/src/utils/denomHash.js index 9b36a3366862..9d0adbc804b5 100644 --- a/packages/orchestration/src/utils/denomHash.js +++ b/packages/orchestration/src/utils/denomHash.js @@ -10,6 +10,15 @@ function toHex(buffer) { .join(''); } +/** + * cf. https://tutorials.cosmos.network/tutorials/6-ibc-dev/ + * + * @param {object} opts + * @param {string} [opts.portId] + * @param {string} [opts.channelId] required unless `path` is supplied + * @param {string} [opts.path] alternative to portId, channelId + * @param {string} opts.denom base denom + */ export const denomHash = ({ portId = 'transfer', channelId = /** @type {string | undefined} */ (undefined),