@iotexproject/kit 0.0.86 → 0.0.88

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
@@ -4182,6 +4182,16 @@ declare class IoID {
4182
4182
  data?: undefined;
4183
4183
  chainId?: undefined;
4184
4184
  }>;
4185
+ registedDevices(args: {
4186
+ address: `0x${string}`;
4187
+ }): Promise<{
4188
+ index: bigint;
4189
+ wallet: never;
4190
+ ioid: never;
4191
+ balance: bigint;
4192
+ }[] | {
4193
+ error: unknown;
4194
+ }>;
4185
4195
  }
4186
4196
  declare class VoterEntity {
4187
4197
  address: `0x${string}`;
@@ -6286,6 +6296,9 @@ declare class Mimo {
6286
6296
  lpBalanceUSD: string;
6287
6297
  }[]>;
6288
6298
  getTokenList(): Promise<any>;
6299
+ getToken({ address }: {
6300
+ address: string;
6301
+ }): Promise<any>;
6289
6302
  }
6290
6303
  declare class MockBucketEntity {
6291
6304
  address: `0x${string}`;
@@ -8339,6 +8352,10 @@ declare class Analyzer extends BaseDBModule {
8339
8352
  start_date?: string;
8340
8353
  end_date?: string;
8341
8354
  }): Promise<postgres.RowList<postgres.Row[]>>;
8355
+ dailyPeakTps({ start_date, end_date }?: {
8356
+ start_date?: string;
8357
+ end_date?: string;
8358
+ }): Promise<postgres.RowList<postgres.Row[]>>;
8342
8359
  avgDailyTxVolume({ start_date, end_date }?: {
8343
8360
  start_date?: string;
8344
8361
  end_date?: string;
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.86",
5
+ "version": "v0.0.88",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {