@iotexproject/kit 0.0.77 → 0.0.78

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.ts CHANGED
@@ -8205,10 +8205,20 @@ declare class Account extends BaseDBModule {
8205
8205
  }): Promise<{
8206
8206
  list: any;
8207
8207
  }>;
8208
+ balanceChartV2({ address, mode }: {
8209
+ address: string;
8210
+ mode: "24hr" | "7day" | "30day" | "365day";
8211
+ }): Promise<{
8212
+ list: [
8213
+ number,
8214
+ number
8215
+ ][];
8216
+ } | undefined>;
8217
+ private convertBalanceChartData;
8208
8218
  getXrc20Tokens({ address }: {
8209
8219
  address: string;
8210
8220
  }): Promise<{
8211
- tokens: postgres.RowList<postgres.Row[]>;
8221
+ tokens: import("postgres").RowList<import("postgres").Row[]>;
8212
8222
  }>;
8213
8223
  }
8214
8224
  declare class Analysis extends BaseDBModule {
@@ -8273,7 +8283,7 @@ declare class Transaction extends BaseDBModule {
8273
8283
  startCursor?: number;
8274
8284
  endCursor?: number;
8275
8285
  }): Promise<{
8276
- data: import("postgres").RowList<import("postgres").Row[]>;
8286
+ data: import("postgres").Row[];
8277
8287
  startCursor: any;
8278
8288
  endCursor: any;
8279
8289
  }>;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var L=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),M=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),N=({url:z="http://localhost:9527",fetchRequestInit:F})=>new Proxy({},{get(C,G,J){return new Proxy({},{get(D,x){return async(B)=>{const H=`${z}/${String(G)}/${String(x)}`;return(await fetch(H,{method:"POST",...F,body:JSON.stringify(B)})).json()}}})}});export{N as createClientWithWriteDBServer,M as createClientWithDBServer,L as createClient};
1
+ var C=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),D=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),E=({url:$="http://localhost:9527",fetchRequestInit:j})=>new Proxy({},{get(c,w,A){return new Proxy({},{get(f,x){return async(b)=>{const z=`${$}/${String(w)}/${String(x)}`;return(await fetch(z,{method:"POST",...j,body:JSON.stringify(b)})).json()}}})}});export{E as createClientWithWriteDBServer,D as createClientWithDBServer,C as createClient};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.77",
5
+ "version": "v0.0.78",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {