@iotexproject/kit 0.1.18 → 0.1.19

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
@@ -2559,11 +2559,12 @@ export interface IoIDDevice {
2559
2559
  } | null;
2560
2560
  }
2561
2561
  export type ProjectMetadata = {
2562
- logo: string;
2562
+ logo?: string;
2563
2563
  twitter?: string;
2564
2564
  website?: string;
2565
2565
  desc?: string;
2566
2566
  github?: string;
2567
+ metadata?: any;
2567
2568
  };
2568
2569
  declare class GaugeEntity {
2569
2570
  address: `0x${string}`;
@@ -8301,6 +8302,38 @@ declare class Health {
8301
8302
  message: string;
8302
8303
  };
8303
8304
  }
8305
+ declare class PointsPlatform {
8306
+ userPoints(args: {
8307
+ user: string;
8308
+ }): Promise<{
8309
+ selfPoints: any;
8310
+ selfRank: any;
8311
+ dailyPoints: any;
8312
+ error?: undefined;
8313
+ } | {
8314
+ error: unknown;
8315
+ selfPoints?: undefined;
8316
+ selfRank?: undefined;
8317
+ dailyPoints?: undefined;
8318
+ }>;
8319
+ usersRank(args: {
8320
+ page: number;
8321
+ limit: number;
8322
+ }): Promise<{
8323
+ data: any;
8324
+ error?: undefined;
8325
+ } | {
8326
+ error: unknown;
8327
+ data?: undefined;
8328
+ }>;
8329
+ protocolsRank(): Promise<{
8330
+ data: any;
8331
+ error?: undefined;
8332
+ } | {
8333
+ error: unknown;
8334
+ data?: undefined;
8335
+ }>;
8336
+ }
8304
8337
  declare const modules: {
8305
8338
  mimo: Mimo;
8306
8339
  staking: Staking;
@@ -8310,6 +8343,7 @@ declare const modules: {
8310
8343
  utils: utils;
8311
8344
  hub: UseHub;
8312
8345
  health: Health;
8346
+ points: PointsPlatform;
8313
8347
  };
8314
8348
  export type ModuleType = typeof modules;
8315
8349
  declare class ClickHouseSDK {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var G=({url:b="http://localhost:9527",ctx:j}={})=>new Proxy({},{get(C,w,F){return new Proxy({},{get(E,D){return async(T)=>{for(let z in T){if(typeof T[z]==="object")T[z]=JSON.stringify(T[z],(A,B)=>typeof B==="bigint"?B.toString():B);if(T[z]==null)delete T[z]}const $=`${b}/${String(w)}/${String(D)}?${new URLSearchParams(T).toString()}`;let N;if(j)N=await fetch($,{headers:{...j}});else N=await fetch($);return N.json()}}})}}),H=({url:b="http://localhost:9527"}={})=>new Proxy({},{get(j,C,w){return new Proxy({},{get(F,E){return async(D)=>{for(let N in D){if(typeof D[N]==="object")D[N]=JSON.stringify(D[N],(z,A)=>typeof A==="bigint"?A.toString():A);if(D[N]==null)delete D[N]}const T=`${b}/${String(C)}/${String(E)}?${new URLSearchParams(D).toString()}`;return(await fetch(T)).json()}}})}}),J=({url:b="http://localhost:9527",fetchRequestInit:j})=>new Proxy({},{get(C,w,F){return new Proxy({},{get(E,D){return async(T)=>{const $=`${b}/${String(w)}/${String(D)}`;return(await fetch($,{method:"POST",...j,body:JSON.stringify(T)})).json()}}})}}),K=({url:b="http://localhost:9527",fetchRequestInit:j})=>new Proxy({},{get(C,w,F){return new Proxy({},{get(E,D){return async(T)=>{const $=`${b}/${String(w)}/${String(D)}?${new URLSearchParams(T).toString()}`;return(await fetch($,{method:"GET",...j})).json()}}})}}),L=({url:b="http://localhost:9527",ctx:j}={})=>new Proxy({},{get(C,w,F){return new Proxy({},{get(E,D){return async(T)=>{let $=!1;for(let B in T){if(typeof T[B]==="object")$=!0;if(T[B]==null)delete T[B]}let N,z,A={};if($)N=`${b}/${String(w)}/${String(D)}`;else N=`${b}/${String(w)}/${String(D)}?${new URLSearchParams(T).toString()}`;if(j)A.headers={...j};if($)A.method="POST",A.body=JSON.stringify(T);return z=await fetch(N,A),z.json()}}})}});export{K as createIotexscanClient,L as createIoidClient,J as createClientWithWriteDBServer,H as createClientWithDBServer,G as createClient};
1
+ var Q=({url:C="http://localhost:9527",ctx:D}={})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{for(let G in b){if(typeof b[G]==="object")b[G]=JSON.stringify(b[G],(H,J)=>typeof J==="bigint"?J.toString():J);if(b[G]==null)delete b[G]}const B=`${C}/${String(F)}/${String(j)}?${new URLSearchParams(b).toString()}`;let z;if(D)z=await fetch(B,{headers:{...D}});else z=await fetch(B);return z.json()}}})}}),S=({url:C="http://localhost:9527"}={})=>new Proxy({},{get(D,K,F){return new Proxy({},{get(N,L){return async(j)=>{for(let z in j){if(typeof j[z]==="object")j[z]=JSON.stringify(j[z],(G,H)=>typeof H==="bigint"?H.toString():H);if(j[z]==null)delete j[z]}const b=`${C}/${String(K)}/${String(L)}?${new URLSearchParams(j).toString()}`;return(await fetch(b)).json()}}})}}),U=({url:C="http://localhost:9527",fetchRequestInit:D})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{const B=`${C}/${String(F)}/${String(j)}`;return(await fetch(B,{method:"POST",...D,body:JSON.stringify(b)})).json()}}})}}),V=({url:C="http://localhost:9527",fetchRequestInit:D})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{const B=`${C}/${String(F)}/${String(j)}?${new URLSearchParams(b).toString()}`;return(await fetch(B,{method:"GET",...D})).json()}}})}}),W=({url:C="http://localhost:9527",ctx:D}={})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{let B=!1;for(let J in b){if(typeof b[J]==="object")B=!0;if(b[J]==null)delete b[J]}let z,G,H={};if(B)z=`${C}/${String(F)}/${String(j)}`;else z=`${C}/${String(F)}/${String(j)}?${new URLSearchParams(b).toString()}`;if(D)H.headers={...D};if(B)H.method="POST",H.body=JSON.stringify(b);return G=await fetch(z,H),G.json()}}})}});export{V as createIotexscanClient,W as createIoidClient,U as createClientWithWriteDBServer,S as createClientWithDBServer,Q 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.1.18",
5
+ "version": "v0.1.19",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {