@zyfai/sdk 0.2.32 → 0.2.33
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -11
- package/dist/index.mjs +1 -11
- package/package.json +1 -1
- package/dist/cli/index.js +0 -3981
package/dist/index.d.mts
CHANGED
|
@@ -403,8 +403,9 @@ interface SdkKeyTVLResponse {
|
|
|
403
403
|
success: boolean;
|
|
404
404
|
allowedWallets: Address[];
|
|
405
405
|
totalTvl: number;
|
|
406
|
+
totalVolume: number;
|
|
406
407
|
tvlByWallet: WalletTVL[];
|
|
407
|
-
metadata
|
|
408
|
+
metadata: {
|
|
408
409
|
sdkKeyId: string;
|
|
409
410
|
clientName: string;
|
|
410
411
|
walletsCount: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -403,8 +403,9 @@ interface SdkKeyTVLResponse {
|
|
|
403
403
|
success: boolean;
|
|
404
404
|
allowedWallets: Address[];
|
|
405
405
|
totalTvl: number;
|
|
406
|
+
totalVolume: number;
|
|
406
407
|
tvlByWallet: WalletTVL[];
|
|
407
|
-
metadata
|
|
408
|
+
metadata: {
|
|
408
409
|
sdkKeyId: string;
|
|
409
410
|
clientName: string;
|
|
410
411
|
walletsCount: number;
|
package/dist/index.js
CHANGED
|
@@ -1531,17 +1531,6 @@ var _ZyfaiSDK = class _ZyfaiSDK {
|
|
|
1531
1531
|
safeAddress,
|
|
1532
1532
|
chainConfig.publicClient
|
|
1533
1533
|
);
|
|
1534
|
-
if (!alreadyDeployed) {
|
|
1535
|
-
const accountType = await getAccountType(
|
|
1536
|
-
userAddress,
|
|
1537
|
-
chainConfig.publicClient
|
|
1538
|
-
);
|
|
1539
|
-
if (accountType !== "EOA") {
|
|
1540
|
-
throw new Error(
|
|
1541
|
-
`Address ${userAddress} is not an EOA. Only EOA addresses can deploy Safe smart wallets.`
|
|
1542
|
-
);
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
1534
|
if (alreadyDeployed) {
|
|
1546
1535
|
let sessionKeyCreated2 = false;
|
|
1547
1536
|
if (createSessionKey) {
|
|
@@ -2963,6 +2952,7 @@ var _ZyfaiSDK = class _ZyfaiSDK {
|
|
|
2963
2952
|
success: response.success || true,
|
|
2964
2953
|
allowedWallets: response.allowedWallets || [],
|
|
2965
2954
|
totalTvl: response.totalTvl || 0,
|
|
2955
|
+
totalVolume: response.totalVolume || 0,
|
|
2966
2956
|
tvlByWallet: response.tvlByWallet || [],
|
|
2967
2957
|
metadata: response.metadata || {
|
|
2968
2958
|
sdkKeyId: "",
|
package/dist/index.mjs
CHANGED
|
@@ -1507,17 +1507,6 @@ var _ZyfaiSDK = class _ZyfaiSDK {
|
|
|
1507
1507
|
safeAddress,
|
|
1508
1508
|
chainConfig.publicClient
|
|
1509
1509
|
);
|
|
1510
|
-
if (!alreadyDeployed) {
|
|
1511
|
-
const accountType = await getAccountType(
|
|
1512
|
-
userAddress,
|
|
1513
|
-
chainConfig.publicClient
|
|
1514
|
-
);
|
|
1515
|
-
if (accountType !== "EOA") {
|
|
1516
|
-
throw new Error(
|
|
1517
|
-
`Address ${userAddress} is not an EOA. Only EOA addresses can deploy Safe smart wallets.`
|
|
1518
|
-
);
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
1510
|
if (alreadyDeployed) {
|
|
1522
1511
|
let sessionKeyCreated2 = false;
|
|
1523
1512
|
if (createSessionKey) {
|
|
@@ -2939,6 +2928,7 @@ var _ZyfaiSDK = class _ZyfaiSDK {
|
|
|
2939
2928
|
success: response.success || true,
|
|
2940
2929
|
allowedWallets: response.allowedWallets || [],
|
|
2941
2930
|
totalTvl: response.totalTvl || 0,
|
|
2931
|
+
totalVolume: response.totalVolume || 0,
|
|
2942
2932
|
tvlByWallet: response.tvlByWallet || [],
|
|
2943
2933
|
metadata: response.metadata || {
|
|
2944
2934
|
sdkKeyId: "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyfai/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"description": "TypeScript SDK for Zyfai Yield Optimization Engine - Deploy Safe smart wallets, manage session keys, and interact with DeFi protocols",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|