@heliofi/common 0.1.198 → 0.1.199
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/environment.d.ts +3 -3
- package/dist/src/domain/constants/generalNetwork.d.ts +5 -0
- package/dist/src/domain/constants/generalNetwork.js +10 -0
- package/dist/src/domain/constants/generalNetwork.js.map +1 -0
- package/dist/src/domain/constants/index.d.ts +1 -0
- package/dist/src/domain/constants/index.js +1 -0
- package/dist/src/domain/constants/index.js.map +1 -1
- package/dist/src/domain/constants/orderDirection.d.ts +3 -5
- package/dist/src/domain/model/apiKey/dtos/createApiKeyDtoInternal.d.ts +4 -4
- package/dist/src/domain/model/apiKey/entities/ApiKeyAccess.d.ts +3 -3
- package/dist/src/domain/model/approve-transaction/dtos/approveTransaction.dto.d.ts +12 -12
- package/dist/src/domain/model/attachment/dtos/createAttachmentInternal.dto.d.ts +4 -4
- package/dist/src/domain/model/auth/dtos/signOn.dto.d.ts +2 -2
- package/dist/src/domain/model/auth/dtos/transactionSignOn.dto.d.ts +1 -1
- package/dist/src/domain/model/auth/entities/AuthResponse.d.ts +4 -4
- package/dist/src/domain/model/blockchain/constants/Cluster.d.ts +3 -3
- package/dist/src/domain/model/blockchain/dtos/blockchain.dto.d.ts +2 -2
- package/dist/src/domain/model/breakpoint/dtos/breakpoint.dto.d.ts +8 -8
- package/dist/src/domain/model/breakpoint/entities/BreakpointResponse.d.ts +2 -2
- package/dist/src/domain/model/discordDetails/dtos/createDiscordDetails.dto.d.ts +5 -5
- package/dist/src/domain/model/discordDetails/dtos/updateDiscordDetails.dto.d.ts +4 -4
- package/dist/src/domain/model/discordDetails/entities/BaseDiscordDetails.d.ts +5 -5
- package/dist/src/domain/model/discordDetails/entities/DiscordBotVersion.d.ts +2 -2
- package/dist/src/domain/model/discordDetails/entities/DiscordDetails.d.ts +1 -1
- package/dist/src/domain/model/entity/Entity.d.ts +2 -2
- package/dist/src/domain/model/fee/entities/FeeFeature.enum.d.ts +2 -1
- package/dist/src/domain/model/fee/entities/FeeFeature.enum.js +1 -0
- package/dist/src/domain/model/fee/entities/FeeFeature.enum.js.map +1 -1
- package/dist/src/domain/model/fixed-currency/entities/TokenRatePayload.d.ts +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/metrics/entities/Metrics.d.ts +5 -5
- package/dist/src/domain/model/paylink/entities/BasePaylink.d.ts +3 -3
- package/dist/src/domain/model/paylink/entities/Paylink.d.ts +3 -3
- package/dist/src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.d.ts +4 -4
- package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.d.ts +1 -1
- package/dist/src/domain/model/paylink-tx/entities/BasePaylinkTx.d.ts +5 -5
- package/dist/src/domain/model/paylink-tx/entities/PaylinkTx.d.ts +2 -2
- package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithMeta.d.ts +1 -1
- package/dist/src/domain/model/paylink-tx/entities/ShallowEnrichedPaylinkTx.d.ts +2 -2
- package/dist/src/domain/model/paystream/entities/IntervalType.d.ts +7 -7
- package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.d.ts +7 -7
- package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.d.ts +3 -3
- package/dist/src/domain/model/prepare-refund/dtos/index.d.ts +1 -0
- package/dist/src/domain/{contact/entities → model/prepare-refund/dtos}/index.js +1 -1
- package/dist/src/domain/model/prepare-refund/dtos/index.js.map +1 -0
- package/dist/src/domain/model/prepare-refund/dtos/prepareRefund.dto.d.ts +6 -0
- package/dist/src/domain/model/{submit-transaction/dtos/CheckTransactionStatus.dto.js → prepare-refund/dtos/prepareRefund.dto.js} +12 -6
- package/dist/src/domain/model/prepare-refund/dtos/prepareRefund.dto.js.map +1 -0
- package/dist/src/domain/model/prepare-refund/index.d.ts +1 -0
- package/dist/src/domain/{contactAddress → model/prepare-refund}/index.js +0 -1
- package/dist/src/domain/model/prepare-refund/index.js.map +1 -0
- package/dist/src/domain/model/product/dtos/product.dto.d.ts +3 -3
- package/dist/src/domain/model/product/entities/Product.d.ts +3 -3
- package/dist/src/domain/model/product/entities/ProductInputType.d.ts +2 -2
- package/dist/src/domain/model/product-details/dtos/productDetails.dto.d.ts +2 -2
- package/dist/src/domain/model/product-details/entities/ProductDetails.d.ts +2 -2
- package/dist/src/domain/model/role/dtos/createRole.dto.d.ts +3 -3
- package/dist/src/domain/model/role/dtos/updateRole.dto.d.ts +1 -1
- package/dist/src/domain/model/role/entities/BaseRole.d.ts +2 -2
- package/dist/src/domain/model/role/entities/Role.d.ts +2 -2
- package/dist/src/domain/model/role/entities/RoleType.d.ts +3 -3
- package/dist/src/domain/model/role/entities/ShallowEnrichedRole.d.ts +2 -2
- package/dist/src/domain/model/slug/dtos/slug.dto.d.ts +3 -3
- package/dist/src/domain/model/slug/dtos/updateSlug.dto.d.ts +3 -3
- package/dist/src/domain/model/slug/entities/Slug.d.ts +6 -6
- package/dist/src/domain/model/slug/entities/SlugObjectType.d.ts +3 -3
- package/dist/src/domain/model/split-account/dtos/splitAccount.dto.d.ts +2 -2
- package/dist/src/domain/model/split-account/entities/SplitAccount.d.ts +2 -2
- package/dist/src/domain/model/split-wallets/dtos/splitWallet.dto.d.ts +2 -2
- package/dist/src/domain/model/split-wallets/entities/SplitWallet.d.ts +2 -2
- package/dist/src/domain/model/stream/dtos/cancelStream.dto.d.ts +5 -5
- package/dist/src/domain/model/stream/dtos/createStream.dto.d.ts +12 -12
- package/dist/src/domain/model/stream/dtos/withdrawStream.dto.d.ts +4 -4
- package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.d.ts +2 -2
- package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.d.ts +2 -2
- package/dist/src/domain/model/stream-event/entities/StreamEvent.d.ts +2 -2
- package/dist/src/domain/model/wallet/dtos/updateWallet.dto.d.ts +1 -1
- package/dist/src/domain/model/webhook/paylink-transaction-hook/dtos/CreatePaylinkTransactionHook.dto.d.ts +3 -3
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionEvent.entity.d.ts +1 -1
- package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.d.ts +3 -3
- package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.d.ts +1 -1
- package/dist/src/domain/model/withdrawal/entities/Withdrawal.d.ts +3 -3
- package/dist/src/domain/model/withdrawal/entities/WithdrawalWithTransaction.d.ts +2 -2
- package/dist/src/domain/services/ClusterService.d.ts +9 -0
- package/dist/src/domain/services/ClusterService.js +57 -0
- package/dist/src/domain/services/ClusterService.js.map +1 -0
- package/dist/src/domain/services/CurrencyService.d.ts +1 -1
- package/dist/src/domain/services/SolscanService.d.ts +1 -1
- package/dist/src/domain/services/index.d.ts +1 -0
- package/dist/src/domain/services/index.js +1 -0
- package/dist/src/domain/services/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/contact/dtos/createContact.dto.d.ts +0 -8
- package/dist/src/domain/contact/dtos/createContact.dto.js +0 -45
- package/dist/src/domain/contact/dtos/createContact.dto.js.map +0 -1
- package/dist/src/domain/contact/dtos/index.d.ts +0 -2
- package/dist/src/domain/contact/dtos/index.js +0 -19
- package/dist/src/domain/contact/dtos/index.js.map +0 -1
- package/dist/src/domain/contact/dtos/updateContact.dto.d.ts +0 -8
- package/dist/src/domain/contact/dtos/updateContact.dto.js +0 -45
- package/dist/src/domain/contact/dtos/updateContact.dto.js.map +0 -1
- package/dist/src/domain/contact/entities/Contact.entity.d.ts +0 -14
- package/dist/src/domain/contact/entities/Contact.entity.js +0 -8
- package/dist/src/domain/contact/entities/Contact.entity.js.map +0 -1
- package/dist/src/domain/contact/entities/index.d.ts +0 -1
- package/dist/src/domain/contact/entities/index.js.map +0 -1
- package/dist/src/domain/contact/index.d.ts +0 -2
- package/dist/src/domain/contact/index.js +0 -19
- package/dist/src/domain/contact/index.js.map +0 -1
- package/dist/src/domain/contactAddress/dtos/ContactAddress.dto.d.ts +0 -8
- package/dist/src/domain/contactAddress/dtos/ContactAddress.dto.js +0 -47
- package/dist/src/domain/contactAddress/dtos/ContactAddress.dto.js.map +0 -1
- package/dist/src/domain/contactAddress/dtos/index.d.ts +0 -1
- package/dist/src/domain/contactAddress/dtos/index.js +0 -18
- package/dist/src/domain/contactAddress/dtos/index.js.map +0 -1
- package/dist/src/domain/contactAddress/entities/ContactAddress.entity.d.ts +0 -9
- package/dist/src/domain/contactAddress/entities/ContactAddress.entity.js +0 -8
- package/dist/src/domain/contactAddress/entities/ContactAddress.entity.js.map +0 -1
- package/dist/src/domain/contactAddress/entities/index.d.ts +0 -1
- package/dist/src/domain/contactAddress/entities/index.js +0 -18
- package/dist/src/domain/contactAddress/entities/index.js.map +0 -1
- package/dist/src/domain/contactAddress/index.d.ts +0 -2
- package/dist/src/domain/contactAddress/index.js.map +0 -1
- package/dist/src/domain/model/apiKey/dtos/createApiKeyDto.d.ts +0 -4
- package/dist/src/domain/model/apiKey/dtos/createApiKeyDto.js +0 -52
- package/dist/src/domain/model/apiKey/dtos/createApiKeyDto.js.map +0 -1
- package/dist/src/domain/model/apiKey/entities/ApiKey.d.ts +0 -11
- package/dist/src/domain/model/apiKey/entities/ApiKey.js +0 -7
- package/dist/src/domain/model/apiKey/entities/ApiKey.js.map +0 -1
- package/dist/src/domain/model/attachment/entities/BaseAttachment.d.ts +0 -7
- package/dist/src/domain/model/attachment/entities/BaseAttachment.js +0 -8
- package/dist/src/domain/model/attachment/entities/BaseAttachment.js.map +0 -1
- package/dist/src/domain/model/audit/tx/dtos/CreatePaylinkTxAudit.dto.d.ts +0 -16
- package/dist/src/domain/model/audit/tx/dtos/CreatePaylinkTxAudit.dto.js +0 -3
- package/dist/src/domain/model/audit/tx/dtos/CreatePaylinkTxAudit.dto.js.map +0 -1
- package/dist/src/domain/model/blockchain/constants/ConfirmTimeout.d.ts +0 -5
- package/dist/src/domain/model/blockchain/constants/ConfirmTimeout.js +0 -10
- package/dist/src/domain/model/blockchain/constants/ConfirmTimeout.js.map +0 -1
- package/dist/src/domain/model/blockchain/entities/Blockchain.d.ts +0 -6
- package/dist/src/domain/model/blockchain/entities/Blockchain.js +0 -8
- package/dist/src/domain/model/blockchain/entities/Blockchain.js.map +0 -1
- package/dist/src/domain/model/company/entities/BaseCompany.d.ts +0 -13
- package/dist/src/domain/model/company/entities/BaseCompany.js +0 -8
- package/dist/src/domain/model/company/entities/BaseCompany.js.map +0 -1
- package/dist/src/domain/model/company/entities/Company.d.ts +0 -7
- package/dist/src/domain/model/company/entities/Company.js +0 -8
- package/dist/src/domain/model/company/entities/Company.js.map +0 -1
- package/dist/src/domain/model/currency/entities/BaseCurrency.d.ts +0 -14
- package/dist/src/domain/model/currency/entities/BaseCurrency.js +0 -8
- package/dist/src/domain/model/currency/entities/BaseCurrency.js.map +0 -1
- package/dist/src/domain/model/currency/entities/Currency.d.ts +0 -5
- package/dist/src/domain/model/currency/entities/Currency.js +0 -8
- package/dist/src/domain/model/currency/entities/Currency.js.map +0 -1
- package/dist/src/domain/model/location/entities/FetchifyFindAddress.d.ts +0 -8
- package/dist/src/domain/model/location/entities/FetchifyFindAddress.js +0 -8
- package/dist/src/domain/model/location/entities/FetchifyFindAddress.js.map +0 -1
- package/dist/src/domain/model/location/entities/FetchifyRetrieveAddress.d.ts +0 -13
- package/dist/src/domain/model/location/entities/FetchifyRetrieveAddress.js +0 -8
- package/dist/src/domain/model/location/entities/FetchifyRetrieveAddress.js.map +0 -1
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.d.ts +0 -16
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.js +0 -7
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.js.map +0 -1
- package/dist/src/domain/model/paystream-tx/entities/TransactionStatus.d.ts +0 -16
- package/dist/src/domain/model/paystream-tx/entities/TransactionStatus.js +0 -7
- package/dist/src/domain/model/paystream-tx/entities/TransactionStatus.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.d.ts +0 -5
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.js +0 -8
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.js.map +0 -1
- package/dist/src/domain/model/prepare-stream/entities/PrepareStream.d.ts +0 -5
- package/dist/src/domain/model/prepare-stream/entities/PrepareStream.js +0 -8
- package/dist/src/domain/model/prepare-stream/entities/PrepareStream.js.map +0 -1
- package/dist/src/domain/model/prepare-stream/entities/TokenStreamWithdrawPayload.d.ts +0 -5
- package/dist/src/domain/model/prepare-stream/entities/TokenStreamWithdrawPayload.js +0 -8
- package/dist/src/domain/model/prepare-stream/entities/TokenStreamWithdrawPayload.js.map +0 -1
- package/dist/src/domain/model/prepare-transaction/dtos/prepareSwappedTransaction.dto.d.ts +0 -4
- package/dist/src/domain/model/prepare-transaction/dtos/prepareSwappedTransaction.dto.js +0 -23
- package/dist/src/domain/model/prepare-transaction/dtos/prepareSwappedTransaction.dto.js.map +0 -1
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.d.ts +0 -5
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.js +0 -7
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.js.map +0 -1
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwappedTransaction.d.ts +0 -5
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwappedTransaction.js +0 -7
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwappedTransaction.js.map +0 -1
- package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.d.ts +0 -5
- package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.js +0 -8
- package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.js.map +0 -1
- package/dist/src/domain/model/report/entities/ReportItem.d.ts +0 -37
- package/dist/src/domain/model/report/entities/ReportItem.js +0 -7
- package/dist/src/domain/model/report/entities/ReportItem.js.map +0 -1
- package/dist/src/domain/model/submit-transaction/dtos/CheckTransactionStatus.dto.d.ts +0 -4
- package/dist/src/domain/model/submit-transaction/dtos/CheckTransactionStatus.dto.js.map +0 -1
- package/dist/src/domain/model/submit-transaction/dtos/submitSwappedTransaction.dto.d.ts +0 -4
- package/dist/src/domain/model/submit-transaction/dtos/submitSwappedTransaction.dto.js +0 -23
- package/dist/src/domain/model/submit-transaction/dtos/submitSwappedTransaction.dto.js.map +0 -1
- package/dist/src/domain/model/token-quoting/entities/TokenQuoting.d.ts +0 -4
- package/dist/src/domain/model/token-quoting/entities/TokenQuoting.js +0 -8
- package/dist/src/domain/model/token-quoting/entities/TokenQuoting.js.map +0 -1
- package/dist/src/domain/model/token-swap/entities/SwapRouteObject.d.ts +0 -14
- package/dist/src/domain/model/token-swap/entities/SwapRouteObject.js +0 -9
- package/dist/src/domain/model/token-swap/entities/SwapRouteObject.js.map +0 -1
- package/dist/src/domain/model/token-swap/entities/SwapRouteToken.d.ts +0 -4
- package/dist/src/domain/model/token-swap/entities/SwapRouteToken.js +0 -8
- package/dist/src/domain/model/token-swap/entities/SwapRouteToken.js.map +0 -1
- package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.d.ts +0 -16
- package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.js +0 -26
- package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.js.map +0 -1
- package/dist/src/domain/model/transaction-meta/entities/TransactionStatus.entity.d.ts +0 -7
- package/dist/src/domain/model/transaction-meta/entities/TransactionStatus.entity.js +0 -12
- package/dist/src/domain/model/transaction-meta/entities/TransactionStatus.entity.js.map +0 -1
- package/dist/src/domain/model/user/entities/BaseUser.d.ts +0 -8
- package/dist/src/domain/model/user/entities/BaseUser.js +0 -8
- package/dist/src/domain/model/user/entities/BaseUser.js.map +0 -1
- package/dist/src/domain/model/wallet/entities/BaseWallet.d.ts +0 -5
- package/dist/src/domain/model/wallet/entities/BaseWallet.js +0 -8
- package/dist/src/domain/model/wallet/entities/BaseWallet.js.map +0 -1
- package/dist/src/domain/model/wallet/entities/Wallet.d.ts +0 -7
- package/dist/src/domain/model/wallet/entities/Wallet.js +0 -8
- package/dist/src/domain/model/wallet/entities/Wallet.js.map +0 -1
- package/dist/src/domain/model/wallet/entities/WalletDetails.d.ts +0 -4
- package/dist/src/domain/model/wallet/entities/WalletDetails.js +0 -8
- package/dist/src/domain/model/wallet/entities/WalletDetails.js.map +0 -1
- package/dist/src/domain/model/webhook/paylink-transaction-hook/PaylinkTransactionEvent.d.ts +0 -3
- package/dist/src/domain/model/webhook/paylink-transaction-hook/PaylinkTransactionEvent.js +0 -11
- package/dist/src/domain/model/webhook/paylink-transaction-hook/PaylinkTransactionEvent.js.map +0 -1
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionEvent.d.ts +0 -3
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionEvent.js +0 -11
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionEvent.js.map +0 -1
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionHook.d.ts +0 -9
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionHook.js +0 -7
- package/dist/src/domain/model/webhook/paylink-transaction-hook/entities/PaylinkTransactionHook.js.map +0 -1
- package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.d.ts +0 -4
- package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.js +0 -41
- package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.js.map +0 -1
- package/dist/src/domain/services/EmailService.d.ts +0 -3
- package/dist/src/domain/services/EmailService.js +0 -11
- package/dist/src/domain/services/EmailService.js.map +0 -1
|
@@ -2,6 +2,6 @@ import { BaseRole } from './BaseRole';
|
|
|
2
2
|
import type { BaseUser } from '../../user';
|
|
3
3
|
import { BaseCompany } from '../../company';
|
|
4
4
|
export declare class ShallowEnrichedRole extends BaseRole {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
company: BaseCompany;
|
|
6
|
+
user: BaseUser;
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Entity } from '../../entity';
|
|
2
2
|
export declare class Slug extends Entity {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
objectType: string;
|
|
6
|
+
objectId: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
inactiveDate?: number;
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class CancelStreamDto {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
id: string;
|
|
3
|
+
transactionSignature: string;
|
|
4
|
+
paymentRequestId: string;
|
|
5
|
+
canceledAt: string;
|
|
6
|
+
paymentAccount: string;
|
|
7
7
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { CustomerDetailsDto } from '../../customer-details';
|
|
2
2
|
import { ProductDetailsDto } from '../../product-details';
|
|
3
3
|
export declare class CreateStreamDto {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
transactionSignature: string;
|
|
5
|
+
paymentRequestId: string;
|
|
6
|
+
sender: string;
|
|
7
|
+
recipient: string;
|
|
8
|
+
amount: string;
|
|
9
|
+
currency: string;
|
|
10
|
+
startedAt: string;
|
|
11
|
+
endedAt: string;
|
|
12
|
+
interval: number;
|
|
13
|
+
paymentAccount: string;
|
|
14
|
+
customerDetails: CustomerDetailsDto;
|
|
15
|
+
productDetails: ProductDetailsDto;
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaylinkTransactionEvent } from '../entities';
|
|
2
2
|
export declare class CreatePaylinkTransactionHookDto {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
paylinkId: string;
|
|
4
|
+
targetUrl: string;
|
|
5
|
+
events?: PaylinkTransactionEvent[];
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entity } from '../../entity';
|
|
2
2
|
import { Withdrawal } from './Withdrawal';
|
|
3
3
|
export declare class WithdrawalWithTransaction extends Entity {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
document: Withdrawal;
|
|
5
|
+
transactionSignature?: string;
|
|
6
6
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GeneralNetwork } from '../constants';
|
|
2
|
+
import { BlockchainSymbol, Cluster } from '../model';
|
|
3
|
+
export declare class ClusterService {
|
|
4
|
+
static toBECluster: (cluster: GeneralNetwork) => Cluster;
|
|
5
|
+
static getBlockchainClusterEndpoint: (cluster: Cluster, blockchain: BlockchainSymbol) => string;
|
|
6
|
+
static getPolygonClusterEndpoint: (cluster: Cluster) => string;
|
|
7
|
+
static getSolanaClusterEndpoint: (cluster: Cluster) => string;
|
|
8
|
+
static getEthClusterEndpoint: (cluster: Cluster) => string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterService = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const model_1 = require("../model");
|
|
6
|
+
class ClusterService {
|
|
7
|
+
}
|
|
8
|
+
exports.ClusterService = ClusterService;
|
|
9
|
+
ClusterService.toBECluster = (cluster) => {
|
|
10
|
+
switch (cluster) {
|
|
11
|
+
case constants_1.GeneralNetwork.DEVNET:
|
|
12
|
+
return model_1.Cluster.DEV_NET;
|
|
13
|
+
case constants_1.GeneralNetwork.TESTNET:
|
|
14
|
+
return model_1.Cluster.TEST_NET;
|
|
15
|
+
case constants_1.GeneralNetwork.MAINNET:
|
|
16
|
+
return model_1.Cluster.MAIN_NET;
|
|
17
|
+
default:
|
|
18
|
+
throw new Error('No such type in general network');
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
ClusterService.getBlockchainClusterEndpoint = (cluster, blockchain) => {
|
|
22
|
+
switch (blockchain) {
|
|
23
|
+
case model_1.BlockchainSymbol.ETH:
|
|
24
|
+
return ClusterService.getEthClusterEndpoint(cluster);
|
|
25
|
+
case model_1.BlockchainSymbol.POLYGON:
|
|
26
|
+
return ClusterService.getPolygonClusterEndpoint(cluster);
|
|
27
|
+
case model_1.BlockchainSymbol.SOL:
|
|
28
|
+
return ClusterService.getSolanaClusterEndpoint(cluster);
|
|
29
|
+
default:
|
|
30
|
+
throw new Error('Wrong blockchain provided');
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
ClusterService.getPolygonClusterEndpoint = (cluster) => {
|
|
34
|
+
switch (cluster) {
|
|
35
|
+
case model_1.Cluster.MAIN_NET:
|
|
36
|
+
return 'https://chaotic-polished-film.matic.quiknode.pro/8cb3bb8c644810aaf02485ceb7ddf7a667c6f5be/';
|
|
37
|
+
default:
|
|
38
|
+
return 'https://sleek-floral-morning.matic-testnet.quiknode.pro/36f1f4259eedb86189d518239c1180469f798eb1/';
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
ClusterService.getSolanaClusterEndpoint = (cluster) => {
|
|
42
|
+
switch (cluster) {
|
|
43
|
+
case model_1.Cluster.MAIN_NET:
|
|
44
|
+
return 'https://wiser-fittest-river.solana-mainnet.quiknode.pro/';
|
|
45
|
+
default:
|
|
46
|
+
return 'https://evocative-light-card.solana-devnet.quiknode.pro/';
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
ClusterService.getEthClusterEndpoint = (cluster) => {
|
|
50
|
+
switch (cluster) {
|
|
51
|
+
case model_1.Cluster.MAIN_NET:
|
|
52
|
+
return 'https://broken-proportionate-dream.quiknode.pro/fc719afe6cefd74efcbfa6cff9c8d2d04c7de5ed/';
|
|
53
|
+
default:
|
|
54
|
+
return 'https://distinguished-magical-liquid.ethereum-goerli.quiknode.pro/c847d13d8bedbbde8394fafeaa80020c243e60b5/';
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=ClusterService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterService.js","sourceRoot":"","sources":["../../../../src/domain/services/ClusterService.ts"],"names":[],"mappings":";;;AAAA,4CAA8C;AAC9C,oCAAqD;AAErD,MAAa,cAAc;;AAA3B,wCAwDC;AAvDQ,0BAAW,GAAG,CAAC,OAAuB,EAAW,EAAE;IACxD,QAAQ,OAAO,EAAE;QACf,KAAK,0BAAc,CAAC,MAAM;YACxB,OAAO,eAAO,CAAC,OAAO,CAAC;QACzB,KAAK,0BAAc,CAAC,OAAO;YACzB,OAAO,eAAO,CAAC,QAAQ,CAAC;QAC1B,KAAK,0BAAc,CAAC,OAAO;YACzB,OAAO,eAAO,CAAC,QAAQ,CAAC;QAC1B;YACE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;KACtD;AACH,CAAC,CAAC;AAEK,2CAA4B,GAAG,CACpC,OAAgB,EAChB,UAA4B,EACpB,EAAE;IACV,QAAQ,UAAU,EAAE;QAClB,KAAK,wBAAgB,CAAC,GAAG;YACvB,OAAO,cAAc,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QACvD,KAAK,wBAAgB,CAAC,OAAO;YAC3B,OAAO,cAAc,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAC3D,KAAK,wBAAgB,CAAC,GAAG;YACvB,OAAO,cAAc,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAC1D;YACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;KAChD;AACH,CAAC,CAAC;AAEK,wCAAyB,GAAG,CAAC,OAAgB,EAAU,EAAE;IAC9D,QAAQ,OAAO,EAAE;QACf,KAAK,eAAO,CAAC,QAAQ;YACnB,OAAO,4FAA4F,CAAC;QACtG;YACE,OAAO,mGAAmG,CAAC;KAC9G;AACH,CAAC,CAAC;AAEK,uCAAwB,GAAG,CAAC,OAAgB,EAAU,EAAE;IAC7D,QAAQ,OAAO,EAAE;QACf,KAAK,eAAO,CAAC,QAAQ;YACnB,OAAO,0DAA0D,CAAC;QACpE;YACE,OAAO,0DAA0D,CAAC;KACrE;AACH,CAAC,CAAC;AAEK,oCAAqB,GAAG,CAAC,OAAgB,EAAU,EAAE;IAC1D,QAAQ,OAAO,EAAE;QACf,KAAK,eAAO,CAAC,QAAQ;YACnB,OAAO,2FAA2F,CAAC;QACrG;YACE,OAAO,6GAA6G,CAAC;KACxH;AACH,CAAC,CAAC"}
|
|
@@ -24,4 +24,5 @@ __exportStar(require("./TransactionSignService"), exports);
|
|
|
24
24
|
__exportStar(require("./SplitWalletService"), exports);
|
|
25
25
|
__exportStar(require("./PolygonExplorerService"), exports);
|
|
26
26
|
__exportStar(require("./ExplorerAggregateService"), exports);
|
|
27
|
+
__exportStar(require("./ClusterService"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,iEAA+C;AAC/C,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,iEAA+C;AAC/C,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,mDAAiC"}
|