@heliofi/common 0.2.260 → 0.2.262
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/DecentBridgeProvider.d.ts +3 -1
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.js +2 -0
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.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.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/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.d.ts +5 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.js +35 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.js +57 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.js +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.js.map +1 -1
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.d.ts +16 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.d.ts +6 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.d.ts +12 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/index.d.ts +3 -0
- package/dist/src/domain/model/on-ramps/entities/index.js +3 -0
- package/dist/src/domain/model/on-ramps/entities/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/{withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.js → swap-route-config/dtos/saveCompanySwapRoutes.dto.js} +8 -14
- 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 +35 -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 +37 -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/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.d.ts +7 -0
- package/dist/src/domain/model/{withdraw/dtos/rawPreparedWithdrawal.dto.js → webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js} +14 -17
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.js +31 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.js +21 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.d.ts +4 -0
- package/dist/src/domain/model/{withdraw/dtos/submitWithdrawalRawStep.dto.js → webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.js} +8 -12
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.d.ts +7 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js +41 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.d.ts +12 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.d.ts +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.js +15 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.js +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.d.ts +4 -0
- package/dist/src/domain/model/{withdraw/dtos/submitWithdrawalSignedTx.dto.js → webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.js} +8 -9
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.js +18 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.d.ts +9 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.js +48 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.js +19 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.js +33 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.d.ts +12 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.d.ts +5 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.d.ts +13 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.d.ts +3 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js +3 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.js +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js +34 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.js +18 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/index.d.ts +0 -4
- package/dist/src/domain/model/withdraw/dtos/index.js +0 -4
- package/dist/src/domain/model/withdraw/dtos/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.js +5 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.d.ts +1 -2
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js +3 -5
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.js +31 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.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/WithdrawalCustomerSwapRoutesResponse.entity.d.ts +2 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.js.map +1 -1
- 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/model/withdraw/preparedTransaction.spec.js +7 -6
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.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
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.d.ts +0 -7
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.js.map +0 -1
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.spec.js +0 -43
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.spec.js.map +0 -1
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.d.ts +0 -6
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.js.map +0 -1
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.spec.js +0 -76
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.spec.js.map +0 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalRawStep.dto.d.ts +0 -4
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalRawStep.dto.js.map +0 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.d.ts +0 -3
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.js.map +0 -1
- /package/dist/src/domain/model/{withdraw/dtos/rawPreparedWithdrawal.dto.spec.d.ts → decent-swap/utils/decentRouteFees.spec.d.ts} +0 -0
- /package/dist/src/domain/model/withdraw/dtos/{rawSubmitWithdrawalSignedTx.dto.spec.d.ts → submitWithdrawal.dto.spec.d.ts} +0 -0
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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.GetAllWithdrawalHookEventsQueryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const shared_1 = require("../../../../shared");
|
|
15
|
+
const entities_1 = require("../entities");
|
|
16
|
+
const decorators_1 = require("../../../../../decorators");
|
|
17
|
+
class GetAllWithdrawalHookEventsQueryDto extends shared_1.BaseQueryDto {
|
|
18
|
+
}
|
|
19
|
+
exports.GetAllWithdrawalHookEventsQueryDto = GetAllWithdrawalHookEventsQueryDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, decorators_1.TransformToArray)(),
|
|
22
|
+
(0, class_validator_1.IsArray)(),
|
|
23
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEventStatus, { each: true }),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], GetAllWithdrawalHookEventsQueryDto.prototype, "status", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, decorators_1.TransformToArray)(),
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEvent, { each: true }),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], GetAllWithdrawalHookEventsQueryDto.prototype, "event", void 0);
|
|
34
|
+
//# sourceMappingURL=getAllQuery.dto.js.map
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllQuery.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,+CAAkD;AAClD,0CAA6E;AAC7E,0DAA6D;AAE7D,MAAa,kCAAmC,SAAQ,qBAAY;CAYnE;AAZD,gFAYC;AAPC;IAJC,IAAA,6BAAgB,GAAE;IAClB,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oCAAyB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACjD,IAAA,4BAAU,GAAE;;kEACwB;AAMrC;IAJC,IAAA,6BAAgB,GAAE;IAClB,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,8BAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,4BAAU,GAAE;;iEACiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getAllQuery.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getAllQuery.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -7,9 +7,5 @@ export * from './preparedWithdrawalSummary.dto';
|
|
|
7
7
|
export * from './preparedWithdrawalTypedData.dto';
|
|
8
8
|
export * from './preparedWithdrawalTypedDataDomain.dto';
|
|
9
9
|
export * from './preparedWithdrawalTypedDataField.dto';
|
|
10
|
-
export * from './rawPreparedWithdrawal.dto';
|
|
11
|
-
export * from './rawSubmitWithdrawalSignedTx.dto';
|
|
12
10
|
export * from './submitWithdrawal.dto';
|
|
13
|
-
export * from './submitWithdrawalRawStep.dto';
|
|
14
|
-
export * from './submitWithdrawalSignedTx.dto';
|
|
15
11
|
export * from './updateWithdrawalConfig.dto';
|
|
@@ -23,10 +23,6 @@ __exportStar(require("./preparedWithdrawalSummary.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./preparedWithdrawalTypedData.dto"), exports);
|
|
24
24
|
__exportStar(require("./preparedWithdrawalTypedDataDomain.dto"), exports);
|
|
25
25
|
__exportStar(require("./preparedWithdrawalTypedDataField.dto"), exports);
|
|
26
|
-
__exportStar(require("./rawPreparedWithdrawal.dto"), exports);
|
|
27
|
-
__exportStar(require("./rawSubmitWithdrawalSignedTx.dto"), exports);
|
|
28
26
|
__exportStar(require("./submitWithdrawal.dto"), exports);
|
|
29
|
-
__exportStar(require("./submitWithdrawalRawStep.dto"), exports);
|
|
30
|
-
__exportStar(require("./submitWithdrawalSignedTx.dto"), exports);
|
|
31
27
|
__exportStar(require("./updateWithdrawalConfig.dto"), exports);
|
|
32
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,yDAAuC;AACvC,+DAA6C"}
|
|
@@ -32,4 +32,9 @@ __decorate([
|
|
|
32
32
|
(0, class_validator_1.IsMongoId)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], PreparedWithdrawalDto.prototype, "toCurrencyId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsMongoId)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], PreparedWithdrawalDto.prototype, "sourceCurrencyId", void 0);
|
|
35
40
|
//# sourceMappingURL=preparedWithdrawal.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparedWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"preparedWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,MAAa,qBAAqB;CAkCjC;AAlCD,sDAkCC;AA1BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACQ;AAOrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACK;AAKlB;IADC,IAAA,yBAAO,EAAC,OAAO,CAAC;;qDACF;AAKf;IADC,IAAA,2BAAS,GAAE;;2DACS;AAQrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;+DACc"}
|
|
@@ -10,9 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubmitWithdrawalDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const submitWithdrawalSignedTx_dto_1 = require("./submitWithdrawalSignedTx.dto");
|
|
16
14
|
class SubmitWithdrawalDto {
|
|
17
15
|
}
|
|
18
16
|
exports.SubmitWithdrawalDto = SubmitWithdrawalDto;
|
|
@@ -21,8 +19,8 @@ __decorate([
|
|
|
21
19
|
__metadata("design:type", String)
|
|
22
20
|
], SubmitWithdrawalDto.prototype, "token", void 0);
|
|
23
21
|
__decorate([
|
|
24
|
-
(0, class_validator_1.
|
|
25
|
-
(0,
|
|
26
|
-
__metadata("design:type",
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
27
25
|
], SubmitWithdrawalDto.prototype, "signedTx", void 0);
|
|
28
26
|
//# sourceMappingURL=submitWithdrawal.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"submitWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,mBAAmB;CAe/B;AAfD,kDAeC;AARC;IADC,IAAA,uBAAK,GAAE;;kDACM;AAOd;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACI"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("reflect-metadata");
|
|
4
|
+
const class_validator_1 = require("class-validator");
|
|
5
|
+
const class_transformer_1 = require("class-transformer");
|
|
6
|
+
const submitWithdrawal_dto_1 = require("./submitWithdrawal.dto");
|
|
7
|
+
const TOKEN = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIn0.c2lnbmF0dXJl';
|
|
8
|
+
describe('SubmitWithdrawalDto', () => {
|
|
9
|
+
it('accepts a non-empty signed payload', async () => {
|
|
10
|
+
const dto = (0, class_transformer_1.plainToInstance)(submitWithdrawal_dto_1.SubmitWithdrawalDto, {
|
|
11
|
+
token: TOKEN,
|
|
12
|
+
signedTx: `0x${'a'.repeat(130)}`,
|
|
13
|
+
});
|
|
14
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
15
|
+
expect(errors).toHaveLength(0);
|
|
16
|
+
});
|
|
17
|
+
it('rejects a missing signedTx', async () => {
|
|
18
|
+
const dto = (0, class_transformer_1.plainToInstance)(submitWithdrawal_dto_1.SubmitWithdrawalDto, { token: TOKEN });
|
|
19
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
20
|
+
expect(errors.find((e) => e.property === 'signedTx')).toBeDefined();
|
|
21
|
+
});
|
|
22
|
+
it('rejects an empty signedTx', async () => {
|
|
23
|
+
const dto = (0, class_transformer_1.plainToInstance)(submitWithdrawal_dto_1.SubmitWithdrawalDto, {
|
|
24
|
+
token: TOKEN,
|
|
25
|
+
signedTx: '',
|
|
26
|
+
});
|
|
27
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
28
|
+
expect(errors.find((e) => e.property === 'signedTx')).toBeDefined();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=submitWithdrawal.dto.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitWithdrawal.dto.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAC1B,qDAA2C;AAC3C,yDAAoD;AACpD,iEAA6D;AAG7D,MAAM,KAAK,GAAG,mDAAmD,CAAC;AAElE,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,GAAG,GAAG,IAAA,mCAAe,EAAC,0CAAmB,EAAE;YAC/C,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,KAAK,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;SACjC,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;QAC1C,MAAM,GAAG,GAAG,IAAA,mCAAe,EAAC,0CAAmB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,GAAG,GAAG,IAAA,mCAAe,EAAC,0CAAmB,EAAE;YAC/C,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,EAAE;SACb,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WithdrawalConfigEntity } from './WithdrawalConfig.entity';
|
|
2
|
+
import { SlimCurrencyWithBlockchain } from '../../currency/entities/SlimCurrencyWithBlockchain.entity';
|
|
3
|
+
export declare class PublicWithdrawalConfigEntity extends WithdrawalConfigEntity {
|
|
4
|
+
fromCurrencies: SlimCurrencyWithBlockchain[];
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicWithdrawalConfigEntity = void 0;
|
|
4
|
+
const WithdrawalConfig_entity_1 = require("./WithdrawalConfig.entity");
|
|
5
|
+
class PublicWithdrawalConfigEntity extends WithdrawalConfig_entity_1.WithdrawalConfigEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.PublicWithdrawalConfigEntity = PublicWithdrawalConfigEntity;
|
|
8
|
+
//# sourceMappingURL=PublicWithdrawalConfig.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicWithdrawalConfig.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.ts"],"names":[],"mappings":";;;AAAA,uEAAmE;AAGnE,MAAa,4BAA6B,SAAQ,gDAAsB;CAEvE;AAFD,oEAEC"}
|
package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { WithdrawalCustomerSwapRoute } from './WithdrawalCustomerSwapRoute.entity';
|
|
2
|
+
import { SlimCurrencyWithBlockchain } from '../../currency/entities/SlimCurrencyWithBlockchain.entity';
|
|
2
3
|
export declare class WithdrawalCustomerSwapRoutesResponse {
|
|
4
|
+
fromCurrencies: SlimCurrencyWithBlockchain[];
|
|
3
5
|
routes: WithdrawalCustomerSwapRoute[];
|
|
4
6
|
}
|
package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalCustomerSwapRoutesResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"WithdrawalCustomerSwapRoutesResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.ts"],"names":[],"mappings":";;;AAOA,MAAa,oCAAoC;CAIhD;AAJD,oFAIC"}
|
|
@@ -3,6 +3,7 @@ export * from './SubmitWithdrawal.entity';
|
|
|
3
3
|
export * from './WithdrawalDetail.entity';
|
|
4
4
|
export * from './WithdrawalBalancesResponse.entity';
|
|
5
5
|
export * from './WithdrawalConfig.entity';
|
|
6
|
+
export * from './PublicWithdrawalConfig.entity';
|
|
6
7
|
export * from './WithdrawalCostBreakdown.entity';
|
|
7
8
|
export * from './WithdrawalCustomerSwapRoute.entity';
|
|
8
9
|
export * from './WithdrawalCustomerSwapRoutesResponse.entity';
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./SubmitWithdrawal.entity"), exports);
|
|
|
19
19
|
__exportStar(require("./WithdrawalDetail.entity"), exports);
|
|
20
20
|
__exportStar(require("./WithdrawalBalancesResponse.entity"), exports);
|
|
21
21
|
__exportStar(require("./WithdrawalConfig.entity"), exports);
|
|
22
|
+
__exportStar(require("./PublicWithdrawalConfig.entity"), exports);
|
|
22
23
|
__exportStar(require("./WithdrawalCostBreakdown.entity"), exports);
|
|
23
24
|
__exportStar(require("./WithdrawalCustomerSwapRoute.entity"), exports);
|
|
24
25
|
__exportStar(require("./WithdrawalCustomerSwapRoutesResponse.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,mEAAiD;AACjD,uEAAqD;AACrD,gFAA8D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,kEAAgD;AAChD,mEAAiD;AACjD,uEAAqD;AACrD,gFAA8D"}
|
|
@@ -28,11 +28,12 @@ describe('PreparedTransaction discriminated union', () => {
|
|
|
28
28
|
it('narrows raw → unsignedTx', () => {
|
|
29
29
|
const prepared = {
|
|
30
30
|
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
31
|
-
chain: BlockchainSymbol_1.BlockchainSymbol.
|
|
32
|
-
unsignedTx: '
|
|
31
|
+
chain: BlockchainSymbol_1.BlockchainSymbol.SOL,
|
|
32
|
+
unsignedTx: 'AQABBA==',
|
|
33
33
|
};
|
|
34
34
|
if (prepared.kind === SignedTransactionKind_1.SignedTransactionKind.RAW) {
|
|
35
|
-
expect(prepared.
|
|
35
|
+
expect(prepared.chain).toBe(BlockchainSymbol_1.BlockchainSymbol.SOL);
|
|
36
|
+
expect(prepared.unsignedTx).toBe('AQABBA==');
|
|
36
37
|
}
|
|
37
38
|
else {
|
|
38
39
|
throw new Error('expected RAW narrowing');
|
|
@@ -70,10 +71,10 @@ describe('PreparedTransaction discriminated union', () => {
|
|
|
70
71
|
};
|
|
71
72
|
const raw = {
|
|
72
73
|
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
73
|
-
chain: BlockchainSymbol_1.BlockchainSymbol.
|
|
74
|
-
unsignedTx: '
|
|
74
|
+
chain: BlockchainSymbol_1.BlockchainSymbol.SOL,
|
|
75
|
+
unsignedTx: 'rawtx',
|
|
75
76
|
};
|
|
76
|
-
expect(describeKind(raw)).toBe('
|
|
77
|
+
expect(describeKind(raw)).toBe('rawtx');
|
|
77
78
|
});
|
|
78
79
|
});
|
|
79
80
|
//# sourceMappingURL=preparedTransaction.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparedTransaction.spec.js","sourceRoot":"","sources":["../../../../../src/domain/model/withdraw/preparedTransaction.spec.ts"],"names":[],"mappings":";;AAAA,+EAA4E;AAC5E,wFAAqF;AAGrF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACvD,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,QAAQ,GAAwB;YACpC,IAAI,EAAE,6CAAqB,CAAC,iBAAiB;YAC7C,SAAS,EAAE;gBACT,MAAM,EAAE;oBACN,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,GAAG;oBACZ,iBAAiB,EAAE,MAAM;iBAC1B;gBACD,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE;gBACtD,WAAW,EAAE,OAAO;gBACpB,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;aACxB;SACF,CAAC;QACF,IAAI,QAAQ,CAAC,IAAI,KAAK,6CAAqB,CAAC,iBAAiB,EAAE,CAAC;YAC9D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,QAAQ,GAAwB;YACpC,IAAI,EAAE,6CAAqB,CAAC,GAAG;YAC/B,KAAK,EAAE,mCAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"preparedTransaction.spec.js","sourceRoot":"","sources":["../../../../../src/domain/model/withdraw/preparedTransaction.spec.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BlockchainSymbol } from '../model';
|
|
2
1
|
import { Environment } from '../constants';
|
|
3
2
|
export declare class BlockchainExplorerService {
|
|
4
|
-
static getExplorerUrl(blockchain:
|
|
3
|
+
static getExplorerUrl(blockchain: string, transactionId: string, network: Environment): string | undefined;
|
|
5
4
|
}
|
|
@@ -7,6 +7,16 @@ const SolscanService_1 = require("./SolscanService");
|
|
|
7
7
|
const PolygonExplorerService_1 = require("./PolygonExplorerService");
|
|
8
8
|
const BitcoinExplorerService_1 = require("./BitcoinExplorerService");
|
|
9
9
|
const BaseExplorerService_1 = require("./BaseExplorerService");
|
|
10
|
+
const SIMPLE_TX_EXPLORER_URLS = {
|
|
11
|
+
ARBITRUM: 'https://arbiscan.io/tx/',
|
|
12
|
+
BSC: 'https://bscscan.com/tx/',
|
|
13
|
+
DOGE: 'https://dogechain.info/tx/',
|
|
14
|
+
TRON: 'https://tronscan.org/#/transaction/',
|
|
15
|
+
ABSTRACT: 'https://abscan.org/tx/',
|
|
16
|
+
HYPERLIQUID: 'https://hyperliquid.cloud/tx/',
|
|
17
|
+
PLASMA: 'https://plasmascan.io/tx/',
|
|
18
|
+
MEGAETH: 'https://megaexplorer.xyz/tx/',
|
|
19
|
+
};
|
|
10
20
|
class BlockchainExplorerService {
|
|
11
21
|
static getExplorerUrl(blockchain, transactionId, network) {
|
|
12
22
|
switch (blockchain) {
|
|
@@ -20,8 +30,10 @@ class BlockchainExplorerService {
|
|
|
20
30
|
return SolscanService_1.SolscanService.toSolScanLink(transactionId, network);
|
|
21
31
|
case model_1.BlockchainSymbol.BITCOIN:
|
|
22
32
|
return BitcoinExplorerService_1.BitcoinExplorerService.getTransactionUrl(transactionId, network);
|
|
23
|
-
default:
|
|
24
|
-
|
|
33
|
+
default: {
|
|
34
|
+
const base = SIMPLE_TX_EXPLORER_URLS[blockchain];
|
|
35
|
+
return base ? `${base}${transactionId}` : undefined;
|
|
36
|
+
}
|
|
25
37
|
}
|
|
26
38
|
}
|
|
27
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockchainExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BlockchainExplorerService.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,uEAAoE;AACpE,qDAAkD;AAClD,qEAAkE;AAClE,qEAAkE;AAClE,+DAA4D;AAE5D,MAAa,yBAAyB;IACpC,MAAM,CAAC,cAAc,CACnB,
|
|
1
|
+
{"version":3,"file":"BlockchainExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BlockchainExplorerService.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,uEAAoE;AACpE,qDAAkD;AAClD,qEAAkE;AAClE,qEAAkE;AAClE,+DAA4D;AAE5D,MAAM,uBAAuB,GAA2B;IACtD,QAAQ,EAAE,yBAAyB;IACnC,GAAG,EAAE,yBAAyB;IAC9B,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,qCAAqC;IAC3C,QAAQ,EAAE,wBAAwB;IAClC,WAAW,EAAE,+BAA+B;IAC5C,MAAM,EAAE,2BAA2B;IACnC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEF,MAAa,yBAAyB;IACpC,MAAM,CAAC,cAAc,CACnB,UAAkB,EAClB,aAAqB,EACrB,OAAoB;QAEpB,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,iDAAuB,CAAC,iCAAiC,CAC9D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,gCAAgC,CAC5D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,IAAI;gBACxB,OAAO,yCAAmB,CAAC,6BAA6B,CACtD,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,+BAAc,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE9D,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE1E,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,IAAI,GAAG,uBAAuB,CAAC,UAAU,CAAC,CAAC;gBACjD,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,aAAa,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,CAAC;QACH,CAAC;IACH,CAAC;CACF;AArCD,8DAqCC"}
|