From a22fa124bfb42faeac3d5756b18cf278e3182525 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Tue, 12 Nov 2024 16:32:30 -0800 Subject: [PATCH 1/2] fix(orchestration): denomAmounts must be non-negative --- packages/orchestration/src/typeGuards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/orchestration/src/typeGuards.js b/packages/orchestration/src/typeGuards.js index 6a7571959a9..48d11aa7e43 100644 --- a/packages/orchestration/src/typeGuards.js +++ b/packages/orchestration/src/typeGuards.js @@ -117,7 +117,7 @@ export const DenomInfoShape = { }; /** @type {TypedPattern} */ -export const DenomAmountShape = { denom: DenomShape, value: M.bigint() }; +export const DenomAmountShape = { denom: DenomShape, value: M.nat() }; /** @type {TypedPattern>} */ export const AnyNatAmountShape = harden({ From 3a297f4686208867638ba837c494f48b57d1c774 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Tue, 12 Nov 2024 17:08:10 -0800 Subject: [PATCH 2/2] fixup! update snapshot --- .../orchestration-imports.test.js.md | 6 +++--- .../orchestration-imports.test.js.snap | Bin 3430 -> 3435 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builders/test/snapshots/orchestration-imports.test.js.md b/packages/builders/test/snapshots/orchestration-imports.test.js.md index 4ef4fc7dc4e..ecdfe224713 100644 --- a/packages/builders/test/snapshots/orchestration-imports.test.js.md +++ b/packages/builders/test/snapshots/orchestration-imports.test.js.md @@ -25,7 +25,7 @@ Generated by [AVA](https://avajs.dev). denom: Object @match:string { payload: [], }, - value: Object @match:bigint { + value: Object @match:nat { payload: [], }, }, @@ -174,7 +174,7 @@ Generated by [AVA](https://avajs.dev). denom: Object @match:string { payload: [], }, - value: Object @match:bigint { + value: Object @match:nat { payload: [], }, }, @@ -211,7 +211,7 @@ Generated by [AVA](https://avajs.dev). denom: Object @match:string { payload: [], }, - value: Object @match:bigint { + value: Object @match:nat { payload: [], }, }, diff --git a/packages/builders/test/snapshots/orchestration-imports.test.js.snap b/packages/builders/test/snapshots/orchestration-imports.test.js.snap index 32dc1cdcc424341f1c755a8cd6fa3abfb78c1fd4..36954c0af3c647e00ebe7453400faf728314b59c 100644 GIT binary patch literal 3435 zcmV-x4V3ahRzVXwiu^o9*e9w+= zP;dTGWgm+O00000000BcT5D_^)fN6`*K6;?-iP0>1lwV4?>ayTfxLLcab8YHoDdTT z6w>kT*gNs=%w}fRiGfx;N<|BzgqBiTML>a43Y4@WX{$t03Q`1Z0ktJ*B|>OR0|-IX zmZ%jek7j0eXYZWd9U`Pk_{Yj~zwbNu+{c`I?%92Kd@L;|Ce>ShC}^UV7Iw^7!cWMG zm^e>X5-CB|6kZc$sY}?Al@(1DRf*54DOpo*c{rKmHGcEJr*70h|Kq$|=iLCl1K?Qz ze**9kfU`K@G7b!! zonbZGSvG5zGrX4Jr9-0%FR9~#GLqG~%u0QgAqIwrHmp^d9kZJO+edQRn4FW6#V%Lz zQZg+l!v^;_YiPY9Yw`s}L*W``21dn#SAGlx?`!FoF2()jISAn5FDM( z3dz+fyU-6Zczr_ODJ%E{pA^;#T1rl;2In^n$CuQXauu(p4CucM)R^%aI6*)D3S5jN21QN*>^3+(qAZ+C>N z9vRyzBs9(y;k+4MOQaUbit(O@!BrXb!(QMuO0SJ@K9kN%NrUg@s!n==Q##WJoZ};k zdh6dj-L=dItfsVv2p2I8tJ$=unQ@??NcaGeDw>@XxB7rPsNyUq#lt?}ajJ+{RD{9# zbe-p*4>;rlj{1QA_<*3F*f`fd0by|d!l##WMg714l`L@T*3>QY1FNa-V#i7J10q!{ zahyaya0gYabeu##@HkbhiExb*IbKOF67{V+&L@PG`eR;J)s8^Qkve^M(E~Ra9a(+z!*gzH6J1E>+13)$a+)Y)y-JLcx=r39^5Ex|dikxHw zI8J6BSV7tFK(yHk+Rq3Y#LBh`R!Tz&5h_$z2aYo$(vyK=M5@X1(`lJcGVrUFV7CE( z%)*A_!)99Gt}OyyK}yI;QJOFiAA@+N_;gNSx(n4hdNa=%-s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