@iotexproject/kit 0.0.104 → 0.1.0
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 -24
- 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;
|
|
@@ -4139,7 +4139,7 @@ export type ConfigContext = {
|
|
|
4139
4139
|
declare class IoID {
|
|
4140
4140
|
verfiyerProxyList(args: {
|
|
4141
4141
|
addresses: `0x${string}`[];
|
|
4142
|
-
}, ctx
|
|
4142
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<VerifyingProxyEntity, {
|
|
4143
4143
|
address: true;
|
|
4144
4144
|
chainId: true;
|
|
4145
4145
|
projectId: true;
|
|
@@ -4166,7 +4166,7 @@ declare class IoID {
|
|
|
4166
4166
|
_name: string;
|
|
4167
4167
|
_symbol: string;
|
|
4168
4168
|
_amount: string;
|
|
4169
|
-
}, ctx
|
|
4169
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4170
4170
|
address: `0x${string}`;
|
|
4171
4171
|
value: string;
|
|
4172
4172
|
data: any;
|
|
@@ -4182,7 +4182,7 @@ declare class IoID {
|
|
|
4182
4182
|
setGauge(args: {
|
|
4183
4183
|
address: `0x${string}`;
|
|
4184
4184
|
gauge: `0x${string}`;
|
|
4185
|
-
}, ctx
|
|
4185
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4186
4186
|
address: `0x${string}`;
|
|
4187
4187
|
data: any;
|
|
4188
4188
|
chainId: string;
|
|
@@ -4196,7 +4196,7 @@ declare class IoID {
|
|
|
4196
4196
|
incrementMinterAllowance(args: {
|
|
4197
4197
|
amount: string;
|
|
4198
4198
|
address: `0x${string}`;
|
|
4199
|
-
}, ctx
|
|
4199
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4200
4200
|
address: `0x${string}`;
|
|
4201
4201
|
data: any;
|
|
4202
4202
|
chainId: string;
|
|
@@ -4210,7 +4210,7 @@ declare class IoID {
|
|
|
4210
4210
|
applyIoIDs(args: {
|
|
4211
4211
|
address: `0x${string}`;
|
|
4212
4212
|
amount: number;
|
|
4213
|
-
}, ctx
|
|
4213
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4214
4214
|
value: string;
|
|
4215
4215
|
address: `0x${string}`;
|
|
4216
4216
|
data: any;
|
|
@@ -4226,7 +4226,7 @@ declare class IoID {
|
|
|
4226
4226
|
setProjectMetadata(args: {
|
|
4227
4227
|
address: `0x${string}`;
|
|
4228
4228
|
metadata: ProjectMetadata;
|
|
4229
|
-
}, ctx
|
|
4229
|
+
}, ctx?: ConfigContext): Promise<{
|
|
4230
4230
|
address: `0x${string}`;
|
|
4231
4231
|
data: `0x${string}`;
|
|
4232
4232
|
chainId: string;
|
|
@@ -4239,7 +4239,7 @@ declare class IoID {
|
|
|
4239
4239
|
}>;
|
|
4240
4240
|
registedDevices(args: {
|
|
4241
4241
|
address: `0x${string}`;
|
|
4242
|
-
}, ctx
|
|
4242
|
+
}, ctx?: ConfigContext): Promise<IoIDDevice[] | {
|
|
4243
4243
|
error: unknown;
|
|
4244
4244
|
}>;
|
|
4245
4245
|
}
|
|
@@ -5442,7 +5442,7 @@ declare class VoterEntity {
|
|
|
5442
5442
|
declare class MarshallDao {
|
|
5443
5443
|
gaugeList(args: {
|
|
5444
5444
|
account?: `0x${string}`;
|
|
5445
|
-
}, ctx
|
|
5445
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<GaugeEntity, {
|
|
5446
5446
|
address: true;
|
|
5447
5447
|
chainId: true;
|
|
5448
5448
|
gaugeType: true;
|
|
@@ -5478,7 +5478,7 @@ declare class MarshallDao {
|
|
|
5478
5478
|
}>[] | null>;
|
|
5479
5479
|
totalGaugeRewards(args: {
|
|
5480
5480
|
account?: `0x${string}`;
|
|
5481
|
-
}, ctx
|
|
5481
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5482
5482
|
rewards: number | undefined;
|
|
5483
5483
|
rewardsUSD: number | undefined;
|
|
5484
5484
|
} | {
|
|
@@ -5487,7 +5487,7 @@ declare class MarshallDao {
|
|
|
5487
5487
|
} | null | undefined>;
|
|
5488
5488
|
voterInfo(args: {
|
|
5489
5489
|
account?: `0x${string}`;
|
|
5490
|
-
}, ctx
|
|
5490
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<VoterEntity, {
|
|
5491
5491
|
epochVoteEndTime: true;
|
|
5492
5492
|
myVote: false | [
|
|
5493
5493
|
`0x${string}`
|
|
@@ -5501,7 +5501,7 @@ declare class MarshallDao {
|
|
|
5501
5501
|
voteToGauge(args: {
|
|
5502
5502
|
stakingTokens: `0x${string}`[];
|
|
5503
5503
|
weights: number[];
|
|
5504
|
-
}, ctx
|
|
5504
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5505
5505
|
data: any;
|
|
5506
5506
|
address: `0x${string}`;
|
|
5507
5507
|
chainId: string;
|
|
@@ -5516,7 +5516,7 @@ declare class MarshallDao {
|
|
|
5516
5516
|
gagueAddress: `0x${string}`;
|
|
5517
5517
|
amountOrTokenId: string;
|
|
5518
5518
|
account: `0x${string}`;
|
|
5519
|
-
}, ctx
|
|
5519
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5520
5520
|
data: any;
|
|
5521
5521
|
approve: `0x${string}` | null | undefined;
|
|
5522
5522
|
approveAddress: `0x${string}`;
|
|
@@ -5534,7 +5534,7 @@ declare class MarshallDao {
|
|
|
5534
5534
|
withdrawFromGauge(args: {
|
|
5535
5535
|
gagueAddress: string;
|
|
5536
5536
|
amount: string;
|
|
5537
|
-
}, ctx
|
|
5537
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5538
5538
|
data: any;
|
|
5539
5539
|
address: string;
|
|
5540
5540
|
chainId: string;
|
|
@@ -5542,11 +5542,11 @@ declare class MarshallDao {
|
|
|
5542
5542
|
getRewardFromGauge(args: {
|
|
5543
5543
|
gaugeAddress: string;
|
|
5544
5544
|
account: `0x${string}`;
|
|
5545
|
-
}, ctx
|
|
5545
|
+
}, ctx?: ConfigContext): Promise<any>;
|
|
5546
5546
|
batchGetRewardFromGauge(args: {
|
|
5547
5547
|
gaugeAddress: any[];
|
|
5548
5548
|
account: `0x${string}`;
|
|
5549
|
-
}, ctx
|
|
5549
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5550
5550
|
data: any;
|
|
5551
5551
|
address: `0x${string}`;
|
|
5552
5552
|
title: string;
|
|
@@ -5554,7 +5554,7 @@ declare class MarshallDao {
|
|
|
5554
5554
|
}[]>;
|
|
5555
5555
|
claimIncentiveRewards(args: {
|
|
5556
5556
|
gaugeAddress: string;
|
|
5557
|
-
}, ctx
|
|
5557
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5558
5558
|
data: any;
|
|
5559
5559
|
address: `0x${string}`;
|
|
5560
5560
|
chainId: string;
|
|
@@ -5562,7 +5562,7 @@ declare class MarshallDao {
|
|
|
5562
5562
|
withDrawTaxReward(args: {
|
|
5563
5563
|
gaugeAddress: `0x${string}`;
|
|
5564
5564
|
taxer: `0x${string}`;
|
|
5565
|
-
}, ctx
|
|
5565
|
+
}, ctx?: ConfigContext): Promise<{
|
|
5566
5566
|
data: any;
|
|
5567
5567
|
gaugeAddress: `0x${string}`;
|
|
5568
5568
|
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.0
|
|
5
|
+
"version": "v0.1.0",
|
|
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",
|