@iotexproject/kit 0.0.80 → 0.0.82

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +53 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3400,11 +3400,12 @@ declare class GaugeEntity {
3400
3400
  } | undefined>;
3401
3401
  gaugeType(): Promise<"ERC20" | "ERC721" | "LPToken">;
3402
3402
  projectInfo(): Promise<{
3403
- id: string;
3404
- deviceNFT: string;
3405
- name: string;
3406
- totalIoID: string;
3407
- totalAppliedIoID: string;
3403
+ metadata: any;
3404
+ id?: string | undefined;
3405
+ deviceNFT?: string | undefined;
3406
+ name?: string | undefined;
3407
+ totalIoID?: string | undefined;
3408
+ totalAppliedIoID?: string | undefined;
3408
3409
  } | null>;
3409
3410
  stakingTokenInfo(account?: `0x${string}`): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
3410
3411
  name: true;
@@ -4090,12 +4091,21 @@ declare class VerifyingProxyEntity {
4090
4091
  projectActivedAmount(): Promise<string>;
4091
4092
  ioIDStore(): Promise<"" | `0x${string}`>;
4092
4093
  projectId(): Promise<string>;
4094
+ projectAddress(): Promise<"" | `0x${string}`>;
4093
4095
  project(): Promise<string>;
4094
4096
  projectName(): Promise<string>;
4095
4097
  projectType(): Promise<number | "">;
4096
4098
  setDeviceGauge: (_gauge: `0x${string}`) => Promise<any>;
4099
+ setMetadata: (_name: string, _value: `0x${string}`) => Promise<any>;
4097
4100
  applyIoIDs: (_amount: string) => Promise<any>;
4098
4101
  }
