@iotexproject/kit 0.0.73 → 0.0.75
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 +254 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -540,6 +540,7 @@ declare class VerifyingProxyEntity {
|
|
|
540
540
|
readonly type: "function";
|
|
541
541
|
}
|
|
542
542
|
];
|
|
543
|
+
owner: () => Promise<any>;
|
|
543
544
|
verifier: () => Promise<any>;
|
|
544
545
|
deviceNFT: () => Promise<any>;
|
|
545
546
|
deviceGauge: () => Promise<any>;
|
|
@@ -566,6 +567,7 @@ declare class IoID {
|
|
|
566
567
|
deviceNFT: true;
|
|
567
568
|
verifier: true;
|
|
568
569
|
deviceGauge: true;
|
|
570
|
+
owner: true;
|
|
569
571
|
}>[]>;
|
|
570
572
|
create(args: {
|
|
571
573
|
_type: string;
|
|
@@ -3157,7 +3159,7 @@ declare class GaugeEntity {
|
|
|
3157
3159
|
},
|
|
3158
3160
|
{
|
|
3159
3161
|
readonly internalType: "address";
|
|
3160
|
-
readonly name: "
|
|
3162
|
+
readonly name: "_nft";
|
|
3161
3163
|
readonly type: "address";
|
|
3162
3164
|
},
|
|
3163
3165
|
{
|
|
@@ -3255,9 +3257,15 @@ declare class GaugeEntity {
|
|
|
3255
3257
|
readonly internalType: "uint256";
|
|
3256
3258
|
readonly name: "amount";
|
|
3257
3259
|
readonly type: "uint256";
|
|
3260
|
+
},
|
|
3261
|
+
{
|
|
3262
|
+
readonly indexed: false;
|
|
3263
|
+
readonly internalType: "uint256";
|
|
3264
|
+
readonly name: "tokenId";
|
|
3265
|
+
readonly type: "uint256";
|
|
3258
3266
|
}
|
|
3259
3267
|
];
|
|
3260
|
-
readonly name: "
|
|
3268
|
+
readonly name: "DepositDevice";
|
|
3261
3269
|
readonly type: "event";
|
|
3262
3270
|
},
|
|
3263
3271
|
{
|
|
@@ -3279,6 +3287,38 @@ declare class GaugeEntity {
|
|
|
3279
3287
|
readonly name: "NotifyReward";
|
|
3280
3288
|
readonly type: "event";
|
|
3281
3289
|
},
|
|
3290
|
+
{
|
|
3291
|
+
readonly anonymous: false;
|
|
3292
|
+
readonly inputs: readonly [
|
|
3293
|
+
{
|
|
3294
|
+
readonly indexed: true;
|
|
3295
|
+
readonly internalType: "address";
|
|
3296
|
+
readonly name: "taxer";
|
|
3297
|
+
readonly type: "address";
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
readonly indexed: false;
|
|
3301
|
+
readonly internalType: "uint256";
|
|
3302
|
+
readonly name: "ratio";
|
|
3303
|
+
readonly type: "uint256";
|
|
3304
|
+
}
|
|
3305
|
+
];
|
|
3306
|
+
readonly name: "SetTaxRatio";
|
|
3307
|
+
readonly type: "event";
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
readonly anonymous: false;
|
|
3311
|
+
readonly inputs: readonly [
|
|
3312
|
+
{
|
|
3313
|
+
readonly indexed: true;
|
|
3314
|
+
readonly internalType: "address";
|
|
3315
|
+
readonly name: "taxer";
|
|
3316
|
+
readonly type: "address";
|
|
3317
|
+
}
|
|
3318
|
+
];
|
|
3319
|
+
readonly name: "SetTaxer";
|
|
3320
|
+
readonly type: "event";
|
|
3321
|
+
},
|
|
3282
3322
|
{
|
|
3283
3323
|
readonly anonymous: false;
|
|
3284
3324
|
readonly inputs: readonly [
|
|
@@ -3293,9 +3333,15 @@ declare class GaugeEntity {
|
|
|
3293
3333
|
readonly internalType: "uint256";
|
|
3294
3334
|
readonly name: "amount";
|
|
3295
3335
|
readonly type: "uint256";
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
readonly indexed: false;
|
|
3339
|
+
readonly internalType: "uint256";
|
|
3340
|
+
readonly name: "tokenId";
|
|
3341
|
+
readonly type: "uint256";
|
|
3296
3342
|
}
|
|
3297
3343
|
];
|
|
3298
|
-
readonly name: "
|
|
3344
|
+
readonly name: "WithdrawDevice";
|
|
3299
3345
|
readonly type: "event";
|
|
3300
3346
|
},
|
|
3301
3347
|
{
|
|
@@ -3312,6 +3358,20 @@ declare class GaugeEntity {
|
|
|
3312
3358
|
readonly stateMutability: "view";
|
|
3313
3359
|
readonly type: "function";
|
|
3314
3360
|
},
|
|
3361
|
+
{
|
|
3362
|
+
readonly inputs: readonly [
|
|
3363
|
+
];
|
|
3364
|
+
readonly name: "DEFAULT_WEIGHT";
|
|
3365
|
+
readonly outputs: readonly [
|
|
3366
|
+
{
|
|
3367
|
+
readonly internalType: "uint256";
|
|
3368
|
+
readonly name: "";
|
|
3369
|
+
readonly type: "uint256";
|
|
3370
|
+
}
|
|
3371
|
+
];
|
|
3372
|
+
readonly stateMutability: "view";
|
|
3373
|
+
readonly type: "function";
|
|
3374
|
+
},
|
|
3315
3375
|
{
|
|
3316
3376
|
readonly inputs: readonly [
|
|
3317
3377
|
];
|
|
@@ -3345,6 +3405,48 @@ declare class GaugeEntity {
|
|
|
3345
3405
|
readonly stateMutability: "view";
|
|
3346
3406
|
readonly type: "function";
|
|
3347
3407
|
},
|
|
3408
|
+
{
|
|
3409
|
+
readonly inputs: readonly [
|
|
3410
|
+
{
|
|
3411
|
+
readonly internalType: "uint256";
|
|
3412
|
+
readonly name: "_ratio";
|
|
3413
|
+
readonly type: "uint256";
|
|
3414
|
+
}
|
|
3415
|
+
];
|
|
3416
|
+
readonly name: "changeTaxRatio";
|
|
3417
|
+
readonly outputs: readonly [
|
|
3418
|
+
];
|
|
3419
|
+
readonly stateMutability: "nonpayable";
|
|
3420
|
+
readonly type: "function";
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
readonly inputs: readonly [
|
|
3424
|
+
{
|
|
3425
|
+
readonly internalType: "address";
|
|
3426
|
+
readonly name: "_taxer";
|
|
3427
|
+
readonly type: "address";
|
|
3428
|
+
}
|
|
3429
|
+
];
|
|
3430
|
+
readonly name: "changeTaxer";
|
|
3431
|
+
readonly outputs: readonly [
|
|
3432
|
+
];
|
|
3433
|
+
readonly stateMutability: "nonpayable";
|
|
3434
|
+
readonly type: "function";
|
|
3435
|
+
},
|
|
3436
|
+
{
|
|
3437
|
+
readonly inputs: readonly [
|
|
3438
|
+
{
|
|
3439
|
+
readonly internalType: "address";
|
|
3440
|
+
readonly name: "_voter";
|
|
3441
|
+
readonly type: "address";
|
|
3442
|
+
}
|
|
3443
|
+
];
|
|
3444
|
+
readonly name: "changeVoter";
|
|
3445
|
+
readonly outputs: readonly [
|
|
3446
|
+
];
|
|
3447
|
+
readonly stateMutability: "nonpayable";
|
|
3448
|
+
readonly type: "function";
|
|
3449
|
+
},
|
|
3348
3450
|
{
|
|
3349
3451
|
readonly inputs: readonly [
|
|
3350
3452
|
{
|
|
@@ -3365,6 +3467,11 @@ declare class GaugeEntity {
|
|
|
3365
3467
|
readonly internalType: "uint256";
|
|
3366
3468
|
readonly name: "_amountOrNFTID";
|
|
3367
3469
|
readonly type: "uint256";
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
readonly internalType: "address";
|
|
3473
|
+
readonly name: "_recipient";
|
|
3474
|
+
readonly type: "address";
|
|
3368
3475
|
}
|
|
3369
3476
|
];
|
|
3370
3477
|
readonly name: "deposit";
|
|
@@ -3373,6 +3480,34 @@ declare class GaugeEntity {
|
|
|
3373
3480
|
readonly stateMutability: "nonpayable";
|
|
3374
3481
|
readonly type: "function";
|
|
3375
3482
|
},
|
|
3483
|
+
{
|
|
3484
|
+
readonly inputs: readonly [
|
|
3485
|
+
{
|
|
3486
|
+
readonly internalType: "uint256";
|
|
3487
|
+
readonly name: "_amountOrNFTID";
|
|
3488
|
+
readonly type: "uint256";
|
|
3489
|
+
}
|
|
3490
|
+
];
|
|
3491
|
+
readonly name: "deposit";
|
|
3492
|
+
readonly outputs: readonly [
|
|
3493
|
+
];
|
|
3494
|
+
readonly stateMutability: "nonpayable";
|
|
3495
|
+
readonly type: "function";
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
readonly inputs: readonly [
|
|
3499
|
+
];
|
|
3500
|
+
readonly name: "depositUserNum";
|
|
3501
|
+
readonly outputs: readonly [
|
|
3502
|
+
{
|
|
3503
|
+
readonly internalType: "uint256";
|
|
3504
|
+
readonly name: "";
|
|
3505
|
+
readonly type: "uint256";
|
|
3506
|
+
}
|
|
3507
|
+
];
|
|
3508
|
+
readonly stateMutability: "view";
|
|
3509
|
+
readonly type: "function";
|
|
3510
|
+
},
|
|
3376
3511
|
{
|
|
3377
3512
|
readonly inputs: readonly [
|
|
3378
3513
|
{
|
|
@@ -3485,6 +3620,40 @@ declare class GaugeEntity {
|
|
|
3485
3620
|
readonly stateMutability: "payable";
|
|
3486
3621
|
readonly type: "function";
|
|
3487
3622
|
},
|
|
3623
|
+
{
|
|
3624
|
+
readonly inputs: readonly [
|
|
3625
|
+
{
|
|
3626
|
+
readonly internalType: "address";
|
|
3627
|
+
readonly name: "";
|
|
3628
|
+
readonly type: "address";
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
readonly internalType: "address";
|
|
3632
|
+
readonly name: "";
|
|
3633
|
+
readonly type: "address";
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
readonly internalType: "uint256";
|
|
3637
|
+
readonly name: "";
|
|
3638
|
+
readonly type: "uint256";
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
readonly internalType: "bytes";
|
|
3642
|
+
readonly name: "";
|
|
3643
|
+
readonly type: "bytes";
|
|
3644
|
+
}
|
|
3645
|
+
];
|
|
3646
|
+
readonly name: "onERC721Received";
|
|
3647
|
+
readonly outputs: readonly [
|
|
3648
|
+
{
|
|
3649
|
+
readonly internalType: "bytes4";
|
|
3650
|
+
readonly name: "";
|
|
3651
|
+
readonly type: "bytes4";
|
|
3652
|
+
}
|
|
3653
|
+
];
|
|
3654
|
+
readonly stateMutability: "nonpayable";
|
|
3655
|
+
readonly type: "function";
|
|
3656
|
+
},
|
|
3488
3657
|
{
|
|
3489
3658
|
readonly inputs: readonly [
|
|
3490
3659
|
];
|
|
@@ -3612,6 +3781,72 @@ declare class GaugeEntity {
|
|
|
3612
3781
|
readonly stateMutability: "view";
|
|
3613
3782
|
readonly type: "function";
|
|
3614
3783
|
},
|
|
3784
|
+
{
|
|
3785
|
+
readonly inputs: readonly [
|
|
3786
|
+
{
|
|
3787
|
+
readonly internalType: "address";
|
|
3788
|
+
readonly name: "";
|
|
3789
|
+
readonly type: "address";
|
|
3790
|
+
}
|
|
3791
|
+
];
|
|
3792
|
+
readonly name: "taxAmount";
|
|
3793
|
+
readonly outputs: readonly [
|
|
3794
|
+
{
|
|
3795
|
+
readonly internalType: "uint256";
|
|
3796
|
+
readonly name: "";
|
|
3797
|
+
readonly type: "uint256";
|
|
3798
|
+
}
|
|
3799
|
+
];
|
|
3800
|
+
readonly stateMutability: "view";
|
|
3801
|
+
readonly type: "function";
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
readonly inputs: readonly [
|
|
3805
|
+
];
|
|
3806
|
+
readonly name: "taxRatio";
|
|
3807
|
+
readonly outputs: readonly [
|
|
3808
|
+
{
|
|
3809
|
+
readonly internalType: "uint256";
|
|
3810
|
+
readonly name: "";
|
|
3811
|
+
readonly type: "uint256";
|
|
3812
|
+
}
|
|
3813
|
+
];
|
|
3814
|
+
readonly stateMutability: "view";
|
|
3815
|
+
readonly type: "function";
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
readonly inputs: readonly [
|
|
3819
|
+
];
|
|
3820
|
+
readonly name: "taxer";
|
|
3821
|
+
readonly outputs: readonly [
|
|
3822
|
+
{
|
|
3823
|
+
readonly internalType: "address";
|
|
3824
|
+
readonly name: "";
|
|
3825
|
+
readonly type: "address";
|
|
3826
|
+
}
|
|
3827
|
+
];
|
|
3828
|
+
readonly stateMutability: "view";
|
|
3829
|
+
readonly type: "function";
|
|
3830
|
+
},
|
|
3831
|
+
{
|
|
3832
|
+
readonly inputs: readonly [
|
|
3833
|
+
{
|
|
3834
|
+
readonly internalType: "uint256";
|
|
3835
|
+
readonly name: "";
|
|
3836
|
+
readonly type: "uint256";
|
|
3837
|
+
}
|
|
3838
|
+
];
|
|
3839
|
+
readonly name: "tokenStaker";
|
|
3840
|
+
readonly outputs: readonly [
|
|
3841
|
+
{
|
|
3842
|
+
readonly internalType: "address";
|
|
3843
|
+
readonly name: "";
|
|
3844
|
+
readonly type: "address";
|
|
3845
|
+
}
|
|
3846
|
+
];
|
|
3847
|
+
readonly stateMutability: "view";
|
|
3848
|
+
readonly type: "function";
|
|
3849
|
+
},
|
|
3615
3850
|
{
|
|
3616
3851
|
readonly inputs: readonly [
|
|
3617
3852
|
];
|
|
@@ -3729,7 +3964,7 @@ declare class GaugeEntity {
|
|
|
3729
3964
|
readonly inputs: readonly [
|
|
3730
3965
|
{
|
|
3731
3966
|
readonly internalType: "uint256";
|
|
3732
|
-
readonly name: "
|
|
3967
|
+
readonly name: "_tokenId";
|
|
3733
3968
|
readonly type: "uint256";
|
|
3734
3969
|
}
|
|
3735
3970
|
];
|
|
@@ -3738,6 +3973,20 @@ declare class GaugeEntity {
|
|
|
3738
3973
|
];
|
|
3739
3974
|
readonly stateMutability: "nonpayable";
|
|
3740
3975
|
readonly type: "function";
|
|
3976
|
+
},
|
|
3977
|
+
{
|
|
3978
|
+
readonly inputs: readonly [
|
|
3979
|
+
{
|
|
3980
|
+
readonly internalType: "address";
|
|
3981
|
+
readonly name: "_taxer";
|
|
3982
|
+
readonly type: "address";
|
|
3983
|
+
}
|
|
3984
|
+
];
|
|
3985
|
+
readonly name: "withdrawTax";
|
|
3986
|
+
readonly outputs: readonly [
|
|
3987
|
+
];
|
|
3988
|
+
readonly stateMutability: "nonpayable";
|
|
3989
|
+
readonly type: "function";
|
|
3741
3990
|
}
|
|
3742
3991
|
];
|
|
3743
3992
|
gaugeType(): Promise<"ERC20" | "ERC721" | "LPToken">;
|
|
@@ -5135,7 +5384,7 @@ declare class MarshallDao {
|
|
|
5135
5384
|
account: `0x${string}`;
|
|
5136
5385
|
}): Promise<{
|
|
5137
5386
|
data: any;
|
|
5138
|
-
address: string
|
|
5387
|
+
address: `0x${string}`;
|
|
5139
5388
|
title: string;
|
|
5140
5389
|
}[]>;
|
|
5141
5390
|
claimIncentiveRewards(args: {
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "v0.0.
|
|
5
|
+
"version": "v0.0.75",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"dev": "bun run build
|
|
9
|
+
"dev": "bun run build && bun run --watch server.ts",
|
|
10
10
|
"dev-db": "bun server-db.ts",
|
|
11
11
|
"test": "bun --hot run tests/test-marshalldao.ts",
|
|
12
12
|
"build": "bun run build.mjs",
|
|
@@ -45,4 +45,4 @@
|
|
|
45
45
|
"access": "public",
|
|
46
46
|
"registry": "https://registry.npmjs.org/"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|