From 5e41d419afbf15db73138c40b517a9b9ad3d66cd Mon Sep 17 00:00:00 2001 From: Chloe <44501120+chloezxyy@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:58:46 +0800 Subject: [PATCH] feat(core): add flag for allowing save tx (#129) * feat(core): add flag for allowing save tx * fix: eslint and cleanup --- cypress/fixtures/flags.json | 12 ++++++++++++ package.json | 2 +- pnpm-lock.yaml | 14 +++++++------- src/pages/api/v0/settings/flags.ts | 10 ++++++++++ 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/cypress/fixtures/flags.json b/cypress/fixtures/flags.json index c613593..80d0c9e 100644 --- a/cypress/fixtures/flags.json +++ b/cypress/fixtures/flags.json @@ -348,5 +348,17 @@ ], "platforms": ["ios", "android", "web"], "app": ["MOBILE_LW"] + }, + { + "id": "save_tx", + "name": "Allow to save tx", + "stage": "public", + "version": ">=2.37.0", + "description": "Allow to save tx in mainnet", + "networks": [ + "MainNet" + ], + "platforms": ["ios", "android", "web"], + "app": ["MOBILE_LW"] } ] diff --git a/package.json b/package.json index f7a77b2..f9b71c9 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@tailwindcss/line-clamp": "^0.4.4", "@waveshq/standard-defichain-jellyfishsdk": "^1.0.4", "@waveshq/standard-web": "^1.0.4", - "@waveshq/walletkit-core": "^1.3.8", + "@waveshq/walletkit-core": "^1.3.10", "autoprefixer": "^10.4.14", "bignumber.js": "^9.1.1", "clsx": "^1.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bae2a2d..e5b7c37 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ dependencies: specifier: ^1.0.4 version: 1.0.4(@babel/core@7.22.5)(@next/env@13.4.7)(redux@4.2.1) '@waveshq/walletkit-core': - specifier: ^1.3.8 - version: 1.3.8 + specifier: ^1.3.10 + version: 1.3.10 autoprefixer: specifier: ^10.4.14 version: 10.4.14(postcss@8.4.24) @@ -1437,7 +1437,7 @@ packages: peerDependencies: defichain: ^3.31.1 dependencies: - bignumber.js: 9.1.1 + bignumber.js: 9.1.2 bn.js: 5.2.1 defichain: 3.31.1 smart-buffer: 4.2.0 @@ -1465,7 +1465,7 @@ packages: defichain: ^3.31.1 dependencies: '@types/lossless-json': 1.0.1 - bignumber.js: 9.1.1 + bignumber.js: 9.1.2 defichain: 3.31.1 lossless-json: 1.0.5 dev: false @@ -1475,7 +1475,7 @@ packages: peerDependencies: defichain: ^3.31.1 dependencies: - bignumber.js: 9.1.1 + bignumber.js: 9.1.2 defichain: 3.31.1 dev: false @@ -3093,8 +3093,8 @@ packages: - supports-color dev: false - /@waveshq/walletkit-core@1.3.8: - resolution: {integrity: sha512-e1NHf+9OerCCq3kqtsUOd+fn3FyvBlQGDRpjlhyGRxdiuLhc3EuyJWbFzglvmPf97aj726Rgh8NrvIlC+8JssQ==} + /@waveshq/walletkit-core@1.3.10: + resolution: {integrity: sha512-bK8fV9v+8m7W0cbN9fFesi3wiOff+ev6y9LzQFhSiH0pcm8Bnk7kb4DL3paqL9tqUi6nw8RbFbYloLYLEuMuRg==} dependencies: bignumber.js: 9.1.2 ethers: 5.7.2 diff --git a/src/pages/api/v0/settings/flags.ts b/src/pages/api/v0/settings/flags.ts index f2962b6..d3d8be9 100644 --- a/src/pages/api/v0/settings/flags.ts +++ b/src/pages/api/v0/settings/flags.ts @@ -374,5 +374,15 @@ export default async function handle( platforms: ["ios", "android", "web"], app: ["MOBILE_LW"], }, + { + id: "save_tx", + name: "Allow to save tx", + stage: "public", + version: ">=2.37.0", + description: "Allow to save tx in mainnet", + networks: [EnvironmentNetwork.MainNet], + platforms: ["ios", "android", "web"], + app: ["MOBILE_LW"], + }, ]); }