From fc6e91dd96cd2b50d01b6d78e6b6709c612e9b44 Mon Sep 17 00:00:00 2001 From: Nagaprasadvr Date: Mon, 4 Mar 2024 10:31:39 +0530 Subject: [PATCH 1/3] fix updateBaseAsset cli --- packages/cli/src/actions.ts | 3 ++- packages/cli/src/groups/protocol.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/actions.ts b/packages/cli/src/actions.ts index fc00af91e..373d0ed2e 100644 --- a/packages/cli/src/actions.ts +++ b/packages/cli/src/actions.ts @@ -183,6 +183,7 @@ export const updateBaseAsset = async (opts: Opts) => { oracleAddress, riskCategory, } = opts; + const enabledArg = enabled === 'true' ? true : false; if (!oraclePrice && !oracleAddress) { throw new Error('Either oraclePrice or oracleAddress must be provided'); } @@ -192,7 +193,7 @@ export const updateBaseAsset = async (opts: Opts) => { try { const { response } = await cvg.protocol().updateBaseAsset({ authority: cvg.rpc().getDefaultFeePayer(), - enabled, + enabled: enabledArg, index, priceOracle: { source: oracleSource, diff --git a/packages/cli/src/groups/protocol.ts b/packages/cli/src/groups/protocol.ts index 8d1464d19..40fddeb8a 100644 --- a/packages/cli/src/groups/protocol.ts +++ b/packages/cli/src/groups/protocol.ts @@ -165,7 +165,7 @@ const updateBaseAssetCmd = (c: Command) => { flags: '--enabled ', description: 'enabled', - defaultValue: true, + defaultValue: 'true', }, { flags: '--oracle-source ', From 2162301240f2a1e6ab709119ed4abb66ca78493f Mon Sep 17 00:00:00 2001 From: Nagaprasadvr Date: Mon, 4 Mar 2024 10:36:36 +0530 Subject: [PATCH 2/3] add changeset --- packages/cli/CHANGELOG.md | 6 ++++++ packages/cli/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index bb9cb6b73..fb380b4eb 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @convergence-rfq/cli +## 4.5.35 + +### Major Changes + +- fix inputs for updateBaseAsset command + ## 4.5.34 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 6e3e74d40..56e362f74 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@convergence-rfq/cli", "description": "Official Convergence CLI", - "version": "4.5.34", + "version": "4.5.35", "license": "MIT", "publishConfig": { "access": "public" From 0c137df8e1b3f3e6c671e4cb09674fc529d8948a Mon Sep 17 00:00:00 2001 From: Nagaprasadvr Date: Mon, 4 Mar 2024 10:40:39 +0530 Subject: [PATCH 3/3] add changeset --- packages/cli/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index fb380b4eb..22f78760b 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -2,7 +2,7 @@ ## 4.5.35 -### Major Changes +### Patch Changes - fix inputs for updateBaseAsset command