@kryptos_connect/mobile-sdk 1.0.6-dev.1 → 1.0.6
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/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2554,7 +2554,7 @@ function ConnectButton({
|
|
|
2554
2554
|
isNftSupported: provider?.isEvmWallet || provider?.nftSupport || false,
|
|
2555
2555
|
isCustomWallet: false,
|
|
2556
2556
|
chainId: provider?.community_id,
|
|
2557
|
-
address
|
|
2557
|
+
address
|
|
2558
2558
|
};
|
|
2559
2559
|
integrationsToAdd.push(data);
|
|
2560
2560
|
} else {
|
|
@@ -3356,12 +3356,12 @@ var IntegrationForm = ({
|
|
|
3356
3356
|
if (result.status === "fulfilled" && result.value?.valid) {
|
|
3357
3357
|
const data = {
|
|
3358
3358
|
alias,
|
|
3359
|
-
exchange:
|
|
3360
|
-
id:
|
|
3361
|
-
public_name:
|
|
3359
|
+
exchange: chain.id.toLowerCase(),
|
|
3360
|
+
id: chain.id,
|
|
3361
|
+
public_name: chain.public_name || "",
|
|
3362
3362
|
sync_time: (/* @__PURE__ */ new Date()).getTime(),
|
|
3363
3363
|
fetchAll: true,
|
|
3364
|
-
logo:
|
|
3364
|
+
logo: chain.logo ? chain.logo : null,
|
|
3365
3365
|
startTime: null,
|
|
3366
3366
|
endTime: null,
|
|
3367
3367
|
uid: user?.user_id || "",
|
|
@@ -3371,11 +3371,11 @@ var IntegrationForm = ({
|
|
|
3371
3371
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
3372
3372
|
},
|
|
3373
3373
|
addedOn: (/* @__PURE__ */ new Date()).getTime(),
|
|
3374
|
-
default_chain:
|
|
3374
|
+
default_chain: metadata.id,
|
|
3375
3375
|
default_chain_logo: "",
|
|
3376
3376
|
type: metadata.type,
|
|
3377
|
-
isNftSupported: metadata.isEvmWallet || metadata.nftSupport
|
|
3378
|
-
chainId: chain?.community_id
|
|
3377
|
+
isNftSupported: metadata.isEvmWallet || metadata.nftSupport ? true : false,
|
|
3378
|
+
chainId: chain?.community_id,
|
|
3379
3379
|
address: formValues.address,
|
|
3380
3380
|
isCustomWallet: false
|
|
3381
3381
|
};
|
|
@@ -3396,7 +3396,7 @@ var IntegrationForm = ({
|
|
|
3396
3396
|
setChainErrors(errors);
|
|
3397
3397
|
if (Object.keys(errors).length > 0) {
|
|
3398
3398
|
setErrorMessage(
|
|
3399
|
-
`Cannot add integrations. ${Object.keys(errors).length} chain${Object.keys(errors).length > 1 ? "s" : ""} failed verification.`
|
|
3399
|
+
`Cannot add integrations. ${Object.keys(errors).length} chain${Object.keys(errors).length > 1 ? "s" : ""} failed verification. Please fix the errors and try again.`
|
|
3400
3400
|
);
|
|
3401
3401
|
return;
|
|
3402
3402
|
}
|
|
@@ -3432,7 +3432,7 @@ var IntegrationForm = ({
|
|
|
3432
3432
|
public_name: metadata.public_name,
|
|
3433
3433
|
sync_time: (/* @__PURE__ */ new Date()).getTime(),
|
|
3434
3434
|
fetchAll: true,
|
|
3435
|
-
logo: metadata.logo
|
|
3435
|
+
logo: metadata.logo ? metadata.logo : null,
|
|
3436
3436
|
startTime: null,
|
|
3437
3437
|
endTime: null,
|
|
3438
3438
|
uid: user?.user_id || "",
|
|
@@ -3445,7 +3445,7 @@ var IntegrationForm = ({
|
|
|
3445
3445
|
default_chain: metadata.id,
|
|
3446
3446
|
default_chain_logo: "",
|
|
3447
3447
|
type: metadata.type,
|
|
3448
|
-
isNftSupported: metadata.isEvmWallet || metadata.nftSupport
|
|
3448
|
+
isNftSupported: metadata.isEvmWallet || metadata.nftSupport ? true : false,
|
|
3449
3449
|
isCustomWallet: false
|
|
3450
3450
|
};
|
|
3451
3451
|
if (metadata.community_id) {
|
package/dist/index.mjs
CHANGED
|
@@ -2569,7 +2569,7 @@ function ConnectButton({
|
|
|
2569
2569
|
isNftSupported: provider?.isEvmWallet || provider?.nftSupport || false,
|
|
2570
2570
|
isCustomWallet: false,
|
|
2571
2571
|
chainId: provider?.community_id,
|
|
2572
|
-
address
|
|
2572
|
+
address
|
|
2573
2573
|
};
|
|
2574
2574
|
integrationsToAdd.push(data);
|
|
2575
2575
|
} else {
|
|
@@ -3377,12 +3377,12 @@ var IntegrationForm = ({
|
|
|
3377
3377
|
if (result.status === "fulfilled" && result.value?.valid) {
|
|
3378
3378
|
const data = {
|
|
3379
3379
|
alias,
|
|
3380
|
-
exchange:
|
|
3381
|
-
id:
|
|
3382
|
-
public_name:
|
|
3380
|
+
exchange: chain.id.toLowerCase(),
|
|
3381
|
+
id: chain.id,
|
|
3382
|
+
public_name: chain.public_name || "",
|
|
3383
3383
|
sync_time: (/* @__PURE__ */ new Date()).getTime(),
|
|
3384
3384
|
fetchAll: true,
|
|
3385
|
-
logo:
|
|
3385
|
+
logo: chain.logo ? chain.logo : null,
|
|
3386
3386
|
startTime: null,
|
|
3387
3387
|
endTime: null,
|
|
3388
3388
|
uid: user?.user_id || "",
|
|
@@ -3392,11 +3392,11 @@ var IntegrationForm = ({
|
|
|
3392
3392
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
3393
3393
|
},
|
|
3394
3394
|
addedOn: (/* @__PURE__ */ new Date()).getTime(),
|
|
3395
|
-
default_chain:
|
|
3395
|
+
default_chain: metadata.id,
|
|
3396
3396
|
default_chain_logo: "",
|
|
3397
3397
|
type: metadata.type,
|
|
3398
|
-
isNftSupported: metadata.isEvmWallet || metadata.nftSupport
|
|
3399
|
-
chainId: chain?.community_id
|
|
3398
|
+
isNftSupported: metadata.isEvmWallet || metadata.nftSupport ? true : false,
|
|
3399
|
+
chainId: chain?.community_id,
|
|
3400
3400
|
address: formValues.address,
|
|
3401
3401
|
isCustomWallet: false
|
|
3402
3402
|
};
|
|
@@ -3417,7 +3417,7 @@ var IntegrationForm = ({
|
|
|
3417
3417
|
setChainErrors(errors);
|
|
3418
3418
|
if (Object.keys(errors).length > 0) {
|
|
3419
3419
|
setErrorMessage(
|
|
3420
|
-
`Cannot add integrations. ${Object.keys(errors).length} chain${Object.keys(errors).length > 1 ? "s" : ""} failed verification.`
|
|
3420
|
+
`Cannot add integrations. ${Object.keys(errors).length} chain${Object.keys(errors).length > 1 ? "s" : ""} failed verification. Please fix the errors and try again.`
|
|
3421
3421
|
);
|
|
3422
3422
|
return;
|
|
3423
3423
|
}
|
|
@@ -3453,7 +3453,7 @@ var IntegrationForm = ({
|
|
|
3453
3453
|
public_name: metadata.public_name,
|
|
3454
3454
|
sync_time: (/* @__PURE__ */ new Date()).getTime(),
|
|
3455
3455
|
fetchAll: true,
|
|
3456
|
-
logo: metadata.logo
|
|
3456
|
+
logo: metadata.logo ? metadata.logo : null,
|
|
3457
3457
|
startTime: null,
|
|
3458
3458
|
endTime: null,
|
|
3459
3459
|
uid: user?.user_id || "",
|
|
@@ -3466,7 +3466,7 @@ var IntegrationForm = ({
|
|
|
3466
3466
|
default_chain: metadata.id,
|
|
3467
3467
|
default_chain_logo: "",
|
|
3468
3468
|
type: metadata.type,
|
|
3469
|
-
isNftSupported: metadata.isEvmWallet || metadata.nftSupport
|
|
3469
|
+
isNftSupported: metadata.isEvmWallet || metadata.nftSupport ? true : false,
|
|
3470
3470
|
isCustomWallet: false
|
|
3471
3471
|
};
|
|
3472
3472
|
if (metadata.community_id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kryptos_connect/mobile-sdk",
|
|
3
|
-
"version": "1.0.6
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -112,4 +112,4 @@
|
|
|
112
112
|
"url": "https://github.com/Kryptoskatt/kryptos-connect-mobile-package/issues"
|
|
113
113
|
},
|
|
114
114
|
"homepage": "https://github.com/Kryptoskatt/kryptos-connect-mobile-package#readme"
|
|
115
|
-
}
|
|
115
|
+
}
|