@rabby-wallet/rabby-api 0.9.41-beta.0 → 0.9.41-beta.11

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
@@ -1,28 +1,28 @@
1
- # rabby-api
2
-
3
- ## Install
4
-
5
- ```bash
6
- npm install @rabby-wallet/rabby-api @debank/common
7
- ```
8
-
9
- ## Usage
10
-
11
- ```ts
12
- import { OpenApiService } from '@rabby-wallet/rabby-api';
13
- import { WebSignApiPlugin } from '@rabby-wallet/rabby-api/dist/plugins/web-sign.ts';
14
-
15
- const service = new OpenApiService({
16
- store: {
17
- host: 'https://api.rabby.io',
18
- },
19
- // you can also customize plugin as you requirement
20
- plugin: WebSignApiPlugin,
21
- });
22
-
23
- // init service
24
- await service.init();
25
-
26
- // call api
27
- await service.getTotalBalance('0x1234');
28
- ```
1
+ # rabby-api
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ npm install @rabby-wallet/rabby-api @debank/common
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import { OpenApiService } from '@rabby-wallet/rabby-api';
13
+ import { WebSignApiPlugin } from '@rabby-wallet/rabby-api/dist/plugins/web-sign.ts';
14
+
15
+ const service = new OpenApiService({
16
+ store: {
17
+ host: 'https://api.rabby.io',
18
+ },
19
+ // you can also customize plugin as you requirement
20
+ plugin: WebSignApiPlugin,
21
+ });
22
+
23
+ // init service
24
+ await service.init();
25
+
26
+ // call api
27
+ await service.getTotalBalance('0x1234');
28
+ ```
package/dist/const.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const ASYNC_JOB_TIMEOUT: number;
2
- export declare const ASYNC_JOB_RETRY_DELAY: number;
3
- export declare const SIGN_HDS: readonly ["x-api-ts", "x-api-nonce", "x-api-ver", "x-api-sign"];
1
+ export declare const ASYNC_JOB_TIMEOUT: number;
2
+ export declare const ASYNC_JOB_RETRY_DELAY: number;
3
+ export declare const SIGN_HDS: readonly ["x-api-ts", "x-api-nonce", "x-api-ver", "x-api-sign"];
package/dist/const.js CHANGED
@@ -1,8 +1,8 @@
1
- export const ASYNC_JOB_TIMEOUT = 10 * 60 * 1000;
2
- export const ASYNC_JOB_RETRY_DELAY = 1.5 * 1000;
3
- export const SIGN_HDS = [
4
- 'x-api-ts',
5
- 'x-api-nonce',
6
- 'x-api-ver',
7
- 'x-api-sign',
8
- ];
1
+ export const ASYNC_JOB_TIMEOUT = 10 * 60 * 1000;
2
+ export const ASYNC_JOB_RETRY_DELAY = 1.5 * 1000;
3
+ export const SIGN_HDS = [
4
+ 'x-api-ts',
5
+ 'x-api-nonce',
6
+ 'x-api-ver',
7
+ 'x-api-sign',
8
+ ];