@iotexproject/kit 0.0.59 → 0.0.61

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 CHANGED
@@ -7063,7 +7063,13 @@ declare class Staking {
7063
7063
  NFTBucketChangeDelegate(args: {
7064
7064
  bucketIndex: string;
7065
7065
  delegate: `0x${string}`;
7066
- type: "v1" | "v2";
7066
+ version: "v1" | "v2";
7067
+ }): Promise<any>;
7068
+ NFTBucketRestake(args: {
7069
+ bucketIndex: string;
7070
+ duration: string;
7071
+ version: "v1" | "v2";
7072
+ newAmount?: string;
7067
7073
  }): Promise<any>;
7068
7074
  }
7069
7075
  declare class utils {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var z=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}}),A=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(j,x,q){return new Proxy({},{get(t,R){return async(f)=>{for(let n in f)if(Array.isArray(f[n]))f[n]=JSON.stringify(f[n]);const $=`${c}/${String(x)}/${String(R)}?${new URLSearchParams(f).toString()}`;return(await fetch($)).json()}}})}});export{A as createClientWithDBServer,z as createClient};
1
+ var G=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}}),H=({url:c="http://localhost:9527"}={})=>new Proxy({},{get(B,j,C){return new Proxy({},{get(D,q){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const z=`${c}/${String(j)}/${String(q)}?${new URLSearchParams(f).toString()}`;return(await fetch(z)).json()}}})}});export{H as createClientWithDBServer,G as createClient};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.59",
5
+ "version": "v0.0.61",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {