@cranberry-money/shared-constants 8.15.457 → 8.15.458

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.
@@ -2,4 +2,5 @@ export * from './user-accounts';
2
2
  export * from './investments';
3
3
  export * from './holdings';
4
4
  export * from './wallets';
5
+ export * from './onramp';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -2,4 +2,5 @@ export * from './user-accounts';
2
2
  export * from './investments';
3
3
  export * from './holdings';
4
4
  export * from './wallets';
5
+ export * from './onramp';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/business/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Fiat on-ramp provider constants for buying cryptocurrency.
3
+ */
4
+ export declare const ONRAMP_PROVIDER: {
5
+ readonly TRANSAK: "transak";
6
+ readonly BANXA: "banxa";
7
+ };
8
+ export type OnRampProviderType = (typeof ONRAMP_PROVIDER)[keyof typeof ONRAMP_PROVIDER];
9
+ export declare const ONRAMP_PROVIDER_DISPLAY_NAMES: Record<OnRampProviderType, string>;
10
+ export declare const ONRAMP_PROVIDER_LIST: OnRampProviderType[];
11
+ /**
12
+ * Default fiat amount for quote comparison (in user's local currency)
13
+ */
14
+ export declare const DEFAULT_QUOTE_AMOUNT = 100;
15
+ /**
16
+ * Default fiat currency for quotes
17
+ */
18
+ export declare const DEFAULT_QUOTE_CURRENCY = "AUD";
19
+ //# sourceMappingURL=onramp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onramp.d.ts","sourceRoot":"","sources":["../../src/business/onramp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAExF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAG5E,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,kBAAkB,EAAqD,CAAC;AAE3G;;GAEG;AACH,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAQ,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Fiat on-ramp provider constants for buying cryptocurrency.
3
+ */
4
+ export const ONRAMP_PROVIDER = {
5
+ TRANSAK: 'transak',
6
+ BANXA: 'banxa',
7
+ };
8
+ export const ONRAMP_PROVIDER_DISPLAY_NAMES = {
9
+ [ONRAMP_PROVIDER.TRANSAK]: 'Transak',
10
+ [ONRAMP_PROVIDER.BANXA]: 'Banxa',
11
+ };
12
+ export const ONRAMP_PROVIDER_LIST = [ONRAMP_PROVIDER.TRANSAK, ONRAMP_PROVIDER.BANXA];
13
+ /**
14
+ * Default fiat amount for quote comparison (in user's local currency)
15
+ */
16
+ export const DEFAULT_QUOTE_AMOUNT = 100;
17
+ /**
18
+ * Default fiat currency for quotes
19
+ */
20
+ export const DEFAULT_QUOTE_CURRENCY = 'AUD';
21
+ //# sourceMappingURL=onramp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onramp.js","sourceRoot":"","sources":["../../src/business/onramp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAAuC;IAC/E,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,SAAS;IACpC,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,OAAO;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAyB,CAAC,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;AAE3G;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "8.15.457",
3
+ "version": "8.15.458",
4
4
  "description": "Shared constants for Blueberry platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",