@rabby-wallet/rabby-api 0.6.19 → 0.6.20

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
@@ -313,5 +313,17 @@ export declare class OpenApiService {
313
313
  is_success: boolean;
314
314
  inner_id: number;
315
315
  }>;
316
+ userHasRequestedFaucet: (params: {
317
+ chain_id: string;
318
+ user_addr: string;
319
+ }) => Promise<{
320
+ has_requested: boolean;
321
+ }>;
322
+ requestFaucet: (params: {
323
+ chain_id: string;
324
+ user_addr: string;
325
+ }) => Promise<{
326
+ is_success: boolean;
327
+ }>;
316
328
  }
317
329
  export {};
package/dist/index.js CHANGED
@@ -731,6 +731,16 @@ export class OpenApiService {
731
731
  });
732
732
  return data;
733
733
  });
734
+ this.userHasRequestedFaucet = (params) => __awaiter(this, void 0, void 0, function* () {
735
+ const { data } = yield this.request.get('/v1/faucet/user_has_requested', {
736
+ params,
737
+ });
738
+ return data;
739
+ });
740
+ this.requestFaucet = (params) => __awaiter(this, void 0, void 0, function* () {
741
+ const { data } = yield this.request.post('/v1/faucet/request', Object.assign({}, params));
742
+ return data;
743
+ });
734
744
  this.store = store;
735
745
  this.adapter = adapter;
736
746
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.6.19",
3
+ "version": "0.6.20",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"