@dynamic-labs/sdk-react-core 4.0.0-alpha.28 → 4.0.0-alpha.29
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/CHANGELOG.md
CHANGED
package/package.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "4.0.0-alpha.
|
|
6
|
+
var version = "4.0.0-alpha.29";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.563",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
11
11
|
"country-list": "2.3.0",
|
package/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "4.0.0-alpha.
|
|
2
|
+
var version = "4.0.0-alpha.29";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.0.563",
|
|
5
5
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
6
6
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
7
7
|
"country-list": "2.3.0",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.29",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.563",
|
|
6
6
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
7
7
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
8
8
|
"country-list": "2.3.0",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"react-i18next": "13.5.0",
|
|
14
14
|
"yup": "0.32.11",
|
|
15
15
|
"react-international-phone": "4.2.5",
|
|
16
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
17
|
-
"@dynamic-labs/iconic": "4.0.0-alpha.
|
|
18
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
19
|
-
"@dynamic-labs/multi-wallet": "4.0.0-alpha.
|
|
20
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/store": "4.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
16
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.29",
|
|
17
|
+
"@dynamic-labs/iconic": "4.0.0-alpha.29",
|
|
18
|
+
"@dynamic-labs/logger": "4.0.0-alpha.29",
|
|
19
|
+
"@dynamic-labs/multi-wallet": "4.0.0-alpha.29",
|
|
20
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.29",
|
|
21
|
+
"@dynamic-labs/store": "4.0.0-alpha.29",
|
|
22
|
+
"@dynamic-labs/types": "4.0.0-alpha.29",
|
|
23
|
+
"@dynamic-labs/utils": "4.0.0-alpha.29",
|
|
24
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.29",
|
|
25
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.29",
|
|
26
26
|
"bs58": "5.0.0",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
@@ -14,7 +14,7 @@ const findOwner = (account, verifiedCredentials) => verifiedCredentials.find((cr
|
|
|
14
14
|
const findSmartWallet = (account, verifiedCredentials) => verifiedCredentials.find((credential) => credential.signerRefId === account.id);
|
|
15
15
|
const isOwnerOfASmartWallet = (account, verifiedCredentials) => Boolean(findSmartWallet(account, verifiedCredentials));
|
|
16
16
|
const initializeSmartWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ account, verifiedCredentials, walletConnectorOptions, primaryWalletId, }) {
|
|
17
|
-
var _b, _c;
|
|
17
|
+
var _b, _c, _d, _e, _f;
|
|
18
18
|
const owner = findOwner(account, verifiedCredentials);
|
|
19
19
|
if (!owner) {
|
|
20
20
|
throw new Error('could not find associated eoa account for smart wallet');
|
|
@@ -50,8 +50,11 @@ const initializeSmartWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, fun
|
|
|
50
50
|
}
|
|
51
51
|
const shouldSetEoaConnector = primaryWalletId === owner.id || primaryWalletId === account.id;
|
|
52
52
|
yield connector.registerEoa({
|
|
53
|
+
ecdsaProviderType: (_d = account.walletProperties) === null || _d === void 0 ? void 0 : _d.ecdsaProviderType,
|
|
54
|
+
entryPointVersion: (_e = account.walletProperties) === null || _e === void 0 ? void 0 : _e.entryPointVersion,
|
|
53
55
|
eoaAddress: owner.address,
|
|
54
56
|
eoaConnector: ownerWallet.walletConnector,
|
|
57
|
+
kernelVersion: (_f = account.walletProperties) === null || _f === void 0 ? void 0 : _f.kernelVersion,
|
|
55
58
|
shouldSetEoaConnector,
|
|
56
59
|
smartWalletAddress: account.address,
|
|
57
60
|
});
|
|
@@ -10,7 +10,7 @@ const findOwner = (account, verifiedCredentials) => verifiedCredentials.find((cr
|
|
|
10
10
|
const findSmartWallet = (account, verifiedCredentials) => verifiedCredentials.find((credential) => credential.signerRefId === account.id);
|
|
11
11
|
const isOwnerOfASmartWallet = (account, verifiedCredentials) => Boolean(findSmartWallet(account, verifiedCredentials));
|
|
12
12
|
const initializeSmartWallet = (_a) => __awaiter(void 0, [_a], void 0, function* ({ account, verifiedCredentials, walletConnectorOptions, primaryWalletId, }) {
|
|
13
|
-
var _b, _c;
|
|
13
|
+
var _b, _c, _d, _e, _f;
|
|
14
14
|
const owner = findOwner(account, verifiedCredentials);
|
|
15
15
|
if (!owner) {
|
|
16
16
|
throw new Error('could not find associated eoa account for smart wallet');
|
|
@@ -46,8 +46,11 @@ const initializeSmartWallet = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
46
46
|
}
|
|
47
47
|
const shouldSetEoaConnector = primaryWalletId === owner.id || primaryWalletId === account.id;
|
|
48
48
|
yield connector.registerEoa({
|
|
49
|
+
ecdsaProviderType: (_d = account.walletProperties) === null || _d === void 0 ? void 0 : _d.ecdsaProviderType,
|
|
50
|
+
entryPointVersion: (_e = account.walletProperties) === null || _e === void 0 ? void 0 : _e.entryPointVersion,
|
|
49
51
|
eoaAddress: owner.address,
|
|
50
52
|
eoaConnector: ownerWallet.walletConnector,
|
|
53
|
+
kernelVersion: (_f = account.walletProperties) === null || _f === void 0 ? void 0 : _f.kernelVersion,
|
|
51
54
|
shouldSetEoaConnector,
|
|
52
55
|
smartWalletAddress: account.address,
|
|
53
56
|
});
|