@iotexproject/kit 0.0.78 → 0.0.79

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
@@ -1848,6 +1848,7 @@ declare class ERC721Entity {
1848
1848
  decimals: string;
1849
1849
  isZero: boolean;
1850
1850
  }>;
1851
+ balanceOfTokenIds(account?: `0x${string}`): Promise<any>;
1851
1852
  MINTER_ROLE: () => Promise<any>;
1852
1853
  PAUSER_ROLE: () => Promise<any>;
1853
1854
  totalSupply: () => Promise<any>;
@@ -3377,6 +3378,8 @@ declare class GaugeEntity {
3377
3378
  readonly type: "function";
3378
3379
  }
3379
3380
  ];
3381
+ StakingToken: ERC20Entity;
3382
+ Incentive: IncentivesEntity;
3380
3383
  /**
3381
3384
  * @important : This property is distinguished from the other gauge and is the gauge that owns tax
3382
3385
  */
@@ -3410,6 +3413,9 @@ declare class GaugeEntity {
3410
3413
  balanceOf: false | [
3411
3414
  `0x${string}`
3412
3415
  ];
3416
+ balanceOfTokenIds: false | [
3417
+ `0x${string}`
3418
+ ];
3413
3419
  }> | import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
3414
3420
  name: true;
3415
3421
  symbol: true;
@@ -3441,9 +3447,18 @@ declare class GaugeEntity {
3441
3447
  isZero: boolean;
3442
3448
  };
3443
3449
  balanceOfUSD: string;
3444
- }>;
3445
- StakingToken: ERC20Entity;
3446
- Incentive: IncentivesEntity;
3450
+ balanceOfTokenIds?: undefined;
3451
+ } | {
3452
+ balanceOf: {
3453
+ value: string;
3454
+ format: string;
3455
+ originFormat: string;
3456
+ decimals: string;
3457
+ isZero: boolean;
3458
+ };
3459
+ balanceOfTokenIds: number[];
3460
+ balanceOfUSD: string;
3461
+ } | undefined>;
3447
3462
  totalSupply(): Promise<{
3448
3463
  totalSupply: {
3449
3464
  value: string;
@@ -3454,6 +3469,26 @@ declare class GaugeEntity {
3454
3469
  };
3455
3470
  totalSupplyUSD: string;
3456
3471
  }>;
3472
+ gaugeCurrentRewards(): Promise<{
3473
+ rewards: {
3474
+ value: string;
3475
+ format: string;
3476
+ originFormat: string;
3477
+ decimals: string;
3478
+ isZero: boolean;
3479
+ };
3480
+ rewardsUSD: string;
3481
+ }>;
3482
+ userDailyRewards(account: `0x${string}`): Promise<{
3483
+ rewards: {
3484
+ value: string;
3485
+ format: string;
3486
+ originFormat: string;
3487
+ decimals: string;
3488
+ isZero: boolean;
3489
+ };
3490
+ rewardsUSD: string;
3491
+ }>;
3457
3492
  votes(account: `0x${string}`): Promise<{
3458
3493
  votes: string;
3459
3494
  percent: string;
@@ -5326,6 +5361,10 @@ declare class MarshallDao {
5326
5361
  rewards: false | [
5327
5362
  `0x${string}`
5328
5363
  ];
5364
+ userDailyRewards: false | [
5365
+ `0x${string}`
5366
+ ];
5367
+ gaugeCurrentRewards: true;
5329
5368
  balanceOf: false | [
5330
5369
  `0x${string}`
5331
5370
  ];
package/dist/index.js CHANGED
@@ -1 +1 @@
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};
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};
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.78",
5
+ "version": "v0.0.79",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {