From c1b3bd8c7368408f0dd3ed19389eeac7dd0c131c Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Mon, 30 Sep 2024 10:31:20 +0800 Subject: [PATCH 1/4] feat: tg update --- packages/base/package.json | 6 +- packages/bridge/package.json | 6 +- packages/starter/package.json | 2 +- packages/starter/src/Demo/demo.tsx | 2 +- packages/wallets/night-elf/package.json | 4 +- packages/wallets/portkey-aa/package.json | 10 +- packages/wallets/portkey-aa/src/index.ts | 14 +- .../wallets/portkey-discover/package.json | 6 +- pnpm-lock.yaml | 210 +++++++++--------- 9 files changed, 131 insertions(+), 129 deletions(-) diff --git a/packages/base/package.json b/packages/base/package.json index 95fe4c12..91c5bf9e 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -33,8 +33,8 @@ "@babel/core": "^7.24.7", "@babel/preset-env": "^7.24.7", "@babel/preset-typescript": "^7.24.7", - "@portkey/did-ui-react": "^2.11.0-alpha.4", - "@portkey/types": "^2.11.0-alpha.4", + "@portkey/did-ui-react": "^2.11.0-alpha.10", + "@portkey/types": "^2.11.0-alpha.10", "@types/jest": "^29.5.12", "babel-jest": "^29.7.0", "jest": "^29.7.0", @@ -44,7 +44,7 @@ "typescript": "^5.3.3" }, "peerDependencies": { - "@portkey/did-ui-react": "^2.11.0-alpha.4" + "@portkey/did-ui-react": "^2.11.0-alpha.10" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/packages/bridge/package.json b/packages/bridge/package.json index 0a5dca6a..bc352a9e 100755 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -29,13 +29,13 @@ }, "dependencies": { "@aelf-web-login/wallet-adapter-base": "workspace:*", - "@portkey/services": "^2.11.0-alpha.4", + "@portkey/services": "^2.11.0-alpha.10", "@reduxjs/toolkit": "^2.2.3", "react": "^18.0.0", "react-dom": "^18.0.0" }, "devDependencies": { - "@portkey/did-ui-react": "^2.11.0-alpha.4", + "@portkey/did-ui-react": "^2.11.0-alpha.10", "@types/react": "^18.3.1", "@types/react-dom": "^18.3.0", "antd": "4.24.14", @@ -43,7 +43,7 @@ "typescript": "^5.3.3" }, "peerDependencies": { - "@portkey/did-ui-react": "^2.11.0-alpha.4" + "@portkey/did-ui-react": "^2.11.0-alpha.10" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/packages/starter/package.json b/packages/starter/package.json index 769dd843..d6e4ab2d 100644 --- a/packages/starter/package.json +++ b/packages/starter/package.json @@ -57,7 +57,7 @@ "flatted": "^3.3.1", "react": "^18.0.0", "react-dom": "^18.0.0", - "@portkey/did-ui-react": "^2.11.0-alpha.4" + "@portkey/did-ui-react": "^2.11.0-alpha.10" }, "devDependencies": { "@types/react": "^18.3.1", diff --git a/packages/starter/src/Demo/demo.tsx b/packages/starter/src/Demo/demo.tsx index 03870b4e..7c9eb4b6 100644 --- a/packages/starter/src/Demo/demo.tsx +++ b/packages/starter/src/Demo/demo.tsx @@ -150,7 +150,7 @@ const App: React.FC = () => { return ( - + ); }; diff --git a/packages/wallets/night-elf/package.json b/packages/wallets/night-elf/package.json index 8668a92d..ca18f000 100755 --- a/packages/wallets/night-elf/package.json +++ b/packages/wallets/night-elf/package.json @@ -26,13 +26,13 @@ }, "dependencies": { "@aelf-web-login/wallet-adapter-base": "workspace:*", - "@portkey/contracts": "^2.11.0-alpha.4", + "@portkey/contracts": "^2.11.0-alpha.10", "aelf-bridge": "^0.0.11-alpha.4", "bn.js": "^5.2.1" }, "devDependencies": { "@aelf-react/types": "^0.1.10", - "@portkey/types": "^2.11.0-alpha.4", + "@portkey/types": "^2.11.0-alpha.10", "@types/bn.js": "^5.1.5", "father": "^4.3.8", "typescript": "^5.3.3" diff --git a/packages/wallets/portkey-aa/package.json b/packages/wallets/portkey-aa/package.json index 22f38f50..4541ed59 100755 --- a/packages/wallets/portkey-aa/package.json +++ b/packages/wallets/portkey-aa/package.json @@ -26,17 +26,17 @@ }, "dependencies": { "@aelf-web-login/wallet-adapter-base": "workspace:*", - "@portkey/contracts": "^2.11.0-alpha.4", - "@portkey/utils": "^2.11.0-alpha.4" + "@portkey/contracts": "^2.11.0-alpha.10", + "@portkey/utils": "^2.11.0-alpha.10" }, "devDependencies": { - "@portkey/did-ui-react": "^2.11.0-alpha.4", - "@portkey/types": "^2.11.0-alpha.4", + "@portkey/did-ui-react": "^2.11.0-alpha.10", + "@portkey/types": "^2.11.0-alpha.10", "father": "^4.3.8", "typescript": "^5.3.3" }, "peerDependencies": { - "@portkey/did-ui-react": "^2.11.0-alpha.4" + "@portkey/did-ui-react": "^2.11.0-alpha.10" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/packages/wallets/portkey-aa/src/index.ts b/packages/wallets/portkey-aa/src/index.ts index fd4001bc..5d00df78 100644 --- a/packages/wallets/portkey-aa/src/index.ts +++ b/packages/wallets/portkey-aa/src/index.ts @@ -43,17 +43,17 @@ export class PortkeyAAWallet extends BaseWalletAdapter { private _loginState: LoginStateEnum; private _wallet: TWalletInfo | null; private _config: IPortkeyAAWalletAdapterConfig; - private _registerChainId: TChainId | null; private _sessionId: string; private _status: TStatus; + private _pin: string; constructor(config: IPortkeyAAWalletAdapterConfig) { super(); this._loginState = LoginStateEnum.INITIAL; this._wallet = null; this._config = config; - this._registerChainId = null; this._sessionId = ''; + this._pin = ''; this._status = 'initial'; this.autoRequestAccountHandler(); } @@ -95,9 +95,9 @@ export class PortkeyAAWallet extends BaseWalletAdapter { async loginWithAcceleration(createPendingInfo: CreatePendingInfo): Promise { console.log('createPendingInfo is', createPendingInfo); const didWallet = createPendingInfo.didWallet as DIDWalletInfo; - this._registerChainId = didWallet.chainId; this._sessionId = createPendingInfo.sessionId; this._status = 'inCreatePending'; + this._pin = createPendingInfo.pin; return this.login(didWallet); } @@ -466,12 +466,13 @@ export class PortkeyAAWallet extends BaseWalletAdapter { if (this._status === 'inCreatePending') { console.log( '----------in callSendMethod and _status is inCreatePending, begin to execute getLoginStatus, sessionId=', - this._sessionId, + did.didWallet.sessionId, ); const { recoveryStatus } = await did.didWallet.getLoginStatus({ - sessionId: this._sessionId, - chainId: this._registerChainId!, + sessionId: did.didWallet.sessionId!, + chainId: did.didWallet.originChainId!, }); + await did.save(this._pin, this.appName); console.log( '----------in callSendMethod and after execute getLoginStatus, recoveryStatus=', recoveryStatus, @@ -480,6 +481,7 @@ export class PortkeyAAWallet extends BaseWalletAdapter { throw makeError(ERR_CODE.GET_LOGIN_STATUS_FAIL); } } + console.log('did.didWallet.isLoginStatus-contract', did.didWallet.isLoginStatus); // if (this._status === 'inFinish' && did.didWallet.isLoginStatus !== 'SUCCESS') { // throw makeError(ERR_CODE.IN_FINISH_BUT_STATUS_IS_NOT_SUCCESS); // } diff --git a/packages/wallets/portkey-discover/package.json b/packages/wallets/portkey-discover/package.json index 30d3f13c..2ff0b997 100755 --- a/packages/wallets/portkey-discover/package.json +++ b/packages/wallets/portkey-discover/package.json @@ -26,14 +26,14 @@ }, "dependencies": { "@aelf-web-login/wallet-adapter-base": "workspace:*", - "@portkey/contracts": "^2.11.0-alpha.4", + "@portkey/contracts": "^2.11.0-alpha.10", "@portkey/detect-provider": "^2.2.0", "@portkey/provider-types": "^2.2.0", - "@portkey/utils": "^2.11.0-alpha.4", + "@portkey/utils": "^2.11.0-alpha.10", "bn.js": "^5.2.1" }, "devDependencies": { - "@portkey/types": "^2.11.0-alpha.4", + "@portkey/types": "^2.11.0-alpha.10", "@types/bn.js": "^5.1.5", "father": "^4.3.8", "typescript": "^5.3.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2703ab34..e84ef14d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -94,11 +94,11 @@ importers: specifier: ^7.24.7 version: 7.24.7(@babel/core@7.25.2) '@portkey/did-ui-react': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@portkey/types': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4 + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10 '@types/jest': specifier: ^29.5.12 version: 29.5.13 @@ -127,8 +127,8 @@ importers: specifier: workspace:* version: link:../base '@portkey/services': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@reduxjs/toolkit': specifier: ^2.2.3 version: 2.2.7(react@18.3.1) @@ -140,8 +140,8 @@ importers: version: 18.3.1(react@18.3.1) devDependencies: '@portkey/did-ui-react': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/react': specifier: ^18.3.1 version: 18.3.9 @@ -249,8 +249,8 @@ importers: specifier: workspace:* version: link:../react '@portkey/did-ui-react': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) flatted: specifier: ^3.3.1 version: 3.3.1 @@ -395,8 +395,8 @@ importers: specifier: workspace:* version: link:../../base '@portkey/contracts': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) aelf-bridge: specifier: ^0.0.11-alpha.4 version: 0.0.11-alpha.10 @@ -408,8 +408,8 @@ importers: specifier: ^0.1.10 version: 0.1.10 '@portkey/types': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4 + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10 '@types/bn.js': specifier: ^5.1.5 version: 5.1.6 @@ -426,18 +426,18 @@ importers: specifier: workspace:* version: link:../../base '@portkey/contracts': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) '@portkey/utils': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) devDependencies: '@portkey/did-ui-react': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@portkey/types': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4 + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10 father: specifier: ^4.3.8 version: 4.5.0(@babel/core@7.25.2)(@types/node@22.7.3)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(type-fest@0.21.3)(webpack@5.95.0) @@ -451,8 +451,8 @@ importers: specifier: workspace:* version: link:../../base '@portkey/contracts': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) '@portkey/detect-provider': specifier: ^2.2.0 version: 2.3.4 @@ -460,15 +460,15 @@ importers: specifier: ^2.2.0 version: 2.3.4 '@portkey/utils': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) bn.js: specifier: ^5.2.1 version: 5.2.1 devDependencies: '@portkey/types': - specifier: ^2.11.0-alpha.4 - version: 2.11.0-alpha.4 + specifier: ^2.11.0-alpha.10 + version: 2.11.0-alpha.10 '@types/bn.js': specifier: ^5.1.5 version: 5.1.6 @@ -2638,8 +2638,8 @@ packages: peerDependencies: aelf-sdk: ^3.4.7 - '@portkey/accounts@2.11.0-alpha.4': - resolution: {integrity: sha512-0kOQwb5hZ6ezwx9UhPo1+fJg0OS27Uf2eoaPbJaZtgbSqBi2VDcd1F7LcPU34iikVM/HqM16JkktUph/lA2z6A==} + '@portkey/accounts@2.11.0-alpha.10': + resolution: {integrity: sha512-v4cJnOXfv2ObTBqlzNxGIltB10IcVDMNhvC+S+QkuGY2mJ2cPnFZkOACgXJ3idCVQjif1gP/AAGpFo9j4awpow==} peerDependencies: aelf-sdk: ^3.4.7 @@ -2648,8 +2648,8 @@ packages: peerDependencies: aelf-sdk: ^3.4.7 - '@portkey/contracts@2.11.0-alpha.4': - resolution: {integrity: sha512-ouVE51vom0rqYsFRtY75pcHpb3t5xJGLltc+8g/RcV1U0C/CxUE1DH/EQghhB7xsu7uKpNqju5KIuAoPJeL3UQ==} + '@portkey/contracts@2.11.0-alpha.10': + resolution: {integrity: sha512-HWCHJ0M5/IW646npHaUcTmjDPyviPeZq4rV0ho7wN0NgG3El6TFE7uXp70u1ldIyhgNps7ejxi407Lto4I1ZUw==} peerDependencies: aelf-sdk: ^3.4.7 @@ -2663,8 +2663,8 @@ packages: react: ^18.2.0 react-dom: ^18.2.0 - '@portkey/did-ui-react@2.11.0-alpha.4': - resolution: {integrity: sha512-IytUqw8x6A9Ddp2YBi//Q/0CRc/wbNa90EiDX45DTZEdNo77Ba6vMsNs8OTgn9uvlkIiQSo8rZ35n4gEt/JOPg==} + '@portkey/did-ui-react@2.11.0-alpha.10': + resolution: {integrity: sha512-5EVpnNQz7qHyfR4DaJUCPssjc88z8I9r8zlGhpKayDz+JHya1VRkHpJGXWvWK/Ts95PIWALL3vYvY3jCk1cybw==} peerDependencies: aelf-sdk: ^3.4.7 react: ^18.2.0 @@ -2676,8 +2676,8 @@ packages: aelf-sdk: ^3.4.7 react: ^18.2.0 - '@portkey/did@2.11.0-alpha.4': - resolution: {integrity: sha512-EdW+m1ZcAe+c3h+6IHk3QBvzLjJCa34DcGtZ0f3vPQUccOQdwHR6yZFwN2LFDe1K4OMZye+T8UP7Pvu9JgX55Q==} + '@portkey/did@2.11.0-alpha.10': + resolution: {integrity: sha512-2F64nmpLKm1pLT65OBayjzqR9c9JE7pIX0T2fBn70Y7bkEFGbc0hc8r1uiU91HJsovd0+IbcXx+k6hNnX4CtCg==} peerDependencies: aelf-sdk: ^3.4.7 react: ^18.2.0 @@ -2685,14 +2685,14 @@ packages: '@portkey/graphql@2.10.5': resolution: {integrity: sha512-NPOBiEv3+u+UByRkrteI/donjvOV0r6FX1G6vm/js6l3SQcu6wuio1A5T4rAUFF4dk8pLqL7nZzuz8JwP5UGjQ==} - '@portkey/graphql@2.11.0-alpha.4': - resolution: {integrity: sha512-8JndW1pvjFSi7CIDdeum+IA8EbTQBOiSy93f5LlHVkihDvb7Lcmogu0LnbM0vrifCEgJmPlbGJg1oC/DsHyCKQ==} + '@portkey/graphql@2.11.0-alpha.10': + resolution: {integrity: sha512-x1dRXfDaTGXZl73dJ7VU2W/n03nMprVZc73DfxTaj8CmN3OQPzZUt+h5VJt09SaHj4xCIJ52BHajEbmolr+sKA==} '@portkey/onboarding@2.10.5': resolution: {integrity: sha512-cBSSgImwo/ThzWezhunW7cKri8CLSTrygQmC/t3Gs1ZYBNRBZR/wPT73ljj5iooHdphfz//s95mwt1yJ9T6Cvw==} - '@portkey/onboarding@2.11.0-alpha.4': - resolution: {integrity: sha512-YOiajGkWUiVDnG4iY4cjaW6VRdBB1Oxeh4AJ/aPK7nx3NzWZ4sz02+z94GP9MoG1NoiIY9Snhq/vlln/5E4t0Q==} + '@portkey/onboarding@2.11.0-alpha.10': + resolution: {integrity: sha512-Of3hl58ALvrAG5r4aet7hISl4kInAMQyJ9zpoVuoTqobHaUNqaT+EjbZ0WBCIMKyHLZCujmSuvaWKjZXjy1NPw==} '@portkey/provider-types@2.3.4': resolution: {integrity: sha512-UJFqj1fEGG42sW91pjNx1azsBdpIEybrYGvyASJE9U8uFeOoMEWF1aX7pgV5X5lEJyWPC7c5dod5mnCqqK9qVg==} @@ -2700,14 +2700,14 @@ packages: '@portkey/ramp@2.10.5': resolution: {integrity: sha512-M7bznLqzRaRnK8+QJ9Lip0l5rbnuBcyBFWLOAqyIjjADf3TUJYzqiEkkXGvmE4st6aM0jc2ILt5lOQWmbyepLA==} - '@portkey/ramp@2.11.0-alpha.4': - resolution: {integrity: sha512-HU6vHS14BC1XG8P8oPThYYuJclgm3OeTvjVTaxDVIr3i/iJc5WBucSIxQ0TdkHYsTZhvBWY7sx2vvC2eREJPRA==} + '@portkey/ramp@2.11.0-alpha.10': + resolution: {integrity: sha512-Xqg64Hmgsre6eu1GnTadTL6RZ7tefd2Qmf75ofXI8fqLY+n9uqloU+txEgil+Dh4rjWWnK0mGxZa56eV5XRFDQ==} '@portkey/request@2.10.5': resolution: {integrity: sha512-iR9qlyxDRujP/9QLXCjprmt1QFcmqRmZig0CmOec5IPyW9qooztXuYDxjevzTqa0Ois+DYikYnvt6yG6zLQDXg==} - '@portkey/request@2.11.0-alpha.4': - resolution: {integrity: sha512-35NkRsA4BeMXWu/0dpeqxHSdY68WdUtO+owhl+Gs2kO8X9xEuA83doUY7xcb+OPGEwpzCG9wpw0dTMZkeBIE4w==} + '@portkey/request@2.11.0-alpha.10': + resolution: {integrity: sha512-yLlNYtkHDSN3zs23dAxZzV+LxhJaTQ0k9t55/VrleFRDoU4mISHk2OsdkKYcqgsfvyZjr2EozjlRWL5TObrtUA==} '@portkey/services@2.10.5': resolution: {integrity: sha512-eSvp8btVrvgfWwE5YEw9skQg3GKweJUVg6ohDL1jI+rzTuGw/vavmKKQonFUiyIrrKVtNZrTOXB0e1HCYoB0rw==} @@ -2715,8 +2715,8 @@ packages: aelf-sdk: ^3.4.7 query-string: ^7.1.1 - '@portkey/services@2.11.0-alpha.4': - resolution: {integrity: sha512-c0yfoMhU60/ElYV39oqJ9z/ukDz6Sh4DXZHaE2efJtAqKulqroSD7yum6hdaE94y+cSL5NsV91TUNRWAvILCiQ==} + '@portkey/services@2.11.0-alpha.10': + resolution: {integrity: sha512-3SJknALMdLbQFQxA2Ht+aURPEIxvfG9b3gnJL/VbFXsfERMr6nVKXbppMaL94Si2dRIm9SgKgZ8PBTOwxl5v7A==} peerDependencies: aelf-sdk: ^3.4.7 query-string: ^7.1.1 @@ -2730,14 +2730,14 @@ packages: '@portkey/socket@2.10.5': resolution: {integrity: sha512-xGUZj+cnprtuh32Ac6Hiq6n3Gr2ogoN9zUoYyiLRCeYSMN9+3LU7llqekJ0ZLCod+f43ppJHT33sj2bflvEPiA==} - '@portkey/socket@2.11.0-alpha.4': - resolution: {integrity: sha512-9rSyTOeUIVGefZUlfVql16wBsbsi3Tk9HmAv4x0nbc8/RLBy9iAPVoDUGCvinjY6OvYwykSsoGImWUou0TxXaw==} + '@portkey/socket@2.11.0-alpha.10': + resolution: {integrity: sha512-qc541+CQERLD30Cber4Ti+ZR1hzf+LN/EPTTtC9TOflyxJng5Rs/t2a+rWj0kNwY+F5+nCZCEezWTY9fIp/DcA==} '@portkey/types@2.10.5': resolution: {integrity: sha512-SjmeuPrEInoVDUMUuWn2yZJo53BFdPkGkCu8sR8+YIZPYR8CHJDdB9cxg6EoNPbZ6lH5wYJiWaQoSz4M2wC3aw==} - '@portkey/types@2.11.0-alpha.4': - resolution: {integrity: sha512-kIEYZMH1a2yp5ECzuNKyl6HgclYU/yedfX/gjUqCLlXQjn1aLwJ3dYU1tTRck2fOM7z4Vu4siwPGAuBlL50sTw==} + '@portkey/types@2.11.0-alpha.10': + resolution: {integrity: sha512-rMpJvXIwW/wncTkRC5V7aegYN0dOhkspdqG0eOGdfiHUrFocJrbuAqaFj42fiq7z3IlQ1hDgx/7cjyBDkWKvkw==} '@portkey/utils@2.10.5': resolution: {integrity: sha512-OrErI0IGmG69xffnFx7Fhy4FQ1OEsdxlXba3mPzlp8jyPu0CBTi8ozRIawM/sw2V5MhwBfu7ceLzh5e6U8fmYQ==} @@ -2746,8 +2746,8 @@ packages: aelf-sdk: ^3.4.7 query-string: ^7.1.1 - '@portkey/utils@2.11.0-alpha.4': - resolution: {integrity: sha512-1YNZj7B0SPZD0BhZNsjkBVrNfdKJk/3cD4bzllGAvirihGxP7P3V/3h0KkyQFrwlu7EDV935/oxCQlhMcT9Pjg==} + '@portkey/utils@2.11.0-alpha.10': + resolution: {integrity: sha512-sNnfZEHSwAtako7dseR8Bxc98t1HPU32EdAmBb1KBUlitTzDypd/Vl+bM8c+2UXklW8k+AYN9DmsrUj5ovrnug==} peerDependencies: '@portkey/request': ^2.6.6 aelf-sdk: ^3.4.7 @@ -2756,8 +2756,8 @@ packages: '@portkey/validator@2.10.5': resolution: {integrity: sha512-xdhaJ7wfdeWChefcrUCUbltOaeb5ENgvtxIt4Q4Nhfa0fH61wT5pSx9AASoTTLmZ46w+HB2+tQqrrcMTmb54WQ==} - '@portkey/validator@2.11.0-alpha.4': - resolution: {integrity: sha512-a03vlrNbNN7ecKtB2l9IYoHSVzURgs+XAIrTmEabZWpUTY16yqWYBfnCiNeAY6vKjlDdPokz8BXiSUBq7JyX+g==} + '@portkey/validator@2.11.0-alpha.10': + resolution: {integrity: sha512-JIpMhkHLZLPef71e2SdsQY+YvRfW+vuULSMKE7B/V/11gj5hnU2cNeWvB+FImUey198mrG5U0DmIax6ONheG6g==} '@protobufjs/aspromise@1.1.2': resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} @@ -13914,11 +13914,11 @@ snapshots: - '@portkey/request' - query-string - '@portkey/accounts@2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': + '@portkey/accounts@2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': dependencies: - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) - '@portkey/validator': 2.11.0-alpha.4 + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/validator': 2.11.0-alpha.10 aelf-sdk: 3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1) transitivePeerDependencies: - '@portkey/request' @@ -13934,11 +13934,11 @@ snapshots: - '@portkey/request' - query-string - '@portkey/contracts@2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': + '@portkey/contracts@2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': dependencies: '@portkey/provider-types': 2.3.4 - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) aelf-sdk: 3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1) transitivePeerDependencies: - '@portkey/request' @@ -13988,21 +13988,21 @@ snapshots: - react-native - utf-8-validate - '@portkey/did-ui-react@2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@portkey/did-ui-react@2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(i18next@23.15.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@matt-block/react-recaptcha-v2': 2.1.0(react@18.3.1) - '@portkey/accounts': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) - '@portkey/contracts': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) - '@portkey/did': 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@portkey/graphql': 2.11.0-alpha.4(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@portkey/onboarding': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1)) - '@portkey/ramp': 2.11.0-alpha.4(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13) - '@portkey/request': 2.11.0-alpha.4 - '@portkey/services': 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@portkey/socket': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(query-string@7.1.3) - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) - '@portkey/validator': 2.11.0-alpha.4 + '@portkey/accounts': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/contracts': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/did': 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@portkey/graphql': 2.11.0-alpha.10(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@portkey/onboarding': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1)) + '@portkey/ramp': 2.11.0-alpha.10(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13) + '@portkey/request': 2.11.0-alpha.10 + '@portkey/services': 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@portkey/socket': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(query-string@7.1.3) + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/validator': 2.11.0-alpha.10 '@rc-component/portal': 1.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) aelf-sdk: 3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1) antd: 4.24.14(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -14047,15 +14047,15 @@ snapshots: - react-dom - utf-8-validate - '@portkey/did@2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@portkey/did@2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@portkey/accounts': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) - '@portkey/contracts': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) - '@portkey/graphql': 2.11.0-alpha.4(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@portkey/request': 2.11.0-alpha.4 - '@portkey/services': 2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/accounts': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/contracts': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/graphql': 2.11.0-alpha.10(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@portkey/request': 2.11.0-alpha.10 + '@portkey/services': 2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) aelf-sdk: 3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1) react: 18.3.1 transitivePeerDependencies: @@ -14080,10 +14080,10 @@ snapshots: - react-dom - utf-8-validate - '@portkey/graphql@2.11.0-alpha.4(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@portkey/graphql@2.11.0-alpha.10(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@apollo/client': 3.11.8(@types/react@18.3.9)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(subscriptions-transport-ws@0.11.0(graphql@16.9.0)) - '@portkey/types': 2.11.0-alpha.4 + '@portkey/types': 2.11.0-alpha.10 graphql: 16.9.0 subscriptions-transport-ws: 0.11.0(graphql@16.9.0) transitivePeerDependencies: @@ -14105,11 +14105,11 @@ snapshots: - '@portkey/request' - aelf-sdk - '@portkey/onboarding@2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))': + '@portkey/onboarding@2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))': dependencies: '@portkey/detect-provider': 2.3.4 - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) bowser: 2.11.0 query-string: 7.1.3 transitivePeerDependencies: @@ -14134,12 +14134,12 @@ snapshots: - encoding - utf-8-validate - '@portkey/ramp@2.11.0-alpha.4(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)': + '@portkey/ramp@2.11.0-alpha.10(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)': dependencies: - '@portkey/request': 2.11.0-alpha.4 - '@portkey/socket': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(query-string@7.1.3) - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/request': 2.11.0-alpha.10 + '@portkey/socket': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(query-string@7.1.3) + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) query-string: 7.1.3 transitivePeerDependencies: - aelf-sdk @@ -14152,9 +14152,9 @@ snapshots: '@portkey/types': 2.10.5 query-string: 7.1.3 - '@portkey/request@2.11.0-alpha.4': + '@portkey/request@2.11.0-alpha.10': dependencies: - '@portkey/types': 2.11.0-alpha.4 + '@portkey/types': 2.11.0-alpha.10 query-string: 7.1.3 '@portkey/services@2.10.5(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': @@ -14173,12 +14173,12 @@ snapshots: - react-dom - utf-8-validate - '@portkey/services@2.11.0-alpha.4(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@portkey/services@2.11.0-alpha.10(@types/react@18.3.9)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@portkey/graphql': 2.11.0-alpha.4(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@portkey/request': 2.11.0-alpha.4 - '@portkey/types': 2.11.0-alpha.4 - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/graphql': 2.11.0-alpha.10(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@portkey/request': 2.11.0-alpha.10 + '@portkey/types': 2.11.0-alpha.10 + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) aelf-sdk: 3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1) query-string: 7.1.3 transitivePeerDependencies: @@ -14217,10 +14217,10 @@ snapshots: - query-string - utf-8-validate - '@portkey/socket@2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(query-string@7.1.3)': + '@portkey/socket@2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(encoding@0.1.13)(query-string@7.1.3)': dependencies: '@abp/signalr': 7.4.5(encoding@0.1.13) - '@portkey/utils': 2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) + '@portkey/utils': 2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3) transitivePeerDependencies: - '@portkey/request' - aelf-sdk @@ -14231,7 +14231,7 @@ snapshots: '@portkey/types@2.10.5': {} - '@portkey/types@2.11.0-alpha.4': {} + '@portkey/types@2.11.0-alpha.10': {} '@portkey/utils@2.10.5(@portkey/request@2.10.5)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': dependencies: @@ -14240,16 +14240,16 @@ snapshots: node-forge: 1.3.1 query-string: 7.1.3 - '@portkey/utils@2.11.0-alpha.4(@portkey/request@2.11.0-alpha.4)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': + '@portkey/utils@2.11.0-alpha.10(@portkey/request@2.11.0-alpha.10)(aelf-sdk@3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1))(query-string@7.1.3)': dependencies: - '@portkey/request': 2.11.0-alpha.4 + '@portkey/request': 2.11.0-alpha.10 aelf-sdk: 3.4.15(@babel/core@7.25.2)(encoding@0.1.13)(eslint@8.57.1) node-forge: 1.3.1 query-string: 7.1.3 '@portkey/validator@2.10.5': {} - '@portkey/validator@2.11.0-alpha.4': {} + '@portkey/validator@2.11.0-alpha.10': {} '@protobufjs/aspromise@1.1.2': {} From db2e0478fa5a8eeab31f235c4400d35530bab9cf Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Mon, 30 Sep 2024 16:17:43 +0800 Subject: [PATCH 2/4] feat: invoke checkManagerIsExistByGQL --- packages/wallets/portkey-aa/src/index.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/wallets/portkey-aa/src/index.ts b/packages/wallets/portkey-aa/src/index.ts index 5d00df78..6d36f713 100644 --- a/packages/wallets/portkey-aa/src/index.ts +++ b/packages/wallets/portkey-aa/src/index.ts @@ -253,6 +253,26 @@ export class PortkeyAAWallet extends BaseWalletAdapter { nickName = holderInfo.nickName; } + if (!localWallet.didWallet.sessionId) { + console.log('-----unlock in checkManagerIsExistByGQL'); + const result = await did.didWallet.checkManagerIsExistByGQL({ + chainId: originChainId, + caHash, + managementAddress: localWallet.didWallet.managementAccount?.address ?? '', + }); + if (result) { + await did.save(password, this.appName); + } else { + // logout + } + } + + console.log( + '----unlock after checkManagerIsExistByGQL', + caHash, + localWallet.didWallet.sessionId, + ); + const didWalletInfo: DIDWalletInfo = { caInfo, pin: password, From 99d430cc3ed89d83419e6d5b4b5b61492b1f5317 Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Mon, 30 Sep 2024 18:12:57 +0800 Subject: [PATCH 3/4] feat: login accelerate done --- packages/base/package.json | 2 +- packages/bridge/package.json | 2 +- packages/react/package.json | 2 +- packages/utils/package.json | 2 +- packages/wallets/night-elf/package.json | 2 +- packages/wallets/portkey-aa/package.json | 2 +- packages/wallets/portkey-discover/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/base/package.json b/packages/base/package.json index 91c5bf9e..c9150103 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-base", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/bridge/package.json b/packages/bridge/package.json index bc352a9e..be6ca9f3 100755 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-bridge", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/react/package.json b/packages/react/package.json index 4bde99d9..2c69ae9c 100755 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-react", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 6af52d33..f9550655 100755 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/utils", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/wallets/night-elf/package.json b/packages/wallets/night-elf/package.json index ca18f000..bd314b8f 100755 --- a/packages/wallets/night-elf/package.json +++ b/packages/wallets/night-elf/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-night-elf", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/wallets/portkey-aa/package.json b/packages/wallets/portkey-aa/package.json index 4541ed59..d15cd752 100755 --- a/packages/wallets/portkey-aa/package.json +++ b/packages/wallets/portkey-aa/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-portkey-aa", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/wallets/portkey-discover/package.json b/packages/wallets/portkey-discover/package.json index 2ff0b997..5933c1f6 100755 --- a/packages/wallets/portkey-discover/package.json +++ b/packages/wallets/portkey-discover/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-portkey-discover", - "version": "0.1.12-alpha.3", + "version": "0.1.13", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", From d5a81c4823af2dc48e8ffeffab02c1791e6c24fc Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Mon, 30 Sep 2024 18:17:29 +0800 Subject: [PATCH 4/4] feat: modify readme --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90a9056c..650f46b3 100644 --- a/README.md +++ b/README.md @@ -88,12 +88,26 @@ const didConfig = { botId: TELEGRAM_BOT_ID, }, }, + // customNetworkType: NETWORK_TYPE === 'TESTNET' ? 'offline' : 'online', + // loginConfig: { + // loginMethodsOrder: [ "Email", "Google" , "Apple" , "Scan"] + // } }; const baseConfig = { - showVconsole: false, + // ConfirmLogoutDialog: CustomizedConfirmLogoutDialog, + // SignInComponent: SignInProxy, + // defaultPin: '111111', + // PortkeyProviderProps: { + // theme: 'light' as any, + // }, + // omitTelegramScript: false, + // cancelAutoLoginInTelegram: false, + enableAcceleration: true, networkType: NETWORK_TYPE, chainId: CHAIN_ID, + showVconsole: false, + chainId: CHAIN_ID, keyboard: true, noCommonBaseModal: false, design: SignInDesignEnum.CryptoDesign, // "SocialDesign" | "CryptoDesign" | "Web2Design" @@ -106,6 +120,7 @@ const wallets = [ appName: APP_NAME, chainId: CHAIN_ID, autoShowUnlock: true, + noNeedForConfirm: false, }), new PortkeyDiscoverWallet({ networkType: NETWORK_TYPE,