4102
+ export type ProjectMetadata = {
4103
+ logo: string;
4104
+ twitter?: string;
4105
+ website?: string;
4106
+ desc?: string;
4107
+ github?: string;
4108
+ };
4099
4109
  declare class IoID {
4100
4110
  verfiyerProxyList(args: {
4101
4111
  addresses: `0x${string}`[];
@@ -4127,12 +4137,14 @@ declare class IoID {
4127
4137
  address: string;
4128
4138
  value: string;
4129
4139
  data: any;
4140
+ chainId: string;
4130
4141
  error?: undefined;
4131
4142
  } | {
4132
4143
  error: unknown;
4133
4144
  address?: undefined;
4134
4145
  value?: undefined;
4135
4146
  data?: undefined;
4147
+ chainId?: undefined;
4136
4148
  }>;
4137
4149
  setGauge(args: {
4138
4150
  address: `0x${string}`;
@@ -4140,11 +4152,13 @@ declare class IoID {
4140
4152
  }): Promise<{
4141
4153
  address: `0x${string}`;
4142
4154
  data: any;
4155
+ chainId: string;
4143
4156
  error?: undefined;
4144
4157
  } | {
4145
4158
  error: unknown;
4146
4159
  address?: undefined;
4147
4160
  data?: undefined;
4161
+ chainId?: undefined;
4148
4162
  }>;
4149
4163
  applyIoIDs(args: {
4150
4164
  address: `0x${string}`;
@@ -4153,12 +4167,28 @@ declare class IoID {
4153
4167
  value: string;
4154
4168
  address: `0x${string}`;
4155
4169
  data: any;
4170
+ chainId: string;
4156
4171
  error?: undefined;
4157
4172
  } | {
4158
4173
  error: unknown;
4159
4174
  value?: undefined;
4160
4175
  address?: undefined;
4161
4176
  data?: undefined;
4177
+ chainId?: undefined;
4178
+ }>;
4179
+ setProjectMetadata(args: {
4180
+ address: `0x${string}`;
4181
+ metadata: ProjectMetadata;
4182
+ }): Promise<{
4183
+ address: `0x${string}`;
4184
+ data: `0x${string}`;
4185
+ chainId: string;
4186
+ error?: undefined;
4187
+ } | {
4188
+ error: unknown;
4189
+ address?: undefined;
4190
+ data?: undefined;
4191
+ chainId?: undefined;
4162
4192
  }>;
4163
4193
  }
4164
4194
  declare class VoterEntity {
@@ -5421,11 +5451,13 @@ declare class MarshallDao {
5421
5451
  }): Promise<{
5422
5452
  data: any;
5423
5453
  address: string;
5454
+ chainId: string;
5424
5455
  error?: undefined;
5425
5456
  } | {
5426
5457
  error: unknown;
5427
5458
  data?: undefined;
5428
5459
  address?: undefined;
5460
+ chainId?: undefined;
5429
5461
  }>;
5430
5462
  depositToGauge(args: {
5431
5463
  gagueAddress: `0x${string}`;
@@ -5436,6 +5468,7 @@ declare class MarshallDao {
5436
5468
  approve: `0x${string}` | null | undefined;
5437
5469
  approveAddress: `0x${string}`;
5438
5470
  address: `0x${string}`;
5471
+ chainId: string;
5439
5472
  error?: undefined;
5440
5473
  } | {
5441
5474
  error: unknown;
@@ -5443,6 +5476,7 @@ declare class MarshallDao {
5443
5476
  approve?: undefined;
5444
5477
  approveAddress?: undefined;
5445
5478
  address?: undefined;
5479
+ chainId?: undefined;
5446
5480
  }>;
5447
5481
  withdrawFromGauge(args: {
5448
5482
  gagueAddress: string;
@@ -5450,6 +5484,7 @@ declare class MarshallDao {
5450
5484
  }): Promise<{
5451
5485
  data: any;
5452
5486
  address: string;
5487
+ chainId: string;
5453
5488
  }>;
5454
5489
  getRewardFromGauge(args: {
5455
5490
  gaugeAddress: string;
@@ -5462,12 +5497,14 @@ declare class MarshallDao {
5462
5497
  data: any;
5463
5498
  address: `0x${string}`;
5464
5499
  title: string;
5500
+ chainId: string;
5465
5501
  }[]>;
5466
5502
  claimIncentiveRewards(args: {
5467
5503
  gaugeAddress: string;
5468
5504
  }): Promise<{
5469
5505
  data: any;
5470
5506
  address: `0x${string}`;
5507
+ chainId: string;
5471
5508
  } | null>;
5472
5509
  withDrawTaxReward(args: {
5473
5510
  gaugeAddress: `0x${string}`;
@@ -5475,6 +5512,7 @@ declare class MarshallDao {
5475
5512
  }): Promise<{
5476
5513
  data: any;
5477
5514
  gaugeAddress: `0x${string}`;
5515
+ chainId: string;
5478
5516
  } | null>;
5479
5517
  }
5480
5518
  declare class UniswapV2LPEntity {
@@ -7707,6 +7745,7 @@ declare class MSP {
7707
7745
  data: any;
7708
7746
  address: string;
7709
7747
  value: string;
7748
+ chainId: string;
7710
7749
  }>;
7711
7750
  mockLST(args: {
7712
7751
  lstTokenAddress: string;
@@ -7714,6 +7753,7 @@ declare class MSP {
7714
7753
  }): Promise<{
7715
7754
  data: any;
7716
7755
  address: string;
7756
+ chainId: string;
7717
7757
  }>;
7718
7758
  totalMSPRewards(args: {
7719
7759
  account?: `0x${string}`;
@@ -7873,12 +7913,14 @@ declare class MSP {
7873
7913
  address: string;
7874
7914
  approve: any;
7875
7915
  approveAddress: string;
7916
+ chainId: string;
7876
7917
  }>;
7877
7918
  unStakeBucket(args: {
7878
7919
  bucketIds: string[];
7879
7920
  }): Promise<{
7880
7921
  data: any;
7881
7922
  address: string;
7923
+ chainId: string;
7882
7924
  }>;
7883
7925
  withdrawBucket(args: {
7884
7926
  bucketIds: string[];
@@ -7886,6 +7928,7 @@ declare class MSP {
7886
7928
  }): Promise<{
7887
7929
  data: any;
7888
7930
  address: string;
7931
+ chainId: string;
7889
7932
  }>;
7890
7933
  claimBucketReward(): Promise<{
7891
7934
  data: any;
@@ -7900,6 +7943,7 @@ declare class MSP {
7900
7943
  address: `0x${string}`;
7901
7944
  approve: `0x${string}` | null;
7902
7945
  approveAddress: `0x${string}`;
7946
+ chainId: string;
7903
7947
  }>;
7904
7948
  unStakeLST(args: {
7905
7949
  lstContractAddress: string;
@@ -7907,6 +7951,7 @@ declare class MSP {
7907
7951
  }): Promise<{
7908
7952
  data: any;
7909
7953
  address: string;
7954
+ chainId: string;
7910
7955
  }>;
7911
7956
  withdrawLST(args: {
7912
7957
  lstContractAddress: string;
@@ -7914,12 +7959,14 @@ declare class MSP {
7914
7959
  }): Promise<{
7915
7960
  data: any;
7916
7961
  address: string;
7962
+ chainId: string;
7917
7963
  }>;
7918
7964
  claimLSTReward(args: {
7919
7965
  lstContractAddress: string;
7920
7966
  }): Promise<{
7921
7967
  data: `0x${string}`;
7922
7968
  address: string;
7969
+ chainId: string;
7923
7970
  }>;
7924
7971
  batchClaimLSTReward(args: {
7925
7972
  lstContractAddresses: string[];
@@ -7927,6 +7974,7 @@ declare class MSP {
7927
7974
  }): Promise<{
7928
7975
  data: `0x${string}`;
7929
7976
  address: string;
7977
+ chainId: string;
7930
7978
  }[] | null>;
7931
7979
  }
7932
7980
  export interface Bucket {
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.80",
5
+ "version": "v0.0.82",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {