paj_ramp 1.2.6 → 1.2.7

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.
@@ -1,17 +1,17 @@
1
1
  type AllRateResponseType = {
2
2
  onRampRate: {
3
- baseCurrency: 'USD';
4
- targetCurrency: 'NGN';
5
- isActive: true;
6
- rate: 1510;
7
- type: 'onRamp';
3
+ baseCurrency: string;
4
+ targetCurrency: string;
5
+ isActive: boolean;
6
+ rate: number;
7
+ type: string;
8
8
  };
9
9
  offRampRate: {
10
- baseCurrency: 'USD';
11
- targetCurrency: 'NGN';
12
- isActive: true;
13
- rate: 1525;
14
- type: 'offRamp';
10
+ baseCurrency: string;
11
+ targetCurrency: string;
12
+ isActive: boolean;
13
+ rate: number;
14
+ type: string;
15
15
  };
16
16
  };
17
17
  type RateByAmountType = {
@@ -28,11 +28,11 @@ type RateByAmountType = {
28
28
  };
29
29
  };
30
30
  type RateByRateTypeType = {
31
- baseCurrency: 'USD';
32
- targetCurrency: 'NGN';
31
+ baseCurrency: string;
32
+ targetCurrency: string;
33
33
  isActive: true;
34
- rate: 1525;
35
- type: 'offRamp';
34
+ rate: number;
35
+ type: string;
36
36
  };
37
37
  type TokenValueType = {
38
38
  amount: number;
@@ -2,18 +2,18 @@ import { get } from '../../utils/api.js';
2
2
 
3
3
  type AllRateResponseType = {
4
4
  onRampRate: {
5
- baseCurrency: 'USD';
6
- targetCurrency: 'NGN';
7
- isActive: true;
8
- rate: 1510;
9
- type: 'onRamp';
5
+ baseCurrency: string;
6
+ targetCurrency: string;
7
+ isActive: boolean;
8
+ rate: number;
9
+ type: string;
10
10
  };
11
11
  offRampRate: {
12
- baseCurrency: 'USD';
13
- targetCurrency: 'NGN';
14
- isActive: true;
15
- rate: 1525;
16
- type: 'offRamp';
12
+ baseCurrency: string;
13
+ targetCurrency: string;
14
+ isActive: boolean;
15
+ rate: number;
16
+ type: string;
17
17
  };
18
18
  };
19
19
 
@@ -32,11 +32,11 @@ type RateByAmountType = {
32
32
  };
33
33
 
34
34
  type RateByRateTypeType = {
35
- baseCurrency: 'USD';
36
- targetCurrency: 'NGN';
35
+ baseCurrency: string;
36
+ targetCurrency: string;
37
37
  isActive: true;
38
- rate: 1525;
39
- type: 'offRamp';
38
+ rate: number;
39
+ type: string;
40
40
  };
41
41
 
42
42
  type TokenValueType = {
@@ -120,7 +120,6 @@ export const getRateByAmount = async (url: string, amount: number) => {
120
120
  }
121
121
  };
122
122
 
123
-
124
123
  /**
125
124
  * The function `getRateByRateType` fetches a rate based on a specified rate type from a given URL.
126
125
  * @param {string} url - The `url` parameter is a string representing the base URL used to fetch data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paj_ramp",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "paj offramp/onramp service",
5
5
  "main": "dist/sdk.js",
6
6
  "types": "dist/sdk.d.ts",
@@ -15,7 +15,10 @@
15
15
  "url": "git+https://github.com/paj-cash/paj_ramp.git"
16
16
  },
17
17
  "keywords": [
18
- "PAJ"
18
+ "PAJ",
19
+ "paj",
20
+ "paj_ramp",
21
+ "Paj"
19
22
  ],
20
23
  "author": "Ebube",
21
24
  "license": "ISC",