@iotexproject/kit 0.0.87 → 0.0.88
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 +10 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4182,6 +4182,16 @@ declare class IoID {
|
|
|
4182
4182
|
data?: undefined;
|
|
4183
4183
|
chainId?: undefined;
|
|
4184
4184
|
}>;
|
|
4185
|
+
registedDevices(args: {
|
|
4186
|
+
address: `0x${string}`;
|
|
4187
|
+
}): Promise<{
|
|
4188
|
+
index: bigint;
|
|
4189
|
+
wallet: never;
|
|
4190
|
+
ioid: never;
|
|
4191
|
+
balance: bigint;
|
|
4192
|
+
}[] | {
|
|
4193
|
+
error: unknown;
|
|
4194
|
+
}>;
|
|
4185
4195
|
}
|
|
4186
4196
|
declare class VoterEntity {
|
|
4187
4197
|
address: `0x${string}`;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var C=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),D=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),E=({url:$="http://localhost:9527",fetchRequestInit:j})=>new Proxy({},{get(c,w,A){return new Proxy({},{get(f,x){return async(b)=>{const z=`${$}/${String(w)}/${String(x)}`;return(await fetch(z,{method:"POST",...j,body:JSON.stringify(b)})).json()}}})}});export{E as createClientWithWriteDBServer,D as createClientWithDBServer,C as createClient};
|