@iotexproject/kit 0.0.78 → 0.0.80
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 +50 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
*/
|
|
@@ -3396,6 +3399,13 @@ declare class GaugeEntity {
|
|
|
3396
3399
|
isZero: boolean;
|
|
3397
3400
|
} | undefined>;
|
|
3398
3401
|
gaugeType(): Promise<"ERC20" | "ERC721" | "LPToken">;
|
|
3402
|
+
projectInfo(): Promise<{
|
|
3403
|
+
id: string;
|
|
3404
|
+
deviceNFT: string;
|
|
3405
|
+
name: string;
|
|
3406
|
+
totalIoID: string;
|
|
3407
|
+
totalAppliedIoID: string;
|
|
3408
|
+
} | null>;
|
|
3399
3409
|
stakingTokenInfo(account?: `0x${string}`): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
3400
3410
|
name: true;
|
|
3401
3411
|
symbol: true;
|
|
@@ -3410,6 +3420,9 @@ declare class GaugeEntity {
|
|
|
3410
3420
|
balanceOf: false | [
|
|
3411
3421
|
`0x${string}`
|
|
3412
3422
|
];
|
|
3423
|
+
balanceOfTokenIds: false | [
|
|
3424
|
+
`0x${string}`
|
|
3425
|
+
];
|
|
3413
3426
|
}> | import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
|
|
3414
3427
|
name: true;
|
|
3415
3428
|
symbol: true;
|
|
@@ -3441,9 +3454,18 @@ declare class GaugeEntity {
|
|
|
3441
3454
|
isZero: boolean;
|
|
3442
3455
|
};
|
|
3443
3456
|
balanceOfUSD: string;
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3457
|
+
balanceOfTokenIds?: undefined;
|
|
3458
|
+
} | {
|
|
3459
|
+
balanceOf: {
|
|
3460
|
+
value: string;
|
|
3461
|
+
format: string;
|
|
3462
|
+
originFormat: string;
|
|
3463
|
+
decimals: string;
|
|
3464
|
+
isZero: boolean;
|
|
3465
|
+
};
|
|
3466
|
+
balanceOfTokenIds: number[];
|
|
3467
|
+
balanceOfUSD: string;
|
|
3468
|
+
} | undefined>;
|
|
3447
3469
|
totalSupply(): Promise<{
|
|
3448
3470
|
totalSupply: {
|
|
3449
3471
|
value: string;
|
|
@@ -3454,6 +3476,26 @@ declare class GaugeEntity {
|
|
|
3454
3476
|
};
|
|
3455
3477
|
totalSupplyUSD: string;
|
|
3456
3478
|
}>;
|
|
3479
|
+
gaugeCurrentRewards(): Promise<{
|
|
3480
|
+
rewards: {
|
|
3481
|
+
value: string;
|
|
3482
|
+
format: string;
|
|
3483
|
+
originFormat: string;
|
|
3484
|
+
decimals: string;
|
|
3485
|
+
isZero: boolean;
|
|
3486
|
+
};
|
|
3487
|
+
rewardsUSD: string;
|
|
3488
|
+
}>;
|
|
3489
|
+
userDailyRewards(account: `0x${string}`): Promise<{
|
|
3490
|
+
rewards: {
|
|
3491
|
+
value: string;
|
|
3492
|
+
format: string;
|
|
3493
|
+
originFormat: string;
|
|
3494
|
+
decimals: string;
|
|
3495
|
+
isZero: boolean;
|
|
3496
|
+
};
|
|
3497
|
+
rewardsUSD: string;
|
|
3498
|
+
}>;
|
|
3457
3499
|
votes(account: `0x${string}`): Promise<{
|
|
3458
3500
|
votes: string;
|
|
3459
3501
|
percent: string;
|
|
@@ -5323,9 +5365,14 @@ declare class MarshallDao {
|
|
|
5323
5365
|
chainId: true;
|
|
5324
5366
|
gaugeType: true;
|
|
5325
5367
|
apr: true;
|
|
5368
|
+
projectInfo: true;
|
|
5326
5369
|
rewards: false | [
|
|
5327
5370
|
`0x${string}`
|
|
5328
5371
|
];
|
|
5372
|
+
userDailyRewards: false | [
|
|
5373
|
+
`0x${string}`
|
|
5374
|
+
];
|
|
5375
|
+
gaugeCurrentRewards: true;
|
|
5329
5376
|
balanceOf: false | [
|
|
5330
5377
|
`0x${string}`
|
|
5331
5378
|
];
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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};
|