@iotexproject/kit 0.0.46 → 0.0.47

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
@@ -4534,17 +4534,20 @@ declare class MarshallDao {
4534
4534
  }>;
4535
4535
  getRewardFromGauge(args: {
4536
4536
  gaugeAddress: string;
4537
- account: string;
4537
+ account: `0x${string}`;
4538
4538
  }): Promise<{
4539
4539
  data: any;
4540
4540
  address: string;
4541
- }>;
4541
+ title: string;
4542
+ }[] | undefined>;
4542
4543
  batchGetRewardFromGauge(args: {
4543
4544
  gaugeAddress: any[];
4545
+ account: `0x${string}`;
4544
4546
  }): Promise<{
4545
4547
  data: any;
4546
4548
  address: string;
4547
- }>;
4549
+ title: string;
4550
+ }[]>;
4548
4551
  claimIncentiveRewards(args: {
4549
4552
  gaugeAddress: string;
4550
4553
  }): Promise<{
@@ -6954,9 +6957,16 @@ declare class MSP {
6954
6957
  claimLSTReward(args: {
6955
6958
  lstContractAddress: string;
6956
6959
  }): Promise<{
6957
- data: any;
6960
+ data: `0x${string}`;
6958
6961
  address: string;
6959
6962
  }>;
6963
+ batchClaimLSTReward(args: {
6964
+ lstContractAddresses: string[];
6965
+ account: `0x${string}`;
6966
+ }): Promise<{
6967
+ data: `0x${string}`;
6968
+ address: string;
6969
+ }[] | null>;
6960
6970
  }
6961
6971
  export interface Bucket {
6962
6972
  index: bigint;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var D=({url:b="http://localhost:9527"}={})=>new Proxy({},{get(v,c,z){return new Proxy({},{get(B,j){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const q=`${b}/${String(c)}/${String(j)}?${new URLSearchParams(f).toString()}`;return(await fetch(q)).json()}}})}});export{D as createClient};
1
+ var q=({url:j="http://localhost:9527"}={})=>new Proxy({},{get(R,o,T){return new Proxy({},{get(b,x){return async(i)=>{for(let f in i)if(Array.isArray(i[f]))i[f]=JSON.stringify(i[f]);const M=`${j}/${String(o)}/${String(x)}?${new URLSearchParams(i).toString()}`;return(await fetch(M)).json()}}})}});export{q as createClient};
package/package.json CHANGED
@@ -2,11 +2,12 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.46",
5
+ "version": "v0.0.47",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
9
9
  "dev": "bun run build & bun server.ts",
10
+ "dev-db": "bun server-db.ts",
10
11
  "test": "bun --hot run tests/test-marshalldao.ts",
11
12
  "build": "bun run build.mjs",
12
13
  "prepublishOnly": "bun run build"
@@ -15,17 +16,20 @@
15
16
  "dist"
16
17
  ],
17
18
  "dependencies": {
19
+ "@clickhouse/client": "^1.4.0",
18
20
  "@iotexproject/iotex-address-ts": "^1.0.4",
19
21
  "@tryghost/content-api": "^1.11.21",
20
22
  "axios": "^1.7.2",
21
23
  "bech32": "^2.0.0",
22
24
  "bentocache": "^1.0.0-beta.9",
23
25
  "bignumber.js": "^9.1.2",
26
+ "clickhouse": "^2.6.0",
24
27
  "dataloader": "^2.2.2",
25
28
  "dayjs": "^1.11.12",
26
29
  "graphql-request": "^7.1.0",
27
30
  "ioredis": "^5.4.1",
28
31
  "lru-cache": "^11.0.0",
32
+ "postgres": "^3.4.4",
29
33
  "reflect-metadata": "^0.2.2",
30
34
  "viem": "^2.17.5"
31
35
  },