From 4d59ce3f3c8008e4f468820fd1e45d582046ed22 Mon Sep 17 00:00:00 2001 From: Austin Date: Fri, 15 Mar 2024 08:17:35 -0500 Subject: [PATCH 1/3] feat: export reward token info type --- src/types/contracts/swap/model.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/contracts/swap/model.ts b/src/types/contracts/swap/model.ts index ba38651..7f4d3c4 100644 --- a/src/types/contracts/swap/model.ts +++ b/src/types/contracts/swap/model.ts @@ -155,4 +155,5 @@ export type { Path, Paths, ParsedSwapResponse, + RewardTokenInfo, }; From 709b7937b0cc5e71da79938617301c1a84c24171 Mon Sep 17 00:00:00 2001 From: Austin Date: Fri, 15 Mar 2024 08:17:59 -0500 Subject: [PATCH 2/3] test: update description --- src/lib/utils.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/utils.test.ts b/src/lib/utils.test.ts index 7a258ee..260892e 100644 --- a/src/lib/utils.test.ts +++ b/src/lib/utils.test.ts @@ -42,7 +42,7 @@ test('Generates random padding of length 8-15', () => { expect(generatePadding()).toBe('AAAAAAAA'); }); -test('It converts token from U denom V2', () => { +test('It converts token from U denom', () => { expect(convertCoinFromUDenom(1000, 2)).toStrictEqual(BigNumber(10)); expect(convertCoinFromUDenom('1000', 2)).toStrictEqual(BigNumber(10)); expect(convertCoinFromUDenom('1000000000000000000000000000', 2)).toStrictEqual(BigNumber('10000000000000000000000000')); @@ -52,7 +52,7 @@ test('It converts token from U denom V2', () => { expect(convertCoinFromUDenom(BigNumber('987654321987654321987654321'), 18)).toStrictEqual(BigNumber('987654321.987654321987654321')); }); -test('It converts token to U denom V2', () => { +test('It converts token to U denom', () => { const testBigNumber1 = BigNumber(1000); expect(convertCoinToUDenom(testBigNumber1, 2)).toBe('100000'); const testBigNumber2 = BigNumber('0.123456789123456789'); From 031fa8d9684d14c79014e9a50cb80498fd435d18 Mon Sep 17 00:00:00 2001 From: Austin Date: Fri, 15 Mar 2024 08:18:43 -0500 Subject: [PATCH 3/3] chore: changeset --- .changeset/neat-moles-learn.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/neat-moles-learn.md diff --git a/.changeset/neat-moles-learn.md b/.changeset/neat-moles-learn.md new file mode 100644 index 0000000..9e82219 --- /dev/null +++ b/.changeset/neat-moles-learn.md @@ -0,0 +1,5 @@ +--- +"@shadeprotocol/shadejs": patch +--- + +export type for reward tokens, update test description