From f118aeb3155668aedc2a2fefd48ff388664d0f9f Mon Sep 17 00:00:00 2001 From: Randy Schott <1815175+schottra@users.noreply.github.com> Date: Tue, 23 Jan 2024 14:49:31 -0500 Subject: [PATCH] [PAY-2368] Add lockAmount flag to web withdrawals (#7286) --- package-lock.json | 89 ++++++++++--------- packages/web/package.json | 2 +- .../components/CoinflowWithdrawPage.tsx | 1 + 3 files changed, 50 insertions(+), 42 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b7b2324ddd..090e58bcacd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3044,6 +3044,25 @@ "node": ">= 12" } }, + "node_modules/@coinflowlabs/react": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@coinflowlabs/react/-/react-3.1.5.tgz", + "integrity": "sha512-XloIfXGXaOjv9l0DAptpl1ZeIDvuPpG6SUsX3vCi1yyzO6MNPgG9kjEi8lRF0SdfGV02knxdODNYITLdH1I8Ow==", + "dependencies": { + "bn.js": "^5.2.1", + "bs58": "^5.0.0", + "socket.io-client": "^4.7.2" + }, + "peerDependencies": { + "@solana/web3.js": ">=1.54.0", + "react": ">=16" + }, + "peerDependenciesMeta": { + "@solana/web3.js": { + "optional": true + } + } + }, "node_modules/@coinflowlabs/react-native": { "version": "2.1.5", "license": "Apache-2.0", @@ -3166,6 +3185,19 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/@coinflowlabs/react/node_modules/base-x": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" + }, + "node_modules/@coinflowlabs/react/node_modules/bs58": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", + "dependencies": { + "base-x": "^4.0.0" + } + }, "node_modules/@colors/colors": { "version": "1.5.0", "license": "MIT", @@ -15454,7 +15486,8 @@ }, "node_modules/@socket.io/component-emitter": { "version": "3.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" }, "node_modules/@solana-mobile/mobile-wallet-adapter-protocol": { "version": "0.9.9", @@ -48157,7 +48190,8 @@ }, "node_modules/engine.io-client": { "version": "6.5.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.3.tgz", + "integrity": "sha512-9Z0qLB0NIisTRt1DZ/8U2k12RJn8yls/nXMZLn+/N8hANT3TcYjKFKcwbw5zFQiN4NTde3TSY9zb79e1ij6j9Q==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1", @@ -48168,7 +48202,8 @@ }, "node_modules/engine.io-client/node_modules/ws": { "version": "8.11.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", "engines": { "node": ">=10.0.0" }, @@ -48187,7 +48222,8 @@ }, "node_modules/engine.io-parser": { "version": "5.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==", "engines": { "node": ">=10.0.0" } @@ -92667,8 +92703,9 @@ "license": "MIT" }, "node_modules/socket.io-client": { - "version": "4.7.2", - "license": "MIT", + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.4.tgz", + "integrity": "sha512-wh+OkeF0rAVCrABWQBaEjLfb7DVPotMbu0cgWgyR0v6eA4EoVnAwcIeIbcdTE3GT/H3kbdLl7OoH2+asoDRIIg==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", @@ -92681,7 +92718,8 @@ }, "node_modules/socket.io-parser": { "version": "4.2.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -106983,6 +107021,8 @@ }, "node_modules/xmlhttprequest-ssl": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==", "engines": { "node": ">=0.4.0" } @@ -141619,7 +141659,7 @@ "@audius/stems": "*", "@audius/trpc-server": "*", "@coinbase/cbpay-js": "1.2.0", - "@coinflowlabs/react": "3.1.3", + "@coinflowlabs/react": "^3.1.5", "@emotion/css": "^11.11.2", "@emotion/styled": "^11.11.0", "@fingerprintjs/fingerprintjs-pro": "3.5.6", @@ -141817,35 +141857,6 @@ "vitest": "0.34.6" } }, - "packages/web/node_modules/@coinflowlabs/react": { - "version": "3.1.3", - "license": "Apache-2.0", - "dependencies": { - "bn.js": "^5.2.1", - "bs58": "^5.0.0", - "socket.io-client": "^4.7.2" - }, - "peerDependencies": { - "@solana/web3.js": ">=1.54.0", - "react": ">=16" - }, - "peerDependenciesMeta": { - "@solana/web3.js": { - "optional": true - } - } - }, - "packages/web/node_modules/@coinflowlabs/react/node_modules/bn.js": { - "version": "5.2.1", - "license": "MIT" - }, - "packages/web/node_modules/@coinflowlabs/react/node_modules/bs58": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, "packages/web/node_modules/@electron/get": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", @@ -142657,10 +142668,6 @@ "version": "2.0.1", "license": "Python-2.0" }, - "packages/web/node_modules/base-x": { - "version": "4.0.0", - "license": "MIT" - }, "packages/web/node_modules/body-scroll-lock": { "version": "4.0.0-beta.0", "license": "MIT" diff --git a/packages/web/package.json b/packages/web/package.json index 479a2df444f..2b2a9cbc552 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -58,7 +58,7 @@ "@audius/stems": "*", "@audius/trpc-server": "*", "@coinbase/cbpay-js": "1.2.0", - "@coinflowlabs/react": "3.1.3", + "@coinflowlabs/react": "3.1.5", "@emotion/css": "^11.11.2", "@emotion/styled": "^11.11.0", "@fingerprintjs/fingerprintjs-pro": "3.5.6", diff --git a/packages/web/src/components/withdraw-usdc-modal/components/CoinflowWithdrawPage.tsx b/packages/web/src/components/withdraw-usdc-modal/components/CoinflowWithdrawPage.tsx index 1cda32ccfa2..97426d77bc1 100644 --- a/packages/web/src/components/withdraw-usdc-modal/components/CoinflowWithdrawPage.tsx +++ b/packages/web/src/components/withdraw-usdc-modal/components/CoinflowWithdrawPage.tsx @@ -53,6 +53,7 @@ export const CoinflowWithdrawPage = () => { return adapter ? (