@iotexproject/kit 0.0.104 → 0.1.1
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 +24 -30
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -345,7 +345,7 @@ declare class ERC20Entity {
|
|
|
345
345
|
totalSupply: number;
|
|
346
346
|
name: string;
|
|
347
347
|
symbol: string;
|
|
348
|
-
decimals(): Promise<number>;
|
|
348
|
+
decimals(): Promise<number | undefined>;
|
|
349
349
|
balanceOf(account?: `0x${string}`): Promise<{
|
|
350
350
|
value: string;
|
|
351
351
|
format: string;
|
|
@@ -2517,11 +2517,11 @@ declare class LPTokenEntity {
|
|
|
2517
2517
|
}>;
|
|
2518
2518
|
approve(spender: `0x${string}`, amount: string, owner: `0x${string}`): Promise<`0x${string}` | null>;
|
|
2519
2519
|
kLast: () => Promise<any>;
|
|
2520
|
-
name(): Promise<string>;
|
|
2521
|
-
symbol(): Promise<string>;
|
|
2522
|
-
token0(): Promise
|
|
2523
|
-
token1(): Promise
|
|
2524
|
-
tokenUrl(): Promise<any[]>;
|
|
2520
|
+
name(): Promise<string | undefined>;
|
|
2521
|
+
symbol(): Promise<string | undefined>;
|
|
2522
|
+
token0(): Promise<"" | `0x${string}` | undefined>;
|
|
2523
|
+
token1(): Promise<"" | `0x${string}` | undefined>;
|
|
2524
|
+
tokenUrl(): Promise<any[] | undefined>;
|
|
2525
2525
|
factory: () => Promise<any>;
|
|
2526
2526
|
decimals: () => Promise<any>;
|
|
2527
2527
|
allowance: (owner: string, spender: string) => Promise<any>;
|
|
@@ -3421,7 +3421,7 @@ declare class GaugeEntity {
|
|
|
3421
3421
|
name?: string | undefined;
|
|
3422
3422
|
totalIoID?: string | undefined;
|
|
3423
3423
|
totalAppliedIoID?: string | undefined;
|
|
3424
|
-
}
|
|
3424
|
+
}>;
|
|
3425
3425
|
stakingTokenInfo(account?: `0x${string}`): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
3426
3426
|
name: true;
|
|
3427
3427
|
symbol: true;
|
|
@@ -3511,9 +3511,6 @@ declare class GaugeEntity {
|
|
|
3511
3511
|
isZero: boolean;
|
|
3512
3512
|
};
|
|
3513
3513
|
rewardsUSD: string;
|
|
3514
|
-
} | {
|
|
3515
|
-
rewards: string;
|
|
3516
|
-
rewardsUSD: string;
|
|
3517
3514
|
}>;
|
|
3518
3515
|
gaugeDailyRewards(): Promise<{
|
|
3519
3516
|
rewards: {
|
|
@@ -3524,9 +3521,6 @@ declare class GaugeEntity {
|
|
|
3524
3521
|
isZero: boolean;
|
|
3525
3522
|
};
|
|
3526
3523
|
rewardsUSD: string;
|
|
3527
|
-
} | {
|
|
3528
|
-
rewards: string;
|
|
3529
|
-
rewardsUSD: string;
|
|
3530
3524
|
}>;
|
|
3531
3525
|
votes(account: `0x${string}`): Promise<{
|
|
3532
3526
|
votes: string;
|
|
@@ -4139,7 +4133,7 @@ export type ConfigContext = {
|
|
|
4139
4133
|
declare class IoID {
|
|
4140
4134
|
verfiyerProxyList(args: {
|
|
4141
4135
|
addresses: `0x${string}`[];
|
|
4142
|
-
}, ctx
|
|
4136
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<VerifyingProxyEntity, {
|
|
4143
4137
|
address: true;
|
|
4144
4138
|
chainId: true;
|
|
4145
4139
|
projectId: true;
|
|
@@ -4166,7 +4160,7 @@ declare class IoID {
|
|
|
4166
4160
|
_name: string;
|
|
4167
4161
|
_symbol: string;
|
|
4168
4162
|
_amount: string;
|
|
4169
|
-
}, ctx
|
|
4163
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4170
4164
|
address: `0x${string}`;
|
|
4171
4165
|
value: string;
|
|
4172
4166
|
data: any;
|
|
@@ -4182,7 +4176,7 @@ declare class IoID {
|
|
|
4182
4176
|
setGauge(args: {
|
|
4183
4177
|
address: `0x${string}`;
|
|
4184
4178
|
gauge: `0x${string}`;
|
|
4185
|
-
}, ctx
|
|
4179
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4186
4180
|
address: `0x${string}`;
|
|
4187
4181
|
data: any;
|
|
4188
4182
|
chainId: string;
|
|
@@ -4196,7 +4190,7 @@ declare class IoID {
|
|
|
4196
4190
|
incrementMinterAllowance(args: {
|
|
4197
4191
|
amount: string;
|
|
4198
4192
|
address: `0x${string}`;
|
|
4199
|
-
}, ctx
|
|
4193
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4200
4194
|
address: `0x${string}`;
|
|
4201
4195
|
data: any;
|
|
4202
4196
|
chainId: string;
|
|
@@ -4210,7 +4204,7 @@ declare class IoID {
|
|
|
4210
4204
|
applyIoIDs(args: {
|
|
4211
4205
|
address: `0x${string}`;
|
|
4212
4206
|
amount: number;
|
|
4213
|
-
}, ctx
|
|
4207
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4214
4208
|
value: string;
|
|
4215
4209
|
address: `0x${string}`;
|
|
4216
4210
|
data: any;
|
|
@@ -4226,7 +4220,7 @@ declare class IoID {
|
|
|
4226
4220
|
setProjectMetadata(args: {
|
|
4227
4221
|
address: `0x${string}`;
|
|
4228
4222
|
metadata: ProjectMetadata;
|
|
4229
|
-
}, ctx
|
|
4223
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4230
4224
|
address: `0x${string}`;
|
|
4231
4225
|
data: `0x${string}`;
|
|
4232
4226
|
chainId: string;
|
|
@@ -4239,7 +4233,7 @@ declare class IoID {
|
|
|
4239
4233
|
}>;
|
|
4240
4234
|
registedDevices(args: {
|
|
4241
4235
|
address: `0x${string}`;
|
|
4242
|
-
}, ctx
|
|
4236
|
+
}, ctx?: ConfigContext): Promise<IoIDDevice[] | {
|
|
4243
4237
|
error: unknown;
|
|
4244
4238
|
}>;
|
|
4245
4239
|
}
|
|
@@ -5442,7 +5436,7 @@ declare class VoterEntity {
|
|
|
5442
5436
|
declare class MarshallDao {
|
|
5443
5437
|
gaugeList(args: {
|
|
5444
5438
|
account?: `0x${string}`;
|
|
5445
|
-
}, ctx
|
|
5439
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<GaugeEntity, {
|
|
5446
5440
|
address: true;
|
|
5447
5441
|
chainId: true;
|
|
5448
5442
|
gaugeType: true;
|
|
@@ -5478,7 +5472,7 @@ declare class MarshallDao {
|
|
|
5478
5472
|
}>[] | null>;
|
|
5479
5473
|
totalGaugeRewards(args: {
|
|
5480
5474
|
account?: `0x${string}`;
|
|
5481
|
-
}, ctx
|
|
5475
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5482
5476
|
rewards: number | undefined;
|
|
5483
5477
|
rewardsUSD: number | undefined;
|
|
5484
5478
|
} | {
|
|
@@ -5487,7 +5481,7 @@ declare class MarshallDao {
|
|
|
5487
5481
|
} | null | undefined>;
|
|
5488
5482
|
voterInfo(args: {
|
|
5489
5483
|
account?: `0x${string}`;
|
|
5490
|
-
}, ctx
|
|
5484
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<VoterEntity, {
|
|
5491
5485
|
epochVoteEndTime: true;
|
|
5492
5486
|
myVote: false | [
|
|
5493
5487
|
`0x${string}`
|
|
@@ -5501,7 +5495,7 @@ declare class MarshallDao {
|
|
|
5501
5495
|
voteToGauge(args: {
|
|
5502
5496
|
stakingTokens: `0x${string}`[];
|
|
5503
5497
|
weights: number[];
|
|
5504
|
-
}, ctx
|
|
5498
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5505
5499
|
data: any;
|
|
5506
5500
|
address: `0x${string}`;
|
|
5507
5501
|
chainId: string;
|
|
@@ -5516,7 +5510,7 @@ declare class MarshallDao {
|
|
|
5516
5510
|
gagueAddress: `0x${string}`;
|
|
5517
5511
|
amountOrTokenId: string;
|
|
5518
5512
|
account: `0x${string}`;
|
|
5519
|
-
}, ctx
|
|
5513
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5520
5514
|
data: any;
|
|
5521
5515
|
approve: `0x${string}` | null | undefined;
|
|
5522
5516
|
approveAddress: `0x${string}`;
|
|
@@ -5534,7 +5528,7 @@ declare class MarshallDao {
|
|
|
5534
5528
|
withdrawFromGauge(args: {
|
|
5535
5529
|
gagueAddress: string;
|
|
5536
5530
|
amount: string;
|
|
5537
|
-
}, ctx
|
|
5531
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5538
5532
|
data: any;
|
|
5539
5533
|
address: string;
|
|
5540
5534
|
chainId: string;
|
|
@@ -5542,11 +5536,11 @@ declare class MarshallDao {
|
|
|
5542
5536
|
getRewardFromGauge(args: {
|
|
5543
5537
|
gaugeAddress: string;
|
|
5544
5538
|
account: `0x${string}`;
|
|
5545
|
-
}, ctx
|
|
5539
|
+
}, ctx?: ConfigContext): Promise<any>;
|
|
5546
5540
|
batchGetRewardFromGauge(args: {
|
|
5547
5541
|
gaugeAddress: any[];
|
|
5548
5542
|
account: `0x${string}`;
|
|
5549
|
-
}, ctx
|
|
5543
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5550
5544
|
data: any;
|
|
5551
5545
|
address: `0x${string}`;
|
|
5552
5546
|
title: string;
|
|
@@ -5554,7 +5548,7 @@ declare class MarshallDao {
|
|
|
5554
5548
|
}[]>;
|
|
5555
5549
|
claimIncentiveRewards(args: {
|
|
5556
5550
|
gaugeAddress: string;
|
|
5557
|
-
}, ctx
|
|
5551
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5558
5552
|
data: any;
|
|
5559
5553
|
address: `0x${string}`;
|
|
5560
5554
|
chainId: string;
|
|
@@ -5562,7 +5556,7 @@ declare class MarshallDao {
|
|
|
5562
5556
|
withDrawTaxReward(args: {
|
|
5563
5557
|
gaugeAddress: `0x${string}`;
|
|
5564
5558
|
taxer: `0x${string}`;
|
|
5565
|
-
}, ctx
|
|
5559
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5566
5560
|
data: any;
|
|
5567
5561
|
gaugeAddress: `0x${string}`;
|
|
5568
5562
|
chainId: string;
|
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.
|
|
5
|
+
"version": "v0.1.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
"lru-cache": "^11.0.0",
|
|
32
32
|
"postgres": "^3.4.4",
|
|
33
33
|
"reflect-metadata": "^0.2.2",
|
|
34
|
+
"strip-ansi-cjs": "^8.0.0",
|
|
34
35
|
"viem": "^2.17.5"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@dappworks/kit": "
|
|
38
|
+
"@dappworks/kit": "0.4.197",
|
|
38
39
|
"@types/bun": "latest",
|
|
39
40
|
"@types/tryghost__content-api": "^1.3.16",
|
|
40
41
|
"bun-plugin-dts": "^0.2.3",
|