@iotexproject/kit 0.1.21 → 0.1.23
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 +976 -19
- package/dist/index.js +1 -1
- package/package.json +9 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import { RouteConfig } from '@asteasolutions/zod-to-openapi';
|
|
3
4
|
import postgres from 'postgres';
|
|
5
|
+
import { PickByValue } from 'utility-types';
|
|
6
|
+
import { z } from 'zod';
|
|
4
7
|
|
|
5
8
|
declare class ERC20Entity {
|
|
6
9
|
address: `0x${string}`;
|
|
@@ -8505,6 +8508,16 @@ declare class Staking {
|
|
|
8505
8508
|
receiverAddress: `0x${string}`;
|
|
8506
8509
|
version: "v1" | "v2";
|
|
8507
8510
|
}): Promise<any>;
|
|
8511
|
+
delegate_list(isWhole?: boolean): Promise<{
|
|
8512
|
+
data: any;
|
|
8513
|
+
error?: undefined;
|
|
8514
|
+
} | {
|
|
8515
|
+
error: unknown;
|
|
8516
|
+
data?: undefined;
|
|
8517
|
+
}>;
|
|
8518
|
+
delegate_detail(args: {
|
|
8519
|
+
onChainName: string;
|
|
8520
|
+
}): Promise<any>;
|
|
8508
8521
|
}
|
|
8509
8522
|
declare class utils {
|
|
8510
8523
|
erc20(args: {
|
|
@@ -8778,13 +8791,34 @@ declare class Analysis extends BaseDBModule {
|
|
|
8778
8791
|
checkAuth(key: string): Promise<{
|
|
8779
8792
|
ok: boolean;
|
|
8780
8793
|
message: string;
|
|
8794
|
+
authData: null;
|
|
8795
|
+
} | {
|
|
8796
|
+
ok: boolean;
|
|
8797
|
+
message: string;
|
|
8798
|
+
authData: {
|
|
8799
|
+
app_id: any;
|
|
8800
|
+
api_key: string;
|
|
8801
|
+
};
|
|
8781
8802
|
}>;
|
|
8782
8803
|
create_ref({ device_id, refer_id, user_id }: {
|
|
8783
8804
|
device_id: string;
|
|
8784
8805
|
refer_id: string;
|
|
8785
8806
|
user_id: string;
|
|
8807
|
+
}, authData?: {
|
|
8808
|
+
app_id: string;
|
|
8809
|
+
api_key: string;
|
|
8810
|
+
}): Promise<{
|
|
8811
|
+
ok: boolean;
|
|
8812
|
+
msg: any;
|
|
8813
|
+
}>;
|
|
8814
|
+
upload_event({ event }: {
|
|
8815
|
+
event: Record<string, any>;
|
|
8816
|
+
}, authData?: {
|
|
8817
|
+
app_id: string;
|
|
8818
|
+
api_key: string;
|
|
8786
8819
|
}): Promise<{
|
|
8787
8820
|
ok: boolean;
|
|
8821
|
+
msg: any;
|
|
8788
8822
|
}>;
|
|
8789
8823
|
}
|
|
8790
8824
|
declare class Analyzer extends BaseDBModule {
|
|
@@ -8930,14 +8964,35 @@ declare const modules$1: {
|
|
|
8930
8964
|
resource: Resource;
|
|
8931
8965
|
};
|
|
8932
8966
|
export type DBModuleType = typeof modules$1;
|
|
8967
|
+
export interface ConfigOptions {
|
|
8968
|
+
ttl: number;
|
|
8969
|
+
}
|
|
8970
|
+
export type KitModuleFunction<I extends z.AnyZodObject = z.AnyZodObject, O extends z.ZodType | undefined = undefined, R = any> = {
|
|
8971
|
+
input?: I;
|
|
8972
|
+
method?: RouteConfig["method"];
|
|
8973
|
+
output?: O;
|
|
8974
|
+
config?: ConfigOptions;
|
|
8975
|
+
func: (input: z.infer<I>) => Promise<O extends z.ZodType ? z.infer<O> : R>;
|
|
8976
|
+
};
|
|
8977
|
+
export type KitModule<T extends Record<string, Record<string, KitModuleFunction<any, any, any> | any>>> = {
|
|
8978
|
+
[K in keyof T]: PickByValue<T[K], KitModuleFunction<any, any, any>>;
|
|
8979
|
+
};
|
|
8933
8980
|
declare const modules$2: {
|
|
8934
8981
|
readonly contract: {
|
|
8935
|
-
getabi
|
|
8982
|
+
getabi: KitModuleFunction<import("zod").ZodObject<{
|
|
8983
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
8984
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8936
8985
|
address: string;
|
|
8937
|
-
}
|
|
8938
|
-
|
|
8986
|
+
}, {
|
|
8987
|
+
address: string;
|
|
8988
|
+
}>, import("zod").ZodString, string>;
|
|
8989
|
+
getcontractcreation: KitModuleFunction<import("zod").ZodObject<{
|
|
8990
|
+
contractaddresses: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
8991
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8992
|
+
contractaddresses: string;
|
|
8993
|
+
}, {
|
|
8939
8994
|
contractaddresses: string;
|
|
8940
|
-
})
|
|
8995
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, (Error | {
|
|
8941
8996
|
contractCreator: string;
|
|
8942
8997
|
contractCreatorIo: string;
|
|
8943
8998
|
contractAddress: string;
|
|
@@ -8952,9 +9007,13 @@ declare const modules$2: {
|
|
|
8952
9007
|
_checkverify({ address }: {
|
|
8953
9008
|
address: string;
|
|
8954
9009
|
}): Promise<boolean>;
|
|
8955
|
-
getsourcecode
|
|
9010
|
+
getsourcecode: KitModuleFunction<import("zod").ZodObject<{
|
|
9011
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9012
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8956
9013
|
address: string;
|
|
8957
|
-
}
|
|
9014
|
+
}, {
|
|
9015
|
+
address: string;
|
|
9016
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, {
|
|
8958
9017
|
SourceCode: any;
|
|
8959
9018
|
ContractName: any;
|
|
8960
9019
|
OptimizationUsed: any;
|
|
@@ -8964,15 +9023,26 @@ declare const modules$2: {
|
|
|
8964
9023
|
Runs: any;
|
|
8965
9024
|
ABI: string;
|
|
8966
9025
|
}[]>;
|
|
8967
|
-
checkverifystatus
|
|
9026
|
+
checkverifystatus: KitModuleFunction<import("zod").ZodObject<{
|
|
9027
|
+
guid: import("zod").ZodString;
|
|
9028
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9029
|
+
guid: string;
|
|
9030
|
+
}, {
|
|
8968
9031
|
guid: string;
|
|
8969
|
-
})
|
|
8970
|
-
verifysourcecode
|
|
8971
|
-
|
|
9032
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, string>;
|
|
9033
|
+
verifysourcecode: KitModuleFunction<import("zod").ZodObject<{
|
|
9034
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9035
|
+
sourceCode: import("zod").ZodString;
|
|
9036
|
+
compilerversion: import("zod").ZodString;
|
|
9037
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9038
|
+
contractaddress: string;
|
|
9039
|
+
sourceCode: string;
|
|
9040
|
+
compilerversion: string;
|
|
9041
|
+
}, {
|
|
8972
9042
|
contractaddress: string;
|
|
8973
9043
|
sourceCode: string;
|
|
8974
9044
|
compilerversion: string;
|
|
8975
|
-
})
|
|
9045
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, unknown>;
|
|
8976
9046
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
8977
9047
|
scout: ReturnType<typeof import("postgres")>;
|
|
8978
9048
|
superbase: ReturnType<typeof import("postgres")>;
|
|
@@ -8987,13 +9057,877 @@ declare const modules$2: {
|
|
|
8987
9057
|
}>;
|
|
8988
9058
|
};
|
|
8989
9059
|
readonly transaction: {
|
|
8990
|
-
getstatus
|
|
9060
|
+
getstatus: KitModuleFunction<import("zod").ZodObject<{
|
|
9061
|
+
txhash: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
9062
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8991
9063
|
txhash: string;
|
|
8992
|
-
}
|
|
9064
|
+
}, {
|
|
9065
|
+
txhash: string;
|
|
9066
|
+
}>, import("zod").ZodAny, {
|
|
8993
9067
|
sender: string;
|
|
8994
9068
|
recipient: string;
|
|
8995
9069
|
bucket: import("postgres").Row;
|
|
8996
9070
|
}>;
|
|
9071
|
+
gettxreceiptstatus: KitModuleFunction<import("zod").ZodObject<{
|
|
9072
|
+
txhash: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
9073
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9074
|
+
txhash: string;
|
|
9075
|
+
}, {
|
|
9076
|
+
txhash: string;
|
|
9077
|
+
}>, import("zod").ZodAny, import("postgres").Row>;
|
|
9078
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9079
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9080
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9081
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9082
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9083
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9084
|
+
ch: ClickHouseSDK;
|
|
9085
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9086
|
+
checkAuth(key: string): Promise<{
|
|
9087
|
+
ok: boolean;
|
|
9088
|
+
message: string;
|
|
9089
|
+
}>;
|
|
9090
|
+
};
|
|
9091
|
+
readonly proxy: {
|
|
9092
|
+
eth_blockNumber: KitModuleFunction<import("zod").AnyZodObject, import("zod").ZodAny, any>;
|
|
9093
|
+
eth_getBlockByNumber: KitModuleFunction<import("zod").ZodObject<{
|
|
9094
|
+
tag: import("zod").ZodString;
|
|
9095
|
+
boolean: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
9096
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9097
|
+
boolean: boolean;
|
|
9098
|
+
tag: string;
|
|
9099
|
+
}, {
|
|
9100
|
+
tag: string;
|
|
9101
|
+
boolean?: boolean | undefined;
|
|
9102
|
+
}>, import("zod").ZodAny, any>;
|
|
9103
|
+
eth_getUncleByBlockNumberAndIndex: KitModuleFunction<import("zod").ZodObject<{
|
|
9104
|
+
tag: import("zod").ZodString;
|
|
9105
|
+
index: import("zod").ZodString;
|
|
9106
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9107
|
+
index: string;
|
|
9108
|
+
tag: string;
|
|
9109
|
+
}, {
|
|
9110
|
+
index: string;
|
|
9111
|
+
tag: string;
|
|
9112
|
+
}>, import("zod").ZodAny, any>;
|
|
9113
|
+
eth_getBlockTransactionCountByNumber: KitModuleFunction<import("zod").ZodObject<{
|
|
9114
|
+
tag: import("zod").ZodString;
|
|
9115
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9116
|
+
tag: string;
|
|
9117
|
+
}, {
|
|
9118
|
+
tag: string;
|
|
9119
|
+
}>, import("zod").ZodAny, any>;
|
|
9120
|
+
eth_getTransactionByHash: KitModuleFunction<import("zod").ZodObject<{
|
|
9121
|
+
txhash: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
9122
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9123
|
+
txhash: string;
|
|
9124
|
+
}, {
|
|
9125
|
+
txhash: string;
|
|
9126
|
+
}>, import("zod").ZodAny, any>;
|
|
9127
|
+
eth_getTransactionByBlockNumberAndIndex: KitModuleFunction<import("zod").ZodObject<{
|
|
9128
|
+
tag: import("zod").ZodString;
|
|
9129
|
+
index: import("zod").ZodString;
|
|
9130
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9131
|
+
index: string;
|
|
9132
|
+
tag: string;
|
|
9133
|
+
}, {
|
|
9134
|
+
index: string;
|
|
9135
|
+
tag: string;
|
|
9136
|
+
}>, import("zod").ZodAny, any>;
|
|
9137
|
+
eth_getTransactionCount: KitModuleFunction<import("zod").ZodObject<{
|
|
9138
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9139
|
+
tag: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9140
|
+
"latest",
|
|
9141
|
+
"earliest",
|
|
9142
|
+
"pending",
|
|
9143
|
+
"safe",
|
|
9144
|
+
"finalized"
|
|
9145
|
+
]>>;
|
|
9146
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9147
|
+
address: string;
|
|
9148
|
+
tag: "latest" | "earliest" | "pending" | "safe" | "finalized";
|
|
9149
|
+
}, {
|
|
9150
|
+
address: string;
|
|
9151
|
+
tag?: "latest" | "earliest" | "pending" | "safe" | "finalized" | undefined;
|
|
9152
|
+
}>, import("zod").ZodAny, any>;
|
|
9153
|
+
eth_sendRawTransaction: KitModuleFunction<import("zod").ZodObject<{
|
|
9154
|
+
hex: import("zod").ZodString;
|
|
9155
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9156
|
+
hex: string;
|
|
9157
|
+
}, {
|
|
9158
|
+
hex: string;
|
|
9159
|
+
}>, import("zod").ZodAny, any>;
|
|
9160
|
+
eth_getTransactionReceipt: KitModuleFunction<import("zod").ZodObject<{
|
|
9161
|
+
txhash: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
9162
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9163
|
+
txhash: string;
|
|
9164
|
+
}, {
|
|
9165
|
+
txhash: string;
|
|
9166
|
+
}>, import("zod").ZodAny, any>;
|
|
9167
|
+
eth_call: KitModuleFunction<import("zod").ZodObject<{
|
|
9168
|
+
to: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9169
|
+
data: import("zod").ZodString;
|
|
9170
|
+
tag: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9171
|
+
"latest",
|
|
9172
|
+
"earliest",
|
|
9173
|
+
"pending",
|
|
9174
|
+
"safe",
|
|
9175
|
+
"finalized"
|
|
9176
|
+
]>>;
|
|
9177
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9178
|
+
to: string;
|
|
9179
|
+
data: string;
|
|
9180
|
+
tag: "latest" | "earliest" | "pending" | "safe" | "finalized";
|
|
9181
|
+
}, {
|
|
9182
|
+
to: string;
|
|
9183
|
+
data: string;
|
|
9184
|
+
tag?: "latest" | "earliest" | "pending" | "safe" | "finalized" | undefined;
|
|
9185
|
+
}>, import("zod").ZodAny, any>;
|
|
9186
|
+
eth_getCode: KitModuleFunction<import("zod").ZodObject<{
|
|
9187
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9188
|
+
tag: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9189
|
+
"latest",
|
|
9190
|
+
"earliest",
|
|
9191
|
+
"pending",
|
|
9192
|
+
"safe",
|
|
9193
|
+
"finalized"
|
|
9194
|
+
]>>;
|
|
9195
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9196
|
+
address: string;
|
|
9197
|
+
tag: "latest" | "earliest" | "pending" | "safe" | "finalized";
|
|
9198
|
+
}, {
|
|
9199
|
+
address: string;
|
|
9200
|
+
tag?: "latest" | "earliest" | "pending" | "safe" | "finalized" | undefined;
|
|
9201
|
+
}>, import("zod").ZodAny, any>;
|
|
9202
|
+
eth_getStorageAt: KitModuleFunction<import("zod").ZodObject<{
|
|
9203
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9204
|
+
position: import("zod").ZodString;
|
|
9205
|
+
tag: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9206
|
+
"latest",
|
|
9207
|
+
"earliest",
|
|
9208
|
+
"pending",
|
|
9209
|
+
"safe",
|
|
9210
|
+
"finalized"
|
|
9211
|
+
]>>;
|
|
9212
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9213
|
+
address: string;
|
|
9214
|
+
tag: "latest" | "earliest" | "pending" | "safe" | "finalized";
|
|
9215
|
+
position: string;
|
|
9216
|
+
}, {
|
|
9217
|
+
address: string;
|
|
9218
|
+
position: string;
|
|
9219
|
+
tag?: "latest" | "earliest" | "pending" | "safe" | "finalized" | undefined;
|
|
9220
|
+
}>, import("zod").ZodAny, any>;
|
|
9221
|
+
eth_gasPrice: KitModuleFunction<import("zod").AnyZodObject, import("zod").ZodAny, any>;
|
|
9222
|
+
eth_estimateGas: KitModuleFunction<import("zod").ZodObject<{
|
|
9223
|
+
data: import("zod").ZodString;
|
|
9224
|
+
to: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9225
|
+
value: import("zod").ZodString;
|
|
9226
|
+
gasPrice: import("zod").ZodString;
|
|
9227
|
+
gas: import("zod").ZodString;
|
|
9228
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9229
|
+
value: string;
|
|
9230
|
+
to: string;
|
|
9231
|
+
data: string;
|
|
9232
|
+
gas: string;
|
|
9233
|
+
gasPrice: string;
|
|
9234
|
+
}, {
|
|
9235
|
+
value: string;
|
|
9236
|
+
to: string;
|
|
9237
|
+
data: string;
|
|
9238
|
+
gas: string;
|
|
9239
|
+
gasPrice: string;
|
|
9240
|
+
}>, import("zod").ZodAny, any>;
|
|
9241
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9242
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9243
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9244
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9245
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9246
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9247
|
+
ch: ClickHouseSDK;
|
|
9248
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9249
|
+
checkAuth(key: string): Promise<{
|
|
9250
|
+
ok: boolean;
|
|
9251
|
+
message: string;
|
|
9252
|
+
}>;
|
|
9253
|
+
};
|
|
9254
|
+
readonly account: {
|
|
9255
|
+
balance: KitModuleFunction<import("zod").ZodObject<{
|
|
9256
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9257
|
+
tag: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9258
|
+
"latest",
|
|
9259
|
+
"earliest",
|
|
9260
|
+
"pending",
|
|
9261
|
+
"safe",
|
|
9262
|
+
"finalized"
|
|
9263
|
+
]>>;
|
|
9264
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9265
|
+
address: string;
|
|
9266
|
+
tag: "latest" | "earliest" | "pending" | "safe" | "finalized";
|
|
9267
|
+
}, {
|
|
9268
|
+
address: string;
|
|
9269
|
+
tag?: "latest" | "earliest" | "pending" | "safe" | "finalized" | undefined;
|
|
9270
|
+
}>, import("zod").ZodAny, string>;
|
|
9271
|
+
balancemulti: KitModuleFunction<import("zod").ZodObject<{
|
|
9272
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9273
|
+
tag: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9274
|
+
"latest",
|
|
9275
|
+
"earliest",
|
|
9276
|
+
"pending",
|
|
9277
|
+
"safe",
|
|
9278
|
+
"finalized"
|
|
9279
|
+
]>>;
|
|
9280
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9281
|
+
address: string;
|
|
9282
|
+
tag: "latest" | "earliest" | "pending" | "safe" | "finalized";
|
|
9283
|
+
}, {
|
|
9284
|
+
address: string;
|
|
9285
|
+
tag?: "latest" | "earliest" | "pending" | "safe" | "finalized" | undefined;
|
|
9286
|
+
}>, import("zod").ZodAny, string[]>;
|
|
9287
|
+
txlist: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9288
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9289
|
+
}, import("zod").objectUtil.extendShape<{
|
|
9290
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9291
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9292
|
+
}, {
|
|
9293
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9294
|
+
"asc",
|
|
9295
|
+
"desc"
|
|
9296
|
+
]>>;
|
|
9297
|
+
startblock: import("zod").ZodNumber;
|
|
9298
|
+
endblock: import("zod").ZodNumber;
|
|
9299
|
+
}>>, "strip", import("zod").ZodTypeAny, {
|
|
9300
|
+
address: string;
|
|
9301
|
+
sort: "asc" | "desc";
|
|
9302
|
+
offset: number;
|
|
9303
|
+
page: number;
|
|
9304
|
+
startblock: number;
|
|
9305
|
+
endblock: number;
|
|
9306
|
+
}, {
|
|
9307
|
+
address: string;
|
|
9308
|
+
startblock: number;
|
|
9309
|
+
endblock: number;
|
|
9310
|
+
sort?: "asc" | "desc" | undefined;
|
|
9311
|
+
offset?: number | undefined;
|
|
9312
|
+
page?: number | undefined;
|
|
9313
|
+
}>, import("zod").ZodAny, import("postgres").RowList<{
|
|
9314
|
+
blockNumber: string;
|
|
9315
|
+
timeStamp: string;
|
|
9316
|
+
hash: string;
|
|
9317
|
+
nonce: string;
|
|
9318
|
+
blockHash: string;
|
|
9319
|
+
from: string;
|
|
9320
|
+
to: string;
|
|
9321
|
+
value: string;
|
|
9322
|
+
gas: string;
|
|
9323
|
+
gasPrice: string;
|
|
9324
|
+
isError: string;
|
|
9325
|
+
txreceipt_status: string;
|
|
9326
|
+
input: string;
|
|
9327
|
+
contractAddress: string;
|
|
9328
|
+
gasUsed: string;
|
|
9329
|
+
methodId: string;
|
|
9330
|
+
functionName: string;
|
|
9331
|
+
}[]>>;
|
|
9332
|
+
txlistinternal: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9333
|
+
address: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
9334
|
+
txhash: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
|
|
9335
|
+
}, import("zod").objectUtil.extendShape<{
|
|
9336
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9337
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9338
|
+
}, {
|
|
9339
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9340
|
+
"asc",
|
|
9341
|
+
"desc"
|
|
9342
|
+
]>>;
|
|
9343
|
+
startblock: import("zod").ZodNumber;
|
|
9344
|
+
endblock: import("zod").ZodNumber;
|
|
9345
|
+
}>>, "strip", import("zod").ZodTypeAny, {
|
|
9346
|
+
sort: "asc" | "desc";
|
|
9347
|
+
offset: number;
|
|
9348
|
+
page: number;
|
|
9349
|
+
startblock: number;
|
|
9350
|
+
endblock: number;
|
|
9351
|
+
address?: string | undefined;
|
|
9352
|
+
txhash?: string | undefined;
|
|
9353
|
+
}, {
|
|
9354
|
+
startblock: number;
|
|
9355
|
+
endblock: number;
|
|
9356
|
+
address?: string | undefined;
|
|
9357
|
+
sort?: "asc" | "desc" | undefined;
|
|
9358
|
+
offset?: number | undefined;
|
|
9359
|
+
page?: number | undefined;
|
|
9360
|
+
txhash?: string | undefined;
|
|
9361
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, import("postgres").RowList<import("postgres").Row[]>>;
|
|
9362
|
+
tokentx: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9363
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9364
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9365
|
+
}, import("zod").objectUtil.extendShape<{
|
|
9366
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9367
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9368
|
+
}, {
|
|
9369
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9370
|
+
"asc",
|
|
9371
|
+
"desc"
|
|
9372
|
+
]>>;
|
|
9373
|
+
startblock: import("zod").ZodNumber;
|
|
9374
|
+
endblock: import("zod").ZodNumber;
|
|
9375
|
+
}>>, "strip", import("zod").ZodTypeAny, {
|
|
9376
|
+
address: string;
|
|
9377
|
+
sort: "asc" | "desc";
|
|
9378
|
+
offset: number;
|
|
9379
|
+
page: number;
|
|
9380
|
+
startblock: number;
|
|
9381
|
+
endblock: number;
|
|
9382
|
+
contractaddress: string;
|
|
9383
|
+
}, {
|
|
9384
|
+
address: string;
|
|
9385
|
+
startblock: number;
|
|
9386
|
+
endblock: number;
|
|
9387
|
+
contractaddress: string;
|
|
9388
|
+
sort?: "asc" | "desc" | undefined;
|
|
9389
|
+
offset?: number | undefined;
|
|
9390
|
+
page?: number | undefined;
|
|
9391
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, {
|
|
9392
|
+
tokenName: any;
|
|
9393
|
+
tokenSymbol: any;
|
|
9394
|
+
tokenDecimal: any;
|
|
9395
|
+
}[]>;
|
|
9396
|
+
tokennfttx: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9397
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9398
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9399
|
+
}, import("zod").objectUtil.extendShape<{
|
|
9400
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9401
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9402
|
+
}, {
|
|
9403
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9404
|
+
"asc",
|
|
9405
|
+
"desc"
|
|
9406
|
+
]>>;
|
|
9407
|
+
startblock: import("zod").ZodNumber;
|
|
9408
|
+
endblock: import("zod").ZodNumber;
|
|
9409
|
+
}>>, "strip", import("zod").ZodTypeAny, {
|
|
9410
|
+
address: string;
|
|
9411
|
+
sort: "asc" | "desc";
|
|
9412
|
+
offset: number;
|
|
9413
|
+
page: number;
|
|
9414
|
+
startblock: number;
|
|
9415
|
+
endblock: number;
|
|
9416
|
+
contractaddress: string;
|
|
9417
|
+
}, {
|
|
9418
|
+
address: string;
|
|
9419
|
+
startblock: number;
|
|
9420
|
+
endblock: number;
|
|
9421
|
+
contractaddress: string;
|
|
9422
|
+
sort?: "asc" | "desc" | undefined;
|
|
9423
|
+
offset?: number | undefined;
|
|
9424
|
+
page?: number | undefined;
|
|
9425
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, {
|
|
9426
|
+
tokenName: any;
|
|
9427
|
+
tokenSymbol: any;
|
|
9428
|
+
tokenDecimal: number;
|
|
9429
|
+
}[]>;
|
|
9430
|
+
token1155tx: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9431
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9432
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9433
|
+
}, import("zod").objectUtil.extendShape<{
|
|
9434
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9435
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9436
|
+
}, {
|
|
9437
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9438
|
+
"asc",
|
|
9439
|
+
"desc"
|
|
9440
|
+
]>>;
|
|
9441
|
+
startblock: import("zod").ZodNumber;
|
|
9442
|
+
endblock: import("zod").ZodNumber;
|
|
9443
|
+
}>>, "strip", import("zod").ZodTypeAny, {
|
|
9444
|
+
address: string;
|
|
9445
|
+
sort: "asc" | "desc";
|
|
9446
|
+
offset: number;
|
|
9447
|
+
page: number;
|
|
9448
|
+
startblock: number;
|
|
9449
|
+
endblock: number;
|
|
9450
|
+
contractaddress: string;
|
|
9451
|
+
}, {
|
|
9452
|
+
address: string;
|
|
9453
|
+
startblock: number;
|
|
9454
|
+
endblock: number;
|
|
9455
|
+
contractaddress: string;
|
|
9456
|
+
sort?: "asc" | "desc" | undefined;
|
|
9457
|
+
offset?: number | undefined;
|
|
9458
|
+
page?: number | undefined;
|
|
9459
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, {
|
|
9460
|
+
tokenName: any;
|
|
9461
|
+
tokenSymbol: any;
|
|
9462
|
+
tokenDecimal: number;
|
|
9463
|
+
}[]>;
|
|
9464
|
+
tokenbalance: KitModuleFunction<import("zod").ZodObject<{
|
|
9465
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9466
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9467
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9468
|
+
address: string;
|
|
9469
|
+
contractaddress: string;
|
|
9470
|
+
}, {
|
|
9471
|
+
address: string;
|
|
9472
|
+
contractaddress: string;
|
|
9473
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, string>;
|
|
9474
|
+
tokensupplyhistory: KitModuleFunction<import("zod").ZodObject<{
|
|
9475
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9476
|
+
blockno: import("zod").ZodNumber;
|
|
9477
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9478
|
+
contractaddress: string;
|
|
9479
|
+
blockno: number;
|
|
9480
|
+
}, {
|
|
9481
|
+
contractaddress: string;
|
|
9482
|
+
blockno: number;
|
|
9483
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, string>;
|
|
9484
|
+
tokenbalancehistory: KitModuleFunction<import("zod").ZodObject<{
|
|
9485
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9486
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9487
|
+
blockno: import("zod").ZodNumber;
|
|
9488
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9489
|
+
address: string;
|
|
9490
|
+
contractaddress: string;
|
|
9491
|
+
blockno: number;
|
|
9492
|
+
}, {
|
|
9493
|
+
address: string;
|
|
9494
|
+
contractaddress: string;
|
|
9495
|
+
blockno: number;
|
|
9496
|
+
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, string>;
|
|
9497
|
+
addresstokennftbalance: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9498
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9499
|
+
}, {
|
|
9500
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9501
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9502
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9503
|
+
address: string;
|
|
9504
|
+
offset: number;
|
|
9505
|
+
page: number;
|
|
9506
|
+
}, {
|
|
9507
|
+
address: string;
|
|
9508
|
+
offset?: number | undefined;
|
|
9509
|
+
page?: number | undefined;
|
|
9510
|
+
}>, import("zod").ZodAny, void>;
|
|
9511
|
+
addresstokennftinventory: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9512
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9513
|
+
convertAddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9514
|
+
}, {
|
|
9515
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9516
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9517
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9518
|
+
address: string;
|
|
9519
|
+
offset: number;
|
|
9520
|
+
page: number;
|
|
9521
|
+
convertAddress: string;
|
|
9522
|
+
}, {
|
|
9523
|
+
address: string;
|
|
9524
|
+
convertAddress: string;
|
|
9525
|
+
offset?: number | undefined;
|
|
9526
|
+
page?: number | undefined;
|
|
9527
|
+
}>, import("zod").ZodAny, void>;
|
|
9528
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9529
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9530
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9531
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9532
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9533
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9534
|
+
ch: ClickHouseSDK;
|
|
9535
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9536
|
+
checkAuth(key: string): Promise<{
|
|
9537
|
+
ok: boolean;
|
|
9538
|
+
message: string;
|
|
9539
|
+
}>;
|
|
9540
|
+
};
|
|
9541
|
+
readonly block: {
|
|
9542
|
+
getblockreward: KitModuleFunction<import("zod").ZodObject<{
|
|
9543
|
+
blockno: import("zod").ZodNumber;
|
|
9544
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9545
|
+
blockno: number;
|
|
9546
|
+
}, {
|
|
9547
|
+
blockno: number;
|
|
9548
|
+
}>, import("zod").ZodAny, import("postgres").Row>;
|
|
9549
|
+
getblocknobytime: KitModuleFunction<import("zod").ZodObject<{
|
|
9550
|
+
timestamp: import("zod").ZodNumber;
|
|
9551
|
+
closest: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9552
|
+
"before",
|
|
9553
|
+
"after"
|
|
9554
|
+
]>>;
|
|
9555
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9556
|
+
timestamp: number;
|
|
9557
|
+
closest: "before" | "after";
|
|
9558
|
+
}, {
|
|
9559
|
+
timestamp: number;
|
|
9560
|
+
closest?: "before" | "after" | undefined;
|
|
9561
|
+
}>, import("zod").ZodAny, any>;
|
|
9562
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9563
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9564
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9565
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9566
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9567
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9568
|
+
ch: ClickHouseSDK;
|
|
9569
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9570
|
+
checkAuth(key: string): Promise<{
|
|
9571
|
+
ok: boolean;
|
|
9572
|
+
message: string;
|
|
9573
|
+
}>;
|
|
9574
|
+
};
|
|
9575
|
+
readonly log: {
|
|
9576
|
+
getLogs: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9577
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9578
|
+
fromBlock: import("zod").ZodNumber;
|
|
9579
|
+
toBlock: import("zod").ZodNumber;
|
|
9580
|
+
}, {
|
|
9581
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9582
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9583
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9584
|
+
address: string;
|
|
9585
|
+
offset: number;
|
|
9586
|
+
page: number;
|
|
9587
|
+
fromBlock: number;
|
|
9588
|
+
toBlock: number;
|
|
9589
|
+
}, {
|
|
9590
|
+
address: string;
|
|
9591
|
+
fromBlock: number;
|
|
9592
|
+
toBlock: number;
|
|
9593
|
+
offset?: number | undefined;
|
|
9594
|
+
page?: number | undefined;
|
|
9595
|
+
}>, import("zod").ZodAny, {
|
|
9596
|
+
address: string;
|
|
9597
|
+
topics: any[];
|
|
9598
|
+
data: string;
|
|
9599
|
+
blockNumber: string;
|
|
9600
|
+
timeStamp: string;
|
|
9601
|
+
gasPrice: string;
|
|
9602
|
+
gasUsed: string;
|
|
9603
|
+
logIndex: string;
|
|
9604
|
+
transactionHash: string;
|
|
9605
|
+
}[]>;
|
|
9606
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9607
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9608
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9609
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9610
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9611
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9612
|
+
ch: ClickHouseSDK;
|
|
9613
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9614
|
+
checkAuth(key: string): Promise<{
|
|
9615
|
+
ok: boolean;
|
|
9616
|
+
message: string;
|
|
9617
|
+
}>;
|
|
9618
|
+
};
|
|
9619
|
+
readonly stats: {
|
|
9620
|
+
tokensupply: KitModuleFunction<import("zod").ZodObject<{
|
|
9621
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9622
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9623
|
+
contractaddress: string;
|
|
9624
|
+
}, {
|
|
9625
|
+
contractaddress: string;
|
|
9626
|
+
}>, import("zod").ZodAny, string>;
|
|
9627
|
+
dailyblkcount: KitModuleFunction<import("zod").ZodObject<{
|
|
9628
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9629
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9630
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9631
|
+
"asc",
|
|
9632
|
+
"desc"
|
|
9633
|
+
]>>;
|
|
9634
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9635
|
+
sort: "asc" | "desc";
|
|
9636
|
+
startdate: string;
|
|
9637
|
+
enddate: string;
|
|
9638
|
+
}, {
|
|
9639
|
+
startdate: string;
|
|
9640
|
+
enddate: string;
|
|
9641
|
+
sort?: "asc" | "desc" | undefined;
|
|
9642
|
+
}>, import("zod").ZodAny, any>;
|
|
9643
|
+
dailyblockrewards: KitModuleFunction<import("zod").ZodObject<{
|
|
9644
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9645
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9646
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9647
|
+
"asc",
|
|
9648
|
+
"desc"
|
|
9649
|
+
]>>;
|
|
9650
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9651
|
+
sort: "asc" | "desc";
|
|
9652
|
+
startdate: string;
|
|
9653
|
+
enddate: string;
|
|
9654
|
+
}, {
|
|
9655
|
+
startdate: string;
|
|
9656
|
+
enddate: string;
|
|
9657
|
+
sort?: "asc" | "desc" | undefined;
|
|
9658
|
+
}>, import("zod").ZodAny, any>;
|
|
9659
|
+
iotxsupply: any;
|
|
9660
|
+
iotxsupply2: any;
|
|
9661
|
+
iotxprice: KitModuleFunction<import("zod").AnyZodObject, import("zod").ZodAny, {
|
|
9662
|
+
ethusd: any;
|
|
9663
|
+
ethusd_timestamp: number;
|
|
9664
|
+
}>;
|
|
9665
|
+
chainsize: any;
|
|
9666
|
+
nodecount: any;
|
|
9667
|
+
dailytxnfee: KitModuleFunction<import("zod").ZodObject<{
|
|
9668
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9669
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9670
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9671
|
+
"asc",
|
|
9672
|
+
"desc"
|
|
9673
|
+
]>>;
|
|
9674
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9675
|
+
sort: "asc" | "desc";
|
|
9676
|
+
startdate: string;
|
|
9677
|
+
enddate: string;
|
|
9678
|
+
}, {
|
|
9679
|
+
startdate: string;
|
|
9680
|
+
enddate: string;
|
|
9681
|
+
sort?: "asc" | "desc" | undefined;
|
|
9682
|
+
}>, import("zod").ZodAny, any>;
|
|
9683
|
+
dailynewaddress: KitModuleFunction<import("zod").ZodObject<{
|
|
9684
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9685
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9686
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9687
|
+
"asc",
|
|
9688
|
+
"desc"
|
|
9689
|
+
]>>;
|
|
9690
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9691
|
+
sort: "asc" | "desc";
|
|
9692
|
+
startdate: string;
|
|
9693
|
+
enddate: string;
|
|
9694
|
+
}, {
|
|
9695
|
+
startdate: string;
|
|
9696
|
+
enddate: string;
|
|
9697
|
+
sort?: "asc" | "desc" | undefined;
|
|
9698
|
+
}>, import("zod").ZodAny, {
|
|
9699
|
+
UTCDate: any;
|
|
9700
|
+
unixTimeStamp: number;
|
|
9701
|
+
newAddressCount: any;
|
|
9702
|
+
}[]>;
|
|
9703
|
+
dailynetutilization: any;
|
|
9704
|
+
dailyavghashrate: any;
|
|
9705
|
+
dailytx: KitModuleFunction<import("zod").ZodObject<{
|
|
9706
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9707
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9708
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9709
|
+
"asc",
|
|
9710
|
+
"desc"
|
|
9711
|
+
]>>;
|
|
9712
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9713
|
+
sort: "asc" | "desc";
|
|
9714
|
+
startdate: string;
|
|
9715
|
+
enddate: string;
|
|
9716
|
+
}, {
|
|
9717
|
+
startdate: string;
|
|
9718
|
+
enddate: string;
|
|
9719
|
+
sort?: "asc" | "desc" | undefined;
|
|
9720
|
+
}>, import("zod").ZodAny, any>;
|
|
9721
|
+
dailyavgnetdifficulty: any;
|
|
9722
|
+
ethdailymarketcap: any;
|
|
9723
|
+
iotxdailyprice: KitModuleFunction<import("zod").ZodObject<{
|
|
9724
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9725
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9726
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9727
|
+
"asc",
|
|
9728
|
+
"desc"
|
|
9729
|
+
]>>;
|
|
9730
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9731
|
+
sort: "asc" | "desc";
|
|
9732
|
+
startdate: string;
|
|
9733
|
+
enddate: string;
|
|
9734
|
+
}, {
|
|
9735
|
+
startdate: string;
|
|
9736
|
+
enddate: string;
|
|
9737
|
+
sort?: "asc" | "desc" | undefined;
|
|
9738
|
+
}>, import("zod").ZodAny, any>;
|
|
9739
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9740
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9741
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9742
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9743
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9744
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9745
|
+
ch: ClickHouseSDK;
|
|
9746
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9747
|
+
checkAuth(key: string): Promise<{
|
|
9748
|
+
ok: boolean;
|
|
9749
|
+
message: string;
|
|
9750
|
+
}>;
|
|
9751
|
+
};
|
|
9752
|
+
readonly token: {
|
|
9753
|
+
tokenholderlist: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9754
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9755
|
+
}, {
|
|
9756
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9757
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9758
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9759
|
+
offset: number;
|
|
9760
|
+
page: number;
|
|
9761
|
+
contractaddress: string;
|
|
9762
|
+
}, {
|
|
9763
|
+
contractaddress: string;
|
|
9764
|
+
offset?: number | undefined;
|
|
9765
|
+
page?: number | undefined;
|
|
9766
|
+
}>, import("zod").ZodAny, any>;
|
|
9767
|
+
tokeninfo: KitModuleFunction<import("zod").ZodObject<{
|
|
9768
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9769
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9770
|
+
contractaddress: string;
|
|
9771
|
+
}, {
|
|
9772
|
+
contractaddress: string;
|
|
9773
|
+
}>, import("zod").ZodAny, {
|
|
9774
|
+
contractAddress: string;
|
|
9775
|
+
tokenName: any;
|
|
9776
|
+
symbol: any;
|
|
9777
|
+
divisor: any;
|
|
9778
|
+
tokenType: string;
|
|
9779
|
+
totalSupply: any;
|
|
9780
|
+
blueCheckmark: any;
|
|
9781
|
+
description: any;
|
|
9782
|
+
website: any;
|
|
9783
|
+
email: string;
|
|
9784
|
+
blog: string;
|
|
9785
|
+
reddit: string;
|
|
9786
|
+
slack: string;
|
|
9787
|
+
facebook: string;
|
|
9788
|
+
twitter: any;
|
|
9789
|
+
bitcointalk: string;
|
|
9790
|
+
github: any;
|
|
9791
|
+
telegram: any;
|
|
9792
|
+
wechat: string;
|
|
9793
|
+
linkedin: string;
|
|
9794
|
+
discord: any;
|
|
9795
|
+
whitepaper: string;
|
|
9796
|
+
tokenPriceUSD: any;
|
|
9797
|
+
} | {
|
|
9798
|
+
contractAddress: string;
|
|
9799
|
+
tokenName: any;
|
|
9800
|
+
symbol: any;
|
|
9801
|
+
divisor: number;
|
|
9802
|
+
tokenType: any;
|
|
9803
|
+
totalSupply: any;
|
|
9804
|
+
blueCheckmark: boolean;
|
|
9805
|
+
description: any;
|
|
9806
|
+
website: any;
|
|
9807
|
+
email: string;
|
|
9808
|
+
blog: string;
|
|
9809
|
+
reddit: string;
|
|
9810
|
+
slack: string;
|
|
9811
|
+
facebook: string;
|
|
9812
|
+
twitter: any;
|
|
9813
|
+
bitcointalk: string;
|
|
9814
|
+
github: any;
|
|
9815
|
+
telegram: any;
|
|
9816
|
+
wechat: string;
|
|
9817
|
+
linkedin: string;
|
|
9818
|
+
discord: any;
|
|
9819
|
+
whitepaper: string;
|
|
9820
|
+
tokenPriceUSD: string;
|
|
9821
|
+
} | null>;
|
|
9822
|
+
addresstokenbalance: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9823
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9824
|
+
}, {
|
|
9825
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9826
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9827
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9828
|
+
address: string;
|
|
9829
|
+
offset: number;
|
|
9830
|
+
page: number;
|
|
9831
|
+
}, {
|
|
9832
|
+
address: string;
|
|
9833
|
+
offset?: number | undefined;
|
|
9834
|
+
page?: number | undefined;
|
|
9835
|
+
}>, import("zod").ZodAny, any[]>;
|
|
9836
|
+
addresstokennftbalance: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9837
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9838
|
+
}, {
|
|
9839
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9840
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9841
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9842
|
+
address: string;
|
|
9843
|
+
offset: number;
|
|
9844
|
+
page: number;
|
|
9845
|
+
}, {
|
|
9846
|
+
address: string;
|
|
9847
|
+
offset?: number | undefined;
|
|
9848
|
+
page?: number | undefined;
|
|
9849
|
+
}>, import("zod").ZodAny, any[]>;
|
|
9850
|
+
addresstokennftinventory: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
9851
|
+
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9852
|
+
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9853
|
+
}, {
|
|
9854
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9855
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9856
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
9857
|
+
address: string;
|
|
9858
|
+
offset: number;
|
|
9859
|
+
page: number;
|
|
9860
|
+
contractaddress: string;
|
|
9861
|
+
}, {
|
|
9862
|
+
address: string;
|
|
9863
|
+
contractaddress: string;
|
|
9864
|
+
offset?: number | undefined;
|
|
9865
|
+
page?: number | undefined;
|
|
9866
|
+
}>, import("zod").ZodAny, any>;
|
|
9867
|
+
analyzer: ReturnType<typeof import("postgres")>;
|
|
9868
|
+
scout: ReturnType<typeof import("postgres")>;
|
|
9869
|
+
superbase: ReturnType<typeof import("postgres")>;
|
|
9870
|
+
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9871
|
+
iopay: ReturnType<typeof import("postgres")>;
|
|
9872
|
+
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9873
|
+
ch: ClickHouseSDK;
|
|
9874
|
+
analysis: ReturnType<typeof import("postgres")>;
|
|
9875
|
+
checkAuth(key: string): Promise<{
|
|
9876
|
+
ok: boolean;
|
|
9877
|
+
message: string;
|
|
9878
|
+
}>;
|
|
9879
|
+
};
|
|
9880
|
+
readonly gastraker: {
|
|
9881
|
+
gasestimate: any;
|
|
9882
|
+
gasoracle: any;
|
|
9883
|
+
dailyavggaslimit: KitModuleFunction<import("zod").ZodObject<{
|
|
9884
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9885
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9886
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9887
|
+
"asc",
|
|
9888
|
+
"desc"
|
|
9889
|
+
]>>;
|
|
9890
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9891
|
+
sort: "asc" | "desc";
|
|
9892
|
+
startdate: string;
|
|
9893
|
+
enddate: string;
|
|
9894
|
+
}, {
|
|
9895
|
+
startdate: string;
|
|
9896
|
+
enddate: string;
|
|
9897
|
+
sort?: "asc" | "desc" | undefined;
|
|
9898
|
+
}>, import("zod").ZodAny, any>;
|
|
9899
|
+
dailygasused: KitModuleFunction<import("zod").ZodObject<{
|
|
9900
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9901
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9902
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9903
|
+
"asc",
|
|
9904
|
+
"desc"
|
|
9905
|
+
]>>;
|
|
9906
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9907
|
+
sort: "asc" | "desc";
|
|
9908
|
+
startdate: string;
|
|
9909
|
+
enddate: string;
|
|
9910
|
+
}, {
|
|
9911
|
+
startdate: string;
|
|
9912
|
+
enddate: string;
|
|
9913
|
+
sort?: "asc" | "desc" | undefined;
|
|
9914
|
+
}>, import("zod").ZodAny, any>;
|
|
9915
|
+
dailyavggasprice: KitModuleFunction<import("zod").ZodObject<{
|
|
9916
|
+
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9917
|
+
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9918
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
9919
|
+
"asc",
|
|
9920
|
+
"desc"
|
|
9921
|
+
]>>;
|
|
9922
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9923
|
+
sort: "asc" | "desc";
|
|
9924
|
+
startdate: string;
|
|
9925
|
+
enddate: string;
|
|
9926
|
+
}, {
|
|
9927
|
+
startdate: string;
|
|
9928
|
+
enddate: string;
|
|
9929
|
+
sort?: "asc" | "desc" | undefined;
|
|
9930
|
+
}>, import("zod").ZodAny, any>;
|
|
8997
9931
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
8998
9932
|
scout: ReturnType<typeof import("postgres")>;
|
|
8999
9933
|
superbase: ReturnType<typeof import("postgres")>;
|
|
@@ -9008,7 +9942,7 @@ declare const modules$2: {
|
|
|
9008
9942
|
}>;
|
|
9009
9943
|
};
|
|
9010
9944
|
};
|
|
9011
|
-
export type IotexscanModulesType = typeof modules$2
|
|
9945
|
+
export type IotexscanModulesType = KitModule<typeof modules$2>;
|
|
9012
9946
|
declare class Ioid {
|
|
9013
9947
|
register(args: {
|
|
9014
9948
|
projectName: string;
|
|
@@ -9065,11 +9999,33 @@ declare const modules$3: {
|
|
|
9065
9999
|
ioid: Ioid;
|
|
9066
10000
|
};
|
|
9067
10001
|
export type IoIDModuleType = typeof modules$3;
|
|
10002
|
+
declare class Point {
|
|
10003
|
+
checkAuth(token: string): Promise<{
|
|
10004
|
+
ok: boolean;
|
|
10005
|
+
message: string;
|
|
10006
|
+
authData: null;
|
|
10007
|
+
} | {
|
|
10008
|
+
ok: boolean;
|
|
10009
|
+
message: string;
|
|
10010
|
+
authData: {
|
|
10011
|
+
sub: string | undefined;
|
|
10012
|
+
data: any;
|
|
10013
|
+
};
|
|
10014
|
+
}>;
|
|
10015
|
+
upload_event(args?: Record<string, any>, authData?: {
|
|
10016
|
+
sub: string;
|
|
10017
|
+
data: Record<string, any>;
|
|
10018
|
+
}): Promise<any>;
|
|
10019
|
+
}
|
|
10020
|
+
declare const modules$4: {
|
|
10021
|
+
point: Point;
|
|
10022
|
+
};
|
|
10023
|
+
export type IoPayModuleType = typeof modules$4;
|
|
9068
10024
|
export type IotexscanAdapterType<T extends Record<string, Record<string, any>>> = {
|
|
9069
10025
|
[key in keyof T]: {
|
|
9070
10026
|
[key1 in keyof T[key]]: (arg: Parameters<T[key][key1]>[0] & {
|
|
9071
|
-
module
|
|
9072
|
-
action
|
|
10027
|
+
module?: string;
|
|
10028
|
+
action?: string;
|
|
9073
10029
|
}) => ReturnType<T[key][key1]>;
|
|
9074
10030
|
};
|
|
9075
10031
|
};
|
|
@@ -9077,13 +10033,14 @@ export declare const createClient: ({ url, ctx }?: {
|
|
|
9077
10033
|
url?: string;
|
|
9078
10034
|
ctx?: ConfigContext;
|
|
9079
10035
|
}) => ModuleType;
|
|
9080
|
-
export declare const createClientWithDBServer: ({ url }
|
|
10036
|
+
export declare const createClientWithDBServer: ({ url, fetchRequestInit }: {
|
|
9081
10037
|
url?: string;
|
|
10038
|
+
fetchRequestInit?: FetchRequestInit;
|
|
9082
10039
|
}) => DBModuleType;
|
|
9083
|
-
export declare const
|
|
10040
|
+
export declare const createClientWithIoPayServer: ({ url, fetchRequestInit }: {
|
|
9084
10041
|
url?: string;
|
|
9085
10042
|
fetchRequestInit?: FetchRequestInit;
|
|
9086
|
-
}) =>
|
|
10043
|
+
}) => IoPayModuleType;
|
|
9087
10044
|
export declare const createIotexscanClient: ({ url, fetchRequestInit }: {
|
|
9088
10045
|
url?: string;
|
|
9089
10046
|
fetchRequestInit?: FetchRequestInit;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var K=({url:w="http://localhost:9527",ctx:A}={})=>new Proxy({},{get(B,C,T){return new Proxy({},{get(b,E){return async(j)=>{for(let z in j){if(typeof j[z]==="object")j[z]=JSON.stringify(j[z],(G,D)=>typeof D==="bigint"?D.toString():D);if(j[z]==null)delete j[z]}const $=`${w}/${String(C)}/${String(E)}?${new URLSearchParams(j).toString()}`;let J;if(A)J=await fetch($,{headers:{...A}});else J=await fetch($);return J.json()}}})}}),H=async({args:w={},prop:A,method:B,url:C,fetchRequestInit:T})=>{if(!T?.method||T?.method==="GET"){for(let j in w){if(typeof w[j]==="object")w[j]=JSON.stringify(w[j],($,J)=>typeof J==="bigint"?J.toString():J);if(w[j]==null)delete w[j]}const b=`${C}/${String(A)}/${String(B)}?${new URLSearchParams(w).toString()}`;return(await fetch(b)).json()}if(T?.method==="POST"){const b=`${C}/${String(A)}/${String(B)}`;return(await fetch(b,{...T,body:JSON.stringify(w)})).json()}},L=({url:w="http://localhost:9527",fetchRequestInit:A})=>new Proxy({},{get(B,C,T){return new Proxy({},{get(b,E){return async(j)=>{return H({args:j,prop:C,method:E,url:w,fetchRequestInit:A})}}})}}),N=({url:w="http://localhost:9527",fetchRequestInit:A})=>new Proxy({},{get(B,C,T){return new Proxy({},{get(b,E){return async(j)=>{return H({args:j,prop:C,method:E,url:w,fetchRequestInit:A})}}})}}),Q=({url:w="http://localhost:9527",fetchRequestInit:A})=>new Proxy({},{get(B,C,T){return new Proxy({},{get(b,E){return async(j)=>{const $=`${w}/${String(C)}/${String(E)}?${new URLSearchParams(j).toString()}`;return(await fetch($,{method:"GET",...A})).json()}}})}}),S=({url:w="http://localhost:9527",ctx:A}={})=>new Proxy({},{get(B,C,T){return new Proxy({},{get(b,E){return async(j)=>{let $=!1;for(let D in j){if(typeof j[D]==="object")$=!0;if(j[D]==null)delete j[D]}let J,z,G={};if($)J=`${w}/${String(C)}/${String(E)}`;else J=`${w}/${String(C)}/${String(E)}?${new URLSearchParams(j).toString()}`;if(A)G.headers={...A};if($)G.method="POST",G.body=JSON.stringify(j);return z=await fetch(J,G),z.json()}}})}});export{Q as createIotexscanClient,S as createIoidClient,N as createClientWithIoPayServer,L as createClientWithDBServer,K as createClient};
|
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.1.
|
|
5
|
+
"version": "v0.1.23",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@asteasolutions/zod-to-openapi": "^7.1.1",
|
|
22
23
|
"@clickhouse/client": "^1.4.0",
|
|
23
24
|
"@grpc/grpc-js": "^1.11.1",
|
|
24
25
|
"@grpc/proto-loader": "^0.7.13",
|
|
@@ -36,17 +37,23 @@
|
|
|
36
37
|
"ethers": "^6.13.2",
|
|
37
38
|
"graphql-request": "^7.1.0",
|
|
38
39
|
"ioredis": "^5.4.1",
|
|
40
|
+
"jsonwebtoken": "^9.0.2",
|
|
41
|
+
"lodash": "^4.17.21",
|
|
39
42
|
"lru-cache": "^11.0.0",
|
|
40
43
|
"postgres": "^3.4.4",
|
|
41
44
|
"reflect-metadata": "^0.2.2",
|
|
42
45
|
"strip-ansi-cjs": "^8.0.0",
|
|
43
|
-
"
|
|
46
|
+
"utility-types": "^3.11.0",
|
|
47
|
+
"viem": "^2.17.5",
|
|
48
|
+
"zod": "^3.23.8",
|
|
49
|
+
"zod-openapi": "^2.19.0"
|
|
44
50
|
},
|
|
45
51
|
"devDependencies": {
|
|
46
52
|
"@dappworks/kit": "^0.4.198",
|
|
47
53
|
"@types/bun": "latest",
|
|
48
54
|
"@types/crypto-js": "^4.2.2",
|
|
49
55
|
"@types/google-protobuf": "^3.15.12",
|
|
56
|
+
"@types/jsonwebtoken": "^9.0.7",
|
|
50
57
|
"@types/tryghost__content-api": "^1.3.16",
|
|
51
58
|
"bun-plugin-dts": "^0.2.3",
|
|
52
59
|
"grpc-tools": "^1.12.4",
|