From 79e934025c337440d4f7e6a8cddb392b8f513c40 Mon Sep 17 00:00:00 2001 From: Hyungsuk Kang Date: Sun, 13 Jun 2021 16:26:08 +0900 Subject: [PATCH] Update opportunity types (#5574) * Update key for specs * Update opportunity.ts * Update opportunity.ts * Set opportunity Unreachable for now opportunity needs to be checked for outdated types * Update packages/apps-config/src/endpoints/testing.ts Co-authored-by: Jaco --- packages/apps-config/src/api/spec/index.ts | 2 +- packages/apps-config/src/api/spec/opportunity.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index 36de72dffa..5142cca2f0 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -170,7 +170,7 @@ const spec: Record = { 'node-polkadex': polkadex, 'nodle-chain': nodle, 'oak-testnet': oakTestnet, - 'opportunity-node': opportunity, + opportunity, 'origintrail-parachain': origintrail, parami, 'phala-collator': phalaParachain, diff --git a/packages/apps-config/src/api/spec/opportunity.ts b/packages/apps-config/src/api/spec/opportunity.ts index eb800a0d40..295866ebd5 100644 --- a/packages/apps-config/src/api/spec/opportunity.ts +++ b/packages/apps-config/src/api/spec/opportunity.ts @@ -38,7 +38,15 @@ const definitions: OverrideBundleDefinition = { ] }, AmountOf: 'Amount', - Amount: 'i128' + Amount: 'i128', + DataVersion: 'u64', + RequestIdentifier: 'u64', + SpecIndex: 'Vec', + CDP: { + liquidation_fee: ('Balance'), + max_collateraization_rate: ('U256'), + stability_fee: ('Balance') + } } } ]