From 648f7993ba0eb3cb235f5c428b382c8d8cdd2d3b Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 28 Nov 2023 16:01:01 -0600 Subject: [PATCH 1/2] chore: update duplicate response type --- src/types/contracts/swap/response.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/contracts/swap/response.ts b/src/types/contracts/swap/response.ts index 53be769..2fd5421 100644 --- a/src/types/contracts/swap/response.ts +++ b/src/types/contracts/swap/response.ts @@ -113,7 +113,7 @@ type PairInfoResponse = { } } -type RewardTokenInfo = { +type RewardTokenInfoResponse = { token: Contract, decimals: number, reward_per_second: string, @@ -128,7 +128,7 @@ type StakingConfigResponse = { admin_auth: Contract, query_auth: Contract | null, total_amount_staked: string, - reward_tokens: RewardTokenInfo[], + reward_tokens: RewardTokenInfoResponse[], } export type { From b55aadb9f01ff158134353be7968ee0f033856e2 Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 28 Nov 2023 16:02:02 -0600 Subject: [PATCH 2/2] chore: add changeset --- .changeset/itchy-jobs-end.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/itchy-jobs-end.md diff --git a/.changeset/itchy-jobs-end.md b/.changeset/itchy-jobs-end.md new file mode 100644 index 0000000..cdb55df --- /dev/null +++ b/.changeset/itchy-jobs-end.md @@ -0,0 +1,5 @@ +--- +"@shadeprotocol/shadejs": patch +--- + +update the reward token staking response type since we had a duplicate type