@heliofi/common 0.2.261 → 0.2.271

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.
Files changed (97) hide show
  1. package/dist/src/domain/constants/bannedCountries.js +1 -0
  2. package/dist/src/domain/constants/bannedCountries.js.map +1 -1
  3. package/dist/src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.d.ts +30 -0
  4. package/dist/src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.js +9 -0
  5. package/dist/src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.js.map +1 -0
  6. package/dist/src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.d.ts +24 -0
  7. package/dist/src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.js +15 -0
  8. package/dist/src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.js.map +1 -0
  9. package/dist/src/domain/model/decent-swap/entities/DecentSwapRoute.d.ts +6 -3
  10. package/dist/src/domain/model/decent-swap/entities/GetRoutesOptions.d.ts +1 -0
  11. package/dist/src/domain/model/decent-swap/entities/index.d.ts +2 -0
  12. package/dist/src/domain/model/decent-swap/entities/index.js +2 -0
  13. package/dist/src/domain/model/decent-swap/entities/index.js.map +1 -1
  14. package/dist/src/domain/model/decent-swap/utils/decentRouteFees.d.ts +2 -0
  15. package/dist/src/domain/model/decent-swap/utils/decentRouteFees.js +15 -0
  16. package/dist/src/domain/model/decent-swap/utils/decentRouteFees.js.map +1 -0
  17. package/dist/src/domain/model/decent-swap/utils/decentRouteFees.spec.d.ts +1 -0
  18. package/dist/src/domain/model/decent-swap/utils/decentRouteFees.spec.js +21 -0
  19. package/dist/src/domain/model/decent-swap/utils/decentRouteFees.spec.js.map +1 -0
  20. package/dist/src/domain/model/decent-swap/utils/index.d.ts +1 -0
  21. package/dist/src/domain/model/decent-swap/utils/index.js +1 -0
  22. package/dist/src/domain/model/decent-swap/utils/index.js.map +1 -1
  23. package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.d.ts +1 -0
  24. package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.js.map +1 -1
  25. package/dist/src/domain/model/deposit/entities/DepositRouteFee.entity.d.ts +3 -0
  26. package/dist/src/domain/model/deposit/entities/DepositRouteFee.entity.js +7 -0
  27. package/dist/src/domain/model/deposit/entities/DepositRouteFee.entity.js.map +1 -0
  28. package/dist/src/domain/model/deposit/entities/index.d.ts +1 -0
  29. package/dist/src/domain/model/deposit/entities/index.js +1 -0
  30. package/dist/src/domain/model/deposit/entities/index.js.map +1 -1
  31. package/dist/src/domain/model/index.d.ts +1 -0
  32. package/dist/src/domain/model/index.js +1 -0
  33. package/dist/src/domain/model/index.js.map +1 -1
  34. package/dist/src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.d.ts +8 -0
  35. package/dist/src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.js +43 -0
  36. package/dist/src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.js.map +1 -0
  37. package/dist/src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.d.ts +2 -0
  38. package/dist/src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.js +10 -0
  39. package/dist/src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.js.map +1 -1
  40. package/dist/src/domain/model/swap-route-config/dtos/index.d.ts +2 -0
  41. package/dist/src/domain/model/swap-route-config/dtos/index.js +2 -0
  42. package/dist/src/domain/model/swap-route-config/dtos/index.js.map +1 -1
  43. package/dist/src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.d.ts +4 -0
  44. package/dist/src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.js +25 -0
  45. package/dist/src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.js.map +1 -0
  46. package/dist/src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.d.ts +1 -0
  47. package/dist/src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.js +5 -0
  48. package/dist/src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.js.map +1 -1
  49. package/dist/src/domain/model/swap-route-config/entities/BaseSwapRouteConfig.entity.d.ts +4 -2
  50. package/dist/src/domain/model/swap-route-config/entities/BaseSwapRouteConfig.entity.js.map +1 -1
  51. package/dist/src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.d.ts +6 -0
  52. package/dist/src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.js +7 -0
  53. package/dist/src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.js.map +1 -0
  54. package/dist/src/domain/model/swap-route-config/entities/index.d.ts +1 -0
  55. package/dist/src/domain/model/swap-route-config/entities/index.js +1 -0
  56. package/dist/src/domain/model/swap-route-config/entities/index.js.map +1 -1
  57. package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.d.ts +4 -0
  58. package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.js +26 -0
  59. package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.js.map +1 -0
  60. package/dist/src/domain/model/transaction-explorer/dtos/index.d.ts +2 -0
  61. package/dist/src/domain/model/transaction-explorer/dtos/index.js +19 -0
  62. package/dist/src/domain/model/transaction-explorer/dtos/index.js.map +1 -0
  63. package/dist/src/domain/model/transaction-explorer/dtos/searchTransactionExplorer.dto.d.ts +5 -0
  64. package/dist/src/domain/model/transaction-explorer/dtos/searchTransactionExplorer.dto.js +28 -0
  65. package/dist/src/domain/model/transaction-explorer/dtos/searchTransactionExplorer.dto.js.map +1 -0
  66. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerActionItem.entity.d.ts +6 -0
  67. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerActionItem.entity.js +8 -0
  68. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerActionItem.entity.js.map +1 -0
  69. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerFlow.entity.d.ts +8 -0
  70. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerFlow.entity.js +8 -0
  71. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerFlow.entity.js.map +1 -0
  72. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerResult.entity.d.ts +18 -0
  73. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerResult.entity.js +8 -0
  74. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerResult.entity.js.map +1 -0
  75. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerTx.entity.d.ts +12 -0
  76. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerTx.entity.js +8 -0
  77. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerTx.entity.js.map +1 -0
  78. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerWebhook.entity.d.ts +8 -0
  79. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerWebhook.entity.js +8 -0
  80. package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerWebhook.entity.js.map +1 -0
  81. package/dist/src/domain/model/transaction-explorer/entities/index.d.ts +5 -0
  82. package/dist/src/domain/model/transaction-explorer/entities/index.js +22 -0
  83. package/dist/src/domain/model/transaction-explorer/entities/index.js.map +1 -0
  84. package/dist/src/domain/model/transaction-explorer/index.d.ts +2 -0
  85. package/dist/src/domain/model/transaction-explorer/index.js +19 -0
  86. package/dist/src/domain/model/transaction-explorer/index.js.map +1 -0
  87. package/dist/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.d.ts +5 -0
  88. package/dist/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.js +8 -0
  89. package/dist/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.js.map +1 -0
  90. package/dist/src/domain/model/withdraw/entities/index.d.ts +1 -0
  91. package/dist/src/domain/model/withdraw/entities/index.js +1 -0
  92. package/dist/src/domain/model/withdraw/entities/index.js.map +1 -1
  93. package/dist/src/domain/services/BlockchainExplorerService.d.ts +1 -2
  94. package/dist/src/domain/services/BlockchainExplorerService.js +14 -2
  95. package/dist/src/domain/services/BlockchainExplorerService.js.map +1 -1
  96. package/dist/tsconfig.tsbuildinfo +1 -1
  97. package/package.json +2 -2
@@ -12,6 +12,7 @@ exports.BANNED_COUNTRIES = [
12
12
  'CU',
13
13
  'GW',
14
14
  'HT',
15
+ 'IN',
15
16
  'IR',
16
17
  'IQ',
17
18
  'JM',
@@ -1 +1 @@
1
- {"version":3,"file":"bannedCountries.js","sourceRoot":"","sources":["../../../../src/domain/constants/bannedCountries.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAa;IACxC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC"}
1
+ {"version":3,"file":"bannedCountries.js","sourceRoot":"","sources":["../../../../src/domain/constants/bannedCountries.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAa;IACxC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC"}
@@ -0,0 +1,30 @@
1
+ export declare enum DecentGaslessPaymentType {
2
+ TOKEN = "token",
3
+ SPONSORED = "sponsored"
4
+ }
5
+ export interface DecentGaslessQuoteFeeRequest {
6
+ chainId: number;
7
+ toContractAddress: string;
8
+ callData: string;
9
+ paymentType: DecentGaslessPaymentType;
10
+ providerId: string;
11
+ paymentAddress?: string;
12
+ senderAddress?: string;
13
+ }
14
+ export interface DecentGaslessQuoteFeeToken {
15
+ address: string;
16
+ decimals: number;
17
+ }
18
+ export interface DecentGaslessQuoteFeeAmount {
19
+ amount: string;
20
+ token: DecentGaslessQuoteFeeToken;
21
+ }
22
+ export interface DecentGaslessQuoteFeeData {
23
+ fees: DecentGaslessQuoteFeeAmount;
24
+ expiry: number;
25
+ }
26
+ export interface DecentGaslessQuoteFeeResponse {
27
+ success: boolean;
28
+ data?: DecentGaslessQuoteFeeData;
29
+ error?: string;
30
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DecentGaslessPaymentType = void 0;
4
+ var DecentGaslessPaymentType;
5
+ (function (DecentGaslessPaymentType) {
6
+ DecentGaslessPaymentType["TOKEN"] = "token";
7
+ DecentGaslessPaymentType["SPONSORED"] = "sponsored";
8
+ })(DecentGaslessPaymentType || (exports.DecentGaslessPaymentType = DecentGaslessPaymentType = {}));
9
+ //# sourceMappingURL=DecentGaslessQuoteFee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecentGaslessQuoteFee.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,2CAAe,CAAA;IACf,mDAAuB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC"}
@@ -0,0 +1,24 @@
1
+ export declare enum DecentGaslessExecutionTxType {
2
+ EVM_TRANSACTION_SIGN = "evmTransactionSign",
3
+ EVM_SIGN_TYPED_DATA = "evmSignTypedData",
4
+ TRON_TRANSACTION_SIGN = "tronTransactionSign"
5
+ }
6
+ export declare enum DecentExecutionsType {
7
+ DEFAULT = "DEFAULT",
8
+ GASLESS = "GASLESS"
9
+ }
10
+ export interface DecentGaslessExecution {
11
+ txType: DecentGaslessExecutionTxType;
12
+ signature: string;
13
+ data: unknown;
14
+ }
15
+ export interface DecentGaslessSubmitTxRequest {
16
+ txId: string;
17
+ chainId: number;
18
+ executions: DecentGaslessExecution[];
19
+ }
20
+ export interface DecentGaslessSubmitTxResponse {
21
+ success: boolean;
22
+ txId?: string;
23
+ error?: string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DecentExecutionsType = exports.DecentGaslessExecutionTxType = void 0;
4
+ var DecentGaslessExecutionTxType;
5
+ (function (DecentGaslessExecutionTxType) {
6
+ DecentGaslessExecutionTxType["EVM_TRANSACTION_SIGN"] = "evmTransactionSign";
7
+ DecentGaslessExecutionTxType["EVM_SIGN_TYPED_DATA"] = "evmSignTypedData";
8
+ DecentGaslessExecutionTxType["TRON_TRANSACTION_SIGN"] = "tronTransactionSign";
9
+ })(DecentGaslessExecutionTxType || (exports.DecentGaslessExecutionTxType = DecentGaslessExecutionTxType = {}));
10
+ var DecentExecutionsType;
11
+ (function (DecentExecutionsType) {
12
+ DecentExecutionsType["DEFAULT"] = "DEFAULT";
13
+ DecentExecutionsType["GASLESS"] = "GASLESS";
14
+ })(DecentExecutionsType || (exports.DecentExecutionsType = DecentExecutionsType = {}));
15
+ //# sourceMappingURL=DecentGaslessSubmitTx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecentGaslessSubmitTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACtC,2EAA2C,CAAA;IAC3C,wEAAwC,CAAA;IACxC,6EAA6C,CAAA;AAC/C,CAAC,EAJW,4BAA4B,4CAA5B,4BAA4B,QAIvC;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
@@ -1,3 +1,4 @@
1
+ import { DecentExecutionsType, DecentGaslessExecution } from './DecentGaslessSubmitTx';
1
2
  export interface DecentTransaction {
2
3
  to?: string;
3
4
  data?: string;
@@ -35,13 +36,15 @@ export interface DecentSwapRoute {
35
36
  amountInMax: DecentTokenAmount;
36
37
  amountOut: DecentTokenAmount;
37
38
  amountOutMin: DecentTokenAmount;
38
- protocolFee: DecentTokenAmount;
39
- applicationFee: DecentTokenAmount;
40
- bridgeFee: DecentTokenAmount;
39
+ protocolFee?: DecentTokenAmount;
40
+ applicationFee?: DecentTokenAmount;
41
+ bridgeFee?: DecentTokenAmount;
41
42
  bridgeIds: string[];
42
43
  bridgeRoute: DecentBridgeRoute[];
43
44
  exchangeRate: number;
44
45
  estimatedTxTime: number;
45
46
  estimatedPriceImpact: number;
46
47
  allRoutes?: DecentSwapRoute[];
48
+ executionsType?: DecentExecutionsType;
49
+ executions?: DecentGaslessExecution[];
47
50
  }
@@ -14,4 +14,5 @@ export interface GetRoutesOptions {
14
14
  appFees?: DecentAppFeeOverride[];
15
15
  bridgeIds?: string[];
16
16
  solanaSponsor?: string;
17
+ gasless?: boolean;
17
18
  }
@@ -9,3 +9,5 @@ export * from './DecentAppFeeOverride';
9
9
  export * from './DecentBridgeProvider';
10
10
  export * from './DecentApiError';
11
11
  export * from './SwapPathStatusItem';
12
+ export * from './DecentGaslessSubmitTx';
13
+ export * from './DecentGaslessQuoteFee';
@@ -25,4 +25,6 @@ __exportStar(require("./DecentAppFeeOverride"), exports);
25
25
  __exportStar(require("./DecentBridgeProvider"), exports);
26
26
  __exportStar(require("./DecentApiError"), exports);
27
27
  __exportStar(require("./SwapPathStatusItem"), exports);
28
+ __exportStar(require("./DecentGaslessSubmitTx"), exports);
29
+ __exportStar(require("./DecentGaslessQuoteFee"), exports);
28
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,yDAAuC;AACvC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,yDAAuC;AACvC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,0DAAwC;AACxC,0DAAwC"}
@@ -0,0 +1,2 @@
1
+ import { DecentTokenAmount } from '../entities/DecentSwapRoute';
2
+ export declare const decentFeeAtomic: (token?: DecentTokenAmount) => bigint;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decentFeeAtomic = void 0;
4
+ const decentFeeAtomic = (token) => {
5
+ const value = token?.amount?.trim();
6
+ if (!value) {
7
+ return 0n;
8
+ }
9
+ if (!/^\d+$/.test(value)) {
10
+ throw new Error(`Invalid Decent fee amount: ${value}`);
11
+ }
12
+ return BigInt(value);
13
+ };
14
+ exports.decentFeeAtomic = decentFeeAtomic;
15
+ //# sourceMappingURL=decentRouteFees.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decentRouteFees.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/utils/decentRouteFees.ts"],"names":[],"mappings":";;;AAWO,MAAM,eAAe,GAAG,CAAC,KAAyB,EAAU,EAAE;IACnE,MAAM,KAAK,GAAG,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const decentRouteFees_1 = require("./decentRouteFees");
4
+ const fee = (amount) => ({ amount });
5
+ describe('decentFeeAtomic', () => {
6
+ it('returns 0n when the fee field is absent', () => {
7
+ expect((0, decentRouteFees_1.decentFeeAtomic)(undefined)).toBe(0n);
8
+ expect((0, decentRouteFees_1.decentFeeAtomic)(fee(undefined))).toBe(0n);
9
+ expect((0, decentRouteFees_1.decentFeeAtomic)(fee(''))).toBe(0n);
10
+ expect((0, decentRouteFees_1.decentFeeAtomic)(fee(' '))).toBe(0n);
11
+ });
12
+ it('parses a well-formed atomic amount', () => {
13
+ expect((0, decentRouteFees_1.decentFeeAtomic)(fee('1000000'))).toBe(1000000n);
14
+ });
15
+ it('throws on a present-but-malformed amount instead of masking it as zero', () => {
16
+ expect(() => (0, decentRouteFees_1.decentFeeAtomic)(fee('abc'))).toThrow('Invalid Decent fee amount');
17
+ expect(() => (0, decentRouteFees_1.decentFeeAtomic)(fee('1.5'))).toThrow('Invalid Decent fee amount');
18
+ expect(() => (0, decentRouteFees_1.decentFeeAtomic)(fee('-1'))).toThrow('Invalid Decent fee amount');
19
+ });
20
+ });
21
+ //# sourceMappingURL=decentRouteFees.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decentRouteFees.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/utils/decentRouteFees.spec.ts"],"names":[],"mappings":";;AACA,uDAAoD;AAEpD,MAAM,GAAG,GAAG,CAAC,MAAe,EAAqB,EAAE,CACjD,CAAC,EAAE,MAAM,EAAE,CAAsB,CAAC;AAEpC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,IAAA,iCAAe,EAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC5C,MAAM,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjD,MAAM,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC1C,MAAM,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wEAAwE,EAAE,GAAG,EAAE;QAChF,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAC/C,2BAA2B,CAC5B,CAAC;QACF,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAC/C,2BAA2B,CAC5B,CAAC;QACF,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,iCAAe,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAC9C,2BAA2B,CAC5B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1 +1,2 @@
1
+ export * from './decentRouteFees';
1
2
  export * from './selectBestDecentRoute';
@@ -14,5 +14,6 @@ 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("./decentRouteFees"), exports);
17
18
  __exportStar(require("./selectBestDecentRoute"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,0DAAwC"}
@@ -4,6 +4,7 @@ export declare class DepositCustomerSwapRoute {
4
4
  fromCurrency: SlimCurrencyWithBlockchain;
5
5
  toCurrencyId: string;
6
6
  available: boolean;
7
+ feeBps?: number;
7
8
  minAmountUsd: number;
8
9
  minAmountMinimalUnit: string;
9
10
  minAmountUsdDecimals: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DepositCustomerSwapRoute.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;CA+BpC;AA/BD,4DA+BC"}
1
+ {"version":3,"file":"DepositCustomerSwapRoute.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;CAiCpC;AAjCD,4DAiCC"}
@@ -0,0 +1,3 @@
1
+ export declare class DepositRouteFeeEntity {
2
+ feeBps: number;
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DepositRouteFeeEntity = void 0;
4
+ class DepositRouteFeeEntity {
5
+ }
6
+ exports.DepositRouteFeeEntity = DepositRouteFeeEntity;
7
+ //# sourceMappingURL=DepositRouteFee.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositRouteFee.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositRouteFee.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,qBAAqB;CAEjC;AAFD,sDAEC"}
@@ -38,3 +38,4 @@ export * from './IronRequiredSigning.entity';
38
38
  export * from './IronSigningResponse.entity';
39
39
  export * from './PartiallyPaidCharge.entity';
40
40
  export * from './VirtualAccountSupportedCountry.entity';
41
+ export * from './DepositRouteFee.entity';
@@ -54,4 +54,5 @@ __exportStar(require("./IronRequiredSigning.entity"), exports);
54
54
  __exportStar(require("./IronSigningResponse.entity"), exports);
55
55
  __exportStar(require("./PartiallyPaidCharge.entity"), exports);
56
56
  __exportStar(require("./VirtualAccountSupportedCountry.entity"), exports);
57
+ __exportStar(require("./DepositRouteFee.entity"), exports);
57
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD;AACzD,sEAAoD;AACpD,gFAA8D;AAC9D,iEAA+C;AAC/C,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,4DAA0C;AAC1C,iDAA+B;AAC/B,+DAA6C;AAC7C,yEAAuD;AACvD,oEAAkD;AAClD,oFAAkE;AAClE,4EAA0D;AAC1D,6EAA2D;AAC3D,yDAAuC;AACvC,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,gEAA8C;AAC9C,0DAAwC;AACxC,iEAA+C;AAC/C,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,+EAA6D;AAC7D,oEAAkD;AAClD,qDAAmC;AACnC,gEAA8C;AAC9C,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,0EAAwD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD;AACzD,sEAAoD;AACpD,gFAA8D;AAC9D,iEAA+C;AAC/C,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,4DAA0C;AAC1C,iDAA+B;AAC/B,+DAA6C;AAC7C,yEAAuD;AACvD,oEAAkD;AAClD,oFAAkE;AAClE,4EAA0D;AAC1D,6EAA2D;AAC3D,yDAAuC;AACvC,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,gEAA8C;AAC9C,0DAAwC;AACxC,iEAA+C;AAC/C,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,+EAA6D;AAC7D,oEAAkD;AAClD,qDAAmC;AACnC,gEAA8C;AAC9C,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,0EAAwD;AACxD,2DAAyC"}
@@ -152,3 +152,4 @@ export * from './hypercore';
152
152
  export * from './x402';
153
153
  export * from './payment-method-fee';
154
154
  export * from './intercom-identity';
155
+ export * from './transaction-explorer';
@@ -168,4 +168,5 @@ __exportStar(require("./hypercore"), exports);
168
168
  __exportStar(require("./x402"), exports);
169
169
  __exportStar(require("./payment-method-fee"), exports);
170
170
  __exportStar(require("./intercom-identity"), exports);
171
+ __exportStar(require("./transaction-explorer"), exports);
171
172
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,mDAAiC;AACjC,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,2DAAyC;AACzC,uEAAqD;AACrD,uDAAqC;AACrC,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,6DAA2C;AAC3C,oDAAkC;AAClC,yDAAuC;AACvC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB;AACxB,8CAA4B;AAC5B,kDAAgC;AAChC,sDAAoC;AACpC,0CAAwB;AACxB,6DAA2C;AAC3C,mDAAiC;AACjC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B;AAE3B,2CAAyB;AACzB,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,qDAAmC;AACnC,gDAA8B;AAC9B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,0DAAwC;AACxC,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,kDAAgC;AAChC,0CAAwB;AACxB,oDAAkC;AAClC,2CAAyB;AACzB,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB;AACxB,wCAAsB;AACtB,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,0DAAwC;AACxC,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,kDAAgC;AAChC,0DAAwC;AACxC,mDAAiC;AACjC,wEAAsD;AACtD,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,8CAA4B;AAC5B,yCAAuB;AACvB,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC"}
@@ -0,0 +1,8 @@
1
+ import { DecentBridgeProvider } from '../../decent-swap/entities/DecentBridgeProvider';
2
+ export declare class CompanySwapRouteRowDto {
3
+ fromCurrencyId: string;
4
+ toCurrencyId: string;
5
+ bridgeProviders: DecentBridgeProvider[];
6
+ strict?: boolean;
7
+ enabled?: boolean;
8
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CompanySwapRouteRowDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const DecentBridgeProvider_1 = require("../../decent-swap/entities/DecentBridgeProvider");
15
+ class CompanySwapRouteRowDto {
16
+ }
17
+ exports.CompanySwapRouteRowDto = CompanySwapRouteRowDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], CompanySwapRouteRowDto.prototype, "fromCurrencyId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsMongoId)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], CompanySwapRouteRowDto.prototype, "toCurrencyId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsArray)(),
30
+ (0, class_validator_1.IsEnum)(DecentBridgeProvider_1.DecentBridgeProvider, { each: true }),
31
+ __metadata("design:type", Array)
32
+ ], CompanySwapRouteRowDto.prototype, "bridgeProviders", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsBoolean)(),
36
+ __metadata("design:type", Boolean)
37
+ ], CompanySwapRouteRowDto.prototype, "strict", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsBoolean)(),
41
+ __metadata("design:type", Boolean)
42
+ ], CompanySwapRouteRowDto.prototype, "enabled", void 0);
43
+ //# sourceMappingURL=companySwapRouteRow.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companySwapRouteRow.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,0FAAuF;AAEvF,MAAa,sBAAsB;CAoBlC;AApBD,wDAoBC;AAjBC;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACU;AAIvB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;4DACQ;AAIrB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,2CAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+DACL;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACK;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;uDACM"}
@@ -3,5 +3,7 @@ export declare class CreateSwapRouteConfigDto {
3
3
  fromCurrencyId: string;
4
4
  toCurrencyId: string;
5
5
  bridgeProviders: DecentBridgeProvider[];
6
+ companyId?: string;
7
+ strict?: boolean;
6
8
  enabled?: boolean;
7
9
  }
@@ -30,6 +30,16 @@ __decorate([
30
30
  (0, class_validator_1.IsEnum)(DecentBridgeProvider_1.DecentBridgeProvider, { each: true }),
31
31
  __metadata("design:type", Array)
32
32
  ], CreateSwapRouteConfigDto.prototype, "bridgeProviders", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsMongoId)(),
36
+ __metadata("design:type", String)
37
+ ], CreateSwapRouteConfigDto.prototype, "companyId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsBoolean)(),
41
+ __metadata("design:type", Boolean)
42
+ ], CreateSwapRouteConfigDto.prototype, "strict", void 0);
33
43
  __decorate([
34
44
  (0, class_validator_1.IsOptional)(),
35
45
  (0, class_validator_1.IsBoolean)(),
@@ -1 +1 @@
1
- {"version":3,"file":"createSwapRouteConfig.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,0FAAuF;AAEvF,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAbC;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gEACU;AAIvB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACQ;AAIrB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,2CAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iEACL;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yDACM"}
1
+ {"version":3,"file":"createSwapRouteConfig.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,0FAAuF;AAEvF,MAAa,wBAAwB;CA2BpC;AA3BD,4DA2BC;AAxBC;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gEACU;AAIvB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACQ;AAIrB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,2CAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iEACL;AAKxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2DACO;AAMnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;wDACK;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yDACM"}
@@ -1,2 +1,4 @@
1
1
  export * from './createSwapRouteConfig.dto';
2
2
  export * from './updateSwapRouteConfig.dto';
3
+ export * from './companySwapRouteRow.dto';
4
+ export * from './saveCompanySwapRoutes.dto';
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./createSwapRouteConfig.dto"), exports);
18
18
  __exportStar(require("./updateSwapRouteConfig.dto"), exports);
19
+ __exportStar(require("./companySwapRouteRow.dto"), exports);
20
+ __exportStar(require("./saveCompanySwapRoutes.dto"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,8DAA4C"}
@@ -0,0 +1,4 @@
1
+ import { CompanySwapRouteRowDto } from './companySwapRouteRow.dto';
2
+ export declare class SaveCompanySwapRoutesDto {
3
+ rows: CompanySwapRouteRowDto[];
4
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SaveCompanySwapRoutesDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const companySwapRouteRow_dto_1 = require("./companySwapRouteRow.dto");
16
+ class SaveCompanySwapRoutesDto {
17
+ }
18
+ exports.SaveCompanySwapRoutesDto = SaveCompanySwapRoutesDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsArray)(),
21
+ (0, class_validator_1.ValidateNested)({ each: true }),
22
+ (0, class_transformer_1.Type)(() => companySwapRouteRow_dto_1.CompanySwapRouteRowDto),
23
+ __metadata("design:type", Array)
24
+ ], SaveCompanySwapRoutesDto.prototype, "rows", void 0);
25
+ //# sourceMappingURL=saveCompanySwapRoutes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveCompanySwapRoutes.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,yDAAyC;AACzC,uEAAmE;AAInE,MAAa,wBAAwB;CAKpC;AALD,4DAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAsB,CAAC;;sDACJ"}
@@ -1,5 +1,6 @@
1
1
  import { DecentBridgeProvider } from '../../decent-swap/entities/DecentBridgeProvider';
2
2
  export declare class UpdateSwapRouteConfigDto {
3
3
  bridgeProviders?: DecentBridgeProvider[];
4
+ strict?: boolean;
4
5
  enabled?: boolean;
5
6
  }
@@ -21,6 +21,11 @@ __decorate([
21
21
  (0, class_validator_1.IsEnum)(DecentBridgeProvider_1.DecentBridgeProvider, { each: true }),
22
22
  __metadata("design:type", Array)
23
23
  ], UpdateSwapRouteConfigDto.prototype, "bridgeProviders", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)(),
27
+ __metadata("design:type", Boolean)
28
+ ], UpdateSwapRouteConfigDto.prototype, "strict", void 0);
24
29
  __decorate([
25
30
  (0, class_validator_1.IsOptional)(),
26
31
  (0, class_validator_1.IsBoolean)(),
@@ -1 +1 @@
1
- {"version":3,"file":"updateSwapRouteConfig.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,0FAAuF;AAEvF,MAAa,wBAAwB;CASpC;AATD,4DASC;AALC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,2CAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iEACJ;AAIzC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yDACM"}
1
+ {"version":3,"file":"updateSwapRouteConfig.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,0FAAuF;AAEvF,MAAa,wBAAwB;CAapC;AAbD,4DAaC;AATC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,2CAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iEACJ;AAIzC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;wDACK;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yDACM"}
@@ -4,7 +4,9 @@ export declare class BaseSwapRouteConfig extends Entity {
4
4
  fromCurrencyId: string;
5
5
  toCurrencyId: string;
6
6
  bridgeProviders: string[];
7
+ strict: boolean;
8
+ companyId: string | null;
7
9
  enabled: boolean;
8
- createdAt: string;
9
- updatedAt: string;
10
+ createdAt: string | null;
11
+ updatedAt: string | null;
10
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSwapRouteConfig.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/entities/BaseSwapRouteConfig.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,mBAAoB,SAAQ,eAAM;CAc9C;AAdD,kDAcC"}
1
+ {"version":3,"file":"BaseSwapRouteConfig.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/entities/BaseSwapRouteConfig.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,mBAAoB,SAAQ,eAAM;CAsB9C;AAtBD,kDAsBC"}
@@ -0,0 +1,6 @@
1
+ import { SwapRouteConfigEnriched } from './SwapRouteConfigEnriched.entity';
2
+ export type SwapRouteConfigSource = 'company' | 'global';
3
+ export declare class SwapRouteConfigMatrix {
4
+ source: SwapRouteConfigSource;
5
+ rows: SwapRouteConfigEnriched[];
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwapRouteConfigMatrix = void 0;
4
+ class SwapRouteConfigMatrix {
5
+ }
6
+ exports.SwapRouteConfigMatrix = SwapRouteConfigMatrix;
7
+ //# sourceMappingURL=SwapRouteConfigMatrix.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapRouteConfigMatrix.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.ts"],"names":[],"mappings":";;;AAOA,MAAa,qBAAqB;CAIjC;AAJD,sDAIC"}
@@ -1,2 +1,3 @@
1
1
  export * from './BaseSwapRouteConfig.entity';
2
2
  export * from './SwapRouteConfigEnriched.entity';
3
+ export * from './SwapRouteConfigMatrix.entity';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BaseSwapRouteConfig.entity"), exports);
18
18
  __exportStar(require("./SwapRouteConfigEnriched.entity"), exports);
19
+ __exportStar(require("./SwapRouteConfigMatrix.entity"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-route-config/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C"}
@@ -0,0 +1,4 @@
1
+ export declare class GetTransactionExplorerWebhooksDto {
2
+ transactionId: string;
3
+ type: 'deposit' | 'paylink';
4
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GetTransactionExplorerWebhooksDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetTransactionExplorerWebhooksDto {
15
+ }
16
+ exports.GetTransactionExplorerWebhooksDto = GetTransactionExplorerWebhooksDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MinLength)(10),
20
+ __metadata("design:type", String)
21
+ ], GetTransactionExplorerWebhooksDto.prototype, "transactionId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsIn)(['deposit', 'paylink']),
24
+ __metadata("design:type", String)
25
+ ], GetTransactionExplorerWebhooksDto.prototype, "type", void 0);
26
+ //# sourceMappingURL=getTransactionExplorerWebhooks.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTransactionExplorerWebhooks.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4D;AAE5D,MAAa,iCAAiC;CAO7C;AAPD,8EAOC;AAJC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;wEACQ;AAGtB;IADC,IAAA,sBAAI,EAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;;+DACD"}
@@ -0,0 +1,2 @@
1
+ export * from './getTransactionExplorerWebhooks.dto';
2
+ export * from './searchTransactionExplorer.dto';