From 0d6ee2d8737981273f1322b4e76e3745881d2a0a Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Tue, 30 Jul 2024 14:56:49 +0530 Subject: [PATCH 1/3] Rename token from photon to alnt --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 0557672..22cb233 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ REACT_APP_ETHEREUM_MAINNET_CHAIN_ID=1 REACT_APP_LACONICD_CHAIN_ID=laconic_9000-1 REACT_APP_REGISTRY_GQL_ENDPOINT=http://localhost:9473/api REACT_APP_LACONICD_RPC_ENDPOINT=http://localhost:26657 -REACT_APP_LACONICD_DENOM=photon +REACT_APP_LACONICD_DENOM=alnt REACT_APP_FAUCET_ENDPOINT=http://localhost:4000 REACT_APP_WALLET_META_URL=http://localhost:3000 REACT_APP_SUMSUB_API_ENDPOINT= -- 2.45.2 From 9dfc15a8407c5f5b53f8b502a39edc3c83d72570 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Tue, 30 Jul 2024 17:30:56 +0530 Subject: [PATCH 2/3] Upgrade registry-sdk version to v0.2.5 --- package.json | 2 +- yarn.lock | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2354ac0..ea02bca 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@cerc-io/registry-sdk": "^0.2.4", + "@cerc-io/registry-sdk": "^0.2.5", "@cosmjs/stargate": "^0.32.4", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.0", diff --git a/yarn.lock b/yarn.lock index f77e06e..75b75a1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1183,10 +1183,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@cerc-io/registry-sdk@^0.2.4": - version "0.2.4" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.4/registry-sdk-0.2.4.tgz#60e4e75b1e6a957cf2b97490af4fda4af07b105f" - integrity sha512-hRZJP+s+uBvfrqtmQ38pmf74SyfFDC65AVwvWigJGxc6uKJG4jyuMyhsoD1P4XkjwAQSnFO89TuDC5JGkdXyrA== +"@cerc-io/registry-sdk@^0.2.5": + version "0.2.5" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.5/registry-sdk-0.2.5.tgz#9ca19fecb2923520dd6a19946c309ecb2ec780a2" + integrity sha512-/KXAYf9gStaX/rRBMCEeDCexEIpTOFHeHzMK9B3xfCT+SyYZE9WC9GpX299LzBYJKKPsb0/JvnDfip9S1igJtA== dependencies: "@cosmjs/amino" "^0.28.1" "@cosmjs/crypto" "^0.28.1" @@ -12209,6 +12209,8 @@ tr46@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== + dependencies: + punycode "^2.1.0" tr46@^2.1.0: version "2.1.0" -- 2.45.2 From ae49e6ff11577a4b15810e1dd8dad43334a3b63d Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 30 Jul 2024 17:34:24 +0530 Subject: [PATCH 3/3] Navigate user if review status is completed --- src/pages/UserVerification.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/UserVerification.tsx b/src/pages/UserVerification.tsx index fb62e1b..7ee7d71 100644 --- a/src/pages/UserVerification.tsx +++ b/src/pages/UserVerification.tsx @@ -55,7 +55,7 @@ const UserVerification = () => { }, [applicationSubmitted, kycId, navigate, cosmosAddress, message, receivedEthSig]); const messageHandler: MessageHandler = (event, payload) => { - console.log('sumsubEvent:', event); + console.log('sumsubEvent:', event, payload); if (event === 'idCheck.onApplicantLoaded') { setKycId((payload as EventPayload<'idCheck.onApplicantLoaded'>).applicantId); @@ -66,9 +66,12 @@ const UserVerification = () => { } if (event === 'idCheck.onApplicantStatusChanged') { - if ((payload as EventPayload<'idCheck.onApplicantStatusChanged'>).reviewStatus === 'pending') { + const applicantStatus = (payload as EventPayload<'idCheck.onApplicantStatusChanged'>).reviewStatus; + + if (applicantStatus === 'pending' || applicantStatus === 'completed') { setApplicationSubmitted(true); } + if ((payload as any).reviewResult.reviewAnswer === 'GREEN') { setApplicationSubmitted(true); } -- 2.45.2