@heliofi/common 0.2.230 → 0.2.231

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,4 +1,8 @@
1
1
  export declare enum PaymentMethod {
2
2
  CRYPTO = "CRYPTO",
3
- ONRAMP = "ONRAMP"
3
+ ONRAMP = "ONRAMP",
4
+ COINBASE = "COINBASE"
4
5
  }
6
+ export declare function resolveDepositPaymentMethod(incomingTransactions: {
7
+ paymentMethod?: PaymentMethod;
8
+ }[] | undefined): PaymentMethod;
@@ -1,9 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentMethod = void 0;
4
+ exports.resolveDepositPaymentMethod = resolveDepositPaymentMethod;
4
5
  var PaymentMethod;
5
6
  (function (PaymentMethod) {
6
7
  PaymentMethod["CRYPTO"] = "CRYPTO";
7
8
  PaymentMethod["ONRAMP"] = "ONRAMP";
9
+ PaymentMethod["COINBASE"] = "COINBASE";
8
10
  })(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
11
+ function resolveDepositPaymentMethod(incomingTransactions) {
12
+ if (incomingTransactions?.some((tx) => tx.paymentMethod === PaymentMethod.COINBASE)) {
13
+ return PaymentMethod.COINBASE;
14
+ }
15
+ if (incomingTransactions?.some((tx) => tx.paymentMethod === PaymentMethod.ONRAMP)) {
16
+ return PaymentMethod.ONRAMP;
17
+ }
18
+ return PaymentMethod.CRYPTO;
19
+ }
9
20
  //# sourceMappingURL=PaymentMethod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
1
+ {"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.ts"],"names":[],"mappings":";;;AAMA,kEAoBC;AA1BD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;AACvB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,SAAgB,2BAA2B,CACzC,oBAAqE;IAErE,IACE,oBAAoB,EAAE,IAAI,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,KAAK,aAAa,CAAC,QAAQ,CACpD,EACD,CAAC;QACD,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED,IACE,oBAAoB,EAAE,IAAI,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,KAAK,aAAa,CAAC,MAAM,CAClD,EACD,CAAC;QACD,OAAO,aAAa,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,OAAO,aAAa,CAAC,MAAM,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare class OnRamperFiat {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ symbol: string;
6
+ icon: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnRamperFiat = void 0;
4
+ class OnRamperFiat {
5
+ }
6
+ exports.OnRamperFiat = OnRamperFiat;
7
+ //# sourceMappingURL=OnRamperFiat.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnRamperFiat.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperFiat.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;CAUxB;AAVD,oCAUC"}
@@ -0,0 +1,6 @@
1
+ import { OnRamperFiat } from './OnRamperFiat.entity';
2
+ import { OnRamperToken } from './OnRamperToken.entity';
3
+ export declare class OnRamperSupportedCurrenciesAndTokens {
4
+ fiat?: OnRamperFiat[];
5
+ crypto?: OnRamperToken[];
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnRamperSupportedCurrenciesAndTokens = void 0;
4
+ class OnRamperSupportedCurrenciesAndTokens {
5
+ }
6
+ exports.OnRamperSupportedCurrenciesAndTokens = OnRamperSupportedCurrenciesAndTokens;
7
+ //# sourceMappingURL=OnRamperSupportedCurrenciesAndTokens.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnRamperSupportedCurrenciesAndTokens.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.ts"],"names":[],"mappings":";;;AAGA,MAAa,oCAAoC;CAIhD;AAJD,oFAIC"}
@@ -0,0 +1,12 @@
1
+ export declare class OnRamperToken {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ symbol: string;
6
+ network: string;
7
+ decimals: number;
8
+ address: string;
9
+ chainId: number;
10
+ icon: string;
11
+ networkDisplayName: string;
12
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnRamperToken = void 0;
4
+ class OnRamperToken {
5
+ }
6
+ exports.OnRamperToken = OnRamperToken;
7
+ //# sourceMappingURL=OnRamperToken.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnRamperToken.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperToken.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAoBzB;AApBD,sCAoBC"}
@@ -1,3 +1,6 @@
1
+ export * from './OnRamperFiat.entity';
2
+ export * from './OnRamperSupportedCurrenciesAndTokens.entity';
3
+ export * from './OnRamperToken.entity';
1
4
  export * from './OnrampPaymentMethod.entity';
2
5
  export * from './OnrampPaymentMethodsResponse.entity';
3
6
  export * from './OnrampQuote.entity';
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./OnRamperFiat.entity"), exports);
18
+ __exportStar(require("./OnRamperSupportedCurrenciesAndTokens.entity"), exports);
19
+ __exportStar(require("./OnRamperToken.entity"), exports);
17
20
  __exportStar(require("./OnrampPaymentMethod.entity"), exports);
18
21
  __exportStar(require("./OnrampPaymentMethodsResponse.entity"), exports);
19
22
  __exportStar(require("./OnrampQuote.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,wEAAsD;AACtD,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gFAA8D;AAC9D,yDAAuC;AACvC,+DAA6C;AAC7C,wEAAsD;AACtD,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}