@iotexproject/kit 0.1.41 → 0.1.43
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 +65 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4114,6 +4114,7 @@ declare class VerifyingProxyEntity {
|
|
|
4114
4114
|
verifier: () => Promise<any>;
|
|
4115
4115
|
deviceGauge: GaugeEntity;
|
|
4116
4116
|
projectDeviceAllowance(): Promise<number | null>;
|
|
4117
|
+
projectInvalidDevice(): Promise<number | null>;
|
|
4117
4118
|
projectMetadata(name: string, projectId: string): Promise<ProjectMetadata | null>;
|
|
4118
4119
|
projectAppliedAmount(): Promise<string>;
|
|
4119
4120
|
projectActivedAmount(): Promise<string>;
|
|
@@ -4150,6 +4151,7 @@ declare class IoID {
|
|
|
4150
4151
|
projectType: true;
|
|
4151
4152
|
deviceNFT: true;
|
|
4152
4153
|
projectDeviceAllowance: true;
|
|
4154
|
+
projectInvalidDevice: true;
|
|
4153
4155
|
verifier: true;
|
|
4154
4156
|
deviceGauge: {
|
|
4155
4157
|
address: true;
|
|
@@ -8899,7 +8901,12 @@ declare class BondingCurve {
|
|
|
8899
8901
|
value?: undefined;
|
|
8900
8902
|
}>;
|
|
8901
8903
|
upsertProject(args: CreateProjectParams, ctx?: ConfigContext): Promise<postgres.Row>;
|
|
8902
|
-
projectList(args: {}, ctx?: ConfigContext): Promise<postgres.
|
|
8904
|
+
projectList(args: {}, ctx?: ConfigContext): Promise<postgres.Row[] | undefined>;
|
|
8905
|
+
myProjectList(args: {
|
|
8906
|
+
owner: string;
|
|
8907
|
+
}, ctx?: ConfigContext): Promise<postgres.RowList<postgres.Row[]> | {
|
|
8908
|
+
error: string;
|
|
8909
|
+
} | undefined>;
|
|
8903
8910
|
projectDetail(args: {
|
|
8904
8911
|
projectName: string;
|
|
8905
8912
|
}, ctx?: ConfigContext): Promise<postgres.Row | undefined>;
|
|
@@ -8984,6 +8991,7 @@ declare class BaseDBModule {
|
|
|
8984
8991
|
ch: ClickHouseSDK;
|
|
8985
8992
|
analysisDev: ClickHouseSDK;
|
|
8986
8993
|
analysisProd: ClickHouseSDK;
|
|
8994
|
+
microServiceCenter: ReturnType<typeof postgres>;
|
|
8987
8995
|
constructor();
|
|
8988
8996
|
checkAuth(key: string): Promise<{
|
|
8989
8997
|
ok: boolean;
|
|
@@ -9410,6 +9418,61 @@ declare class Mimo$1 extends BaseDBModule {
|
|
|
9410
9418
|
last24hFee: string;
|
|
9411
9419
|
}>;
|
|
9412
9420
|
}
|
|
9421
|
+
declare class LearnToEarn extends BaseDBModule {
|
|
9422
|
+
checkAuth(key: string): Promise<{
|
|
9423
|
+
ok: boolean;
|
|
9424
|
+
message: string;
|
|
9425
|
+
authData: null;
|
|
9426
|
+
} | {
|
|
9427
|
+
ok: boolean;
|
|
9428
|
+
message: string;
|
|
9429
|
+
authData: {
|
|
9430
|
+
app_id: any;
|
|
9431
|
+
};
|
|
9432
|
+
}>;
|
|
9433
|
+
questions({ post_id }: {
|
|
9434
|
+
post_id: string;
|
|
9435
|
+
}, ctx?: {
|
|
9436
|
+
authData?: {
|
|
9437
|
+
app_id: string;
|
|
9438
|
+
};
|
|
9439
|
+
}): Promise<{
|
|
9440
|
+
ok: boolean;
|
|
9441
|
+
message: string;
|
|
9442
|
+
data?: undefined;
|
|
9443
|
+
} | {
|
|
9444
|
+
data: import("postgres").RowList<import("postgres").Row[]>;
|
|
9445
|
+
ok: boolean;
|
|
9446
|
+
message?: undefined;
|
|
9447
|
+
}>;
|
|
9448
|
+
reply({ post_id, ids, answers }: {
|
|
9449
|
+
post_id: string;
|
|
9450
|
+
ids: number[];
|
|
9451
|
+
answers: string[];
|
|
9452
|
+
}, ctx?: {
|
|
9453
|
+
authData?: {
|
|
9454
|
+
app_id: string;
|
|
9455
|
+
};
|
|
9456
|
+
}): Promise<{
|
|
9457
|
+
ok: boolean;
|
|
9458
|
+
message: string;
|
|
9459
|
+
msg?: undefined;
|
|
9460
|
+
isCorrect?: undefined;
|
|
9461
|
+
wrongIds?: undefined;
|
|
9462
|
+
} | {
|
|
9463
|
+
ok: boolean;
|
|
9464
|
+
msg: string;
|
|
9465
|
+
message?: undefined;
|
|
9466
|
+
isCorrect?: undefined;
|
|
9467
|
+
wrongIds?: undefined;
|
|
9468
|
+
} | {
|
|
9469
|
+
isCorrect: boolean;
|
|
9470
|
+
wrongIds: number[];
|
|
9471
|
+
ok: boolean;
|
|
9472
|
+
message?: undefined;
|
|
9473
|
+
msg?: undefined;
|
|
9474
|
+
}>;
|
|
9475
|
+
}
|
|
9413
9476
|
declare const modules$1: {
|
|
9414
9477
|
account: Account;
|
|
9415
9478
|
analyzer: Analyzer;
|
|
@@ -9419,6 +9482,7 @@ declare const modules$1: {
|
|
|
9419
9482
|
health: Health;
|
|
9420
9483
|
"analysis-dev": AnalysisDev;
|
|
9421
9484
|
"analysis-prod": AnalysisProd;
|
|
9485
|
+
"learn-to-earn": LearnToEarn;
|
|
9422
9486
|
contract: Contract;
|
|
9423
9487
|
resource: Resource;
|
|
9424
9488
|
iopay: IoPay;
|