@iotexproject/kit 0.0.92 → 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 +18 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8303,6 +8303,7 @@ declare class ClickHouseSDK {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
declare class BaseDBModule {
|
|
8305
8305
|
analyzer: ReturnType<typeof postgres>;
|
|
8306
|
+
scout: ReturnType<typeof postgres>;
|
|
8306
8307
|
superbase: ReturnType<typeof postgres>;
|
|
8307
8308
|
iotexscan: ReturnType<typeof postgres>;
|
|
8308
8309
|
iopay: ReturnType<typeof postgres>;
|
|
@@ -8423,6 +8424,22 @@ declare class Transaction extends BaseDBModule {
|
|
|
8423
8424
|
endCursor: any;
|
|
8424
8425
|
}>;
|
|
8425
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
|
+
}
|
|
8426
8443
|
declare const modules$1: {
|
|
8427
8444
|
account: Account;
|
|
8428
8445
|
analyzer: Analyzer;
|
|
@@ -8431,6 +8448,7 @@ declare const modules$1: {
|
|
|
8431
8448
|
nft: NFT;
|
|
8432
8449
|
health: Health;
|
|
8433
8450
|
analysis: Analysis;
|
|
8451
|
+
contract: Contract;
|
|
8434
8452
|
};
|
|
8435
8453
|
export type DBModuleType = typeof modules$1;
|
|
8436
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};
|