@iotexproject/kit 0.1.23 → 0.1.25
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 +33 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6724,6 +6724,16 @@ declare class Mimo {
|
|
|
6724
6724
|
getAllTokens({ account }: {
|
|
6725
6725
|
account: `0x${string}`;
|
|
6726
6726
|
}): Promise<any>;
|
|
6727
|
+
getBridgeTokensBalance({ addresses }: {
|
|
6728
|
+
addresses: `0x${string}`[];
|
|
6729
|
+
}): Promise<never[] | {
|
|
6730
|
+
[k: string]: any;
|
|
6731
|
+
}>;
|
|
6732
|
+
depositWithXcashier({ receiptAddress, chainId, contractAddress }: {
|
|
6733
|
+
receiptAddress: `0x${string}`;
|
|
6734
|
+
chainId: string;
|
|
6735
|
+
contractAddress: `0x${string}`;
|
|
6736
|
+
}): Promise<unknown>;
|
|
6727
6737
|
}
|
|
6728
6738
|
declare class MockBucketEntity {
|
|
6729
6739
|
address: `0x${string}`;
|
|
@@ -8517,7 +8527,13 @@ declare class Staking {
|
|
|
8517
8527
|
}>;
|
|
8518
8528
|
delegate_detail(args: {
|
|
8519
8529
|
onChainName: string;
|
|
8520
|
-
}): Promise<
|
|
8530
|
+
}): Promise<{
|
|
8531
|
+
data: any;
|
|
8532
|
+
error?: undefined;
|
|
8533
|
+
} | {
|
|
8534
|
+
error: unknown;
|
|
8535
|
+
data?: undefined;
|
|
8536
|
+
}>;
|
|
8521
8537
|
}
|
|
8522
8538
|
declare class utils {
|
|
8523
8539
|
erc20(args: {
|
|
@@ -8800,10 +8816,11 @@ declare class Analysis extends BaseDBModule {
|
|
|
8800
8816
|
api_key: string;
|
|
8801
8817
|
};
|
|
8802
8818
|
}>;
|
|
8803
|
-
create_ref({ device_id, refer_id, user_id }: {
|
|
8819
|
+
create_ref({ device_id, refer_id, user_id, point }: {
|
|
8804
8820
|
device_id: string;
|
|
8805
8821
|
refer_id: string;
|
|
8806
8822
|
user_id: string;
|
|
8823
|
+
point?: number;
|
|
8807
8824
|
}, authData?: {
|
|
8808
8825
|
app_id: string;
|
|
8809
8826
|
api_key: string;
|
|
@@ -8811,7 +8828,9 @@ declare class Analysis extends BaseDBModule {
|
|
|
8811
8828
|
ok: boolean;
|
|
8812
8829
|
msg: any;
|
|
8813
8830
|
}>;
|
|
8814
|
-
upload_event({ event }: {
|
|
8831
|
+
upload_event({ user_id, type, event }: {
|
|
8832
|
+
type: string;
|
|
8833
|
+
user_id: string;
|
|
8815
8834
|
event: Record<string, any>;
|
|
8816
8835
|
}, authData?: {
|
|
8817
8836
|
app_id: string;
|
|
@@ -10009,12 +10028,20 @@ declare class Point {
|
|
|
10009
10028
|
message: string;
|
|
10010
10029
|
authData: {
|
|
10011
10030
|
sub: string | undefined;
|
|
10012
|
-
data: any;
|
|
10013
10031
|
};
|
|
10014
10032
|
}>;
|
|
10015
|
-
upload_event(args
|
|
10033
|
+
upload_event(args: {
|
|
10034
|
+
user_id: string;
|
|
10035
|
+
event_name: string;
|
|
10036
|
+
point: number;
|
|
10037
|
+
} & Record<string, any>, authData?: {
|
|
10038
|
+
sub: string;
|
|
10039
|
+
}): Promise<any>;
|
|
10040
|
+
create_ref(args: {
|
|
10041
|
+
refer_id: string;
|
|
10042
|
+
user_id: string;
|
|
10043
|
+
}, authData?: {
|
|
10016
10044
|
sub: string;
|
|
10017
|
-
data: Record<string, any>;
|
|
10018
10045
|
}): Promise<any>;
|
|
10019
10046
|
}
|
|
10020
10047
|
declare const modules$4: {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var U=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{for(let K in b){if(typeof b[K]==="object")b[K]=JSON.stringify(b[K],(Q,N)=>typeof N==="bigint"?N.toString():N);if(b[K]==null)delete b[K]}const H=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;let D;if(z)D=await fetch(H,{headers:{...z}});else D=await fetch(H);return D.json()}}})}}),S=async({args:j={},prop:z,method:L,url:B,fetchRequestInit:G})=>{if(!G?.method||G?.method==="GET"){for(let b in j){if(typeof j[b]==="object")j[b]=JSON.stringify(j[b],(H,D)=>typeof D==="bigint"?D.toString():D);if(j[b]==null)delete j[b]}const J=`${B}/${String(z)}/${String(L)}?${new URLSearchParams(j).toString()}`;return(await fetch(J)).json()}if(G?.method==="POST"){const J=`${B}/${String(z)}/${String(L)}`;return(await fetch(J,{...G,body:JSON.stringify(j)})).json()}},V=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{return S({args:b,prop:B,method:C,url:j,fetchRequestInit:z})}}})}}),W=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{return S({args:b,prop:B,method:C,url:j,fetchRequestInit:z})}}})}}),X=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{const H=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;return(await fetch(H,{method:"GET",...z})).json()}}})}}),Y=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{let H=!1;for(let N in b){if(typeof b[N]==="object")H=!0;if(b[N]==null)delete b[N]}let D,K,Q={};if(H)D=`${j}/${String(B)}/${String(C)}`;else D=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;if(z)Q.headers={...z};if(H)Q.method="POST",Q.body=JSON.stringify(b);return K=await fetch(D,Q),K.json()}}})}});export{X as createIotexscanClient,Y as createIoidClient,W as createClientWithIoPayServer,V as createClientWithDBServer,U as createClient};
|