@iotexproject/kit 0.0.96 → 0.0.98

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
@@ -4109,8 +4109,8 @@ declare class VerifyingProxyEntity {
4109
4109
  ];
4110
4110
  owner: () => Promise<any>;
4111
4111
  verifier: () => Promise<any>;
4112
- deviceNFT: () => Promise<any>;
4113
4112
  deviceGauge: GaugeEntity;
4113
+ projectDeviceAllowance(): Promise<number | null>;
4114
4114
  projectMetadata(): Promise<ProjectMetadata | null>;
4115
4115
  projectAppliedAmount(): Promise<string>;
4116
4116
  projectActivedAmount(): Promise<string>;
@@ -4119,10 +4119,12 @@ declare class VerifyingProxyEntity {
4119
4119
  projectAddress(): Promise<"" | `0x${string}`>;
4120
4120
  project(): Promise<string>;
4121
4121
  projectName(): Promise<string>;
4122
+ deviceNFT(): Promise<"" | `0x${string}`>;
4122
4123
  projectType(): Promise<number | "">;
4123
4124
  setDeviceGauge: (_gauge: `0x${string}`) => Promise<any>;
4124
4125
  setMetadata: (_name: string, _value: `0x${string}`) => Promise<any>;
4125
4126
  applyIoIDs: (_amount: string) => Promise<any>;
4127
+ incrementMinterAllowance: (_amount: string) => Promise<any>;
4126
4128
  }
4127
4129
  declare class IoID {
4128
4130
  verfiyerProxyList(args: {
@@ -4137,6 +4139,7 @@ declare class IoID {
4137
4139
  projectType: true;
4138
4140
  projectMetadata: true;
4139
4141
  deviceNFT: true;
4142
+ projectDeviceAllowance: true;
4140
4143
  verifier: true;
4141
4144
  deviceGauge: {
4142
4145
  address: true;
@@ -4180,6 +4183,20 @@ declare class IoID {
4180
4183
  data?: undefined;
4181
4184
  chainId?: undefined;
4182
4185
  }>;
4186
+ incrementMinterAllowance(args: {
4187
+ amount: string;
4188
+ address: `0x${string}`;
4189
+ }): Promise<{
4190
+ address: `0x${string}`;
4191
+ data: any;
4192
+ chainId: string;
4193
+ error?: undefined;
4194
+ } | {
4195
+ error: unknown;
4196
+ address?: undefined;
4197
+ data?: undefined;
4198
+ chainId?: undefined;
4199
+ }>;
4183
4200
  applyIoIDs(args: {
4184
4201
  address: `0x${string}`;
4185
4202
  amount: number;
@@ -8293,6 +8310,15 @@ declare class Health {
8293
8310
  message: string;
8294
8311
  };
8295
8312
  }
8313
+ declare class Resource {
8314
+ getComponent({ id }: {
8315
+ id: "banner-latest";
8316
+ }): Promise<{
8317
+ id: "banner-latest";
8318
+ fullScreenData: string;
8319
+ mobileData: string;
8320
+ }>;
8321
+ }
8296
8322
  declare const modules: {
8297
8323
  mimo: Mimo;
8298
8324
  staking: Staking;
@@ -8302,6 +8328,7 @@ declare const modules: {
8302
8328
  utils: utils;
8303
8329
  hub: UseHub;
8304
8330
  health: Health;
8331
+ resource: Resource;
8305
8332
  };
8306
8333
  export type ModuleType = typeof modules;
8307
8334
  declare class ClickHouseSDK {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var L=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),M=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),N=({url:z="http://localhost:9527",fetchRequestInit:F})=>new Proxy({},{get(C,G,J){return new Proxy({},{get(D,x){return async(B)=>{const H=`${z}/${String(G)}/${String(x)}`;return(await fetch(H,{method:"POST",...F,body:JSON.stringify(B)})).json()}}})}});export{N as createClientWithWriteDBServer,M as createClientWithDBServer,L as createClient};
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};
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.96",
5
+ "version": "v0.0.98",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {