@iotexproject/kit 0.1.71 → 0.1.72
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 +99 -388
- package/package.json +8 -1
package/dist/index.d.ts
CHANGED
|
@@ -8163,6 +8163,8 @@ declare class LiquidityMining {
|
|
|
8163
8163
|
type: string;
|
|
8164
8164
|
startTime: number;
|
|
8165
8165
|
endTime: number;
|
|
8166
|
+
isExpired: boolean;
|
|
8167
|
+
isNew: boolean;
|
|
8166
8168
|
key: MimoV3MiningPoolKey;
|
|
8167
8169
|
address: `0x${string}`;
|
|
8168
8170
|
chainId: string;
|
|
@@ -8204,6 +8206,7 @@ declare class LiquidityMining {
|
|
|
8204
8206
|
};
|
|
8205
8207
|
price0: number;
|
|
8206
8208
|
price1: number;
|
|
8209
|
+
liquidity: any;
|
|
8207
8210
|
}[]>;
|
|
8208
8211
|
StakedToken: {
|
|
8209
8212
|
symbol: string;
|
|
@@ -8251,8 +8254,6 @@ declare class LiquidityMining {
|
|
|
8251
8254
|
totalStakedBalanceUSD: string;
|
|
8252
8255
|
totalStakedBalanceUSDOrigin: string;
|
|
8253
8256
|
};
|
|
8254
|
-
isNew: boolean;
|
|
8255
|
-
isExpired: boolean;
|
|
8256
8257
|
totalReward: {
|
|
8257
8258
|
totalRewardUSD: string;
|
|
8258
8259
|
totalReward: {
|
|
@@ -8301,6 +8302,7 @@ declare class LiquidityMining {
|
|
|
8301
8302
|
};
|
|
8302
8303
|
price0: number;
|
|
8303
8304
|
price1: number;
|
|
8305
|
+
liquidity: any;
|
|
8304
8306
|
})[];
|
|
8305
8307
|
myPoolBalance: {
|
|
8306
8308
|
token0Address: any;
|
|
@@ -8324,6 +8326,7 @@ declare class LiquidityMining {
|
|
|
8324
8326
|
};
|
|
8325
8327
|
price0: number;
|
|
8326
8328
|
price1: number;
|
|
8329
|
+
liquidity: any;
|
|
8327
8330
|
}[];
|
|
8328
8331
|
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8329
8332
|
symbol: true;
|
|
@@ -8365,6 +8368,8 @@ declare class LiquidityMiningV3 {
|
|
|
8365
8368
|
}, ctx?: ConfigContext): Promise<{
|
|
8366
8369
|
startTime: number;
|
|
8367
8370
|
endTime: number;
|
|
8371
|
+
isExpired: boolean;
|
|
8372
|
+
isNew: boolean;
|
|
8368
8373
|
key: MimoV3MiningPoolKey;
|
|
8369
8374
|
address: `0x${string}`;
|
|
8370
8375
|
chainId: string;
|
|
@@ -8406,6 +8411,7 @@ declare class LiquidityMiningV3 {
|
|
|
8406
8411
|
};
|
|
8407
8412
|
price0: number;
|
|
8408
8413
|
price1: number;
|
|
8414
|
+
liquidity: any;
|
|
8409
8415
|
}[]>;
|
|
8410
8416
|
StakedToken: {
|
|
8411
8417
|
symbol: string;
|
|
@@ -8453,8 +8459,6 @@ declare class LiquidityMiningV3 {
|
|
|
8453
8459
|
totalStakedBalanceUSD: string;
|
|
8454
8460
|
totalStakedBalanceUSDOrigin: string;
|
|
8455
8461
|
};
|
|
8456
|
-
isNew: boolean;
|
|
8457
|
-
isExpired: boolean;
|
|
8458
8462
|
totalReward: {
|
|
8459
8463
|
totalRewardUSD: string;
|
|
8460
8464
|
totalReward: {
|
|
@@ -8503,6 +8507,7 @@ declare class LiquidityMiningV3 {
|
|
|
8503
8507
|
};
|
|
8504
8508
|
price0: number;
|
|
8505
8509
|
price1: number;
|
|
8510
|
+
liquidity: any;
|
|
8506
8511
|
})[];
|
|
8507
8512
|
myPoolBalance: {
|
|
8508
8513
|
token0Address: any;
|
|
@@ -8526,6 +8531,7 @@ declare class LiquidityMiningV3 {
|
|
|
8526
8531
|
};
|
|
8527
8532
|
price0: number;
|
|
8528
8533
|
price1: number;
|
|
8534
|
+
liquidity: any;
|
|
8529
8535
|
}[];
|
|
8530
8536
|
RewardToken: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8531
8537
|
symbol: true;
|
|
@@ -8624,6 +8630,7 @@ declare class ClickHouseSDK {
|
|
|
8624
8630
|
query(sql: string): Promise<any>;
|
|
8625
8631
|
}
|
|
8626
8632
|
declare class BaseDBModule {
|
|
8633
|
+
ch: ClickHouseSDK;
|
|
8627
8634
|
analyzer: ReturnType<typeof postgres>;
|
|
8628
8635
|
scout: ReturnType<typeof postgres>;
|
|
8629
8636
|
superbase: ReturnType<typeof postgres>;
|
|
@@ -8632,7 +8639,6 @@ declare class BaseDBModule {
|
|
|
8632
8639
|
nftmarket: ReturnType<typeof postgres>;
|
|
8633
8640
|
mimo: ReturnType<typeof postgres>;
|
|
8634
8641
|
depinscan: ReturnType<typeof postgres>;
|
|
8635
|
-
ch: ClickHouseSDK;
|
|
8636
8642
|
analysis: ClickHouseSDK;
|
|
8637
8643
|
microServiceCenter: ReturnType<typeof postgres>;
|
|
8638
8644
|
constructor();
|
|
@@ -8664,294 +8670,6 @@ declare class Account extends BaseDBModule {
|
|
|
8664
8670
|
tokens: import("postgres").RowList<import("postgres").Row[]>;
|
|
8665
8671
|
}>;
|
|
8666
8672
|
}
|
|
8667
|
-
declare class Analysis extends BaseDBModule {
|
|
8668
|
-
checkAuth(key: string): Promise<{
|
|
8669
|
-
ok: boolean;
|
|
8670
|
-
message: string;
|
|
8671
|
-
authData: null;
|
|
8672
|
-
} | {
|
|
8673
|
-
ok: boolean;
|
|
8674
|
-
message: string;
|
|
8675
|
-
authData: {
|
|
8676
|
-
app_id: any;
|
|
8677
|
-
};
|
|
8678
|
-
}>;
|
|
8679
|
-
upload_event({ user_id, event_type, event_id, event }: {
|
|
8680
|
-
event_type: string;
|
|
8681
|
-
user_id: string;
|
|
8682
|
-
event_id: string;
|
|
8683
|
-
event: Record<string, any>;
|
|
8684
|
-
}, ctx?: {
|
|
8685
|
-
authData?: {
|
|
8686
|
-
app_id: string;
|
|
8687
|
-
};
|
|
8688
|
-
}): Promise<{
|
|
8689
|
-
status: number;
|
|
8690
|
-
error: string;
|
|
8691
|
-
ok?: undefined;
|
|
8692
|
-
msg?: undefined;
|
|
8693
|
-
} | {
|
|
8694
|
-
ok: boolean;
|
|
8695
|
-
msg: string;
|
|
8696
|
-
status?: undefined;
|
|
8697
|
-
error?: undefined;
|
|
8698
|
-
}>;
|
|
8699
|
-
referral_code({ refer_id, }: {
|
|
8700
|
-
refer_id: string;
|
|
8701
|
-
}, ctx?: {
|
|
8702
|
-
authData?: {
|
|
8703
|
-
app_id: string;
|
|
8704
|
-
};
|
|
8705
|
-
}): Promise<{
|
|
8706
|
-
status: number;
|
|
8707
|
-
error: string;
|
|
8708
|
-
ok?: undefined;
|
|
8709
|
-
referral_code?: undefined;
|
|
8710
|
-
msg?: undefined;
|
|
8711
|
-
} | {
|
|
8712
|
-
ok: boolean;
|
|
8713
|
-
referral_code: any;
|
|
8714
|
-
msg: string;
|
|
8715
|
-
status?: undefined;
|
|
8716
|
-
error?: undefined;
|
|
8717
|
-
}>;
|
|
8718
|
-
create_refer({ refer_id, refer_id_type, user_id, device_id, data, }: {
|
|
8719
|
-
refer_id: string;
|
|
8720
|
-
refer_id_type: "referral_code" | "user_id";
|
|
8721
|
-
user_id: string;
|
|
8722
|
-
device_id: string;
|
|
8723
|
-
data: Record<string, any>;
|
|
8724
|
-
}, ctx?: {
|
|
8725
|
-
authData?: {
|
|
8726
|
-
app_id: string;
|
|
8727
|
-
};
|
|
8728
|
-
}): Promise<{
|
|
8729
|
-
status: number;
|
|
8730
|
-
error: string;
|
|
8731
|
-
ok?: undefined;
|
|
8732
|
-
msg?: undefined;
|
|
8733
|
-
} | {
|
|
8734
|
-
ok: boolean;
|
|
8735
|
-
error: string;
|
|
8736
|
-
status?: undefined;
|
|
8737
|
-
msg?: undefined;
|
|
8738
|
-
} | {
|
|
8739
|
-
ok: boolean;
|
|
8740
|
-
msg: string;
|
|
8741
|
-
status?: undefined;
|
|
8742
|
-
error?: undefined;
|
|
8743
|
-
}>;
|
|
8744
|
-
fetch_event({ event_id }: {
|
|
8745
|
-
event_id: string;
|
|
8746
|
-
}): Promise<Record<string, any>>;
|
|
8747
|
-
batch_fetch_event({ event_ids }: {
|
|
8748
|
-
event_ids: string[];
|
|
8749
|
-
}): Promise<any[] | {
|
|
8750
|
-
status: number;
|
|
8751
|
-
error: string;
|
|
8752
|
-
}>;
|
|
8753
|
-
fetch_user_point({ user_id, include_referral_point, }: {
|
|
8754
|
-
user_id: string;
|
|
8755
|
-
include_referral_point?: string;
|
|
8756
|
-
}, ctx?: {
|
|
8757
|
-
authData?: {
|
|
8758
|
-
app_id: string;
|
|
8759
|
-
};
|
|
8760
|
-
}): Promise<{
|
|
8761
|
-
status: number;
|
|
8762
|
-
error: string;
|
|
8763
|
-
ok?: undefined;
|
|
8764
|
-
point?: undefined;
|
|
8765
|
-
} | {
|
|
8766
|
-
ok: boolean;
|
|
8767
|
-
point: any;
|
|
8768
|
-
status?: undefined;
|
|
8769
|
-
error?: undefined;
|
|
8770
|
-
}>;
|
|
8771
|
-
fetch_invitees_num({ user_id, }: {
|
|
8772
|
-
user_id: string;
|
|
8773
|
-
}, ctx?: {
|
|
8774
|
-
authData?: {
|
|
8775
|
-
app_id: string;
|
|
8776
|
-
};
|
|
8777
|
-
}): Promise<{
|
|
8778
|
-
status: number;
|
|
8779
|
-
error: string;
|
|
8780
|
-
ok?: undefined;
|
|
8781
|
-
invitees_num?: undefined;
|
|
8782
|
-
} | {
|
|
8783
|
-
ok: boolean;
|
|
8784
|
-
invitees_num: any;
|
|
8785
|
-
status?: undefined;
|
|
8786
|
-
error?: undefined;
|
|
8787
|
-
}>;
|
|
8788
|
-
}
|
|
8789
|
-
declare class AnalysisV2 extends BaseDBModule {
|
|
8790
|
-
checkAuth(key: string): Promise<{
|
|
8791
|
-
ok: boolean;
|
|
8792
|
-
message: string;
|
|
8793
|
-
authData: null;
|
|
8794
|
-
} | {
|
|
8795
|
-
ok: boolean;
|
|
8796
|
-
message: string;
|
|
8797
|
-
authData: {
|
|
8798
|
-
app_id: any;
|
|
8799
|
-
};
|
|
8800
|
-
}>;
|
|
8801
|
-
upload_event({ user_id, event_id, event, campaign }: {
|
|
8802
|
-
user_id: string;
|
|
8803
|
-
event_id: string;
|
|
8804
|
-
event: any;
|
|
8805
|
-
campaign: any;
|
|
8806
|
-
}, ctx?: {
|
|
8807
|
-
authData?: {
|
|
8808
|
-
app_id: string;
|
|
8809
|
-
};
|
|
8810
|
-
}): Promise<{
|
|
8811
|
-
ok: boolean;
|
|
8812
|
-
msg: string;
|
|
8813
|
-
status?: undefined;
|
|
8814
|
-
error?: undefined;
|
|
8815
|
-
} | {
|
|
8816
|
-
status: number;
|
|
8817
|
-
error: any;
|
|
8818
|
-
ok?: undefined;
|
|
8819
|
-
msg?: undefined;
|
|
8820
|
-
}>;
|
|
8821
|
-
referral_code({ refer_id, }: {
|
|
8822
|
-
refer_id: string;
|
|
8823
|
-
}, ctx?: {
|
|
8824
|
-
authData?: {
|
|
8825
|
-
app_id: string;
|
|
8826
|
-
};
|
|
8827
|
-
}): Promise<{
|
|
8828
|
-
status: number;
|
|
8829
|
-
error: string;
|
|
8830
|
-
ok?: undefined;
|
|
8831
|
-
referral_code?: undefined;
|
|
8832
|
-
msg?: undefined;
|
|
8833
|
-
} | {
|
|
8834
|
-
ok: boolean;
|
|
8835
|
-
referral_code: any;
|
|
8836
|
-
msg: string;
|
|
8837
|
-
status?: undefined;
|
|
8838
|
-
error?: undefined;
|
|
8839
|
-
}>;
|
|
8840
|
-
create_refer({ refer_id, refer_id_type, user_id, event_id, event, }: {
|
|
8841
|
-
refer_id: string;
|
|
8842
|
-
refer_id_type: "referral_code" | "user_id";
|
|
8843
|
-
user_id: string;
|
|
8844
|
-
event_id: string;
|
|
8845
|
-
event: any;
|
|
8846
|
-
}, ctx?: {
|
|
8847
|
-
authData?: {
|
|
8848
|
-
app_id: string;
|
|
8849
|
-
};
|
|
8850
|
-
}): Promise<{
|
|
8851
|
-
status: number;
|
|
8852
|
-
error: string;
|
|
8853
|
-
ok?: undefined;
|
|
8854
|
-
msg?: undefined;
|
|
8855
|
-
} | {
|
|
8856
|
-
ok: boolean;
|
|
8857
|
-
msg: string;
|
|
8858
|
-
status?: undefined;
|
|
8859
|
-
error?: undefined;
|
|
8860
|
-
}>;
|
|
8861
|
-
fetch_event({ event_id }: {
|
|
8862
|
-
event_id: string;
|
|
8863
|
-
}): Promise<Record<string, any>>;
|
|
8864
|
-
batch_fetch_event({ event_ids }: {
|
|
8865
|
-
event_ids: string[];
|
|
8866
|
-
}): Promise<any[] | {
|
|
8867
|
-
status: number;
|
|
8868
|
-
error: string;
|
|
8869
|
-
}>;
|
|
8870
|
-
fetch_user_point({ user_id, }: {
|
|
8871
|
-
user_id: string;
|
|
8872
|
-
}, ctx?: {
|
|
8873
|
-
authData?: {
|
|
8874
|
-
app_id: string;
|
|
8875
|
-
};
|
|
8876
|
-
}): Promise<{
|
|
8877
|
-
status: number;
|
|
8878
|
-
error: string;
|
|
8879
|
-
ok?: undefined;
|
|
8880
|
-
totalPoints?: undefined;
|
|
8881
|
-
point?: undefined;
|
|
8882
|
-
} | {
|
|
8883
|
-
ok: boolean;
|
|
8884
|
-
totalPoints: any;
|
|
8885
|
-
point: any;
|
|
8886
|
-
status?: undefined;
|
|
8887
|
-
error?: undefined;
|
|
8888
|
-
}>;
|
|
8889
|
-
binobits({ user_id, }: {
|
|
8890
|
-
user_id: string;
|
|
8891
|
-
}, ctx?: {
|
|
8892
|
-
authData?: {
|
|
8893
|
-
app_id: string;
|
|
8894
|
-
};
|
|
8895
|
-
}): Promise<{
|
|
8896
|
-
status: number;
|
|
8897
|
-
error: string;
|
|
8898
|
-
ok?: undefined;
|
|
8899
|
-
amount?: undefined;
|
|
8900
|
-
} | {
|
|
8901
|
-
ok: boolean;
|
|
8902
|
-
amount: any;
|
|
8903
|
-
status?: undefined;
|
|
8904
|
-
error?: undefined;
|
|
8905
|
-
}>;
|
|
8906
|
-
fetch_invitees_num({ user_id, }: {
|
|
8907
|
-
user_id: string;
|
|
8908
|
-
}, ctx?: {
|
|
8909
|
-
authData?: {
|
|
8910
|
-
app_id: string;
|
|
8911
|
-
};
|
|
8912
|
-
}): Promise<{
|
|
8913
|
-
status: number;
|
|
8914
|
-
error: string;
|
|
8915
|
-
ok?: undefined;
|
|
8916
|
-
invitees_num?: undefined;
|
|
8917
|
-
} | {
|
|
8918
|
-
ok: boolean;
|
|
8919
|
-
invitees_num: any;
|
|
8920
|
-
status?: undefined;
|
|
8921
|
-
error?: undefined;
|
|
8922
|
-
}>;
|
|
8923
|
-
user_count({ project_id, action_id, }: {
|
|
8924
|
-
project_id: number;
|
|
8925
|
-
action_id?: number;
|
|
8926
|
-
}, ctx?: {
|
|
8927
|
-
authData?: {
|
|
8928
|
-
app_id: string;
|
|
8929
|
-
};
|
|
8930
|
-
}): Promise<{
|
|
8931
|
-
status: number;
|
|
8932
|
-
error: string;
|
|
8933
|
-
count?: undefined;
|
|
8934
|
-
} | {
|
|
8935
|
-
status: number;
|
|
8936
|
-
count: any;
|
|
8937
|
-
error?: undefined;
|
|
8938
|
-
}>;
|
|
8939
|
-
query_refer_code({ refer_code }: {
|
|
8940
|
-
refer_code: string;
|
|
8941
|
-
}, ctx?: {
|
|
8942
|
-
authData?: {
|
|
8943
|
-
app_id: string;
|
|
8944
|
-
};
|
|
8945
|
-
}): Promise<{
|
|
8946
|
-
status: number;
|
|
8947
|
-
error: string;
|
|
8948
|
-
result?: undefined;
|
|
8949
|
-
} | {
|
|
8950
|
-
status: number;
|
|
8951
|
-
result: any;
|
|
8952
|
-
error?: undefined;
|
|
8953
|
-
}>;
|
|
8954
|
-
}
|
|
8955
8673
|
declare class Analyzer extends BaseDBModule {
|
|
8956
8674
|
tvl(): Promise<any>;
|
|
8957
8675
|
dailyTvl({ start_date, end_date }?: {
|
|
@@ -9135,10 +8853,6 @@ declare class Staking$1 extends BaseDBModule {
|
|
|
9135
8853
|
blocks: import("postgres").Row[] & Iterable<import("postgres").Row> & import("postgres").ResultQueryMeta<number, string | number>;
|
|
9136
8854
|
total: number;
|
|
9137
8855
|
};
|
|
9138
|
-
error?: undefined;
|
|
9139
|
-
} | {
|
|
9140
|
-
error: unknown;
|
|
9141
|
-
data?: undefined;
|
|
9142
8856
|
}>;
|
|
9143
8857
|
}
|
|
9144
8858
|
export type ComponentType = "banner-latest" | "token-2049";
|
|
@@ -9194,51 +8908,23 @@ declare class Mimo$1 extends BaseDBModule {
|
|
|
9194
8908
|
pair: string;
|
|
9195
8909
|
type: string;
|
|
9196
8910
|
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]> | undefined>;
|
|
8911
|
+
pool_detail_v2({ pair_address }: {
|
|
8912
|
+
pair_address: string;
|
|
8913
|
+
}): Promise<import("postgres").Row>;
|
|
8914
|
+
token_detail_v2({ token_address }: {
|
|
8915
|
+
token_address: string;
|
|
8916
|
+
}): Promise<import("postgres").Row>;
|
|
9197
8917
|
token_tx_v2({ token, type }: {
|
|
9198
8918
|
token: string;
|
|
9199
8919
|
type: string;
|
|
9200
8920
|
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]> | undefined>;
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
message: string;
|
|
9206
|
-
authData: null;
|
|
9207
|
-
} | {
|
|
9208
|
-
ok: boolean;
|
|
9209
|
-
message: string;
|
|
9210
|
-
authData: {
|
|
9211
|
-
app_id: any;
|
|
9212
|
-
};
|
|
9213
|
-
}>;
|
|
9214
|
-
questions({ post_id }: {
|
|
9215
|
-
post_id: string;
|
|
9216
|
-
}, ctx?: {
|
|
9217
|
-
authData?: {
|
|
9218
|
-
app_id: string;
|
|
9219
|
-
};
|
|
9220
|
-
}): Promise<import("postgres").RowList<import("postgres").Row[]> | {
|
|
9221
|
-
status: number;
|
|
9222
|
-
error: string;
|
|
9223
|
-
}>;
|
|
9224
|
-
reply({ post_id, ids, answers }: {
|
|
9225
|
-
post_id: string;
|
|
9226
|
-
ids: number[];
|
|
9227
|
-
answers: string[];
|
|
9228
|
-
}, ctx?: {
|
|
9229
|
-
authData?: {
|
|
9230
|
-
app_id: string;
|
|
9231
|
-
};
|
|
8921
|
+
mimo_swap_volume(args: {
|
|
8922
|
+
token: string;
|
|
8923
|
+
user: string;
|
|
8924
|
+
volume?: number;
|
|
9232
8925
|
}): Promise<{
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
isCorrect?: undefined;
|
|
9236
|
-
wrongIds?: undefined;
|
|
9237
|
-
} | {
|
|
9238
|
-
isCorrect: boolean;
|
|
9239
|
-
wrongIds: number[];
|
|
9240
|
-
status?: undefined;
|
|
9241
|
-
error?: undefined;
|
|
8926
|
+
usdAmount: string;
|
|
8927
|
+
exceed: boolean;
|
|
9242
8928
|
}>;
|
|
9243
8929
|
}
|
|
9244
8930
|
declare class Galxe extends BaseDBModule {
|
|
@@ -9267,69 +8953,37 @@ declare class DepinScan extends BaseDBModule {
|
|
|
9267
8953
|
total_device: any;
|
|
9268
8954
|
}[]>;
|
|
9269
8955
|
}
|
|
9270
|
-
declare class
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
authData: null;
|
|
9275
|
-
} | {
|
|
9276
|
-
ok: boolean;
|
|
9277
|
-
message: string;
|
|
9278
|
-
authData: {
|
|
9279
|
-
app_id: any;
|
|
9280
|
-
};
|
|
9281
|
-
}>;
|
|
9282
|
-
user_data({ user_id, key }: {
|
|
9283
|
-
user_id: string;
|
|
9284
|
-
key?: string;
|
|
9285
|
-
}, ctx?: {
|
|
9286
|
-
authData?: {
|
|
9287
|
-
app_id: string;
|
|
9288
|
-
};
|
|
8956
|
+
declare class Verification {
|
|
8957
|
+
checkVerification({ type, text }: {
|
|
8958
|
+
type: string;
|
|
8959
|
+
text: string;
|
|
9289
8960
|
}): Promise<{
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
user?: undefined;
|
|
9293
|
-
} | {
|
|
9294
|
-
user: import("postgres").Row;
|
|
9295
|
-
status?: undefined;
|
|
9296
|
-
error?: undefined;
|
|
8961
|
+
ok: boolean;
|
|
8962
|
+
isVerified: boolean;
|
|
9297
8963
|
}>;
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
}, ctx?: {
|
|
9303
|
-
authData?: {
|
|
9304
|
-
app_id: string;
|
|
9305
|
-
};
|
|
8964
|
+
upsertVerification({ type, text, status }: {
|
|
8965
|
+
type: string;
|
|
8966
|
+
text: string;
|
|
8967
|
+
status: "verified" | "invalid";
|
|
9306
8968
|
}): Promise<{
|
|
9307
|
-
status: number;
|
|
9308
|
-
error: string;
|
|
9309
|
-
ok?: undefined;
|
|
9310
|
-
} | {
|
|
9311
8969
|
ok: boolean;
|
|
9312
|
-
|
|
9313
|
-
error?: undefined;
|
|
8970
|
+
message: string;
|
|
9314
8971
|
}>;
|
|
9315
8972
|
}
|
|
9316
8973
|
declare const modules$1: {
|
|
9317
8974
|
account: Account;
|
|
9318
|
-
analysis: Analysis;
|
|
9319
|
-
analysisv2: AnalysisV2;
|
|
9320
8975
|
analyzer: Analyzer;
|
|
9321
8976
|
staking: Staking$1;
|
|
9322
8977
|
transaction: Transaction;
|
|
9323
8978
|
nft: NFT;
|
|
9324
8979
|
health: Health;
|
|
9325
|
-
"learn-to-earn": LearnToEarn;
|
|
9326
8980
|
contract: Contract;
|
|
9327
8981
|
resource: Resource;
|
|
9328
8982
|
iopay: IoPay;
|
|
9329
8983
|
mimo: Mimo$1;
|
|
9330
8984
|
galxe: Galxe;
|
|
9331
8985
|
depinscan: DepinScan;
|
|
9332
|
-
|
|
8986
|
+
verification: Verification;
|
|
9333
8987
|
};
|
|
9334
8988
|
export type DBModuleType = typeof modules$1;
|
|
9335
8989
|
export interface ConfigOptions {
|
|
@@ -10362,12 +10016,34 @@ declare class Point {
|
|
|
10362
10016
|
authData?: {
|
|
10363
10017
|
sub: string;
|
|
10364
10018
|
};
|
|
10365
|
-
}): Promise<
|
|
10019
|
+
}): Promise<{
|
|
10020
|
+
status: number;
|
|
10021
|
+
error: string;
|
|
10022
|
+
ok?: undefined;
|
|
10023
|
+
msg?: undefined;
|
|
10024
|
+
} | {
|
|
10025
|
+
status: number;
|
|
10026
|
+
ok: boolean;
|
|
10027
|
+
msg: string;
|
|
10028
|
+
error?: undefined;
|
|
10029
|
+
}>;
|
|
10366
10030
|
fetch_referral_code(args?: any, ctx?: {
|
|
10367
10031
|
authData?: {
|
|
10368
10032
|
sub: string;
|
|
10369
10033
|
};
|
|
10370
|
-
}): Promise<
|
|
10034
|
+
}): Promise<{
|
|
10035
|
+
status: number;
|
|
10036
|
+
error: string;
|
|
10037
|
+
ok?: undefined;
|
|
10038
|
+
referral_code?: undefined;
|
|
10039
|
+
msg?: undefined;
|
|
10040
|
+
} | {
|
|
10041
|
+
ok: boolean;
|
|
10042
|
+
referral_code: any;
|
|
10043
|
+
msg: string;
|
|
10044
|
+
status?: undefined;
|
|
10045
|
+
error?: undefined;
|
|
10046
|
+
}>;
|
|
10371
10047
|
create_refer({ referral_code, device_id, }: {
|
|
10372
10048
|
referral_code: string;
|
|
10373
10049
|
device_id: string;
|
|
@@ -10375,13 +10051,31 @@ declare class Point {
|
|
|
10375
10051
|
authData?: {
|
|
10376
10052
|
sub: string;
|
|
10377
10053
|
};
|
|
10378
|
-
}): Promise<
|
|
10054
|
+
}): Promise<{
|
|
10055
|
+
status: number;
|
|
10056
|
+
error: string;
|
|
10057
|
+
ok?: undefined;
|
|
10058
|
+
msg?: undefined;
|
|
10059
|
+
} | {
|
|
10060
|
+
status: number;
|
|
10061
|
+
ok: boolean;
|
|
10062
|
+
error: string;
|
|
10063
|
+
msg?: undefined;
|
|
10064
|
+
} | {
|
|
10065
|
+
status: number;
|
|
10066
|
+
ok: boolean;
|
|
10067
|
+
msg: string;
|
|
10068
|
+
error?: undefined;
|
|
10069
|
+
}>;
|
|
10379
10070
|
fetch_event({ event_id }: {
|
|
10380
10071
|
event_id: string;
|
|
10381
|
-
}): Promise<any>;
|
|
10072
|
+
}): Promise<Record<string, any> | null>;
|
|
10382
10073
|
batch_fetch_event({ event_ids }: {
|
|
10383
10074
|
event_ids: string[];
|
|
10384
|
-
}): Promise<any
|
|
10075
|
+
}): Promise<(Error | Record<string, any>)[] | {
|
|
10076
|
+
status: number;
|
|
10077
|
+
error: string;
|
|
10078
|
+
}>;
|
|
10385
10079
|
fetch_tasks({ user_id }: {
|
|
10386
10080
|
user_id: string;
|
|
10387
10081
|
}): Promise<any[] | {
|
|
@@ -10391,10 +10085,27 @@ declare class Point {
|
|
|
10391
10085
|
fetch_point({ user_id, include_referral_point }: {
|
|
10392
10086
|
user_id: string;
|
|
10393
10087
|
include_referral_point?: string;
|
|
10394
|
-
}): Promise<
|
|
10088
|
+
}): Promise<{
|
|
10089
|
+
ok: boolean;
|
|
10090
|
+
error: string;
|
|
10091
|
+
points: any;
|
|
10092
|
+
} | {
|
|
10093
|
+
status: number;
|
|
10094
|
+
error: string;
|
|
10095
|
+
}>;
|
|
10395
10096
|
fetch_invitees_num({ user_id }: {
|
|
10396
10097
|
user_id: string;
|
|
10397
|
-
}): Promise<
|
|
10098
|
+
}): Promise<{
|
|
10099
|
+
status: number;
|
|
10100
|
+
error: string;
|
|
10101
|
+
ok?: undefined;
|
|
10102
|
+
invitees_num?: undefined;
|
|
10103
|
+
} | {
|
|
10104
|
+
status: number;
|
|
10105
|
+
ok: boolean;
|
|
10106
|
+
invitees_num: any;
|
|
10107
|
+
error?: undefined;
|
|
10108
|
+
}>;
|
|
10398
10109
|
}
|
|
10399
10110
|
declare const modules$4: {
|
|
10400
10111
|
point: Point;
|
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.72",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@clickhouse/client": "^1.4.0",
|
|
24
24
|
"@grpc/grpc-js": "^1.11.1",
|
|
25
25
|
"@grpc/proto-loader": "^0.7.13",
|
|
26
|
+
"@hyperdx/node-opentelemetry": "^0.8.1",
|
|
26
27
|
"@iotexproject/iotex-address-ts": "^1.0.4",
|
|
27
28
|
"@noble/curves": "^1.6.0",
|
|
28
29
|
"@tryghost/content-api": "^1.11.21",
|
|
@@ -39,6 +40,8 @@
|
|
|
39
40
|
"crypto-js": "^4.2.0",
|
|
40
41
|
"dataloader": "^2.2.2",
|
|
41
42
|
"dayjs": "^1.11.12",
|
|
43
|
+
"dotenv": "^16.4.7",
|
|
44
|
+
"drizzle-orm": "^0.38.2",
|
|
42
45
|
"ethers": "^6.13.2",
|
|
43
46
|
"firebase-admin": "^12.6.0",
|
|
44
47
|
"graphql-request": "^7.1.0",
|
|
@@ -52,6 +55,7 @@
|
|
|
52
55
|
"lru-cache": "^11.0.0",
|
|
53
56
|
"number-to-bn": "^1.7.0",
|
|
54
57
|
"p-timeout": "^6.1.3",
|
|
58
|
+
"pg": "^8.13.1",
|
|
55
59
|
"postgres": "^3.4.4",
|
|
56
60
|
"reflect-metadata": "^0.2.2",
|
|
57
61
|
"strip-ansi-cjs": "^8.0.0",
|
|
@@ -68,13 +72,16 @@
|
|
|
68
72
|
"@types/crypto-js": "^4.2.2",
|
|
69
73
|
"@types/google-protobuf": "^3.15.12",
|
|
70
74
|
"@types/jsonwebtoken": "^9.0.7",
|
|
75
|
+
"@types/pg": "^8.11.10",
|
|
71
76
|
"@types/tryghost__content-api": "^1.3.16",
|
|
72
77
|
"@types/underscore": "^1.11.15",
|
|
73
78
|
"bun-plugin-dts": "^0.2.3",
|
|
79
|
+
"drizzle-kit": "^0.30.1",
|
|
74
80
|
"grpc-tools": "^1.12.4",
|
|
75
81
|
"grpc_tools_node_protoc_ts": "^5.3.3",
|
|
76
82
|
"hono": "^4.4.11",
|
|
77
83
|
"protoc-gen-ts": "^0.8.7",
|
|
84
|
+
"tsx": "^4.19.2",
|
|
78
85
|
"typescript": "^5.5.4"
|
|
79
86
|
},
|
|
80
87
|
"publishConfig": {
|