Skip to content

Commit

Permalink
fix: workaround for elliptic import error (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert authored Apr 11, 2024
1 parent 263577f commit 878cb86
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/x-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@ethersproject/strings": "^5.7.0",
"@ethersproject/wallet": "^5.7.0",
"@imtbl/config": "0.0.0",
"@imtbl/core-sdk": "^2.7.0",
"@imtbl/generated-clients": "0.0.0",
"axios": "^1.6.5",
"bn.js": "^5.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-client/src/exportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export {
generateLegacyStarkPrivateKey,
generateStarkPrivateKey,
createStarkSigner,
} from './utils';
} from '@imtbl/core-sdk';
4 changes: 2 additions & 2 deletions packages/x-client/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './convertToSignableToken';
export * from './formatError';
export * from './crypto';
export * from './stark/starkCurve';
export * from './stark/starkSigner';
// export * from './stark/starkCurve';
// export * from './stark/starkSigner';
3 changes: 2 additions & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@ethersproject/providers": "^5.7.2",
"@ethersproject/strings": "^5.7.0",
"@ethersproject/wallet": "^5.7.0",
"@imtbl/core-sdk": "^2.7.0",
"@imtbl/react-analytics": "0.2.1-alpha",
"@jest/globals": "^29.5.0",
"@magic-ext/oidc": "4.2.0",
Expand Down Expand Up @@ -86,7 +87,7 @@
"typescript": "^4.9.5"
},
"engines": {
"node": ">=20.11.0"
"node": ">=20.9.0"
},
"exports": {
"./package.json": "./package.json",
Expand Down
47 changes: 43 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,7 @@ __metadata:
languageName: node
linkType: hard

"@ethersproject/abi@npm:5.7.0, @ethersproject/abi@npm:^5.0.12, @ethersproject/abi@npm:^5.5.0, @ethersproject/abi@npm:^5.7.0":
"@ethersproject/abi@npm:5.7.0, @ethersproject/abi@npm:^5.0.0, @ethersproject/abi@npm:^5.0.12, @ethersproject/abi@npm:^5.5.0, @ethersproject/abi@npm:^5.7.0":
version: 5.7.0
resolution: "@ethersproject/abi@npm:5.7.0"
dependencies:
Expand Down Expand Up @@ -2990,7 +2990,7 @@ __metadata:
languageName: node
linkType: hard

"@ethersproject/bytes@npm:5.7.0, @ethersproject/bytes@npm:^5.7.0":
"@ethersproject/bytes@npm:5.7.0, @ethersproject/bytes@npm:^5.0.0, @ethersproject/bytes@npm:^5.7.0":
version: 5.7.0
resolution: "@ethersproject/bytes@npm:5.7.0"
dependencies:
Expand Down Expand Up @@ -3129,7 +3129,7 @@ __metadata:
languageName: node
linkType: hard

"@ethersproject/providers@npm:5.7.2, @ethersproject/providers@npm:^5.7.2":
"@ethersproject/providers@npm:5.7.2, @ethersproject/providers@npm:^5.0.0, @ethersproject/providers@npm:^5.7.2":
version: 5.7.2
resolution: "@ethersproject/providers@npm:5.7.2"
dependencies:
Expand Down Expand Up @@ -3575,6 +3575,24 @@ __metadata:
languageName: unknown
linkType: soft

"@imtbl/core-sdk@npm:^2.7.0":
version: 2.7.0
resolution: "@imtbl/core-sdk@npm:2.7.0"
dependencies:
"@ethersproject/abi": ^5.0.0
"@ethersproject/bytes": ^5.0.0
"@ethersproject/providers": ^5.0.0
axios: ^0.26.1
bn.js: ^5.2.0
elliptic: ^6.5.4
enc-utils: ^3.0.0
ethereumjs-wallet: ^1.0.2
ethers: ^5.7.1
hash.js: ^1.1.7
checksum: ea9bed1eceda1563d9ba50db29935ad0b4131cce3f1bf8e50f6bad28f3f301969b399319e8d6417e7546098c77850aa70c316ea48ecbfa7d28e85a27a206f234
languageName: node
linkType: hard

"@imtbl/[email protected], @imtbl/cryptofiat@workspace:packages/internal/cryptofiat":
version: 0.0.0-use.local
resolution: "@imtbl/cryptofiat@workspace:packages/internal/cryptofiat"
Expand Down Expand Up @@ -3844,6 +3862,7 @@ __metadata:
"@imtbl/checkout-sdk": 0.0.0
"@imtbl/checkout-widgets": 0.0.0
"@imtbl/config": 0.0.0
"@imtbl/core-sdk": ^2.7.0
"@imtbl/cryptofiat": 0.0.0
"@imtbl/generated-clients": 0.0.0
"@imtbl/guardian": 0.0.0
Expand Down Expand Up @@ -3973,6 +3992,7 @@ __metadata:
"@ethersproject/strings": ^5.7.0
"@ethersproject/wallet": ^5.7.0
"@imtbl/config": 0.0.0
"@imtbl/core-sdk": ^2.7.0
"@imtbl/generated-clients": 0.0.0
"@rollup/plugin-typescript": ^11.0.0
"@swc/jest": ^0.2.24
Expand Down Expand Up @@ -11768,6 +11788,15 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^0.26.1":
version: 0.26.1
resolution: "axios@npm:0.26.1"
dependencies:
follow-redirects: ^1.14.8
checksum: d9eb58ff4bc0b36a04783fc9ff760e9245c829a5a1052ee7ca6013410d427036b1d10d04e7380c02f3508c5eaf3485b1ae67bd2adbfec3683704745c8d7a6e1a
languageName: node
linkType: hard

"axios@npm:^1.6.5":
version: 1.6.5
resolution: "axios@npm:1.6.5"
Expand Down Expand Up @@ -16038,7 +16067,7 @@ __metadata:
languageName: node
linkType: hard

"ethers@npm:^5.7.2":
"ethers@npm:^5.7.1, ethers@npm:^5.7.2":
version: 5.7.2
resolution: "ethers@npm:5.7.2"
dependencies:
Expand Down Expand Up @@ -16651,6 +16680,16 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.14.8":
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
peerDependenciesMeta:
debug:
optional: true
checksum: a62c378dfc8c00f60b9c80cab158ba54e99ba0239a5dd7c81245e5a5b39d10f0c35e249c3379eae719ff0285fff88c365dd446fab19dee771f1d76252df1bbf5
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.4":
version: 1.15.4
resolution: "follow-redirects@npm:1.15.4"
Expand Down

0 comments on commit 878cb86

Please sign in to comment.