@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.
- package/dist/src/domain/constants/bannedCountries.js +1 -0
- package/dist/src/domain/constants/bannedCountries.js.map +1 -1
- package/dist/src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.d.ts +30 -0
- package/dist/src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.js +9 -0
- package/dist/src/domain/model/decent-swap/entities/DecentGaslessQuoteFee.js.map +1 -0
- package/dist/src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.d.ts +24 -0
- package/dist/src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.js +15 -0
- package/dist/src/domain/model/decent-swap/entities/DecentGaslessSubmitTx.js.map +1 -0
- package/dist/src/domain/model/decent-swap/entities/DecentSwapRoute.d.ts +6 -3
- package/dist/src/domain/model/decent-swap/entities/GetRoutesOptions.d.ts +1 -0
- package/dist/src/domain/model/decent-swap/entities/index.d.ts +2 -0
- package/dist/src/domain/model/decent-swap/entities/index.js +2 -0
- package/dist/src/domain/model/decent-swap/entities/index.js.map +1 -1
- package/dist/src/domain/model/decent-swap/utils/decentRouteFees.d.ts +2 -0
- package/dist/src/domain/model/decent-swap/utils/decentRouteFees.js +15 -0
- package/dist/src/domain/model/decent-swap/utils/decentRouteFees.js.map +1 -0
- package/dist/src/domain/model/decent-swap/utils/decentRouteFees.spec.d.ts +1 -0
- package/dist/src/domain/model/decent-swap/utils/decentRouteFees.spec.js +21 -0
- package/dist/src/domain/model/decent-swap/utils/decentRouteFees.spec.js.map +1 -0
- package/dist/src/domain/model/decent-swap/utils/index.d.ts +1 -0
- package/dist/src/domain/model/decent-swap/utils/index.js +1 -0
- package/dist/src/domain/model/decent-swap/utils/index.js.map +1 -1
- package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.d.ts +1 -0
- package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.js.map +1 -1
- package/dist/src/domain/model/deposit/entities/DepositRouteFee.entity.d.ts +3 -0
- package/dist/src/domain/model/deposit/entities/DepositRouteFee.entity.js +7 -0
- package/dist/src/domain/model/deposit/entities/DepositRouteFee.entity.js.map +1 -0
- package/dist/src/domain/model/deposit/entities/index.d.ts +1 -0
- package/dist/src/domain/model/deposit/entities/index.js +1 -0
- package/dist/src/domain/model/deposit/entities/index.js.map +1 -1
- package/dist/src/domain/model/index.d.ts +1 -0
- package/dist/src/domain/model/index.js +1 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.d.ts +8 -0
- package/dist/src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.js +43 -0
- package/dist/src/domain/model/swap-route-config/dtos/companySwapRouteRow.dto.js.map +1 -0
- package/dist/src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.d.ts +2 -0
- package/dist/src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.js +10 -0
- package/dist/src/domain/model/swap-route-config/dtos/createSwapRouteConfig.dto.js.map +1 -1
- package/dist/src/domain/model/swap-route-config/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/swap-route-config/dtos/index.js +2 -0
- package/dist/src/domain/model/swap-route-config/dtos/index.js.map +1 -1
- package/dist/src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.d.ts +4 -0
- package/dist/src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.js +25 -0
- package/dist/src/domain/model/swap-route-config/dtos/saveCompanySwapRoutes.dto.js.map +1 -0
- package/dist/src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.d.ts +1 -0
- package/dist/src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.js +5 -0
- package/dist/src/domain/model/swap-route-config/dtos/updateSwapRouteConfig.dto.js.map +1 -1
- package/dist/src/domain/model/swap-route-config/entities/BaseSwapRouteConfig.entity.d.ts +4 -2
- package/dist/src/domain/model/swap-route-config/entities/BaseSwapRouteConfig.entity.js.map +1 -1
- package/dist/src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.d.ts +6 -0
- package/dist/src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.js +7 -0
- package/dist/src/domain/model/swap-route-config/entities/SwapRouteConfigMatrix.entity.js.map +1 -0
- package/dist/src/domain/model/swap-route-config/entities/index.d.ts +1 -0
- package/dist/src/domain/model/swap-route-config/entities/index.js +1 -0
- package/dist/src/domain/model/swap-route-config/entities/index.js.map +1 -1
- package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.d.ts +4 -0
- package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.js +26 -0
- package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/transaction-explorer/dtos/index.js +19 -0
- package/dist/src/domain/model/transaction-explorer/dtos/index.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/dtos/searchTransactionExplorer.dto.d.ts +5 -0
- package/dist/src/domain/model/transaction-explorer/dtos/searchTransactionExplorer.dto.js +28 -0
- package/dist/src/domain/model/transaction-explorer/dtos/searchTransactionExplorer.dto.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerActionItem.entity.d.ts +6 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerActionItem.entity.js +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerActionItem.entity.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerFlow.entity.d.ts +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerFlow.entity.js +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerFlow.entity.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerResult.entity.d.ts +18 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerResult.entity.js +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerResult.entity.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerTx.entity.d.ts +12 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerTx.entity.js +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerTx.entity.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerWebhook.entity.d.ts +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerWebhook.entity.js +8 -0
- package/dist/src/domain/model/transaction-explorer/entities/TransactionExplorerWebhook.entity.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/entities/index.d.ts +5 -0
- package/dist/src/domain/model/transaction-explorer/entities/index.js +22 -0
- package/dist/src/domain/model/transaction-explorer/entities/index.js.map +1 -0
- package/dist/src/domain/model/transaction-explorer/index.d.ts +2 -0
- package/dist/src/domain/model/transaction-explorer/index.js +19 -0
- package/dist/src/domain/model/transaction-explorer/index.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.d.ts +5 -0
- package/dist/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.js +8 -0
- package/dist/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/index.d.ts +1 -0
- package/dist/src/domain/model/withdraw/entities/index.js +1 -0
- package/dist/src/domain/model/withdraw/entities/index.js.map +1 -1
- package/dist/src/domain/services/BlockchainExplorerService.d.ts +1 -2
- package/dist/src/domain/services/BlockchainExplorerService.js +14 -2
- package/dist/src/domain/services/BlockchainExplorerService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
39
|
-
applicationFee
|
|
40
|
-
bridgeFee
|
|
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
|
}
|
|
@@ -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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCustomerSwapRoute.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;
|
|
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 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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":"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"}
|
|
@@ -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"}
|
|
@@ -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;
|
|
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"}
|
|
@@ -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,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"}
|
|
@@ -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;
|
|
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;
|
|
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,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"}
|
|
@@ -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,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
|
package/dist/src/domain/model/transaction-explorer/dtos/getTransactionExplorerWebhooks.dto.js.map
ADDED
|
@@ -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"}
|