@iotexproject/kit 0.0.67 → 0.0.69

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
@@ -7267,6 +7267,7 @@ declare class BaseDBModule {
7267
7267
  superbase: ReturnType<typeof postgres>;
7268
7268
  iotexscan: ReturnType<typeof postgres>;
7269
7269
  iopay: ReturnType<typeof postgres>;
7270
+ nftmarket: ReturnType<typeof postgres>;
7270
7271
  ch: ClickHouseSDK;
7271
7272
  constructor();
7272
7273
  }
@@ -7319,10 +7320,35 @@ declare class Staking$1 extends BaseDBModule {
7319
7320
  hash: string;
7320
7321
  }): Promise<import("postgres").Row | null>;
7321
7322
  }
7323
+ declare class Transaction extends BaseDBModule {
7324
+ getTransactionsCountByAccount({ address }: {
7325
+ address: string;
7326
+ }): Promise<any>;
7327
+ getTransactionsByAccount({ address, pageSize, cursor }: {
7328
+ address: string;
7329
+ pageSize?: number;
7330
+ cursor?: number;
7331
+ }): Promise<{
7332
+ data: import("postgres").RowList<import("postgres").Row[]>;
7333
+ cursor: any;
7334
+ }>;
7335
+ }
7336
+ declare class NFT extends BaseDBModule {
7337
+ getNFTsByAccount({ address, page, pageSize }: {
7338
+ address: string;
7339
+ pageSize?: number;
7340
+ page?: number;
7341
+ }): Promise<import("postgres").RowList<import("postgres").Row[]>>;
7342
+ getNFTsCountByAccount({ address }: {
7343
+ address: string;
7344
+ }): Promise<any>;
7345
+ }
7322
7346
  declare const modules$1: {
7323
7347
  account: Account;
7324
7348
  analyzer: Analyzer;
7325
7349
  staking: Staking$1;
7350
+ transaction: Transaction;
7351
+ nft: NFT;
7326
7352
  };
7327
7353
  export declare const createClient: ({ url }?: {
7328
7354
  url?: string;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var z=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}}),A=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}});export{A as createClientWithDBServer,z as createClient};
1
+ var G=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}}),H=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}});export{H as createClientWithDBServer,G 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.67",
5
+ "version": "v0.0.69",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {