@iotexproject/kit 0.1.63 → 0.1.64
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 +8 -150
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -6755,7 +6755,7 @@ declare class MSP {
|
|
|
6755
6755
|
};
|
|
6756
6756
|
owner: () => Promise<any>;
|
|
6757
6757
|
unstakeTime: (_: `0x${string}`) => Promise<any>;
|
|
6758
|
-
withdrawTime:
|
|
6758
|
+
withdrawTime: any;
|
|
6759
6759
|
remainingReward: (_: `0x${string}`) => Promise<any>;
|
|
6760
6760
|
strategyManager: () => Promise<any>;
|
|
6761
6761
|
underlyingToken: () => Promise<any>;
|
|
@@ -7938,7 +7938,8 @@ declare class MimoV2MiningPool {
|
|
|
7938
7938
|
};
|
|
7939
7939
|
myPoolBalanceUSD: string;
|
|
7940
7940
|
} | null>;
|
|
7941
|
-
|
|
7941
|
+
rewardPerSecond(): Promise<bigint | undefined>;
|
|
7942
|
+
apr(): Promise<string>;
|
|
7942
7943
|
myPendingReward(account: `0x${string}`): Promise<{
|
|
7943
7944
|
pendingReward: {
|
|
7944
7945
|
value: string;
|
|
@@ -8000,16 +8001,6 @@ declare class MimoV2MiningPool {
|
|
|
8000
8001
|
type: true;
|
|
8001
8002
|
token0: true;
|
|
8002
8003
|
token1: true;
|
|
8003
|
-
}> | import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8004
|
-
decimals: true;
|
|
8005
|
-
address: true;
|
|
8006
|
-
symbol: true;
|
|
8007
|
-
balanceOf: [
|
|
8008
|
-
`0x${string}`
|
|
8009
|
-
];
|
|
8010
|
-
priceUSD: true;
|
|
8011
|
-
tokenUrl: true;
|
|
8012
|
-
type: true;
|
|
8013
8004
|
}> | undefined>;
|
|
8014
8005
|
getRewardTokenInnter(): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8015
8006
|
address: true;
|
|
@@ -8030,16 +8021,6 @@ declare class MimoV2MiningPool {
|
|
|
8030
8021
|
type: true;
|
|
8031
8022
|
token0: true;
|
|
8032
8023
|
token1: true;
|
|
8033
|
-
}> | import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8034
|
-
decimals: true;
|
|
8035
|
-
address: true;
|
|
8036
|
-
symbol: true;
|
|
8037
|
-
balanceOf: [
|
|
8038
|
-
`0x${string}`
|
|
8039
|
-
];
|
|
8040
|
-
priceUSD: true;
|
|
8041
|
-
tokenUrl: true;
|
|
8042
|
-
type: true;
|
|
8043
8024
|
}> | undefined>;
|
|
8044
8025
|
deposit: (_amount: string) => Promise<any>;
|
|
8045
8026
|
withdraw: (_amount: string) => Promise<any>;
|
|
@@ -9001,8 +8982,7 @@ declare class BaseDBModule {
|
|
|
9001
8982
|
iopay: ReturnType<typeof postgres>;
|
|
9002
8983
|
nftmarket: ReturnType<typeof postgres>;
|
|
9003
8984
|
ch: ClickHouseSDK;
|
|
9004
|
-
|
|
9005
|
-
analysisProd: ClickHouseSDK;
|
|
8985
|
+
analysis: ClickHouseSDK;
|
|
9006
8986
|
microServiceCenter: ReturnType<typeof postgres>;
|
|
9007
8987
|
constructor();
|
|
9008
8988
|
checkAuth(key: string): Promise<{
|
|
@@ -9033,130 +9013,7 @@ declare class Account extends BaseDBModule {
|
|
|
9033
9013
|
tokens: import("postgres").RowList<import("postgres").Row[]>;
|
|
9034
9014
|
}>;
|
|
9035
9015
|
}
|
|
9036
|
-
declare class
|
|
9037
|
-
checkAuth(key: string): Promise<{
|
|
9038
|
-
ok: boolean;
|
|
9039
|
-
message: string;
|
|
9040
|
-
authData: null;
|
|
9041
|
-
} | {
|
|
9042
|
-
ok: boolean;
|
|
9043
|
-
message: string;
|
|
9044
|
-
authData: {
|
|
9045
|
-
app_id: any;
|
|
9046
|
-
api_key: string;
|
|
9047
|
-
};
|
|
9048
|
-
}>;
|
|
9049
|
-
upload_event({ user_id, event_type, event_id, event }: {
|
|
9050
|
-
event_type: string;
|
|
9051
|
-
user_id: string;
|
|
9052
|
-
event_id: string;
|
|
9053
|
-
event: Record<string, any>;
|
|
9054
|
-
}, ctx?: {
|
|
9055
|
-
authData?: {
|
|
9056
|
-
app_id: string;
|
|
9057
|
-
api_key: string;
|
|
9058
|
-
};
|
|
9059
|
-
}): Promise<{
|
|
9060
|
-
status: number;
|
|
9061
|
-
error: string;
|
|
9062
|
-
ok?: undefined;
|
|
9063
|
-
msg?: undefined;
|
|
9064
|
-
} | {
|
|
9065
|
-
ok: boolean;
|
|
9066
|
-
msg: string;
|
|
9067
|
-
status?: undefined;
|
|
9068
|
-
error?: undefined;
|
|
9069
|
-
}>;
|
|
9070
|
-
referral_code({ refer_id, }: {
|
|
9071
|
-
refer_id: string;
|
|
9072
|
-
}, ctx?: {
|
|
9073
|
-
authData?: {
|
|
9074
|
-
app_id: string;
|
|
9075
|
-
api_key: string;
|
|
9076
|
-
};
|
|
9077
|
-
}): Promise<{
|
|
9078
|
-
status: number;
|
|
9079
|
-
error: string;
|
|
9080
|
-
ok?: undefined;
|
|
9081
|
-
referral_code?: undefined;
|
|
9082
|
-
msg?: undefined;
|
|
9083
|
-
} | {
|
|
9084
|
-
ok: boolean;
|
|
9085
|
-
referral_code: any;
|
|
9086
|
-
msg: string;
|
|
9087
|
-
status?: undefined;
|
|
9088
|
-
error?: undefined;
|
|
9089
|
-
}>;
|
|
9090
|
-
create_refer({ refer_id, refer_id_type, user_id, device_id, data, }: {
|
|
9091
|
-
refer_id: string;
|
|
9092
|
-
refer_id_type: "referral_code" | "user_id";
|
|
9093
|
-
user_id: string;
|
|
9094
|
-
device_id: string;
|
|
9095
|
-
data: Record<string, any>;
|
|
9096
|
-
}, ctx?: {
|
|
9097
|
-
authData?: {
|
|
9098
|
-
app_id: string;
|
|
9099
|
-
api_key: string;
|
|
9100
|
-
};
|
|
9101
|
-
}): Promise<{
|
|
9102
|
-
status: number;
|
|
9103
|
-
error: string;
|
|
9104
|
-
ok?: undefined;
|
|
9105
|
-
msg?: undefined;
|
|
9106
|
-
} | {
|
|
9107
|
-
ok: boolean;
|
|
9108
|
-
msg: string;
|
|
9109
|
-
status?: undefined;
|
|
9110
|
-
error?: undefined;
|
|
9111
|
-
}>;
|
|
9112
|
-
fetch_event({ event_id }: {
|
|
9113
|
-
event_id: string;
|
|
9114
|
-
}): Promise<Record<string, any>>;
|
|
9115
|
-
batch_fetch_event({ event_ids }: {
|
|
9116
|
-
event_ids: string[];
|
|
9117
|
-
}): Promise<any[] | {
|
|
9118
|
-
status: number;
|
|
9119
|
-
error: string;
|
|
9120
|
-
}>;
|
|
9121
|
-
fetch_user_point({ user_id, include_referral_point, }: {
|
|
9122
|
-
user_id: string;
|
|
9123
|
-
include_referral_point?: string;
|
|
9124
|
-
}, ctx?: {
|
|
9125
|
-
authData?: {
|
|
9126
|
-
app_id: string;
|
|
9127
|
-
api_key: string;
|
|
9128
|
-
};
|
|
9129
|
-
}): Promise<{
|
|
9130
|
-
status: number;
|
|
9131
|
-
error: string;
|
|
9132
|
-
ok?: undefined;
|
|
9133
|
-
point?: undefined;
|
|
9134
|
-
} | {
|
|
9135
|
-
ok: boolean;
|
|
9136
|
-
point: any;
|
|
9137
|
-
status?: undefined;
|
|
9138
|
-
error?: undefined;
|
|
9139
|
-
}>;
|
|
9140
|
-
fetch_invitees_num({ user_id, }: {
|
|
9141
|
-
user_id: string;
|
|
9142
|
-
}, ctx?: {
|
|
9143
|
-
authData?: {
|
|
9144
|
-
app_id: string;
|
|
9145
|
-
api_key: string;
|
|
9146
|
-
};
|
|
9147
|
-
}): Promise<{
|
|
9148
|
-
status: number;
|
|
9149
|
-
error: string;
|
|
9150
|
-
ok?: undefined;
|
|
9151
|
-
invitees_num?: undefined;
|
|
9152
|
-
} | {
|
|
9153
|
-
ok: boolean;
|
|
9154
|
-
invitees_num: any;
|
|
9155
|
-
status?: undefined;
|
|
9156
|
-
error?: undefined;
|
|
9157
|
-
}>;
|
|
9158
|
-
}
|
|
9159
|
-
declare class AnalysisProd extends BaseDBModule {
|
|
9016
|
+
declare class Analysis extends BaseDBModule {
|
|
9160
9017
|
checkAuth(key: string): Promise<{
|
|
9161
9018
|
ok: boolean;
|
|
9162
9019
|
message: string;
|
|
@@ -9491,6 +9348,7 @@ export type TopicNewsletterRegisterProps = {
|
|
|
9491
9348
|
};
|
|
9492
9349
|
declare class IoPay extends BaseDBModule {
|
|
9493
9350
|
get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9351
|
+
get_point_task_tg(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9494
9352
|
pushRegister(args: PushRegisterProps): Promise<any>;
|
|
9495
9353
|
topicNewsletterRegister(args: TopicNewsletterRegisterProps): Promise<any>;
|
|
9496
9354
|
updateNewsletterTopic({ deviceToken, news_push }: any): void;
|
|
@@ -9561,13 +9419,12 @@ declare class Galxe extends BaseDBModule {
|
|
|
9561
9419
|
}
|
|
9562
9420
|
declare const modules$1: {
|
|
9563
9421
|
account: Account;
|
|
9422
|
+
analysis: Analysis;
|
|
9564
9423
|
analyzer: Analyzer;
|
|
9565
9424
|
staking: Staking$1;
|
|
9566
9425
|
transaction: Transaction;
|
|
9567
9426
|
nft: NFT;
|
|
9568
9427
|
health: Health;
|
|
9569
|
-
"analysis-dev": AnalysisDev;
|
|
9570
|
-
"analysis-prod": AnalysisProd;
|
|
9571
9428
|
"learn-to-earn": LearnToEarn;
|
|
9572
9429
|
contract: Contract;
|
|
9573
9430
|
resource: Resource;
|
|
@@ -9583,6 +9440,7 @@ export interface ConfigOptions {
|
|
|
9583
9440
|
method: "get" | "post" | "put" | "delete" | "all";
|
|
9584
9441
|
path: string;
|
|
9585
9442
|
absolutePath?: boolean;
|
|
9443
|
+
isPublicPath?: boolean;
|
|
9586
9444
|
};
|
|
9587
9445
|
}
|
|
9588
9446
|
export type KitModuleFunction<I extends z.AnyZodObject = z.AnyZodObject, O extends z.ZodType | undefined = undefined, R = any> = {
|
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.64",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"hono-rate-limiter": "^0.4.0",
|
|
47
47
|
"ioredis": "^5.4.1",
|
|
48
48
|
"jsonwebtoken": "^9.0.2",
|
|
49
|
+
"kafkajs": "^2.2.4",
|
|
49
50
|
"lodash": "^4.17.21",
|
|
50
51
|
"lru-cache": "^11.0.0",
|
|
51
52
|
"number-to-bn": "^1.7.0",
|