Skip to content

Commit

Permalink
chore: update bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalavedra committed Jan 3, 2025
1 parent b9bda5f commit 27fe00b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 53 deletions.
2 changes: 1 addition & 1 deletion packages/platform-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@openfort/platform-bridge",
"version": "0.0.0",
"dependencies": {
"@openfort/openfort-js": "0.8.6",
"@openfort/openfort-js": "0.8.16",
"ethers": "^5.7.0"
},
"devDependencies": {
Expand Down
14 changes: 14 additions & 0 deletions packages/platform-bridge/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const OPENFORT_FUNCTIONS = {
configureEmbeddedSigner: 'configureEmbeddedSigner',
logInWithEmailPassword: 'logInWithEmailPassword',
signUpWithEmailPassword: 'signUpWithEmailPassword',
signUpGuest: 'signUpGuest',
linkEmailPassword: 'linkEmailPassword',
unlinkEmailPassword: 'unlinkEmailPassword',
requestEmailVerification: 'requestEmailVerification',
Expand Down Expand Up @@ -544,6 +545,19 @@ window.callFunction = async (jsonData: string) => {
});
break;
}
case OPENFORT_FUNCTIONS.signUpGuest: {
const userInfo = await openfortClient?.signUpGuest();

callbackToGame({
...{
responseFor: fxName,
requestId,
success: true,
},
...userInfo,
});
break;
}
case OPENFORT_FUNCTIONS.signUpWithEmailPassword: {
const request = JSON.parse(data);
const userInfo = await openfortClient?.signUpWithEmailPassword({
Expand Down
58 changes: 6 additions & 52 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1375,32 +1375,7 @@ __metadata:
languageName: unknown
linkType: soft

"@openfort/openfort-js@npm:0.8.6":
version: 0.8.6
resolution: "@openfort/openfort-js@npm:0.8.6"
dependencies:
"@ethersproject/abstract-signer": ^5.7.0
"@ethersproject/bytes": ^5.7.0
"@ethersproject/hash": ^5.7.0
"@ethersproject/providers": ^5.7.0
"@ethersproject/signing-key": ^5.7.0
"@ethersproject/transactions": ^5.7.0
"@noble/curves": ^1.1.0
"@openfort/shield-js": ^0.0.3
axios: 1.6.7
buffer: ^6.0.3
crypto-browserify: ^3.12.0
crypto-js: ^4.2.0
es6-promise: ^4.2.8
jose: ^5.2.2
path: ^0.12.7
stream-browserify: ^3.0.0
uuid: ^8.3.2
checksum: 71bb43f1cd9d1d398c6f7e85cfc5f434c419d39980ad591ffb8a5aec8e1f85dda1daea1286395720dd3792c5ae82169321f152e122d7d1774ccd579f3b4426fc
languageName: node
linkType: hard

"@openfort/openfort-js@workspace:sdk":
"@openfort/[email protected], @openfort/openfort-js@workspace:sdk":
version: 0.0.0-use.local
resolution: "@openfort/openfort-js@workspace:sdk"
dependencies:
Expand Down Expand Up @@ -1457,23 +1432,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@openfort/platform-bridge@workspace:packages/platform-bridge"
dependencies:
"@openfort/openfort-js": 0.8.6
"@openfort/openfort-js": 0.8.16
eslint: ^8.40.0
ethers: ^5.7.0
parcel: ^2.8.3
languageName: unknown
linkType: soft

"@openfort/shield-js@npm:^0.0.3":
version: 0.0.3
resolution: "@openfort/shield-js@npm:0.0.3"
dependencies:
axios: ^1.6.8
typescript: ^5.4.3
checksum: fee7c7d81a72068db75e60e7bc19a79f71223740508dcdcb0056b30d092de8b0cb59c0d0f34736ac9039f7039de2b0961212ebc5623ccd153e53bd8029f46de7
languageName: node
linkType: hard

"@openfort/shield-js@npm:^0.1.11":
version: 0.1.13
resolution: "@openfort/shield-js@npm:0.1.13"
Expand Down Expand Up @@ -3623,17 +3588,6 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^1.6.8":
version: 1.7.8
resolution: "axios@npm:1.7.8"
dependencies:
follow-redirects: ^1.15.6
form-data: ^4.0.0
proxy-from-env: ^1.1.0
checksum: 3d21652faf8e29fb36c47517d2872bb5e2285127a24f5c53ce23082c4eac7f5a88de84dd49d4a1a83068e5301dcfd9067b41e5fbd00b0d20ab7b0a843559273d
languageName: node
linkType: hard

"axobject-query@npm:^4.1.0":
version: 4.1.0
resolution: "axobject-query@npm:4.1.0"
Expand Down Expand Up @@ -3909,7 +3863,7 @@ __metadata:
languageName: node
linkType: hard

"buffer@npm:^5.5.0||^6.0.0, buffer@npm:^6.0.3":
"buffer@npm:^5.5.0||^6.0.0":
version: 6.0.3
resolution: "buffer@npm:6.0.3"
dependencies:
Expand Down Expand Up @@ -5565,7 +5519,7 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.4, follow-redirects@npm:^1.15.6":
"follow-redirects@npm:^1.15.4":
version: 1.15.9
resolution: "follow-redirects@npm:1.15.9"
peerDependenciesMeta:
Expand Down Expand Up @@ -9972,7 +9926,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.0.4, typescript@npm:^5.4.3":
"typescript@npm:^5.0.4":
version: 5.7.2
resolution: "typescript@npm:5.7.2"
bin:
Expand All @@ -9992,7 +9946,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@^5.0.4#~builtin<compat/typescript>, typescript@patch:typescript@^5.4.3#~builtin<compat/typescript>":
"typescript@patch:typescript@^5.0.4#~builtin<compat/typescript>":
version: 5.7.2
resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin<compat/typescript>::version=5.7.2&hash=14eedb"
bin:
Expand Down

0 comments on commit 27fe00b

Please sign in to comment.