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 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'); 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, };