@zyfai/sdk 0.2.30 → 0.2.32
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/README.md +2 -2
- package/dist/cli/index.js +3981 -0
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -688,8 +688,8 @@ Earnings are returned per-token (multi-asset support).
|
|
|
688
688
|
const earnings = await sdk.getOnchainEarnings(walletAddress);
|
|
689
689
|
// Per-token earnings: { "USDC": "0.020667", "WETH": "0.000009" }
|
|
690
690
|
console.log("Total by token:", earnings.data.totalEarningsByToken);
|
|
691
|
-
|
|
692
|
-
console.log("
|
|
691
|
+
// Per-chain totals (chain → token → amount): { "8453": { "USDC": "0.01" }, "42161": {...} }
|
|
692
|
+
console.log("Total by chain:", earnings.data.totalEarningsByChain);
|
|
693
693
|
```
|
|
694
694
|
|
|
695
695
|
#### Calculate Onchain Earnings (Refresh)
|