Skip to content

Commit

Permalink
Add biconomy init option
Browse files Browse the repository at this point in the history
  • Loading branch information
skambalin committed Feb 15, 2024
1 parent 84ecb6d commit 243ef4f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cere/torus-embed",
"version": "0.2.7",
"clientVersion": "1.29.4",
"version": "0.2.8",
"clientVersion": "1.31.0",
"description": "Embed script for Torus (Cere frok)",
"main": "dist/torus.cjs.js",
"module": "dist/torus.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class Torus {
sessionId,
sessionNamespace,
popupMode,
biconomy,
}: TorusParams = {}): Promise<void> {
if (this.isInitialized) throw new Error("Already initialized");
const { torusUrl, logLevel } = await getTorusUrl(buildEnv, integrity);
Expand Down Expand Up @@ -260,6 +261,7 @@ class Torus {
network,
mfaLevel,
context,
biconomy,
sessionId,
},
});
Expand Down
5 changes: 5 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ export interface TorusParams {
* [Cere wallet] Transaction popups mode. Overrides the constructor option.
*/
popupMode?: PopupMode;

/**
* [Cere wallet] Externaly provided Biconomy configuration
*/
biconomy?: unknown;
}

export interface UnvalidatedJsonRpcRequest {
Expand Down

0 comments on commit 243ef4f

Please sign in to comment.