@pioneer-platform/zapper-client 8.11.0 → 8.11.1
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/LINK_INVESTIGATION_REPORT.md +164 -0
- package/ZAPPER_API_FINDINGS.md +246 -0
- package/docs/zapper-graql.md +5512 -0
- package/docs/zapper_api.md +1514 -0
- package/lib/index.d.ts +30 -1
- package/lib/index.js +259 -266
- package/package.json +2 -2
- package/.turbo/turbo-build.log +0 -2
- package/lib/index.js.map +0 -75
package/lib/index.d.ts
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
declare const TAG = " | zapper | ";
|
|
2
|
+
declare const log: any;
|
|
3
|
+
declare const evmCaips: any;
|
|
4
|
+
declare const axiosLib: any;
|
|
5
|
+
declare const Axios: any;
|
|
6
|
+
declare const https: any;
|
|
7
|
+
declare let API_KEY: string | undefined;
|
|
8
|
+
declare const axios: any;
|
|
9
|
+
declare const GRAPHQL_URL = "https://public.zapper.xyz/graphql";
|
|
10
|
+
declare const REST_URL = "https://api.zapper.xyz";
|
|
11
|
+
/**
|
|
12
|
+
* Validates if a CAIP is correctly formatted for the given token
|
|
13
|
+
*/
|
|
14
|
+
declare const validateCaip: (caip: string, token: any, networkName: string) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Assigns the correct CAIP for a token based on its properties
|
|
17
|
+
*/
|
|
18
|
+
declare const assignCorrectCaip: (networkId: string, token: any, networkName: string) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Logs CAIP assignment for debugging
|
|
21
|
+
*/
|
|
22
|
+
declare const logCaipAssignment: (balance: any, originalCaip?: string) => void;
|
|
23
|
+
declare const get_portfolio: (address: string) => Promise<any>;
|
|
24
|
+
declare const get_total_networth: (address: string) => Promise<any>;
|
|
25
|
+
declare const get_tokens: (address: string) => Promise<any>;
|
|
26
|
+
declare const get_nfts: (address: string) => Promise<{
|
|
27
|
+
items: any;
|
|
28
|
+
totalCount: any;
|
|
29
|
+
totalBalanceUSD: any;
|
|
30
|
+
} | undefined>;
|