@iotexproject/kit 0.0.91 → 0.0.93
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.
- package/dist/index.d.ts +46 -13
- package/dist/index.js +1 -1
- 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:
|
|
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<
|
|
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
|
-
|
|
4189
|
-
|
|
4188
|
+
metadata: any;
|
|
4189
|
+
deviceId: string;
|
|
4190
|
+
owner: string;
|
|
4191
|
+
project: {
|
|
4192
|
+
name: string;
|
|
4193
|
+
metadata: {
|
|
4194
|
+
value: string;
|
|
4195
|
+
}[];
|
|
4196
|
+
};
|
|
4190
4197
|
did: string;
|
|
4191
|
-
|
|
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:
|
|
4208
|
+
error: unknown;
|
|
4194
4209
|
}>;
|
|
4195
4210
|
}
|
|
4196
4211
|
declare class VoterEntity {
|
|
@@ -8288,6 +8303,7 @@ declare class ClickHouseSDK {
|
|
|
8288
8303
|
}
|
|
8289
8304
|
declare class BaseDBModule {
|
|
8290
8305
|
analyzer: ReturnType<typeof postgres>;
|
|
8306
|
+
scout: ReturnType<typeof postgres>;
|
|
8291
8307
|
superbase: ReturnType<typeof postgres>;
|
|
8292
8308
|
iotexscan: ReturnType<typeof postgres>;
|
|
8293
8309
|
iopay: ReturnType<typeof postgres>;
|
|
@@ -8408,6 +8424,22 @@ declare class Transaction extends BaseDBModule {
|
|
|
8408
8424
|
endCursor: any;
|
|
8409
8425
|
}>;
|
|
8410
8426
|
}
|
|
8427
|
+
declare class Contract extends BaseDBModule {
|
|
8428
|
+
getContractsDeployedByAccount({ address, page, pageSize }: {
|
|
8429
|
+
address: string;
|
|
8430
|
+
page: number;
|
|
8431
|
+
pageSize: number;
|
|
8432
|
+
}): Promise<{
|
|
8433
|
+
action_hash: string;
|
|
8434
|
+
verified: boolean;
|
|
8435
|
+
contract_name: any;
|
|
8436
|
+
address: string;
|
|
8437
|
+
timestamp: string;
|
|
8438
|
+
}[]>;
|
|
8439
|
+
getContractsDeployedCountByAccount({ address }: {
|
|
8440
|
+
address: string;
|
|
8441
|
+
}): Promise<number>;
|
|
8442
|
+
}
|
|
8411
8443
|
declare const modules$1: {
|
|
8412
8444
|
account: Account;
|
|
8413
8445
|
analyzer: Analyzer;
|
|
@@ -8416,6 +8448,7 @@ declare const modules$1: {
|
|
|
8416
8448
|
nft: NFT;
|
|
8417
8449
|
health: Health;
|
|
8418
8450
|
analysis: Analysis;
|
|
8451
|
+
contract: Contract;
|
|
8419
8452
|
};
|
|
8420
8453
|
export type DBModuleType = typeof modules$1;
|
|
8421
8454
|
export declare const createClient: ({ url }?: {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),M=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),N=({url:z="http://localhost:9527",fetchRequestInit:F})=>new Proxy({},{get(C,G,J){return new Proxy({},{get(D,x){return async(B)=>{const H=`${z}/${String(G)}/${String(x)}`;return(await fetch(H,{method:"POST",...F,body:JSON.stringify(B)})).json()}}})}});export{N as createClientWithWriteDBServer,M as createClientWithDBServer,L as createClient};
|