@iotexproject/kit 0.1.35 → 0.1.36
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 +47 -46
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8596,6 +8596,13 @@ declare class Staking {
|
|
|
8596
8596
|
epochRewardPortion: number;
|
|
8597
8597
|
blockRewardPortion: number;
|
|
8598
8598
|
}): Promise<any>;
|
|
8599
|
+
getRewardDistribution(args: {
|
|
8600
|
+
ownerAddress: `0x${string}` | `io${string}`;
|
|
8601
|
+
}): Promise<{
|
|
8602
|
+
foundationRewardPortion: any;
|
|
8603
|
+
epochRewardPortion: any;
|
|
8604
|
+
blockRewardPortion: any;
|
|
8605
|
+
} | null>;
|
|
8599
8606
|
candidateUpdate({ name, operatorAddress, rewardAddress }: {
|
|
8600
8607
|
name: string;
|
|
8601
8608
|
operatorAddress: `0x${string}`;
|
|
@@ -8826,6 +8833,27 @@ declare class PointsPlatform {
|
|
|
8826
8833
|
error: unknown;
|
|
8827
8834
|
data?: undefined;
|
|
8828
8835
|
}>;
|
|
8836
|
+
points_range(args: {
|
|
8837
|
+
user: string;
|
|
8838
|
+
start: number;
|
|
8839
|
+
end: number;
|
|
8840
|
+
}): Promise<{
|
|
8841
|
+
data: any;
|
|
8842
|
+
error?: undefined;
|
|
8843
|
+
} | {
|
|
8844
|
+
error: unknown;
|
|
8845
|
+
data?: undefined;
|
|
8846
|
+
}>;
|
|
8847
|
+
daily_points_detail(args: {
|
|
8848
|
+
user: string;
|
|
8849
|
+
dayTimestamp: number;
|
|
8850
|
+
}): Promise<{
|
|
8851
|
+
data: any;
|
|
8852
|
+
error?: undefined;
|
|
8853
|
+
} | {
|
|
8854
|
+
error: unknown;
|
|
8855
|
+
data?: undefined;
|
|
8856
|
+
}>;
|
|
8829
8857
|
}
|
|
8830
8858
|
declare const modules: {
|
|
8831
8859
|
mimo: Mimo;
|
|
@@ -8852,7 +8880,7 @@ declare class BaseDBModule {
|
|
|
8852
8880
|
iopay: ReturnType<typeof postgres>;
|
|
8853
8881
|
nftmarket: ReturnType<typeof postgres>;
|
|
8854
8882
|
ch: ClickHouseSDK;
|
|
8855
|
-
analysis:
|
|
8883
|
+
analysis: ClickHouseSDK;
|
|
8856
8884
|
constructor();
|
|
8857
8885
|
checkAuth(key: string): Promise<{
|
|
8858
8886
|
ok: boolean;
|
|
@@ -8940,21 +8968,11 @@ declare class Analysis extends BaseDBModule {
|
|
|
8940
8968
|
ok: boolean;
|
|
8941
8969
|
msg: any;
|
|
8942
8970
|
}>;
|
|
8943
|
-
fetch_event({ event_id
|
|
8971
|
+
fetch_event({ event_id }: {
|
|
8944
8972
|
event_id: string;
|
|
8945
|
-
}, ctx?: {
|
|
8946
|
-
authData?: {
|
|
8947
|
-
app_id: string;
|
|
8948
|
-
api_key: string;
|
|
8949
|
-
};
|
|
8950
8973
|
}): Promise<Record<string, any>>;
|
|
8951
|
-
batch_fetch_event({ event_ids
|
|
8974
|
+
batch_fetch_event({ event_ids }: {
|
|
8952
8975
|
event_ids: string[];
|
|
8953
|
-
}, ctx?: {
|
|
8954
|
-
authData?: {
|
|
8955
|
-
app_id: string;
|
|
8956
|
-
api_key: string;
|
|
8957
|
-
};
|
|
8958
8976
|
}): Promise<any[] | {
|
|
8959
8977
|
ok: boolean;
|
|
8960
8978
|
msg: string;
|
|
@@ -8968,7 +8986,7 @@ declare class Analysis extends BaseDBModule {
|
|
|
8968
8986
|
};
|
|
8969
8987
|
}): Promise<{
|
|
8970
8988
|
ok: boolean;
|
|
8971
|
-
point:
|
|
8989
|
+
point: any;
|
|
8972
8990
|
msg?: undefined;
|
|
8973
8991
|
} | {
|
|
8974
8992
|
ok: boolean;
|
|
@@ -9277,7 +9295,6 @@ declare const modules$2: {
|
|
|
9277
9295
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9278
9296
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9279
9297
|
ch: ClickHouseSDK;
|
|
9280
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9281
9298
|
checkAuth(key: string): Promise<{
|
|
9282
9299
|
ok: boolean;
|
|
9283
9300
|
message: string;
|
|
@@ -9309,7 +9326,6 @@ declare const modules$2: {
|
|
|
9309
9326
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9310
9327
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9311
9328
|
ch: ClickHouseSDK;
|
|
9312
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9313
9329
|
checkAuth(key: string): Promise<{
|
|
9314
9330
|
ok: boolean;
|
|
9315
9331
|
message: string;
|
|
@@ -9472,7 +9488,6 @@ declare const modules$2: {
|
|
|
9472
9488
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9473
9489
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9474
9490
|
ch: ClickHouseSDK;
|
|
9475
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9476
9491
|
checkAuth(key: string): Promise<{
|
|
9477
9492
|
ok: boolean;
|
|
9478
9493
|
message: string;
|
|
@@ -9759,7 +9774,6 @@ declare const modules$2: {
|
|
|
9759
9774
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9760
9775
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9761
9776
|
ch: ClickHouseSDK;
|
|
9762
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9763
9777
|
checkAuth(key: string): Promise<{
|
|
9764
9778
|
ok: boolean;
|
|
9765
9779
|
message: string;
|
|
@@ -9793,7 +9807,6 @@ declare const modules$2: {
|
|
|
9793
9807
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9794
9808
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9795
9809
|
ch: ClickHouseSDK;
|
|
9796
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9797
9810
|
checkAuth(key: string): Promise<{
|
|
9798
9811
|
ok: boolean;
|
|
9799
9812
|
message: string;
|
|
@@ -9837,7 +9850,6 @@ declare const modules$2: {
|
|
|
9837
9850
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9838
9851
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9839
9852
|
ch: ClickHouseSDK;
|
|
9840
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9841
9853
|
checkAuth(key: string): Promise<{
|
|
9842
9854
|
ok: boolean;
|
|
9843
9855
|
message: string;
|
|
@@ -9970,7 +9982,6 @@ declare const modules$2: {
|
|
|
9970
9982
|
iopay: ReturnType<typeof import("postgres")>;
|
|
9971
9983
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9972
9984
|
ch: ClickHouseSDK;
|
|
9973
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
9974
9985
|
checkAuth(key: string): Promise<{
|
|
9975
9986
|
ok: boolean;
|
|
9976
9987
|
message: string;
|
|
@@ -10073,7 +10084,12 @@ declare const modules$2: {
|
|
|
10073
10084
|
address: string;
|
|
10074
10085
|
offset?: number | undefined;
|
|
10075
10086
|
page?: number | undefined;
|
|
10076
|
-
}>, import("zod").ZodAny,
|
|
10087
|
+
}>, import("zod").ZodAny, {
|
|
10088
|
+
TokenAddress: string;
|
|
10089
|
+
TokenName: any;
|
|
10090
|
+
TokenSymbol: any;
|
|
10091
|
+
TokenQuantity: string;
|
|
10092
|
+
}[]>;
|
|
10077
10093
|
addresstokennftinventory: KitModuleFunction<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
10078
10094
|
address: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10079
10095
|
contractaddress: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
@@ -10098,7 +10114,6 @@ declare const modules$2: {
|
|
|
10098
10114
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10099
10115
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10100
10116
|
ch: ClickHouseSDK;
|
|
10101
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
10102
10117
|
checkAuth(key: string): Promise<{
|
|
10103
10118
|
ok: boolean;
|
|
10104
10119
|
message: string;
|
|
@@ -10162,7 +10177,6 @@ declare const modules$2: {
|
|
|
10162
10177
|
iopay: ReturnType<typeof import("postgres")>;
|
|
10163
10178
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10164
10179
|
ch: ClickHouseSDK;
|
|
10165
|
-
analysis: ReturnType<typeof import("postgres")>;
|
|
10166
10180
|
checkAuth(key: string): Promise<{
|
|
10167
10181
|
ok: boolean;
|
|
10168
10182
|
message: string;
|
|
@@ -10238,8 +10252,9 @@ declare class Point {
|
|
|
10238
10252
|
sub: string | undefined;
|
|
10239
10253
|
};
|
|
10240
10254
|
}>;
|
|
10241
|
-
upload_event({ action_id, }: {
|
|
10255
|
+
upload_event({ action_id, device_id, }: {
|
|
10242
10256
|
action_id: number;
|
|
10257
|
+
device_id: string;
|
|
10243
10258
|
}, ctx?: {
|
|
10244
10259
|
authData?: {
|
|
10245
10260
|
sub: string;
|
|
@@ -10260,32 +10275,18 @@ declare class Point {
|
|
|
10260
10275
|
}): Promise<any>;
|
|
10261
10276
|
fetch_event({ event_id }: {
|
|
10262
10277
|
event_id: string;
|
|
10263
|
-
}, ctx?: {
|
|
10264
|
-
authData?: {
|
|
10265
|
-
sub: string;
|
|
10266
|
-
};
|
|
10267
10278
|
}): Promise<any>;
|
|
10268
|
-
batch_fetch_event({ event_ids
|
|
10279
|
+
batch_fetch_event({ event_ids }: {
|
|
10269
10280
|
event_ids: string[];
|
|
10270
|
-
}, ctx?: {
|
|
10271
|
-
authData?: {
|
|
10272
|
-
sub: string;
|
|
10273
|
-
};
|
|
10274
10281
|
}): Promise<any>;
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
sub: string;
|
|
10278
|
-
};
|
|
10282
|
+
fetch_tasks({ user_id }: {
|
|
10283
|
+
user_id: string;
|
|
10279
10284
|
}): Promise<any>;
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
sub: string;
|
|
10283
|
-
};
|
|
10285
|
+
fetch_point({ user_id }: {
|
|
10286
|
+
user_id: string;
|
|
10284
10287
|
}): Promise<any>;
|
|
10285
|
-
fetch_invitees_num(
|
|
10286
|
-
|
|
10287
|
-
sub: string;
|
|
10288
|
-
};
|
|
10288
|
+
fetch_invitees_num({ user_id }: {
|
|
10289
|
+
user_id: string;
|
|
10289
10290
|
}): Promise<any>;
|
|
10290
10291
|
}
|
|
10291
10292
|
declare const modules$4: {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L=({url:A="http://localhost:9527",ctx:B}={})=>new Proxy({},{get(G,C,j){return new Proxy({},{get(z,D){return async(T)=>{for(let E in T){if(typeof T[E]==="object")T[E]=JSON.stringify(T[E],(J,H)=>typeof H==="bigint"?H.toString():H);if(T[E]==null)delete T[E]}const w=`${A}/${String(C)}/${String(D)}?${new URLSearchParams(T).toString()}`;let b;if(B)b=await fetch(w,{headers:{...B}});else b=await fetch(w);return b.json()}}})}}),K=async({args:A={},prop:B,method:G,url:C,fetchRequestInit:j})=>{if(!j?.method||j?.method==="GET"){for(let T in A){if(typeof A[T]==="object")A[T]=JSON.stringify(A[T],(w,b)=>typeof b==="bigint"?b.toString():b);if(A[T]==null)delete A[T]}const z=`${C}/${String(B)}/${String(G)}?${new URLSearchParams(A).toString()}`;return(await fetch(z,{...j})).json()}if(j?.method==="POST"){const z=`${C}/${String(B)}/${String(G)}`;return(await fetch(z,{...j,body:JSON.stringify(A)})).json()}},N=({url:A="http://localhost:9527",fetchRequestInit:B})=>new Proxy({},{get(G,C,j){return new Proxy({},{get(z,D){return async(T)=>{return K({args:T,prop:C,method:D,url:A,fetchRequestInit:B})}}})}}),Q=({url:A="http://localhost:9527",fetchRequestInit:B})=>new Proxy({},{get(G,C,j){return new Proxy({},{get(z,D){return async(T)=>{return K({args:T,prop:C,method:D,url:A,fetchRequestInit:B})}}})}}),S=({url:A="http://localhost:9527",fetchRequestInit:B})=>new Proxy({},{get(G,C,j){return new Proxy({},{get(z,D){return async(T)=>{const w=`${A}/${String(C)}/${String(D)}?${new URLSearchParams(T).toString()}`;return(await fetch(w,{method:"GET",...B})).json()}}})}}),U=({url:A="http://localhost:9527",ctx:B}={})=>new Proxy({},{get(G,C,j){return new Proxy({},{get(z,D){return async(T)=>{let w=!1;for(let H in T){if(typeof T[H]==="object")w=!0;if(T[H]==null)delete T[H]}let b,E,J={};if(w)b=`${A}/${String(C)}/${String(D)}`;else b=`${A}/${String(C)}/${String(D)}?${new URLSearchParams(T).toString()}`;if(B)J.headers={...B};if(w)J.method="POST",J.body=JSON.stringify(T);return E=await fetch(b,J),E.json()}}})}});export{S as createIotexscanClient,U as createIoidClient,Q as createClientWithIoPayServer,N as createClientWithDBServer,L as createClient};
|