Skip to content

Commit

Permalink
support wallet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
upalinski committed Jan 20, 2025
1 parent d0f9c47 commit e5c116b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/embed-wallet-inject/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cere/embed-wallet-inject",
"version": "0.23.2",
"version": "0.23.3",
"sideEffects": false,
"type": "module",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/embed-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cere/embed-wallet",
"version": "0.23.2",
"version": "0.23.3",
"description": "Cere Wallet SDK to integrate the wallet into a web application.",
"sideEffects": false,
"main": "dist/bundle.umd.js",
Expand All @@ -23,7 +23,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@cere/torus-embed": "0.2.9",
"@cere/torus-embed": "0.2.10",
"@types/bn.js": "^5.1.1",
"@types/readable-stream": "^2.3.15",
"bn.js": "^5.2.1"
Expand Down
2 changes: 2 additions & 0 deletions packages/embed-wallet/src/EmbedWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export class EmbedWallet {
context,
biconomy,
authMethod,
mode,
popupMode = 'modal',
connectOptions = {},
appId = this.options.appId,
Expand Down Expand Up @@ -188,6 +189,7 @@ export class EmbedWallet {
check: false,
version: clientVersion,
},
mode,
});

this.proxyProvider.setTarget(this.torus.provider);
Expand Down
2 changes: 2 additions & 0 deletions packages/embed-wallet/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export type WalletStatus =
| 'connecting'
| 'disconnecting'
| 'errored';
export type WalletMode = 'default' | 'light';

export type NetworkConfig = Omit<NetworkInterface, 'host'> & {
host: 'matic' | 'amoy' | string;
Expand All @@ -89,6 +90,7 @@ export type WalletOptions = {
sessionNamespace?: string;
clientVersion?: string;
env?: WalletEnvironment;
mode?: WalletMode;
};

export type BiconomyOptions = {
Expand Down

0 comments on commit e5c116b

Please sign in to comment.