@iotexproject/kit 0.2.15 → 0.2.17
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 +96 -54
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { RouteConfig } from '@asteasolutions/zod-to-openapi';
|
|
4
|
-
import { BentoCache, bentostore } from 'bentocache';
|
|
5
4
|
import DataLoader from 'dataloader';
|
|
6
5
|
import { Dayjs } from 'dayjs';
|
|
7
6
|
import postgres from 'postgres';
|
|
@@ -6000,8 +5999,62 @@ declare class Mimo {
|
|
|
6000
5999
|
address: string;
|
|
6001
6000
|
}): Promise<{
|
|
6002
6001
|
address: any;
|
|
6003
|
-
token0:
|
|
6004
|
-
|
|
6002
|
+
token0: {
|
|
6003
|
+
id: `0x${string}`;
|
|
6004
|
+
price: any;
|
|
6005
|
+
address: `0x${string}`;
|
|
6006
|
+
chainId: string;
|
|
6007
|
+
isEther: boolean;
|
|
6008
|
+
type: () => Promise<string>;
|
|
6009
|
+
totalSupply: number;
|
|
6010
|
+
name: string;
|
|
6011
|
+
symbol: string;
|
|
6012
|
+
decimals: number | undefined;
|
|
6013
|
+
balanceOf: (account?: `0x${string}`) => Promise<{
|
|
6014
|
+
value: string;
|
|
6015
|
+
format: string;
|
|
6016
|
+
originFormat: string;
|
|
6017
|
+
decimals: string;
|
|
6018
|
+
}>;
|
|
6019
|
+
balanceUSD: (account?: `0x${string}`) => Promise<string | {
|
|
6020
|
+
value: string;
|
|
6021
|
+
format: string;
|
|
6022
|
+
originFormat: string;
|
|
6023
|
+
decimals: string;
|
|
6024
|
+
}>;
|
|
6025
|
+
allowance: (owner: string, spender: string) => Promise<any>;
|
|
6026
|
+
approve: (spender: `0x${string}`, amount: string, owner: `0x${string}`) => Promise<`0x${string}` | null>;
|
|
6027
|
+
priceUSD: any;
|
|
6028
|
+
tokenUrl: () => Promise<any>;
|
|
6029
|
+
};
|
|
6030
|
+
token1: {
|
|
6031
|
+
id: `0x${string}`;
|
|
6032
|
+
price: any;
|
|
6033
|
+
address: `0x${string}`;
|
|
6034
|
+
chainId: string;
|
|
6035
|
+
isEther: boolean;
|
|
6036
|
+
type: () => Promise<string>;
|
|
6037
|
+
totalSupply: number;
|
|
6038
|
+
name: string;
|
|
6039
|
+
symbol: string;
|
|
6040
|
+
decimals: number | undefined;
|
|
6041
|
+
balanceOf: (account?: `0x${string}`) => Promise<{
|
|
6042
|
+
value: string;
|
|
6043
|
+
format: string;
|
|
6044
|
+
originFormat: string;
|
|
6045
|
+
decimals: string;
|
|
6046
|
+
}>;
|
|
6047
|
+
balanceUSD: (account?: `0x${string}`) => Promise<string | {
|
|
6048
|
+
value: string;
|
|
6049
|
+
format: string;
|
|
6050
|
+
originFormat: string;
|
|
6051
|
+
decimals: string;
|
|
6052
|
+
}>;
|
|
6053
|
+
allowance: (owner: string, spender: string) => Promise<any>;
|
|
6054
|
+
approve: (spender: `0x${string}`, amount: string, owner: `0x${string}`) => Promise<`0x${string}` | null>;
|
|
6055
|
+
priceUSD: any;
|
|
6056
|
+
tokenUrl: () => Promise<any>;
|
|
6057
|
+
};
|
|
6005
6058
|
reserve_0: string;
|
|
6006
6059
|
reserve_1: string;
|
|
6007
6060
|
total_supply: string;
|
|
@@ -7076,6 +7129,14 @@ declare class Staking {
|
|
|
7076
7129
|
candidateActivate({ bucketIndex }: {
|
|
7077
7130
|
bucketIndex: string;
|
|
7078
7131
|
}, ctx?: ConfigContext): Promise<any>;
|
|
7132
|
+
candidateRequestDeactivation(_args?: {}, _ctx?: ConfigContext): Promise<`0x${string}`>;
|
|
7133
|
+
candidateConfirmDeactivation(_args?: {}, _ctx?: ConfigContext): Promise<`0x${string}`>;
|
|
7134
|
+
getCandidateDeactivation(args: {
|
|
7135
|
+
ownerAddress: `0x${string}` | `io${string}`;
|
|
7136
|
+
}, ctx?: ConfigContext): Promise<{
|
|
7137
|
+
requested: boolean;
|
|
7138
|
+
scheduledAtBlock: bigint;
|
|
7139
|
+
} | null>;
|
|
7079
7140
|
getSelfStakeBucketByDelegate(args: {
|
|
7080
7141
|
ownerAddress: `0x${string}` | `io${string}`;
|
|
7081
7142
|
}, ctx?: ConfigContext): Promise<CompositeBucket | null>;
|
|
@@ -7115,6 +7176,34 @@ declare class UseHub {
|
|
|
7115
7176
|
assets(): Promise<any[] | {
|
|
7116
7177
|
error: unknown;
|
|
7117
7178
|
}>;
|
|
7179
|
+
forwardService(args: {
|
|
7180
|
+
owner: `0x${string}`;
|
|
7181
|
+
}): Promise<{
|
|
7182
|
+
nonce: string;
|
|
7183
|
+
destination: string;
|
|
7184
|
+
startEpoch: string;
|
|
7185
|
+
error?: undefined;
|
|
7186
|
+
} | {
|
|
7187
|
+
error: unknown;
|
|
7188
|
+
nonce?: undefined;
|
|
7189
|
+
destination?: undefined;
|
|
7190
|
+
startEpoch?: undefined;
|
|
7191
|
+
}>;
|
|
7192
|
+
registerForwardService(args: {
|
|
7193
|
+
owner: `0x${string}`;
|
|
7194
|
+
nonce: string;
|
|
7195
|
+
startEpoch: string;
|
|
7196
|
+
signature: `0x${string}`;
|
|
7197
|
+
}): Promise<`0x${string}` | {
|
|
7198
|
+
error: unknown;
|
|
7199
|
+
}>;
|
|
7200
|
+
deregisterForwardService(args: {
|
|
7201
|
+
owner: `0x${string}`;
|
|
7202
|
+
nonce: string;
|
|
7203
|
+
signature: `0x${string}`;
|
|
7204
|
+
}): Promise<`0x${string}` | {
|
|
7205
|
+
error: unknown;
|
|
7206
|
+
}>;
|
|
7118
7207
|
tokenBalance(args: {
|
|
7119
7208
|
address: `0x${string}`;
|
|
7120
7209
|
tokenAddress: `0x${string}`;
|
|
@@ -7127,12 +7216,6 @@ declare class UseHub {
|
|
|
7127
7216
|
error: unknown;
|
|
7128
7217
|
}>;
|
|
7129
7218
|
}
|
|
7130
|
-
declare class Health {
|
|
7131
|
-
check(): {
|
|
7132
|
-
status: boolean;
|
|
7133
|
-
message: string;
|
|
7134
|
-
};
|
|
7135
|
-
}
|
|
7136
7219
|
declare class PointsPlatform {
|
|
7137
7220
|
userPoints(args: {
|
|
7138
7221
|
user: string;
|
|
@@ -8589,7 +8672,6 @@ declare const modules: {
|
|
|
8589
8672
|
msp: MSP;
|
|
8590
8673
|
utils: utils;
|
|
8591
8674
|
hub: UseHub;
|
|
8592
|
-
health: Health;
|
|
8593
8675
|
points: PointsPlatform;
|
|
8594
8676
|
bondingcurve: BondingCurve;
|
|
8595
8677
|
liquidityMining: LiquidityMining;
|
|
@@ -8603,14 +8685,10 @@ declare class ClickHouseSDK {
|
|
|
8603
8685
|
constructor(dbUrl: string);
|
|
8604
8686
|
query(sql: string): Promise<any>;
|
|
8605
8687
|
}
|
|
8606
|
-
declare const bento: BentoCache<{
|
|
8607
|
-
appCache: ReturnType<typeof bentostore>;
|
|
8608
|
-
}>;
|
|
8609
8688
|
declare class BaseDBModule {
|
|
8610
8689
|
ch: ClickHouseSDK;
|
|
8611
8690
|
analyzer: ReturnType<typeof postgres>;
|
|
8612
8691
|
scout: ReturnType<typeof postgres>;
|
|
8613
|
-
superbase: ReturnType<typeof postgres>;
|
|
8614
8692
|
iotexscan: ReturnType<typeof postgres>;
|
|
8615
8693
|
iopay: ReturnType<typeof postgres>;
|
|
8616
8694
|
nftmarket: ReturnType<typeof postgres>;
|
|
@@ -8622,8 +8700,8 @@ declare class BaseDBModule {
|
|
|
8622
8700
|
dao: ReturnType<typeof postgres>;
|
|
8623
8701
|
nsv3db: ReturnType<typeof postgres>;
|
|
8624
8702
|
nsv3dbTest: ReturnType<typeof postgres>;
|
|
8625
|
-
cache: ReturnType<typeof bento.namespace>;
|
|
8626
8703
|
constructor();
|
|
8704
|
+
private getPostgresClient;
|
|
8627
8705
|
checkAuth(key: string): Promise<{
|
|
8628
8706
|
ok: boolean;
|
|
8629
8707
|
message: string;
|
|
@@ -8875,28 +8953,6 @@ declare class Resource {
|
|
|
8875
8953
|
id: ComponentType;
|
|
8876
8954
|
}): Promise<ComponentData>;
|
|
8877
8955
|
}
|
|
8878
|
-
export type PushRegisterProps = {
|
|
8879
|
-
address: string;
|
|
8880
|
-
deviceToken?: string;
|
|
8881
|
-
name?: string;
|
|
8882
|
-
registerPushNotification: boolean;
|
|
8883
|
-
platform: string;
|
|
8884
|
-
deviceId?: string;
|
|
8885
|
-
};
|
|
8886
|
-
export type TopicNewsletterRegisterProps = {
|
|
8887
|
-
deviceToken: string;
|
|
8888
|
-
news_push: boolean;
|
|
8889
|
-
platform?: string;
|
|
8890
|
-
};
|
|
8891
|
-
declare class IoPay extends BaseDBModule {
|
|
8892
|
-
get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
8893
|
-
get_point_task_tg(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
8894
|
-
pushRegister(args: PushRegisterProps): Promise<any>;
|
|
8895
|
-
topicNewsletterRegister(args: TopicNewsletterRegisterProps): Promise<any>;
|
|
8896
|
-
updateNewsletterTopic({ deviceToken, news_push }: any): void;
|
|
8897
|
-
registerNewsletterTopic(deviceToken: string): void;
|
|
8898
|
-
unregisterNewsletterTopic(deviceToken: string): void;
|
|
8899
|
-
}
|
|
8900
8956
|
declare class Mimo$1 extends BaseDBModule {
|
|
8901
8957
|
metrics(): Promise<{
|
|
8902
8958
|
totalVolumeUSD: any;
|
|
@@ -9159,9 +9215,6 @@ export type ProposalListItemV2 = {
|
|
|
9159
9215
|
title: string | null;
|
|
9160
9216
|
creator?: string | null;
|
|
9161
9217
|
status: string | null;
|
|
9162
|
-
repo_status: string | null;
|
|
9163
|
-
created_at: string;
|
|
9164
|
-
updated_at: string;
|
|
9165
9218
|
end_time?: string | null;
|
|
9166
9219
|
start_time?: string | null;
|
|
9167
9220
|
slug: string;
|
|
@@ -9186,6 +9239,7 @@ export type CurrentUser = {
|
|
|
9186
9239
|
vote_weight: number;
|
|
9187
9240
|
};
|
|
9188
9241
|
declare class Dao extends BaseDBModule {
|
|
9242
|
+
private readonly cache;
|
|
9189
9243
|
checkAuth(key: string): Promise<{
|
|
9190
9244
|
ok: boolean;
|
|
9191
9245
|
message: string;
|
|
@@ -9738,10 +9792,8 @@ declare const modules$1: {
|
|
|
9738
9792
|
staking: Staking$1;
|
|
9739
9793
|
transaction: Transaction;
|
|
9740
9794
|
nft: NFT;
|
|
9741
|
-
health: Health;
|
|
9742
9795
|
contract: Contract;
|
|
9743
9796
|
resource: Resource;
|
|
9744
|
-
iopay: IoPay;
|
|
9745
9797
|
mimo: Mimo$1;
|
|
9746
9798
|
"mimo-swap-bridge": MimoSwapBridge;
|
|
9747
9799
|
galxe: Galxe;
|
|
@@ -9880,7 +9932,6 @@ declare const modules$2: {
|
|
|
9880
9932
|
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any> | undefined, unknown>;
|
|
9881
9933
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
9882
9934
|
scout: ReturnType<typeof import("postgres")>;
|
|
9883
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
9884
9935
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9885
9936
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9886
9937
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -9912,7 +9963,6 @@ declare const modules$2: {
|
|
|
9912
9963
|
}>, import("zod").ZodAny, import("postgres").Row>;
|
|
9913
9964
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
9914
9965
|
scout: ReturnType<typeof import("postgres")>;
|
|
9915
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
9916
9966
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
9917
9967
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9918
9968
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10075,7 +10125,6 @@ declare const modules$2: {
|
|
|
10075
10125
|
}>, import("zod").ZodAny, any>;
|
|
10076
10126
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10077
10127
|
scout: ReturnType<typeof import("postgres")>;
|
|
10078
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10079
10128
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10080
10129
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10081
10130
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10371,7 +10420,6 @@ declare const modules$2: {
|
|
|
10371
10420
|
}>, import("zod").ZodAny, void>;
|
|
10372
10421
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10373
10422
|
scout: ReturnType<typeof import("postgres")>;
|
|
10374
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10375
10423
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10376
10424
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10377
10425
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10405,7 +10453,6 @@ declare const modules$2: {
|
|
|
10405
10453
|
}>, import("zod").ZodAny, any>;
|
|
10406
10454
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10407
10455
|
scout: ReturnType<typeof import("postgres")>;
|
|
10408
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10409
10456
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10410
10457
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10411
10458
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10449,7 +10496,6 @@ declare const modules$2: {
|
|
|
10449
10496
|
}[]>;
|
|
10450
10497
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10451
10498
|
scout: ReturnType<typeof import("postgres")>;
|
|
10452
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10453
10499
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10454
10500
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10455
10501
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10582,7 +10628,6 @@ declare const modules$2: {
|
|
|
10582
10628
|
}>, import("zod").ZodAny, any>;
|
|
10583
10629
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10584
10630
|
scout: ReturnType<typeof import("postgres")>;
|
|
10585
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10586
10631
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10587
10632
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10588
10633
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10679,7 +10724,6 @@ declare const modules$2: {
|
|
|
10679
10724
|
}>, import("zod").ZodAny, any[]>;
|
|
10680
10725
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10681
10726
|
scout: ReturnType<typeof import("postgres")>;
|
|
10682
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10683
10727
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10684
10728
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10685
10729
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10777,7 +10821,6 @@ declare const modules$2: {
|
|
|
10777
10821
|
}>;
|
|
10778
10822
|
analyzer: ReturnType<typeof import("postgres")>;
|
|
10779
10823
|
scout: ReturnType<typeof import("postgres")>;
|
|
10780
|
-
superbase: ReturnType<typeof import("postgres")>;
|
|
10781
10824
|
iotexscan: ReturnType<typeof import("postgres")>;
|
|
10782
10825
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10783
10826
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
@@ -10966,7 +11009,7 @@ export type UserFeedBackParams = {
|
|
|
10966
11009
|
version: string;
|
|
10967
11010
|
platform: string;
|
|
10968
11011
|
};
|
|
10969
|
-
declare class IoPay
|
|
11012
|
+
declare class IoPay extends Auth {
|
|
10970
11013
|
private queryTokenFromDB;
|
|
10971
11014
|
queryKlineData(args: {
|
|
10972
11015
|
id: string;
|
|
@@ -11025,8 +11068,7 @@ declare class IoPay$1 extends Auth {
|
|
|
11025
11068
|
}
|
|
11026
11069
|
declare const modules$4: {
|
|
11027
11070
|
point: Point;
|
|
11028
|
-
|
|
11029
|
-
iopay: IoPay$1;
|
|
11071
|
+
iopay: IoPay;
|
|
11030
11072
|
};
|
|
11031
11073
|
export type IoPayModuleType = typeof modules$4;
|
|
11032
11074
|
export type IotexscanAdapterType<T extends Record<string, Record<string, any>>> = {
|