Skip to content

Commit

Permalink
feat: support muti transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
aelf-lxy committed Sep 27, 2024
1 parent 3da1087 commit 94b4206
Show file tree
Hide file tree
Showing 6 changed files with 1,209 additions and 1,049 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions packages/example/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ module.exports = {
},
},
devServer: {
https: {
key: './ssl/server.key',
cert: './ssl/server.cert',
},
// https: {
// key: './ssl/server.key',
// cert: './ssl/server.cert',
// },
proxy: {
'/v1/api': {
target: 'https://did-portkey-test.portkey.finance',
Expand Down
2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.7.1-alpha.0",
"@portkey/did-ui-react": "^2.10.6-alpha.4",
"@portkey/request": "^2.7.1-alpha.0",
"@portkey/services": "^2.7.1-alpha.0",
"@portkey/types": "^2.7.1-alpha.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
},
"dependencies": {
"@aelf-react/core": "^0.1.19",
"@portkey/detect-provider": "2.0.0-alpha.5",
"@portkey/provider-types": "2.0.0-alpha.5",
"@portkey/detect-provider": "^2.3.4",
"@portkey/provider-types": "^2.3.4",
"@types/bn.js": "^5.1.3",
"aelf-bridge": "^0.0.11-alpha.4",
"aelf-sdk": "^3.3.0",
"aelf-sdk": "^3.4.16-alpha.3",
"ahooks": "^3.7.7",
"antd": "^4.24.4",
"bn.js": "^5.2.1",
Expand All @@ -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.7.1-alpha.0",
"@portkey/did-ui-react": "^2.10.6-alpha.4",
"@portkey/request": "^2.7.1-alpha.0",
"@portkey/services": "^2.7.1-alpha.0",
"@portkey/types": "^2.7.1-alpha.0",
Expand All @@ -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.7.1-alpha.0",
"@portkey/did-ui-react": "^2.10.6-alpha.4",
"@portkey/request": "^2.7.1-alpha.0",
"@portkey/services": "^2.7.1-alpha.0",
"@portkey/types": "^2.7.1-alpha.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/login/src/hooks/useCallContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ export default function useCallContract(options?: CallContractHookOptions): Call
],
);

const sendMultiTransaction = useCallback(async function sendMultiTransactionFunc<T, R>(
params: CallContractParams<T>,
): Promise<R> {
// return did.sendMultiTransaction()
},
[]);

return {
contractHookId: `${loginId}_${chainId}_${walletType}}`,
callViewMethod,
Expand Down
Loading

0 comments on commit 94b4206

Please sign in to comment.