@iotexproject/kit 0.0.81 → 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 +29 -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}`[];
@@ -4166,6 +4176,20 @@ declare class IoID {
4166
4176
  data?: undefined;
4167
4177
  chainId?: undefined;
4168
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;
4192
+ }>;
4169
4193
  }
4170
4194
  declare class VoterEntity {
4171
4195
  address: `0x${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.81",
5
+ "version": "v0.0.82",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {