diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 0fd960bc..b6379091 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/packages/example/package.json b/packages/example/package.json index fe7916a4..072f8f11 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -14,7 +14,7 @@ "@portkey-v1/types": "1.5.4-alpha.22", "@portkey-v1/utils": "1.5.4-alpha.22", "@portkey/contracts": "^2.7.1-alpha.0", - "@portkey/did-ui-react": "^2.10.6-alpha.10", + "@portkey/did-ui-react": "^2.10.6-alpha.14", "@portkey/request": "^2.7.1-alpha.0", "@portkey/services": "^2.7.1-alpha.0", "@portkey/types": "^2.7.1-alpha.0", diff --git a/packages/example/src/components/CallContract.tsx b/packages/example/src/components/CallContract.tsx index 2fbb5daa..8d789e93 100644 --- a/packages/example/src/components/CallContract.tsx +++ b/packages/example/src/components/CallContract.tsx @@ -104,19 +104,24 @@ export default function CallContract() { }, gatewayUrl: 'https://gateway-test.aelf.io', chainId: 'tDVW', - method: 'ManagerTransfer', params: { AELF: { - caHash: wallet.portkeyInfo.caInfo.caHash, - symbol: 'ELF', - amount: '100000000', - to: 'GyQX6t18kpwaD9XHXe1ToKxfov8mSeTLE9q9NwUAeTE8tULZk', + method: 'ManagerTransfer', + params: { + caHash: wallet.portkeyInfo.caInfo.caHash, + symbol: 'ELF', + amount: '10000000', + to: 'GyQX6t18kpwaD9XHXe1ToKxfov8mSeTLE9q9NwUAeTE8tULZk', + }, }, tDVW: { - caHash: wallet.portkeyInfo.caInfo.caHash, - symbol: 'ELF', - amount: '150000000', - to: 'GyQX6t18kpwaD9XHXe1ToKxfov8mSeTLE9q9NwUAeTE8tULZk', + method: 'ManagerTransfer', + params: { + caHash: wallet.portkeyInfo.caInfo.caHash, + symbol: 'ELF', + amount: '15000000', + to: 'GyQX6t18kpwaD9XHXe1ToKxfov8mSeTLE9q9NwUAeTE8tULZk', + }, }, }, }; diff --git a/packages/login/package.json b/packages/login/package.json index 8c3675f1..d93c9055 100644 --- a/packages/login/package.json +++ b/packages/login/package.json @@ -70,7 +70,7 @@ "@portkey-v1/types": "1.5.4-alpha.22", "@portkey-v1/utils": "1.5.4-alpha.22", "@portkey/contracts": "^2.7.1-alpha.0", - "@portkey/did-ui-react": "^2.10.6-alpha.10", + "@portkey/did-ui-react": "^2.10.6-alpha.14", "@portkey/request": "^2.7.1-alpha.0", "@portkey/services": "^2.7.1-alpha.0", "@portkey/types": "^2.7.1-alpha.0", @@ -88,7 +88,7 @@ "@portkey-v1/types": "1.5.4-alpha.22", "@portkey-v1/utils": "1.5.4-alpha.22", "@portkey/contracts": "^2.7.1-alpha.0", - "@portkey/did-ui-react": "^2.10.6-alpha.10", + "@portkey/did-ui-react": "^2.10.6-alpha.14", "@portkey/request": "^2.7.1-alpha.0", "@portkey/services": "^2.7.1-alpha.0", "@portkey/types": "^2.7.1-alpha.0", diff --git a/packages/login/src/types.ts b/packages/login/src/types.ts index 779dedb1..ddc4df8e 100644 --- a/packages/login/src/types.ts +++ b/packages/login/src/types.ts @@ -83,13 +83,16 @@ type MultiChainInfo = Partial<{ }>; type MultiParams = Partial<{ - [x in ChainId]: T; + [x in ChainId]: { + method: string; + params: T; + }; }>; + export interface IMultiTransactionParams { multiChainInfo: MultiChainInfo; gatewayUrl: string; chainId: ChainId; - method: string; params: MultiParams; } diff --git a/yarn.lock b/yarn.lock index f4869da1..5cdd0140 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3435,29 +3435,29 @@ __metadata: languageName: node linkType: hard -"@portkey/accounts@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/accounts@npm:2.10.6-alpha.10" +"@portkey/accounts@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/accounts@npm:2.10.6-alpha.14" dependencies: - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" - "@portkey/validator": "npm:^2.10.6-alpha.10" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" + "@portkey/validator": "npm:^2.10.6-alpha.14" peerDependencies: aelf-sdk: ^3.4.7 - checksum: 10c0/bd503b5218e1be9f29fedef1587df2443232f36cd24b789f8771f6542835186b1068d576c2ed6dfdad4da653dc1d3f4fd4e15708c470d75e440194647a48df7a + checksum: 10c0/ab667d0b44c6e9816e8191a2878750287cd2b02bd07726bfe5ef1f6d12728bcfda36414ee4ac2a43e480dd4081633809b5e585d6a6299f4852fdb0605c3261fb languageName: node linkType: hard -"@portkey/contracts@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/contracts@npm:2.10.6-alpha.10" +"@portkey/contracts@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/contracts@npm:2.10.6-alpha.14" dependencies: "@portkey/provider-types": "npm:^2.1.0" - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" peerDependencies: aelf-sdk: ^3.4.7 - checksum: 10c0/1e7b70a8d245d020b63d80bac06495e73fc460925fe7655fbc574861855377e55e44f25c6e8629c0fbf6ef700763fe5888831fd2b8d5234e539de78a9d0c5d85 + checksum: 10c0/c6417505ba770e467a911f8284994b3f876a91730434a155202310121cf127fd294b0a1dc291bca0d4f7cda47b0bfbce7219c4421fda24afda3c3846b779d915 languageName: node linkType: hard @@ -3492,23 +3492,23 @@ __metadata: languageName: node linkType: hard -"@portkey/did-ui-react@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/did-ui-react@npm:2.10.6-alpha.10" +"@portkey/did-ui-react@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/did-ui-react@npm:2.10.6-alpha.14" dependencies: "@matt-block/react-recaptcha-v2": "npm:^2.0.0" - "@portkey/accounts": "npm:^2.10.6-alpha.10" - "@portkey/contracts": "npm:^2.10.6-alpha.10" - "@portkey/did": "npm:^2.10.6-alpha.10" - "@portkey/graphql": "npm:^2.10.6-alpha.10" - "@portkey/onboarding": "npm:^2.10.6-alpha.10" - "@portkey/ramp": "npm:^2.10.6-alpha.10" - "@portkey/request": "npm:^2.10.6-alpha.10" - "@portkey/services": "npm:^2.10.6-alpha.10" - "@portkey/socket": "npm:^2.10.6-alpha.10" - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" - "@portkey/validator": "npm:^2.10.6-alpha.10" + "@portkey/accounts": "npm:^2.10.6-alpha.14" + "@portkey/contracts": "npm:^2.10.6-alpha.14" + "@portkey/did": "npm:^2.10.6-alpha.14" + "@portkey/graphql": "npm:^2.10.6-alpha.14" + "@portkey/onboarding": "npm:^2.10.6-alpha.14" + "@portkey/ramp": "npm:^2.10.6-alpha.14" + "@portkey/request": "npm:^2.10.6-alpha.14" + "@portkey/services": "npm:^2.10.6-alpha.14" + "@portkey/socket": "npm:^2.10.6-alpha.14" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" + "@portkey/validator": "npm:^2.10.6-alpha.14" "@rc-component/portal": "npm:1.0.2" antd: "npm:4.24.14" antd-mobile: "npm:5.33.0" @@ -3526,25 +3526,25 @@ __metadata: aelf-sdk: ^3.4.7 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10c0/cc1e48363e77682ba99199d60e28918fa7aebaef0facd08abbdeb90ec327b2f8bc557c83863417a4df47271117383410a59f4e6a3a07ae0736d452c68072359e + checksum: 10c0/bfe8b5d8542920b99e1d237fd6dd271493f80c85d482bd64f72f56e865f77ab609c00fc70eefa1d8979828eb5aecf600fd907462290e36a32eaa05c5dbc6024a languageName: node linkType: hard -"@portkey/did@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/did@npm:2.10.6-alpha.10" +"@portkey/did@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/did@npm:2.10.6-alpha.14" dependencies: - "@portkey/accounts": "npm:^2.10.6-alpha.10" - "@portkey/contracts": "npm:^2.10.6-alpha.10" - "@portkey/graphql": "npm:^2.10.6-alpha.10" - "@portkey/request": "npm:^2.10.6-alpha.10" - "@portkey/services": "npm:^2.10.6-alpha.10" - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" + "@portkey/accounts": "npm:^2.10.6-alpha.14" + "@portkey/contracts": "npm:^2.10.6-alpha.14" + "@portkey/graphql": "npm:^2.10.6-alpha.14" + "@portkey/request": "npm:^2.10.6-alpha.14" + "@portkey/services": "npm:^2.10.6-alpha.14" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" peerDependencies: aelf-sdk: ^3.4.7 react: ^18.2.0 - checksum: 10c0/094e467e6fc08a71ea6cbacb16a7f5507d8e38d74140c85f5dcbe6dba2a4b529dd526798c12b05d660a9d87e586fe7b5eae2e31f74ff58fc989ab8e82fe4ec1e + checksum: 10c0/2fed9dc3db430891e58f68fc3ab5150de2023a88fed1d0aa27e0dee4a8b6a2535bb5b7b7c24d877a8ada93451e124244c7bb475d05b50a94522e9d74e75a2441 languageName: node linkType: hard @@ -3560,28 +3560,28 @@ __metadata: languageName: node linkType: hard -"@portkey/graphql@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/graphql@npm:2.10.6-alpha.10" +"@portkey/graphql@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/graphql@npm:2.10.6-alpha.14" dependencies: "@apollo/client": "npm:^3.7.3" - "@portkey/types": "npm:^2.10.6-alpha.10" + "@portkey/types": "npm:^2.10.6-alpha.14" graphql: "npm:^16.6.0" subscriptions-transport-ws: "npm:^0.11.0" - checksum: 10c0/4440c5b4e35d92d2e30eea848cbe9be5d735e0529e26bc6e819ffbf49667bce8316f23e059952473bf166d1d57128e736846ff10836b14e025a35faf5a982af0 + checksum: 10c0/ec5a548c4b5632b510a7a1312cc00729c4672bd589bb472d12846197a4a7035884438364b35e812443efdff0e330d5251883f2996bc7a857bba3a42ab72b2cbb languageName: node linkType: hard -"@portkey/onboarding@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/onboarding@npm:2.10.6-alpha.10" +"@portkey/onboarding@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/onboarding@npm:2.10.6-alpha.14" dependencies: "@portkey/detect-provider": "npm:^2.0.0-alpha.2" - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" bowser: "npm:^2.11.0" query-string: "npm:^7.1.1" - checksum: 10c0/65e8ef5f41b2fe3d16f2b489534f9ec0563ec8dd8c42c80323a86c6ff38f02c0849a81fd6951f48d0d86461aab67992247b0e40a08469561cfa5f13e3a340514 + checksum: 10c0/d646a4e672bbb582eb515a45bf5c4a92fb8ac3777a80ac918202a97d8b0af831fbb1933d5e84a6155c9cbf1182778c5a6712600dccb668e3af645e250393aad4 languageName: node linkType: hard @@ -3615,16 +3615,16 @@ __metadata: languageName: node linkType: hard -"@portkey/ramp@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/ramp@npm:2.10.6-alpha.10" +"@portkey/ramp@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/ramp@npm:2.10.6-alpha.14" dependencies: - "@portkey/request": "npm:^2.10.6-alpha.10" - "@portkey/socket": "npm:^2.10.6-alpha.10" - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" + "@portkey/request": "npm:^2.10.6-alpha.14" + "@portkey/socket": "npm:^2.10.6-alpha.14" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" query-string: "npm:^7.1.1" - checksum: 10c0/b28f5c562c2af2febfc25321ea7bdc69de1abe0922e7d0803b4ea48a331bb6b347f4bc4a8e06f189a846e8039a1ed7e544a3ef4890979d27604eff098eda7c7e + checksum: 10c0/055d4a588c4ae4b7cca473f9eea1aa33555b2fbd51970971a413a61e7a1b9dba55a293c81ea5bcf9ef6435dc46e2f4d13774ea0c054b193be3806320f558a1bd languageName: node linkType: hard @@ -3638,28 +3638,28 @@ __metadata: languageName: node linkType: hard -"@portkey/request@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/request@npm:2.10.6-alpha.10" +"@portkey/request@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/request@npm:2.10.6-alpha.14" dependencies: - "@portkey/types": "npm:^2.10.6-alpha.10" + "@portkey/types": "npm:^2.10.6-alpha.14" query-string: "npm:^7.1.1" - checksum: 10c0/b74aa892203b2e8d6e79994a13ab3833723a35cbdee728f5417a5381ddb64aff1cab68386a05b972441321db7631ec0b4dd6dcb27b57a7996405fb89271ab797 + checksum: 10c0/a58eb0fbf837094ef78058d51f65c9347d9ea11771d984ea55cd2283e0a5f72947ec48d86f36a2904bd29bac7e462e882db19e61e3e7986b5e59f1bfb6afc7ea languageName: node linkType: hard -"@portkey/services@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/services@npm:2.10.6-alpha.10" +"@portkey/services@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/services@npm:2.10.6-alpha.14" dependencies: - "@portkey/graphql": "npm:^2.10.6-alpha.10" - "@portkey/request": "npm:^2.10.6-alpha.10" - "@portkey/types": "npm:^2.10.6-alpha.10" - "@portkey/utils": "npm:^2.10.6-alpha.10" + "@portkey/graphql": "npm:^2.10.6-alpha.14" + "@portkey/request": "npm:^2.10.6-alpha.14" + "@portkey/types": "npm:^2.10.6-alpha.14" + "@portkey/utils": "npm:^2.10.6-alpha.14" peerDependencies: aelf-sdk: ^3.4.7 query-string: ^7.1.1 - checksum: 10c0/9e992f4ed6548a7e0b6cdee46bce34abd5240f1fbd997748d3f5e51e88788a256830564aae2907c734912251761374cf3d1458ba097bb4e34fb2deab016021a0 + checksum: 10c0/f4305afaddf01840d238dac2ed55c41e9f04fb7031dca2aad73f8e223a15dc2ae1fbb0120792ee39efe82b677ca6a3959466cd0b91a6b9b63816405332820de8 languageName: node linkType: hard @@ -3678,13 +3678,13 @@ __metadata: languageName: node linkType: hard -"@portkey/socket@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/socket@npm:2.10.6-alpha.10" +"@portkey/socket@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/socket@npm:2.10.6-alpha.14" dependencies: "@abp/signalr": "npm:^7.0.0" - "@portkey/utils": "npm:^2.10.6-alpha.10" - checksum: 10c0/9ec24124954df34eb51f4d7d0ce8932affd9aaf799b3f10b9160c7991c486b50efa7b5f5359a9f22b463681bf58eb9d6f8b774f45b42a22ed491f835ce5e6a37 + "@portkey/utils": "npm:^2.10.6-alpha.14" + checksum: 10c0/cbbc91459ed71af93c67fe03941e1a06f5331dbeb7019956e61705799cff2e3ff514a7121c7a1c31aa2ff531fc448b1e125a8d74c76d69d695733941c1a67b68 languageName: node linkType: hard @@ -3702,10 +3702,10 @@ __metadata: languageName: node linkType: hard -"@portkey/types@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/types@npm:2.10.6-alpha.10" - checksum: 10c0/57f63f93e90f1a1a573c9eea8f2cd888d4dc0df3f25112c766e5af28a3776353e64bb10e91dd1b9320515e1a93dc6b0502d08955569690e5bf6a501092dac69c +"@portkey/types@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/types@npm:2.10.6-alpha.14" + checksum: 10c0/53b8abd42f36a2f4c444a8a858dc2e5a2caa588a67cb8118b858e620fd8c14c9161de7cd8c5e6227860413b38e71525a3659a55a81a204443628252cc85a3657 languageName: node linkType: hard @@ -3722,23 +3722,23 @@ __metadata: languageName: node linkType: hard -"@portkey/utils@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/utils@npm:2.10.6-alpha.10" +"@portkey/utils@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/utils@npm:2.10.6-alpha.14" dependencies: node-forge: "npm:^1.3.1" peerDependencies: "@portkey/request": ^2.6.6 aelf-sdk: ^3.4.7 query-string: ^7.1.1 - checksum: 10c0/d1fb8e889dea505c41f7e06c9f50dbb9ca4135561931b267c521392afbab537c13d654534b2c627dbaa7ba270ded4093747ff59d4ee115d168570247f36f75d3 + checksum: 10c0/48e5d953bec0546c185630142f9dbabb4cfb342e45af8e77215733f5eff580f1d8aa1d667b8785122379ce71fd223429d27a6450c484afa0d5dd90acf463abcb languageName: node linkType: hard -"@portkey/validator@npm:^2.10.6-alpha.10": - version: 2.10.6-alpha.10 - resolution: "@portkey/validator@npm:2.10.6-alpha.10" - checksum: 10c0/66ad1edbb1f27e9b339e825a1c93a3e05a830a5db0a63bcb47f09229f8c1c62d33e05ac50b226a3063487b831c2e5c7175472f8f092866128a7e6de51f94c399 +"@portkey/validator@npm:^2.10.6-alpha.14": + version: 2.10.6-alpha.14 + resolution: "@portkey/validator@npm:2.10.6-alpha.14" + checksum: 10c0/8f8f8183a56ba77bb1d5d4f7a180107596085ef23eea84fa14ec0970e0ea28b28640fa12fe7a5bff37afeb96be777c2bef84be025386f242d816b0ed958ed5ed languageName: node linkType: hard @@ -5505,7 +5505,7 @@ __metadata: "@portkey-v1/types": "npm:1.5.4-alpha.22" "@portkey-v1/utils": "npm:1.5.4-alpha.22" "@portkey/contracts": "npm:^2.7.1-alpha.0" - "@portkey/did-ui-react": "npm:^2.10.6-alpha.10" + "@portkey/did-ui-react": "npm:^2.10.6-alpha.14" "@portkey/request": "npm:^2.7.1-alpha.0" "@portkey/services": "npm:^2.7.1-alpha.0" "@portkey/types": "npm:^2.7.1-alpha.0" @@ -5539,7 +5539,7 @@ __metadata: "@portkey-v1/utils": "npm:1.5.4-alpha.22" "@portkey/contracts": "npm:^2.7.1-alpha.0" "@portkey/detect-provider": "npm:^2.3.5-alpha.2" - "@portkey/did-ui-react": "npm:^2.10.6-alpha.10" + "@portkey/did-ui-react": "npm:^2.10.6-alpha.14" "@portkey/provider-types": "npm:^2.3.5-alpha.2" "@portkey/request": "npm:^2.7.1-alpha.0" "@portkey/services": "npm:^2.7.1-alpha.0" @@ -5567,7 +5567,7 @@ __metadata: "@portkey-v1/types": 1.5.4-alpha.22 "@portkey-v1/utils": 1.5.4-alpha.22 "@portkey/contracts": ^2.7.1-alpha.0 - "@portkey/did-ui-react": ^2.10.6-alpha.10 + "@portkey/did-ui-react": ^2.10.6-alpha.14 "@portkey/request": ^2.7.1-alpha.0 "@portkey/services": ^2.7.1-alpha.0 "@portkey/types": ^2.7.1-alpha.0