@iotexproject/kit 0.0.92 → 0.0.94

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 +46 -21
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2535,6 +2535,33 @@ 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 interface IoIDDevice {
2539
+ deviceId: string;
2540
+ owner: string;
2541
+ project: {
2542
+ name: string;
2543
+ metadata: {
2544
+ value: string;
2545
+ }[];
2546
+ };
2547
+ did: string;
2548
+ tokenId: string;
2549
+ wallet: string;
2550
+ walletBalance: {
2551
+ value: string;
2552
+ format: string;
2553
+ originFormat: string;
2554
+ decimals: string;
2555
+ isZero: boolean;
2556
+ };
2557
+ metadata: {
2558
+ logo: string;
2559
+ twitter?: string;
2560
+ website?: string;
2561
+ desc?: string;
2562
+ github?: string;
2563
+ } | null;
2564
+ }
2538
2565
  export type ProjectMetadata = {
2539
2566
  logo: string;
2540
2567
  twitter?: string;
@@ -4184,27 +4211,7 @@ declare class IoID {
4184
4211
  }>;
4185
4212
  registedDevices(args: {
4186
4213
  address: `0x${string}`;
4187
- }): Promise<{
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
- };
4207
- }[] | {
4214
+ }): Promise<IoIDDevice[] | {
4208
4215
  error: unknown;
4209
4216
  }>;
4210
4217
  }
@@ -8303,6 +8310,7 @@ declare class ClickHouseSDK {
8303
8310
  }
8304
8311
  declare class BaseDBModule {
8305
8312
  analyzer: ReturnType<typeof postgres>;
8313
+ scout: ReturnType<typeof postgres>;
8306
8314
  superbase: ReturnType<typeof postgres>;
8307
8315
  iotexscan: ReturnType<typeof postgres>;
8308
8316
  iopay: ReturnType<typeof postgres>;
@@ -8423,6 +8431,22 @@ declare class Transaction extends BaseDBModule {
8423
8431
  endCursor: any;
8424
8432
  }>;
8425
8433
  }
8434
+ declare class Contract extends BaseDBModule {
8435
+ getContractsDeployedByAccount({ address, page, pageSize }: {
8436
+ address: string;
8437
+ page: number;
8438
+ pageSize: number;
8439
+ }): Promise<{
8440
+ action_hash: string;
8441
+ verified: boolean;
8442
+ contract_name: any;
8443
+ address: string;
8444
+ timestamp: string;
8445
+ }[]>;
8446
+ getContractsDeployedCountByAccount({ address }: {
8447
+ address: string;
8448
+ }): Promise<number>;
8449
+ }
8426
8450
  declare const modules$1: {
8427
8451
  account: Account;
8428
8452
  analyzer: Analyzer;
@@ -8431,6 +8455,7 @@ declare const modules$1: {
8431
8455
  nft: NFT;
8432
8456
  health: Health;
8433
8457
  analysis: Analysis;
8458
+ contract: Contract;
8434
8459
  };
8435
8460
  export type DBModuleType = typeof modules$1;
8436
8461
  export declare const createClient: ({ url }?: {
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.92",
5
+ "version": "v0.0.94",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {