@iotexproject/kit 0.0.81 → 0.0.83

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 +56 -8
  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;
@@ -3486,7 +3487,7 @@ declare class GaugeEntity {
3486
3487
  };
3487
3488
  rewardsUSD: string;
3488
3489
  }>;
3489
- userDailyRewards(account: `0x${string}`): Promise<{
3490
+ dailyRewrads(account: `0x${string}`): Promise<{
3490
3491
  rewards: {
3491
3492
  value: string;
3492
3493
  format: string;
@@ -3495,6 +3496,29 @@ declare class GaugeEntity {
3495
3496
  isZero: boolean;
3496
3497
  };
3497
3498
  rewardsUSD: string;
3499
+ gaugeDailyRewards?: undefined;
3500
+ gaugeDailyRewardsUSD?: undefined;
3501
+ userDailyRewards?: undefined;
3502
+ userDailyRewardsUSD?: undefined;
3503
+ } | {
3504
+ gaugeDailyRewards: {
3505
+ value: string;
3506
+ format: string;
3507
+ originFormat: string;
3508
+ decimals: string;
3509
+ isZero: boolean;
3510
+ };
3511
+ gaugeDailyRewardsUSD: string;
3512
+ userDailyRewards: {
3513
+ value: string;
3514
+ format: string;
3515
+ originFormat: string;
3516
+ decimals: string;
3517
+ isZero: boolean;
3518
+ };
3519
+ userDailyRewardsUSD: string;
3520
+ rewards?: undefined;
3521
+ rewardsUSD?: undefined;
3498
3522
  }>;
3499
3523
  votes(account: `0x${string}`): Promise<{
3500
3524
  votes: string;
@@ -4085,17 +4109,26 @@ declare class VerifyingProxyEntity {
4085
4109
  verifier: () => Promise<any>;
4086
4110
  deviceNFT: () => Promise<any>;
4087
4111
  deviceGauge: GaugeEntity;
4088
- isValidAddress(): Promise<boolean>;
4112
+ projectMetadata(): Promise<any>;
4089
4113
  projectAppliedAmount(): Promise<string>;
4090
4114
  projectActivedAmount(): Promise<string>;
4091
4115
  ioIDStore(): Promise<"" | `0x${string}`>;
4092
4116
  projectId(): Promise<string>;
4117
+ projectAddress(): Promise<"" | `0x${string}`>;
4093
4118
  project(): Promise<string>;
4094
4119
  projectName(): Promise<string>;
4095
4120
  projectType(): Promise<number | "">;
4096
4121
  setDeviceGauge: (_gauge: `0x${string}`) => Promise<any>;
4122
+ setMetadata: (_name: string, _value: `0x${string}`) => Promise<any>;
4097
4123
  applyIoIDs: (_amount: string) => Promise<any>;
4098
4124
  }
4125
+ export type ProjectMetadata = {
4126
+ logo: string;
4127
+ twitter?: string;
4128
+ website?: string;
4129
+ desc?: string;
4130
+ github?: string;
4131
+ };
4099
4132
  declare class IoID {
4100
4133
  verfiyerProxyList(args: {
4101
4134
  addresses: `0x${string}`[];
@@ -4106,6 +4139,7 @@ declare class IoID {
4106
4139
  projectAppliedAmount: true;
4107
4140
  projectName: true;
4108
4141
  projectType: true;
4142
+ projectMetadata: true;
4109
4143
  deviceNFT: true;
4110
4144
  verifier: true;
4111
4145
  deviceGauge: {
@@ -4166,6 +4200,20 @@ declare class IoID {
4166
4200
  data?: undefined;
4167
4201
  chainId?: undefined;
4168
4202
  }>;
4203
+ setProjectMetadata(args: {
4204
+ address: `0x${string}`;
4205
+ metadata: ProjectMetadata;
4206
+ }): Promise<{
4207
+ address: `0x${string}`;
4208
+ data: `0x${string}`;
4209
+ chainId: string;
4210
+ error?: undefined;
4211
+ } | {
4212
+ error: unknown;
4213
+ address?: undefined;
4214
+ data?: undefined;
4215
+ chainId?: undefined;
4216
+ }>;
4169
4217
  }
4170
4218
  declare class VoterEntity {
4171
4219
  address: `0x${string}`;
@@ -5375,7 +5423,7 @@ declare class MarshallDao {
5375
5423
  rewards: false | [
5376
5424
  `0x${string}`
5377
5425
  ];
5378
- userDailyRewards: false | [
5426
+ dailyRewrads: false | [
5379
5427
  `0x${string}`
5380
5428
  ];
5381
5429
  gaugeCurrentRewards: true;
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.81",
5
+ "version": "v0.0.83",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {