@iotexproject/kit 0.1.97 → 0.1.99
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 +250 -4
- package/package.json +71 -63
package/dist/index.d.ts
CHANGED
|
@@ -7077,6 +7077,7 @@ declare class Staking {
|
|
|
7077
7077
|
getSelfStakeBucketByDelegate(args: {
|
|
7078
7078
|
ownerAddress: `0x${string}` | `io${string}`;
|
|
7079
7079
|
}, ctx?: ConfigContext): Promise<CompositeBucket | null>;
|
|
7080
|
+
docs(): Promise<string>;
|
|
7080
7081
|
}
|
|
7081
7082
|
declare class utils {
|
|
7082
7083
|
erc20(args: {
|
|
@@ -8679,6 +8680,27 @@ declare class UseCommon {
|
|
|
8679
8680
|
unsubscribed?: boolean;
|
|
8680
8681
|
}): Promise<any>;
|
|
8681
8682
|
}
|
|
8683
|
+
declare class Delegate {
|
|
8684
|
+
candidateRegister(args: {
|
|
8685
|
+
name: string;
|
|
8686
|
+
operatorAddress: string;
|
|
8687
|
+
rewardAddress: string;
|
|
8688
|
+
ownerAddress: string;
|
|
8689
|
+
amount: string;
|
|
8690
|
+
duration: string;
|
|
8691
|
+
autoStake: boolean;
|
|
8692
|
+
}, ctx?: ConfigContext): Promise<any>;
|
|
8693
|
+
upsertRewardDistribution(args: {
|
|
8694
|
+
foundationRewardPortion: number;
|
|
8695
|
+
epochRewardPortion: number;
|
|
8696
|
+
blockRewardPortion: number;
|
|
8697
|
+
}, ctx?: ConfigContext): Promise<any>;
|
|
8698
|
+
candidateUpdate(args: {
|
|
8699
|
+
name: string;
|
|
8700
|
+
operatorAddress: string;
|
|
8701
|
+
rewardAddress: string;
|
|
8702
|
+
}, ctx?: ConfigContext): Promise<any>;
|
|
8703
|
+
}
|
|
8682
8704
|
declare const modules: {
|
|
8683
8705
|
mimo: Mimo;
|
|
8684
8706
|
staking: Staking;
|
|
@@ -8693,6 +8715,7 @@ declare const modules: {
|
|
|
8693
8715
|
liquidityMining: LiquidityMining;
|
|
8694
8716
|
liquidityMiningV3: LiquidityMiningV3;
|
|
8695
8717
|
common: UseCommon;
|
|
8718
|
+
delegate: Delegate;
|
|
8696
8719
|
};
|
|
8697
8720
|
export type ModuleType = typeof modules;
|
|
8698
8721
|
declare class ClickHouseSDK {
|
|
@@ -8712,10 +8735,12 @@ declare class BaseDBModule {
|
|
|
8712
8735
|
iopay: ReturnType<typeof postgres>;
|
|
8713
8736
|
nftmarket: ReturnType<typeof postgres>;
|
|
8714
8737
|
mimo: ReturnType<typeof postgres>;
|
|
8738
|
+
mimoSwapBridge: ReturnType<typeof postgres>;
|
|
8715
8739
|
depinscan: ReturnType<typeof postgres>;
|
|
8716
|
-
analysis:
|
|
8740
|
+
analysis: ReturnType<typeof postgres>;
|
|
8717
8741
|
microServiceCenter: ReturnType<typeof postgres>;
|
|
8718
8742
|
dao: ReturnType<typeof postgres>;
|
|
8743
|
+
nsv3db: ReturnType<typeof postgres>;
|
|
8719
8744
|
cache: ReturnType<typeof bento.namespace>;
|
|
8720
8745
|
constructor();
|
|
8721
8746
|
checkAuth(key: string): Promise<{
|
|
@@ -9002,10 +9027,24 @@ declare class Mimo$1 extends BaseDBModule {
|
|
|
9002
9027
|
token_detail_v2({ token_address }: {
|
|
9003
9028
|
token_address: string;
|
|
9004
9029
|
}): Promise<import("postgres").Row>;
|
|
9030
|
+
token_detail_v3({ token_address }: {
|
|
9031
|
+
token_address: string;
|
|
9032
|
+
}): Promise<{
|
|
9033
|
+
name: any;
|
|
9034
|
+
symbol: any;
|
|
9035
|
+
decimals: any;
|
|
9036
|
+
totalSupply: any;
|
|
9037
|
+
priceUSD: number;
|
|
9038
|
+
volumeUSD: any;
|
|
9039
|
+
tvlUSD: any;
|
|
9040
|
+
}>;
|
|
9005
9041
|
token_tx_v2({ token, type }: {
|
|
9006
9042
|
token: string;
|
|
9007
9043
|
type: string;
|
|
9008
9044
|
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]> | undefined>;
|
|
9045
|
+
token_tx_v3({ token }: {
|
|
9046
|
+
token: string;
|
|
9047
|
+
}): Promise<any>;
|
|
9009
9048
|
mimo_swap_volume(args: {
|
|
9010
9049
|
token: string;
|
|
9011
9050
|
user: string;
|
|
@@ -9022,6 +9061,19 @@ declare class Mimo$1 extends BaseDBModule {
|
|
|
9022
9061
|
}): Promise<any>;
|
|
9023
9062
|
v3_pool_trade_rank(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9024
9063
|
}
|
|
9064
|
+
declare class MimoSwapBridge extends BaseDBModule {
|
|
9065
|
+
addlog(args: {
|
|
9066
|
+
address: string;
|
|
9067
|
+
contractName: string;
|
|
9068
|
+
data: Record<string, any>;
|
|
9069
|
+
hash: string;
|
|
9070
|
+
blockNumber: number;
|
|
9071
|
+
timestamp: number;
|
|
9072
|
+
}): Promise<{
|
|
9073
|
+
success: boolean;
|
|
9074
|
+
message: string;
|
|
9075
|
+
}>;
|
|
9076
|
+
}
|
|
9025
9077
|
declare class Galxe extends BaseDBModule {
|
|
9026
9078
|
nft_holder({ contract, address }: {
|
|
9027
9079
|
contract: string;
|
|
@@ -9168,6 +9220,7 @@ export type Proposal = {
|
|
|
9168
9220
|
currentUser?: CurrentUser;
|
|
9169
9221
|
slug: string;
|
|
9170
9222
|
vote_count?: string | null;
|
|
9223
|
+
vote_result?: "passed" | "rejected" | "closed" | null;
|
|
9171
9224
|
};
|
|
9172
9225
|
export type CurrentUser = {
|
|
9173
9226
|
voter?: string;
|
|
@@ -9227,6 +9280,151 @@ declare class Dao extends BaseDBModule {
|
|
|
9227
9280
|
end_time: string;
|
|
9228
9281
|
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9229
9282
|
}
|
|
9283
|
+
export type ProfileMeta = {
|
|
9284
|
+
name: string;
|
|
9285
|
+
temp_eth_address: string;
|
|
9286
|
+
};
|
|
9287
|
+
type Candidate$1 = {
|
|
9288
|
+
name?: string;
|
|
9289
|
+
logo?: string;
|
|
9290
|
+
banner_url?: string;
|
|
9291
|
+
location?: string;
|
|
9292
|
+
blurb?: string;
|
|
9293
|
+
website?: string;
|
|
9294
|
+
social_media?: string[];
|
|
9295
|
+
introduction?: string;
|
|
9296
|
+
team?: string;
|
|
9297
|
+
tech_setup?: string;
|
|
9298
|
+
community_plan?: string;
|
|
9299
|
+
reward_plan?: string;
|
|
9300
|
+
temp_eth_address: string;
|
|
9301
|
+
email?: string;
|
|
9302
|
+
reward_distribution_details?: string;
|
|
9303
|
+
webhook?: string;
|
|
9304
|
+
};
|
|
9305
|
+
export type CandidateProfile = {
|
|
9306
|
+
name: string;
|
|
9307
|
+
blurb: string;
|
|
9308
|
+
website: string;
|
|
9309
|
+
logo: string;
|
|
9310
|
+
banner_url: string;
|
|
9311
|
+
social_media: string[];
|
|
9312
|
+
location: string;
|
|
9313
|
+
introduction: string;
|
|
9314
|
+
team: string;
|
|
9315
|
+
tech_setup: string;
|
|
9316
|
+
community_plan: string;
|
|
9317
|
+
reward_plan: string;
|
|
9318
|
+
created_at: Date;
|
|
9319
|
+
updated_at: Date;
|
|
9320
|
+
temp_eth_address: string;
|
|
9321
|
+
id: number;
|
|
9322
|
+
reward_distribution_details: string;
|
|
9323
|
+
candidate_owner: string;
|
|
9324
|
+
webhook: string;
|
|
9325
|
+
badge: string;
|
|
9326
|
+
delegate_status: string;
|
|
9327
|
+
node_version: string;
|
|
9328
|
+
productivity: string;
|
|
9329
|
+
on_chain_name: string;
|
|
9330
|
+
category: string;
|
|
9331
|
+
};
|
|
9332
|
+
export type ProductivityHistory = {
|
|
9333
|
+
date: string;
|
|
9334
|
+
id: number;
|
|
9335
|
+
productivity: string;
|
|
9336
|
+
temp_eth_address: string;
|
|
9337
|
+
};
|
|
9338
|
+
export type ProbationHistory = {
|
|
9339
|
+
date: string;
|
|
9340
|
+
probation: boolean;
|
|
9341
|
+
address: string;
|
|
9342
|
+
};
|
|
9343
|
+
export type NodeVersion = {
|
|
9344
|
+
value: string;
|
|
9345
|
+
};
|
|
9346
|
+
export type DelegateRewards = {
|
|
9347
|
+
block_reward: string | null;
|
|
9348
|
+
epoch_reward: string | null;
|
|
9349
|
+
foundation_bonus: string | null;
|
|
9350
|
+
burn_reward: string | null;
|
|
9351
|
+
};
|
|
9352
|
+
export type DelegateRewardsHistory = {
|
|
9353
|
+
block_reward: string;
|
|
9354
|
+
epoch_reward: string;
|
|
9355
|
+
foundation_bonus: string;
|
|
9356
|
+
burn_reward: string;
|
|
9357
|
+
date_time: string;
|
|
9358
|
+
};
|
|
9359
|
+
export type DelegateMember = {
|
|
9360
|
+
id: number;
|
|
9361
|
+
member_address: string;
|
|
9362
|
+
};
|
|
9363
|
+
declare class Delegate$1 extends BaseDBModule {
|
|
9364
|
+
upsertCandidateProfile(args: ProfileMeta): Promise<{
|
|
9365
|
+
id: number;
|
|
9366
|
+
} | null>;
|
|
9367
|
+
getCandidateByAddress({ address }: {
|
|
9368
|
+
address: string;
|
|
9369
|
+
}): Promise<CandidateProfile>;
|
|
9370
|
+
upsertCandidateSecret(args: Candidate$1): Promise<{
|
|
9371
|
+
success: boolean;
|
|
9372
|
+
}>;
|
|
9373
|
+
upsertCandidateMeta(args: Candidate$1): Promise<{
|
|
9374
|
+
success: boolean;
|
|
9375
|
+
}>;
|
|
9376
|
+
getDelegateHeight({ name }: {
|
|
9377
|
+
name: string;
|
|
9378
|
+
}): Promise<{
|
|
9379
|
+
block_height: string;
|
|
9380
|
+
}>;
|
|
9381
|
+
getProductivityHistory({ startDate, endDate, candidate }: {
|
|
9382
|
+
startDate?: string;
|
|
9383
|
+
endDate: string;
|
|
9384
|
+
candidate: string;
|
|
9385
|
+
}): Promise<import("postgres").RowList<ProductivityHistory[]>>;
|
|
9386
|
+
getProbationHistory({ startDate, endDate, candidate }: {
|
|
9387
|
+
startDate: string;
|
|
9388
|
+
endDate: string;
|
|
9389
|
+
candidate: string;
|
|
9390
|
+
}): Promise<import("postgres").RowList<ProbationHistory[]>>;
|
|
9391
|
+
getDelegateLatestVersion(): Promise<NodeVersion>;
|
|
9392
|
+
getDelegateRewards({ candidate }: {
|
|
9393
|
+
candidate: string;
|
|
9394
|
+
}): Promise<DelegateRewards>;
|
|
9395
|
+
getDelegateRewardsHistory({ startDate, endDate, candidate }: {
|
|
9396
|
+
startDate: string;
|
|
9397
|
+
endDate: string;
|
|
9398
|
+
candidate: string;
|
|
9399
|
+
}): Promise<import("postgres").RowList<DelegateRewardsHistory[]>>;
|
|
9400
|
+
getDelegateMembers({ candidate_meta_id }: {
|
|
9401
|
+
candidate_meta_id: number;
|
|
9402
|
+
}): Promise<import("postgres").RowList<DelegateMember[]>>;
|
|
9403
|
+
upsertMember({ member_address, candidate_meta_id, is_active, creator }: {
|
|
9404
|
+
member_address: string;
|
|
9405
|
+
candidate_meta_id: number;
|
|
9406
|
+
is_active: boolean;
|
|
9407
|
+
creator: string;
|
|
9408
|
+
}): Promise<{
|
|
9409
|
+
error: string;
|
|
9410
|
+
success?: undefined;
|
|
9411
|
+
} | {
|
|
9412
|
+
success: boolean;
|
|
9413
|
+
error?: undefined;
|
|
9414
|
+
}>;
|
|
9415
|
+
updateCandidateOwner({ candidate_owner, id }: {
|
|
9416
|
+
candidate_owner: string;
|
|
9417
|
+
id: number;
|
|
9418
|
+
}): Promise<{
|
|
9419
|
+
success: boolean;
|
|
9420
|
+
}>;
|
|
9421
|
+
transferDelegateOwnership({ candidate_owner, id }: {
|
|
9422
|
+
candidate_owner: string;
|
|
9423
|
+
id: number;
|
|
9424
|
+
}): Promise<{
|
|
9425
|
+
success: boolean;
|
|
9426
|
+
}>;
|
|
9427
|
+
}
|
|
9230
9428
|
declare const modules$1: {
|
|
9231
9429
|
account: Account;
|
|
9232
9430
|
analyzer: Analyzer;
|
|
@@ -9238,12 +9436,14 @@ declare const modules$1: {
|
|
|
9238
9436
|
resource: Resource;
|
|
9239
9437
|
iopay: IoPay;
|
|
9240
9438
|
mimo: Mimo$1;
|
|
9439
|
+
"mimo-swap-bridge": MimoSwapBridge;
|
|
9241
9440
|
galxe: Galxe;
|
|
9242
9441
|
depinscan: DepinScan;
|
|
9243
9442
|
verification: Verification;
|
|
9244
9443
|
apis: Apis;
|
|
9245
9444
|
zkpass: Zkpass;
|
|
9246
9445
|
dao: Dao;
|
|
9446
|
+
delegate: Delegate$1;
|
|
9247
9447
|
};
|
|
9248
9448
|
export type DBModuleType = typeof modules$1;
|
|
9249
9449
|
export interface ConfigOptions {
|
|
@@ -9266,6 +9466,11 @@ export type KitModuleFunction<I extends z.AnyZodObject = z.AnyZodObject, O exten
|
|
|
9266
9466
|
export type KitModule<T extends Record<string, Record<string, KitModuleFunction<any, any, any> | any>>> = {
|
|
9267
9467
|
[K in keyof T]: PickByValue<T[K], KitModuleFunction<any, any, any>>;
|
|
9268
9468
|
};
|
|
9469
|
+
declare enum CodeFormat {
|
|
9470
|
+
SingleFile = "solidity-single-file",
|
|
9471
|
+
MultipleFile = "solidity-multiple-file",
|
|
9472
|
+
StandardJSONInput = "solidity-standard-json-input"
|
|
9473
|
+
}
|
|
9269
9474
|
declare const modules$2: {
|
|
9270
9475
|
readonly contract: {
|
|
9271
9476
|
getabi: KitModuleFunction<import("zod").ZodObject<{
|
|
@@ -9323,14 +9528,46 @@ declare const modules$2: {
|
|
|
9323
9528
|
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9324
9529
|
sourceCode: import("zod").ZodString;
|
|
9325
9530
|
compilerversion: import("zod").ZodString;
|
|
9531
|
+
codeformat: import("zod").ZodOptional<import("zod").ZodEnum<[
|
|
9532
|
+
CodeFormat.SingleFile,
|
|
9533
|
+
CodeFormat.MultipleFile,
|
|
9534
|
+
CodeFormat.StandardJSONInput
|
|
9535
|
+
]>>;
|
|
9536
|
+
contractname: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9537
|
+
optimizationUsed: import("zod").ZodOptional<import("zod").ZodUnion<[
|
|
9538
|
+
import("zod").ZodBoolean,
|
|
9539
|
+
import("zod").ZodNumber,
|
|
9540
|
+
import("zod").ZodString
|
|
9541
|
+
]>>;
|
|
9542
|
+
runs: import("zod").ZodOptional<import("zod").ZodUnion<[
|
|
9543
|
+
import("zod").ZodNumber,
|
|
9544
|
+
import("zod").ZodString
|
|
9545
|
+
]>>;
|
|
9546
|
+
evmVersion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9547
|
+
licenseType: import("zod").ZodOptional<import("zod").ZodUnion<[
|
|
9548
|
+
import("zod").ZodNumber,
|
|
9549
|
+
import("zod").ZodString
|
|
9550
|
+
]>>;
|
|
9326
9551
|
}, "strip", import("zod").ZodTypeAny, {
|
|
9327
9552
|
contractaddress: string;
|
|
9328
9553
|
sourceCode: string;
|
|
9329
9554
|
compilerversion: string;
|
|
9555
|
+
evmVersion?: string | undefined;
|
|
9556
|
+
runs?: string | number | undefined;
|
|
9557
|
+
codeformat?: CodeFormat | undefined;
|
|
9558
|
+
contractname?: string | undefined;
|
|
9559
|
+
optimizationUsed?: string | number | boolean | undefined;
|
|
9560
|
+
licenseType?: string | number | undefined;
|
|
9330
9561
|
}, {
|
|
9331
9562
|
contractaddress: string;
|
|
9332
9563
|
sourceCode: string;
|
|
9333
9564
|
compilerversion: string;
|
|
9565
|
+
evmVersion?: string | undefined;
|
|
9566
|
+
runs?: string | number | undefined;
|
|
9567
|
+
codeformat?: CodeFormat | undefined;
|
|
9568
|
+
contractname?: string | undefined;
|
|
9569
|
+
optimizationUsed?: string | number | boolean | undefined;
|
|
9570
|
+
licenseType?: string | number | undefined;
|
|
9334
9571
|
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, unknown>;
|
|
9335
9572
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
9336
9573
|
scout: ReturnType<typeof import("postgres")>;
|
|
@@ -9338,6 +9575,7 @@ declare const modules$2: {
|
|
|
9338
9575
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9339
9576
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9340
9577
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9578
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9341
9579
|
ch: ClickHouseSDK;
|
|
9342
9580
|
checkAuth(key: string): Promise<{
|
|
9343
9581
|
ok: boolean;
|
|
@@ -9369,6 +9607,7 @@ declare const modules$2: {
|
|
|
9369
9607
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9370
9608
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9371
9609
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9610
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9372
9611
|
ch: ClickHouseSDK;
|
|
9373
9612
|
checkAuth(key: string): Promise<{
|
|
9374
9613
|
ok: boolean;
|
|
@@ -9531,6 +9770,7 @@ declare const modules$2: {
|
|
|
9531
9770
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9532
9771
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9533
9772
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9773
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9534
9774
|
ch: ClickHouseSDK;
|
|
9535
9775
|
checkAuth(key: string): Promise<{
|
|
9536
9776
|
ok: boolean;
|
|
@@ -9826,6 +10066,7 @@ declare const modules$2: {
|
|
|
9826
10066
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9827
10067
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9828
10068
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10069
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9829
10070
|
ch: ClickHouseSDK;
|
|
9830
10071
|
checkAuth(key: string): Promise<{
|
|
9831
10072
|
ok: boolean;
|
|
@@ -9859,6 +10100,7 @@ declare const modules$2: {
|
|
|
9859
10100
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9860
10101
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9861
10102
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10103
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9862
10104
|
ch: ClickHouseSDK;
|
|
9863
10105
|
checkAuth(key: string): Promise<{
|
|
9864
10106
|
ok: boolean;
|
|
@@ -9902,6 +10144,7 @@ declare const modules$2: {
|
|
|
9902
10144
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9903
10145
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9904
10146
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10147
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9905
10148
|
ch: ClickHouseSDK;
|
|
9906
10149
|
checkAuth(key: string): Promise<{
|
|
9907
10150
|
ok: boolean;
|
|
@@ -10034,6 +10277,7 @@ declare const modules$2: {
|
|
|
10034
10277
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10035
10278
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10036
10279
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10280
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10037
10281
|
ch: ClickHouseSDK;
|
|
10038
10282
|
checkAuth(key: string): Promise<{
|
|
10039
10283
|
ok: boolean;
|
|
@@ -10130,6 +10374,7 @@ declare const modules$2: {
|
|
|
10130
10374
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10131
10375
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10132
10376
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10377
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10133
10378
|
ch: ClickHouseSDK;
|
|
10134
10379
|
checkAuth(key: string): Promise<{
|
|
10135
10380
|
ok: boolean;
|
|
@@ -10227,6 +10472,7 @@ declare const modules$2: {
|
|
|
10227
10472
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10228
10473
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10229
10474
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10475
|
+
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10230
10476
|
ch: ClickHouseSDK;
|
|
10231
10477
|
checkAuth(key: string): Promise<{
|
|
10232
10478
|
ok: boolean;
|
|
@@ -10488,15 +10734,15 @@ export declare const createClient: ({ url, ctx }?: {
|
|
|
10488
10734
|
}) => ModuleType;
|
|
10489
10735
|
export declare const createClientWithDBServer: ({ url, fetchRequestInit }: {
|
|
10490
10736
|
url?: string;
|
|
10491
|
-
fetchRequestInit?:
|
|
10737
|
+
fetchRequestInit?: BunFetchRequestInit;
|
|
10492
10738
|
}) => DBModuleType;
|
|
10493
10739
|
export declare const createClientWithIoPayServer: ({ url, fetchRequestInit }: {
|
|
10494
10740
|
url?: string;
|
|
10495
|
-
fetchRequestInit?:
|
|
10741
|
+
fetchRequestInit?: BunFetchRequestInit;
|
|
10496
10742
|
}) => IoPayModuleType;
|
|
10497
10743
|
export declare const createIotexscanClient: ({ url, fetchRequestInit }: {
|
|
10498
10744
|
url?: string;
|
|
10499
|
-
fetchRequestInit?:
|
|
10745
|
+
fetchRequestInit?: BunFetchRequestInit;
|
|
10500
10746
|
}) => IotexscanAdapterType<IotexscanModulesType>;
|
|
10501
10747
|
export declare const createIoidClient: ({ url, ctx }?: {
|
|
10502
10748
|
url?: string;
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.99",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dev": "bun run build && bun run --watch server-kit.ts",
|
|
10
|
-
"dev-db": "bun server-db.ts",
|
|
10
|
+
"dev-db": "bun run --watch server-db.ts",
|
|
11
11
|
"dev-iopay": "bun run build && bun run --watch server-iopay.ts",
|
|
12
12
|
"dev-iotexscan": "bun server-iotexscan.ts",
|
|
13
13
|
"dev-ioid": "bun run build && bun run --watch server-ioid.ts",
|
|
@@ -30,66 +30,66 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@asteasolutions/zod-to-openapi": "
|
|
34
|
-
"@clickhouse/client": "
|
|
35
|
-
"@faker-js/faker": "
|
|
36
|
-
"@grpc/grpc-js": "
|
|
37
|
-
"@grpc/proto-loader": "
|
|
38
|
-
"@hyperdx/node-opentelemetry": "
|
|
39
|
-
"@iotexproject/iotex-address-ts": "
|
|
40
|
-
"@noble/curves": "
|
|
41
|
-
"@scalar/hono-api-reference": "
|
|
42
|
-
"@tokenbound/sdk": "
|
|
43
|
-
"@tryghost/content-api": "
|
|
44
|
-
"@types/bn.js": "
|
|
45
|
-
"@types/p-retry": "
|
|
46
|
-
"@types/utf8": "
|
|
47
|
-
"apollo-cache-inmemory": "
|
|
48
|
-
"apollo-client": "
|
|
49
|
-
"apollo-link-http": "
|
|
50
|
-
"axios": "
|
|
51
|
-
"bech32": "
|
|
52
|
-
"bentocache": "
|
|
53
|
-
"bignumber.js": "
|
|
54
|
-
"bs58": "
|
|
55
|
-
"clickhouse": "
|
|
56
|
-
"clinic": "
|
|
57
|
-
"crypto-js": "
|
|
58
|
-
"dataloader": "
|
|
59
|
-
"dayjs": "
|
|
60
|
-
"dotenv": "
|
|
61
|
-
"drizzle-orm": "
|
|
62
|
-
"ethereumjs-util": "
|
|
63
|
-
"ethers": "
|
|
64
|
-
"firebase-admin": "
|
|
65
|
-
"graphql
|
|
66
|
-
"graphql-
|
|
67
|
-
"
|
|
68
|
-
"hono-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"p-
|
|
79
|
-
"
|
|
80
|
-
"pg
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"underscore": "
|
|
87
|
-
"utf8": "
|
|
88
|
-
"utility-types": "
|
|
89
|
-
"viem": "
|
|
90
|
-
"web3": "
|
|
91
|
-
"zod": "
|
|
92
|
-
"zod-openapi": "
|
|
33
|
+
"@asteasolutions/zod-to-openapi": "7.1.1",
|
|
34
|
+
"@clickhouse/client": "1.11.2",
|
|
35
|
+
"@faker-js/faker": "9.3.0",
|
|
36
|
+
"@grpc/grpc-js": "1.11.1",
|
|
37
|
+
"@grpc/proto-loader": "0.7.13",
|
|
38
|
+
"@hyperdx/node-opentelemetry": "0.8.1",
|
|
39
|
+
"@iotexproject/iotex-address-ts": "1.0.4",
|
|
40
|
+
"@noble/curves": "1.6.0",
|
|
41
|
+
"@scalar/hono-api-reference": "0.9.9",
|
|
42
|
+
"@tokenbound/sdk": "0.5.5",
|
|
43
|
+
"@tryghost/content-api": "1.11.21",
|
|
44
|
+
"@types/bn.js": "5.1.6",
|
|
45
|
+
"@types/p-retry": "3.0.1",
|
|
46
|
+
"@types/utf8": "3.0.3",
|
|
47
|
+
"apollo-cache-inmemory": "1.6.6",
|
|
48
|
+
"apollo-client": "2.6.10",
|
|
49
|
+
"apollo-link-http": "1.5.17",
|
|
50
|
+
"axios": "1.7.2",
|
|
51
|
+
"bech32": "2.0.0",
|
|
52
|
+
"bentocache": "1.0.0-beta.9",
|
|
53
|
+
"bignumber.js": "9.1.2",
|
|
54
|
+
"bs58": "6.0.0",
|
|
55
|
+
"clickhouse": "2.6.0",
|
|
56
|
+
"clinic": "13.0.0",
|
|
57
|
+
"crypto-js": "4.2.0",
|
|
58
|
+
"dataloader": "2.2.2",
|
|
59
|
+
"dayjs": "1.11.12",
|
|
60
|
+
"dotenv": "16.4.7",
|
|
61
|
+
"drizzle-orm": "0.38.2",
|
|
62
|
+
"ethereumjs-util": "7.1.5",
|
|
63
|
+
"ethers": "6.13.2",
|
|
64
|
+
"firebase-admin": "12.6.0",
|
|
65
|
+
"graphql": "16.9.0",
|
|
66
|
+
"graphql-request": "7.1.0",
|
|
67
|
+
"graphql-tag": "2.12.6",
|
|
68
|
+
"hono-pino": "0.7.2",
|
|
69
|
+
"hono-rate-limiter": "0.4.0",
|
|
70
|
+
"ioredis": "5.4.1",
|
|
71
|
+
"jsbi": "4.3.0",
|
|
72
|
+
"jsonwebtoken": "9.0.2",
|
|
73
|
+
"kafkajs": "2.2.4",
|
|
74
|
+
"lodash": "4.17.21",
|
|
75
|
+
"lru-cache": "11.0.0",
|
|
76
|
+
"memwatch-next": "0.3.0",
|
|
77
|
+
"number-to-bn": "1.7.0",
|
|
78
|
+
"p-retry": "6.2.1",
|
|
79
|
+
"p-timeout": "6.1.3",
|
|
80
|
+
"pg": "8.13.1",
|
|
81
|
+
"pg-format": "1.0.4",
|
|
82
|
+
"postgres": "3.4.4",
|
|
83
|
+
"prom-client": "15.1.3",
|
|
84
|
+
"reflect-metadata": "0.2.2",
|
|
85
|
+
"siwe": "3.0.0",
|
|
86
|
+
"underscore": "1.13.7",
|
|
87
|
+
"utf8": "3.0.0",
|
|
88
|
+
"utility-types": "3.11.0",
|
|
89
|
+
"viem": "2.21.60",
|
|
90
|
+
"web3": "4.16.0",
|
|
91
|
+
"zod": "3.23.8",
|
|
92
|
+
"zod-openapi": "2.19.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@dappworks/kit": "^0.4.198",
|
|
@@ -115,5 +115,13 @@
|
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public",
|
|
117
117
|
"registry": "https://registry.npmjs.org/"
|
|
118
|
+
},
|
|
119
|
+
"overrides": {
|
|
120
|
+
"color-convert": "2.0.1",
|
|
121
|
+
"color-name": "1.1.4",
|
|
122
|
+
"is-core-module": "2.13.1",
|
|
123
|
+
"error-ex": "1.3.2",
|
|
124
|
+
"has-ansi": "5.0.1",
|
|
125
|
+
"@ledgerhq/hw-transport": "6.11.2"
|
|
118
126
|
}
|
|
119
|
-
}
|
|
127
|
+
}
|