@dynamic-labs/waas 4.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +19 -0
- package/package.json +19 -0
- package/src/DynamicWaasMixin.d.ts +14 -0
- package/src/index.d.ts +1 -0
package/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
2
|
+
|
|
3
|
+
var version = "4.20.2";
|
|
4
|
+
|
|
5
|
+
const withDynamicWaas = (BaseClass) => class DynamicWaasMixin extends BaseClass {
|
|
6
|
+
setGetSignedSessionIdFunction(getSignedSessionId) {
|
|
7
|
+
this.getSignedSessionId = getSignedSessionId;
|
|
8
|
+
}
|
|
9
|
+
constructor(...args) {
|
|
10
|
+
super(...args);
|
|
11
|
+
this.name = 'Dynamic Waas';
|
|
12
|
+
this.overrideKey = 'dynamicwaas';
|
|
13
|
+
this.isEmbeddedWallet = true;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
assertPackageVersion('@dynamic-labs/waas', version);
|
|
18
|
+
|
|
19
|
+
export { withDynamicWaas };
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs/waas",
|
|
3
|
+
"version": "4.20.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": "Dynamic Labs, Inc.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.ts"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@dynamic-labs/assert-package-version": "4.20.2",
|
|
12
|
+
"@dynamic-labs/ethereum-core": "4.20.2",
|
|
13
|
+
"@dynamic-labs/solana-core": "4.20.2",
|
|
14
|
+
"@dynamic-labs/sui-core": "4.20.2"
|
|
15
|
+
},
|
|
16
|
+
"module": "./index.js",
|
|
17
|
+
"main": "./index.js",
|
|
18
|
+
"types": "./src/index.d.ts"
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EthereumWalletConnector } from '@dynamic-labs/ethereum-core';
|
|
2
|
+
import { SuiWalletConnector } from '@dynamic-labs/sui-core';
|
|
3
|
+
import { SolanaWalletConnector } from '@dynamic-labs/solana-core';
|
|
4
|
+
export declare const withDynamicWaas: <T extends typeof EthereumWalletConnector | typeof SuiWalletConnector | typeof SolanaWalletConnector>(BaseClass: T) => {
|
|
5
|
+
new (...args: any[]): {
|
|
6
|
+
name: string;
|
|
7
|
+
overrideKey: string;
|
|
8
|
+
isEmbeddedWallet: boolean;
|
|
9
|
+
getSignedSessionId?: (() => Promise<string>) | undefined;
|
|
10
|
+
setGetSignedSessionIdFunction(getSignedSessionId: () => Promise<string>): void;
|
|
11
|
+
};
|
|
12
|
+
prefixed: string | boolean;
|
|
13
|
+
readonly EventEmitter: import("eventemitter3").EventEmitter.EventEmitterStatic;
|
|
14
|
+
} & T;
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withDynamicWaas } from './DynamicWaasMixin';
|