@iotexproject/kit 0.0.90 → 0.0.92

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 +29 -14
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2535,6 +2535,13 @@ declare class LPTokenEntity {
2535
2535
  transfer: (to: `0x${string}`, value: string) => Promise<any>;
2536
2536
  transferFrom: (from: `0x${string}`, to: `0x${string}`, value: string) => Promise<any>;
2537
2537
  }
2538
+ export type ProjectMetadata = {
2539
+ logo: string;
2540
+ twitter?: string;
2541
+ website?: string;
2542
+ desc?: string;
2543
+ github?: string;
2544
+ };
2538
2545
  declare class GaugeEntity {
2539
2546
  address: `0x${string}`;
2540
2547
  chainId: string;
@@ -3381,7 +3388,7 @@ declare class GaugeEntity {
3381
3388
  } | undefined>;
3382
3389
  gaugeType(): Promise<"ERC20" | "ERC721" | "LPToken">;
3383
3390
  projectInfo(): Promise<{
3384
- metadata: any;
3391
+ metadata: ProjectMetadata | null;
3385
3392
  id?: string | undefined;
3386
3393
  deviceNFT?: string | undefined;
3387
3394
  name?: string | undefined;
@@ -4077,7 +4084,7 @@ declare class VerifyingProxyEntity {
4077
4084
  verifier: () => Promise<any>;
4078
4085
  deviceNFT: () => Promise<any>;
4079
4086
  deviceGauge: GaugeEntity;
4080
- projectMetadata(): Promise<any>;
4087
+ projectMetadata(): Promise<ProjectMetadata | null>;
4081
4088
  projectAppliedAmount(): Promise<string>;
4082
4089
  projectActivedAmount(): Promise<string>;
4083
4090
  ioIDStore(): Promise<"" | `0x${string}`>;
@@ -4090,13 +4097,6 @@ declare class VerifyingProxyEntity {
4090
4097
  setMetadata: (_name: string, _value: `0x${string}`) => Promise<any>;
4091
4098
  applyIoIDs: (_amount: string) => Promise<any>;
4092
4099
  }
4093
- export type ProjectMetadata = {
4094
- logo: string;
4095
- twitter?: string;
4096
- website?: string;
4097
- desc?: string;
4098
- github?: string;
4099
- };
4100
4100
  declare class IoID {
4101
4101
  verfiyerProxyList(args: {
4102
4102
  addresses: `0x${string}`[];
@@ -4185,12 +4185,27 @@ declare class IoID {
4185
4185
  registedDevices(args: {
4186
4186
  address: `0x${string}`;
4187
4187
  }): Promise<{
4188
- index: bigint;
4189
- wallet: never;
4190
- ioid: never;
4191
- balance: bigint;
4188
+ metadata: any;
4189
+ deviceId: string;
4190
+ owner: string;
4191
+ project: {
4192
+ name: string;
4193
+ metadata: {
4194
+ value: string;
4195
+ }[];
4196
+ };
4197
+ did: string;
4198
+ tokenId: string;
4199
+ wallet: string;
4200
+ walletBalance: {
4201
+ value: string;
4202
+ format: string;
4203
+ originFormat: string;
4204
+ decimals: string;
4205
+ isZero: boolean;
4206
+ };
4192
4207
  }[] | {
4193
- error: any;
4208
+ error: unknown;
4194
4209
  }>;
4195
4210
  }
4196
4211
  declare class VoterEntity {
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.90",
5
+ "version": "v0.0.92",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {