@iotexproject/kit 0.1.38 → 0.1.39
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 +117 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8862,6 +8862,7 @@ export type LaunchPadParam = {
|
|
|
8862
8862
|
initialBuyAmount: string;
|
|
8863
8863
|
};
|
|
8864
8864
|
export type CreateProjectParams = {
|
|
8865
|
+
id?: number;
|
|
8865
8866
|
recipient: `0x${string}`;
|
|
8866
8867
|
projectName: string;
|
|
8867
8868
|
tokenAddress: string;
|
|
@@ -8898,14 +8899,11 @@ declare class BondingCurve {
|
|
|
8898
8899
|
chainId?: undefined;
|
|
8899
8900
|
value?: undefined;
|
|
8900
8901
|
}>;
|
|
8901
|
-
upsertProject(args: CreateProjectParams, ctx?: ConfigContext): Promise<
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
ok?: undefined;
|
|
8907
|
-
}>;
|
|
8908
|
-
projectList(args: {}, ctx?: ConfigContext): Promise<postgres.RowList<postgres.Row[]>>;
|
|
8902
|
+
upsertProject(args: CreateProjectParams, ctx?: ConfigContext): Promise<postgres.Row | postgres.RowList<postgres.Row[]>>;
|
|
8903
|
+
projectList(args: {}, ctx?: ConfigContext): Promise<postgres.RowList<postgres.Row[]> | undefined>;
|
|
8904
|
+
projectDetail(args: {
|
|
8905
|
+
projectName: string;
|
|
8906
|
+
}, ctx?: ConfigContext): Promise<postgres.Row | undefined>;
|
|
8909
8907
|
tokenList(args: {
|
|
8910
8908
|
account: `0x${string}`;
|
|
8911
8909
|
}, ctx?: ConfigContext): Promise<{
|
|
@@ -8932,7 +8930,7 @@ declare class BondingCurve {
|
|
|
8932
8930
|
allowance: (owner: string, spender: string) => Promise<any>;
|
|
8933
8931
|
approve: (spender: `0x${string}`, amount: string, owner: `0x${string}`) => Promise<`0x${string}` | null>;
|
|
8934
8932
|
priceUSD: () => Promise<any>;
|
|
8935
|
-
tokenUrl:
|
|
8933
|
+
tokenUrl: any;
|
|
8936
8934
|
}[]>;
|
|
8937
8935
|
swap(args: SwapParams, ctx?: ConfigContext): Promise<{
|
|
8938
8936
|
data: {
|
|
@@ -8983,7 +8981,8 @@ declare class BaseDBModule {
|
|
|
8983
8981
|
iopay: ReturnType<typeof postgres>;
|
|
8984
8982
|
nftmarket: ReturnType<typeof postgres>;
|
|
8985
8983
|
ch: ClickHouseSDK;
|
|
8986
|
-
|
|
8984
|
+
analysisDev: ClickHouseSDK;
|
|
8985
|
+
analysisProd: ClickHouseSDK;
|
|
8987
8986
|
constructor();
|
|
8988
8987
|
checkAuth(key: string): Promise<{
|
|
8989
8988
|
ok: boolean;
|
|
@@ -9013,7 +9012,107 @@ declare class Account extends BaseDBModule {
|
|
|
9013
9012
|
tokens: import("postgres").RowList<import("postgres").Row[]>;
|
|
9014
9013
|
}>;
|
|
9015
9014
|
}
|
|
9016
|
-
declare class
|
|
9015
|
+
declare class AnalysisDev extends BaseDBModule {
|
|
9016
|
+
checkAuth(key: string): Promise<{
|
|
9017
|
+
ok: boolean;
|
|
9018
|
+
message: string;
|
|
9019
|
+
authData: null;
|
|
9020
|
+
} | {
|
|
9021
|
+
ok: boolean;
|
|
9022
|
+
message: string;
|
|
9023
|
+
authData: {
|
|
9024
|
+
app_id: any;
|
|
9025
|
+
api_key: string;
|
|
9026
|
+
};
|
|
9027
|
+
}>;
|
|
9028
|
+
upload_event({ user_id, event_type, event_id, event }: {
|
|
9029
|
+
event_type: string;
|
|
9030
|
+
user_id: string;
|
|
9031
|
+
event_id: string;
|
|
9032
|
+
event: Record<string, any>;
|
|
9033
|
+
}, ctx?: {
|
|
9034
|
+
authData?: {
|
|
9035
|
+
app_id: string;
|
|
9036
|
+
api_key: string;
|
|
9037
|
+
};
|
|
9038
|
+
}): Promise<{
|
|
9039
|
+
ok: boolean;
|
|
9040
|
+
msg: any;
|
|
9041
|
+
}>;
|
|
9042
|
+
referral_code({ refer_id, }: {
|
|
9043
|
+
refer_id: string;
|
|
9044
|
+
}, ctx?: {
|
|
9045
|
+
authData?: {
|
|
9046
|
+
app_id: string;
|
|
9047
|
+
api_key: string;
|
|
9048
|
+
};
|
|
9049
|
+
}): Promise<{
|
|
9050
|
+
ok: boolean;
|
|
9051
|
+
referral_code: any;
|
|
9052
|
+
msg: string;
|
|
9053
|
+
} | {
|
|
9054
|
+
ok: boolean;
|
|
9055
|
+
msg: any;
|
|
9056
|
+
referral_code?: undefined;
|
|
9057
|
+
}>;
|
|
9058
|
+
create_refer({ refer_id, refer_id_type, user_id, device_id, data, }: {
|
|
9059
|
+
refer_id: string;
|
|
9060
|
+
refer_id_type: "referral_code" | "user_id";
|
|
9061
|
+
user_id: string;
|
|
9062
|
+
device_id: string;
|
|
9063
|
+
data: Record<string, any>;
|
|
9064
|
+
}, ctx?: {
|
|
9065
|
+
authData?: {
|
|
9066
|
+
app_id: string;
|
|
9067
|
+
api_key: string;
|
|
9068
|
+
};
|
|
9069
|
+
}): Promise<{
|
|
9070
|
+
ok: boolean;
|
|
9071
|
+
msg: any;
|
|
9072
|
+
}>;
|
|
9073
|
+
fetch_event({ event_id }: {
|
|
9074
|
+
event_id: string;
|
|
9075
|
+
}): Promise<Record<string, any>>;
|
|
9076
|
+
batch_fetch_event({ event_ids }: {
|
|
9077
|
+
event_ids: string[];
|
|
9078
|
+
}): Promise<any[] | {
|
|
9079
|
+
ok: boolean;
|
|
9080
|
+
msg: string;
|
|
9081
|
+
}>;
|
|
9082
|
+
fetch_user_point({ user_id, }: {
|
|
9083
|
+
user_id: string;
|
|
9084
|
+
}, ctx?: {
|
|
9085
|
+
authData?: {
|
|
9086
|
+
app_id: string;
|
|
9087
|
+
api_key: string;
|
|
9088
|
+
};
|
|
9089
|
+
}): Promise<{
|
|
9090
|
+
ok: boolean;
|
|
9091
|
+
point: any;
|
|
9092
|
+
msg?: undefined;
|
|
9093
|
+
} | {
|
|
9094
|
+
ok: boolean;
|
|
9095
|
+
msg: any;
|
|
9096
|
+
point?: undefined;
|
|
9097
|
+
}>;
|
|
9098
|
+
fetch_invitees_num({ user_id, }: {
|
|
9099
|
+
user_id: string;
|
|
9100
|
+
}, ctx?: {
|
|
9101
|
+
authData?: {
|
|
9102
|
+
app_id: string;
|
|
9103
|
+
api_key: string;
|
|
9104
|
+
};
|
|
9105
|
+
}): Promise<{
|
|
9106
|
+
ok: boolean;
|
|
9107
|
+
invitees_num: any;
|
|
9108
|
+
msg?: undefined;
|
|
9109
|
+
} | {
|
|
9110
|
+
ok: boolean;
|
|
9111
|
+
msg: any;
|
|
9112
|
+
invitees_num?: undefined;
|
|
9113
|
+
}>;
|
|
9114
|
+
}
|
|
9115
|
+
declare class AnalysisProd extends BaseDBModule {
|
|
9017
9116
|
checkAuth(key: string): Promise<{
|
|
9018
9117
|
ok: boolean;
|
|
9019
9118
|
message: string;
|
|
@@ -9317,7 +9416,8 @@ declare const modules$1: {
|
|
|
9317
9416
|
transaction: Transaction;
|
|
9318
9417
|
nft: NFT;
|
|
9319
9418
|
health: Health;
|
|
9320
|
-
analysis:
|
|
9419
|
+
"analysis-dev": AnalysisDev;
|
|
9420
|
+
"analysis-prod": AnalysisProd;
|
|
9321
9421
|
contract: Contract;
|
|
9322
9422
|
resource: Resource;
|
|
9323
9423
|
iopay: IoPay;
|
|
@@ -10397,7 +10497,10 @@ declare class Point {
|
|
|
10397
10497
|
}): Promise<any>;
|
|
10398
10498
|
fetch_tasks({ user_id }: {
|
|
10399
10499
|
user_id: string;
|
|
10400
|
-
}): Promise<any
|
|
10500
|
+
}): Promise<any[] | {
|
|
10501
|
+
ok: boolean;
|
|
10502
|
+
msg: string;
|
|
10503
|
+
}>;
|
|
10401
10504
|
fetch_point({ user_id }: {
|
|
10402
10505
|
user_id: string;
|
|
10403
10506
|
}): Promise<any>;
|
|
@@ -10407,6 +10510,7 @@ declare class Point {
|
|
|
10407
10510
|
}
|
|
10408
10511
|
declare const modules$4: {
|
|
10409
10512
|
point: Point;
|
|
10513
|
+
health: Health;
|
|
10410
10514
|
};
|
|
10411
10515
|
export type IoPayModuleType = typeof modules$4;
|
|
10412
10516
|
export type IotexscanAdapterType<T extends Record<string, Record<string, any>>> = {
|