From 5b0fc5264bff01385b6b973ea87e3476dff21c1b Mon Sep 17 00:00:00 2001 From: "Justin R. Evans" Date: Thu, 20 Jul 2023 08:16:01 -0400 Subject: [PATCH] Implement ledger integration improvements --- apps/namada-interface/.prettierrc | 3 +- apps/namada-interface/src/schema/index.ts | 18 ------------ .../src/types/environment.d.ts | 29 +++++++------------ 3 files changed, 12 insertions(+), 38 deletions(-) delete mode 100644 apps/namada-interface/src/schema/index.ts diff --git a/apps/namada-interface/.prettierrc b/apps/namada-interface/.prettierrc index f0eb61e0f7..193626a112 100644 --- a/apps/namada-interface/.prettierrc +++ b/apps/namada-interface/.prettierrc @@ -2,5 +2,6 @@ "trailingComma": "es5", "tabWidth": 2, "semi": true, - "singleQuote": false + "singleQuote": false, + "bracketSpacing": false } diff --git a/apps/namada-interface/src/schema/index.ts b/apps/namada-interface/src/schema/index.ts deleted file mode 100644 index 6259ebc1b4..0000000000 --- a/apps/namada-interface/src/schema/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -import BN from "bn.js"; - -export class TokenAmount { - micro: BN; - constructor(properties: { micro: BN }) { - this.micro = new BN(properties.micro); - } -} - -export const schemaAmount = new Map([ - [ - TokenAmount, - { - kind: "struct", - fields: [["micro", "u64"]], - }, - ], -]); diff --git a/apps/namada-interface/src/types/environment.d.ts b/apps/namada-interface/src/types/environment.d.ts index 36537b5a3a..ec60be9bfe 100644 --- a/apps/namada-interface/src/types/environment.d.ts +++ b/apps/namada-interface/src/types/environment.d.ts @@ -4,27 +4,18 @@ declare global { NODE_ENV: "development" | "production"; REACT_APP_LOCAL?: "true" | "false"; - // Default ledger - REACT_APP_LEDGER_URL?: string; - REACT_APP_LEDGER_PORT?: string; - REACT_APP_CHAIN_ID?: string; - REACT_APP_FAUCET?: string; + REACT_APP_NAMADA_ALIAS?: string; + REACT_APP_NAMADA_CHAIN_ID?: string; + REACT_APP_NAMADA_URL?: string; + REACT_APP_NAMADA_BECH32_PREFIX?: string; - // IBC Chain A - REACT_APP_CHAIN_A_ALIAS?: string; - REACT_APP_CHAIN_A_ID?: string; - REACT_APP_CHAIN_A_URL?: string; - REACT_APP_CHAIN_A_PORT?: string; - REACT_APP_CHAIN_A_FAUCET?: string; - REACT_APP_CHAIN_A_PORT_ID?: string; + REACT_APP_COSMOS_ALIAS?: string; + REACT_APP_COSMOS_CHAIN_ID?: string; + REACT_APP_COSMOS_CHAIN_URL?: string; - // IBC Chain B - REACT_APP_CHAIN_B_ALIAS?: string; - REACT_APP_CHAIN_B_ID?: string; - REACT_APP_CHAIN_B_URL?: string; - REACT_APP_CHAIN_B_PORT?: string; - REACT_APP_CHAIN_B_FAUCET?: string; - REACT_APP_CHAIN_B_PORT_ID?: string; + REACT_APP_OSMOSIS_ALIAS?: string; + REACT_APP_OSMOSIS_CHAIN_ID?: string; + REACT_APP_OSMOSIS_URL?: string; // CoinGecko REACT_APP_API_URL?: string;