@rabby-wallet/rabby-api 0.6.22-alpha.0 → 0.6.22-alpha.1

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Install
4
4
 
5
5
  ```bash
6
- npm install rabby-api @debank/common
6
+ npm install @rabby-wallet/rabby-api @debank/common
7
7
  ```
8
8
 
9
9
  ## Usage
@@ -13,8 +13,8 @@ import { OpenApiService } from 'rabby-api';
13
13
 
14
14
  const service = new OpenApiService({
15
15
  store: {
16
- host: 'https://api.rabby.io'
17
- }
16
+ host: 'https://api.rabby.io',
17
+ },
18
18
  });
19
19
 
20
20
  // init service
package/dist/index.d.ts CHANGED
@@ -334,6 +334,7 @@ export declare class OpenApiService {
334
334
  tx: Tx;
335
335
  push_type: TxPushType;
336
336
  low_gas_deadline?: number;
337
+ origin?: string;
337
338
  }) => Promise<{
338
339
  req: TxRequest;
339
340
  }>;
@@ -345,5 +346,29 @@ export declare class OpenApiService {
345
346
  req: TxRequest;
346
347
  }>;
347
348
  mempoolChecks: (txId: string, chainId: string) => Promise<MempoolCheckDetail[]>;
349
+ walletSupportChain: (params: {
350
+ chain_id: string;
351
+ user_addr: string;
352
+ }) => Promise<{
353
+ is_success: boolean;
354
+ count: number;
355
+ }>;
356
+ walletSupportOrigin: (params: {
357
+ origin: string;
358
+ user_addr: string;
359
+ text: string;
360
+ }) => Promise<{
361
+ is_success: boolean;
362
+ count: number;
363
+ }>;
364
+ walletSupportSelector: (params: {
365
+ selector: string;
366
+ user_addr: string;
367
+ chain_id: string;
368
+ contract_id: string;
369
+ }) => Promise<{
370
+ is_success: boolean;
371
+ count: number;
372
+ }>;
348
373
  }
349
374
  export {};
package/dist/index.js CHANGED
@@ -780,6 +780,18 @@ export class OpenApiService {
780
780
  } }, this._getRequestOptions((_r = getChainByNetwork(chainId)) === null || _r === void 0 ? void 0 : _r.serverId)));
781
781
  return data;
782
782
  });
783
+ this.walletSupportChain = (params) => __awaiter(this, void 0, void 0, function* () {
784
+ const { data } = yield this.request.post('/v1/wallet/support_chain', params);
785
+ return data;
786
+ });
787
+ this.walletSupportOrigin = (params) => __awaiter(this, void 0, void 0, function* () {
788
+ const { data } = yield this.request.post('/v1/wallet/support_origin', params);
789
+ return data;
790
+ });
791
+ this.walletSupportSelector = (params) => __awaiter(this, void 0, void 0, function* () {
792
+ const { data } = yield this.request.post('/v1/wallet/support_selector', params);
793
+ return data;
794
+ });
783
795
  this.store = store;
784
796
  this.adapter = adapter;
785
797
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.6.22-alpha.0",
3
+ "version": "0.6.22-alpha.1",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"