diff --git a/package.json b/package.json index 41a007a3..e68feb2d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "4.1.14", + "version": "4.1.15", "private": true, "engines": { "node": ">=16" diff --git a/packages/sdk-core/package.json b/packages/sdk-core/package.json index 1225a87f..1d826dd1 100644 --- a/packages/sdk-core/package.json +++ b/packages/sdk-core/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/sdk-core", - "version": "4.1.14", + "version": "4.1.15", "description": "the core of acala network sdk", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/packages/sdk-homa/package.json b/packages/sdk-homa/package.json index 5fab5e88..321c5bd7 100644 --- a/packages/sdk-homa/package.json +++ b/packages/sdk-homa/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/sdk-homa", - "version": "4.1.14", + "version": "4.1.15", "description": "the homa sub module in acala network sdk", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/packages/sdk-loan/package.json b/packages/sdk-loan/package.json index 8bc0895f..20e03dba 100644 --- a/packages/sdk-loan/package.json +++ b/packages/sdk-loan/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/sdk-loan", - "version": "4.1.14", + "version": "4.1.15", "description": "the loan sub module in acala network sdk", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/packages/sdk-payment/package.json b/packages/sdk-payment/package.json index ef8b0431..128ce20f 100644 --- a/packages/sdk-payment/package.json +++ b/packages/sdk-payment/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/sdk-payment", - "version": "4.1.14", + "version": "4.1.15", "description": "the payment acala network sdk", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/packages/sdk-swap/package.json b/packages/sdk-swap/package.json index 902d7ccb..6f8e815e 100644 --- a/packages/sdk-swap/package.json +++ b/packages/sdk-swap/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/sdk-swap", - "version": "4.1.14", + "version": "4.1.15", "description": "the swap sub module in acala network sdk", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 105960df..f8d35388 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/sdk", - "version": "4.1.14", + "version": "4.1.15", "description": "acala network sdk", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/packages/sdk/src/incentive/index.ts b/packages/sdk/src/incentive/index.ts index f4148fd0..7d240984 100644 --- a/packages/sdk/src/incentive/index.ts +++ b/packages/sdk/src/incentive/index.ts @@ -109,9 +109,13 @@ export class Incentive implements BaseSDK { ); }); - // subscribe all pool infomations + // subscribe all pool information private poolInfos$ = memoize((): Observable => { return this.storages.poolInfos().observable.pipe( + map((data) => { + // omit NomineesElection + return data.filter((item) => !(item[0].args[0] as any).isNomineesElection); + }), map((data) => { const allRewardTokens = data.flatMap((item) => Array.from(item[1].rewards.entries()).map(([key]) => forceToCurrencyName(key)) diff --git a/packages/sdk/src/incentive/utils/get-deduction-endtime-configs.ts b/packages/sdk/src/incentive/utils/get-deduction-endtime-configs.ts index f6ea3eb8..005f41d1 100644 --- a/packages/sdk/src/incentive/utils/get-deduction-endtime-configs.ts +++ b/packages/sdk/src/incentive/utils/get-deduction-endtime-configs.ts @@ -21,7 +21,9 @@ export function getDeductionEndtimeConfigs( let call: CallFunction | null = null; try { - call = api.registry.createType('Call', data.asInline.toHex()) as unknown as CallFunction; + if (data.isInline) { + call = api.registry.createType('Call', data.asInline.toHex()) as unknown as CallFunction; + } } catch (error) { console.error(error); } diff --git a/packages/wormhole-portal/package.json b/packages/wormhole-portal/package.json index 2244fff3..65d86c61 100644 --- a/packages/wormhole-portal/package.json +++ b/packages/wormhole-portal/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/wormhole-portal", - "version": "4.1.14", + "version": "4.1.15", "description": "the wormhole wrapper for acala/karura network", "author": "Acala Developers ", "license": "Apache-2.0",