@plutonlabs/sdk 0.0.1-beta
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/README.md +1 -0
- package/Readme.md +0 -0
- package/dist/common/consts/globalConst.d.ts +12 -0
- package/dist/common/consts/globalConst.d.ts.map +1 -0
- package/dist/common/consts/globalConst.js +15 -0
- package/dist/common/consts/globalConst.js.map +1 -0
- package/dist/common/enums/calc_mode.enum.d.ts +8 -0
- package/dist/common/enums/calc_mode.enum.d.ts.map +1 -0
- package/dist/common/enums/calc_mode.enum.js +32 -0
- package/dist/common/enums/calc_mode.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +3 -0
- package/dist/common/enums/index.d.ts.map +1 -0
- package/dist/common/enums/index.js +19 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/intent_type.enum.d.ts +6 -0
- package/dist/common/enums/intent_type.enum.d.ts.map +1 -0
- package/dist/common/enums/intent_type.enum.js +10 -0
- package/dist/common/enums/intent_type.enum.js.map +1 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +19 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interfaces/IChain.d.ts +20 -0
- package/dist/common/interfaces/IChain.d.ts.map +1 -0
- package/dist/common/interfaces/IChain.js +3 -0
- package/dist/common/interfaces/IChain.js.map +1 -0
- package/dist/common/interfaces/ILog.d.ts +8 -0
- package/dist/common/interfaces/ILog.d.ts.map +1 -0
- package/dist/common/interfaces/ILog.js +3 -0
- package/dist/common/interfaces/ILog.js.map +1 -0
- package/dist/common/utils/bignumber.column.transformer.d.ts +6 -0
- package/dist/common/utils/bignumber.column.transformer.d.ts.map +1 -0
- package/dist/common/utils/bignumber.column.transformer.js +17 -0
- package/dist/common/utils/bignumber.column.transformer.js.map +1 -0
- package/dist/common/utils/index.d.ts +3 -0
- package/dist/common/utils/index.d.ts.map +1 -0
- package/dist/common/utils/index.js +19 -0
- package/dist/common/utils/index.js.map +1 -0
- package/dist/common/utils/list.d.ts +3 -0
- package/dist/common/utils/list.d.ts.map +1 -0
- package/dist/common/utils/list.js +25 -0
- package/dist/common/utils/list.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.d.ts +35 -0
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.d.ts.map +1 -0
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.js +44 -0
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.js.map +1 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts +131 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js +133 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.d.ts +43 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.d.ts.map +1 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.js +51 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.js.map +1 -0
- package/dist/modules/chainsync/domain/dto/index.d.ts +5 -0
- package/dist/modules/chainsync/domain/dto/index.d.ts.map +1 -0
- package/dist/modules/chainsync/domain/dto/index.js +21 -0
- package/dist/modules/chainsync/domain/dto/index.js.map +1 -0
- package/dist/modules/chainsync/domain/dto/pluton_request.dto.d.ts +10 -0
- package/dist/modules/chainsync/domain/dto/pluton_request.dto.d.ts.map +1 -0
- package/dist/modules/chainsync/domain/dto/pluton_request.dto.js +54 -0
- package/dist/modules/chainsync/domain/dto/pluton_request.dto.js.map +1 -0
- package/dist/modules/chainsync/domain/index.d.ts +2 -0
- package/dist/modules/chainsync/domain/index.d.ts.map +1 -0
- package/dist/modules/chainsync/domain/index.js +18 -0
- package/dist/modules/chainsync/domain/index.js.map +1 -0
- package/dist/modules/chainsync/index.d.ts +2 -0
- package/dist/modules/chainsync/index.d.ts.map +1 -0
- package/dist/modules/chainsync/index.js +18 -0
- package/dist/modules/chainsync/index.js.map +1 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +22 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/network/domain/dto/index.d.ts +5 -0
- package/dist/modules/network/domain/dto/index.d.ts.map +1 -0
- package/dist/modules/network/domain/dto/index.js +21 -0
- package/dist/modules/network/domain/dto/index.js.map +1 -0
- package/dist/modules/network/domain/dto/network.dto.d.ts +50 -0
- package/dist/modules/network/domain/dto/network.dto.d.ts.map +1 -0
- package/dist/modules/network/domain/dto/network.dto.js +66 -0
- package/dist/modules/network/domain/dto/network.dto.js.map +1 -0
- package/dist/modules/network/domain/dto/network.update.dto.d.ts +66 -0
- package/dist/modules/network/domain/dto/network.update.dto.d.ts.map +1 -0
- package/dist/modules/network/domain/dto/network.update.dto.js +87 -0
- package/dist/modules/network/domain/dto/network.update.dto.js.map +1 -0
- package/dist/modules/network/domain/dto/network_provider.dto.d.ts +42 -0
- package/dist/modules/network/domain/dto/network_provider.dto.d.ts.map +1 -0
- package/dist/modules/network/domain/dto/network_provider.dto.js +53 -0
- package/dist/modules/network/domain/dto/network_provider.dto.js.map +1 -0
- package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts +45 -0
- package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts.map +1 -0
- package/dist/modules/network/domain/dto/network_provider.update.dto.js +58 -0
- package/dist/modules/network/domain/dto/network_provider.update.dto.js.map +1 -0
- package/dist/modules/network/domain/enums/chain_type.enum.d.ts +8 -0
- package/dist/modules/network/domain/enums/chain_type.enum.d.ts.map +1 -0
- package/dist/modules/network/domain/enums/chain_type.enum.js +25 -0
- package/dist/modules/network/domain/enums/chain_type.enum.js.map +1 -0
- package/dist/modules/network/domain/enums/coin_type.enum.d.ts +8 -0
- package/dist/modules/network/domain/enums/coin_type.enum.d.ts.map +1 -0
- package/dist/modules/network/domain/enums/coin_type.enum.js +12 -0
- package/dist/modules/network/domain/enums/coin_type.enum.js.map +1 -0
- package/dist/modules/network/domain/enums/index.d.ts +4 -0
- package/dist/modules/network/domain/enums/index.d.ts.map +1 -0
- package/dist/modules/network/domain/enums/index.js +20 -0
- package/dist/modules/network/domain/enums/index.js.map +1 -0
- package/dist/modules/network/domain/enums/provider_protocol_type.enum.d.ts +7 -0
- package/dist/modules/network/domain/enums/provider_protocol_type.enum.d.ts.map +1 -0
- package/dist/modules/network/domain/enums/provider_protocol_type.enum.js +11 -0
- package/dist/modules/network/domain/enums/provider_protocol_type.enum.js.map +1 -0
- package/dist/modules/network/domain/index.d.ts +3 -0
- package/dist/modules/network/domain/index.d.ts.map +1 -0
- package/dist/modules/network/domain/index.js +19 -0
- package/dist/modules/network/domain/index.js.map +1 -0
- package/dist/modules/network/index.d.ts +2 -0
- package/dist/modules/network/index.d.ts.map +1 -0
- package/dist/modules/network/index.js +18 -0
- package/dist/modules/network/index.js.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.d.ts +21 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.js +35 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts +24 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js +40 -0
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts +28 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js +40 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts +35 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js +19 -0
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/index.d.ts +5 -0
- package/dist/modules/quote/domain/dto/affiliate/index.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/affiliate/index.js +21 -0
- package/dist/modules/quote/domain/dto/affiliate/index.js.map +1 -0
- package/dist/modules/quote/domain/dto/index.d.ts +4 -0
- package/dist/modules/quote/domain/dto/index.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/index.js +20 -0
- package/dist/modules/quote/domain/dto/index.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/index.d.ts +16 -0
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/index.js +32 -0
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote.dto.d.ts +9 -0
- package/dist/modules/quote/domain/dto/quote/quote.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote.dto.js +21 -0
- package/dist/modules/quote/domain/dto/quote/quote.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +14 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +27 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.d.ts +14 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.js +28 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +17 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +22 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +44 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +47 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts +8 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js +22 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent.dto.d.ts +4 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent.dto.js +3 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts +10 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.js +3 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts +16 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +57 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +9 -0
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js +26 -0
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +50 -0
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +21 -0
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +24 -0
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js +41 -0
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +50 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +21 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.d.ts +14 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.js +31 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.d.ts +3 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.js +7 -0
- package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.d.ts +8 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.js +21 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.d.ts +8 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.js +21 -0
- package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts +18 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js +30 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts +23 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js +7 -0
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/index.d.ts +5 -0
- package/dist/modules/quote/domain/dto/refund/index.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/index.js +21 -0
- package/dist/modules/quote/domain/dto/refund/index.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +13 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +26 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.d.ts +8 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.js +21 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/enums/index.d.ts +9 -0
- package/dist/modules/quote/domain/enums/index.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/index.js +25 -0
- package/dist/modules/quote/domain/enums/index.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.d.ts +4 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.js +8 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.d.ts +15 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.js +22 -0
- package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_type.enum.d.ts +4 -0
- package/dist/modules/quote/domain/enums/quote_intent_type.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_type.enum.js +8 -0
- package/dist/modules/quote/domain/enums/quote_intent_type.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts +16 -0
- package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_request_action.enum.js +20 -0
- package/dist/modules/quote/domain/enums/quote_request_action.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts +31 -0
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js +40 -0
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts +12 -0
- package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_response_action.enum.js +16 -0
- package/dist/modules/quote/domain/enums/quote_response_action.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts +26 -0
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js +35 -0
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/selection_status.enum.d.ts +5 -0
- package/dist/modules/quote/domain/enums/selection_status.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/selection_status.enum.js +9 -0
- package/dist/modules/quote/domain/enums/selection_status.enum.js.map +1 -0
- package/dist/modules/quote/domain/index.d.ts +3 -0
- package/dist/modules/quote/domain/index.d.ts.map +1 -0
- package/dist/modules/quote/domain/index.js +19 -0
- package/dist/modules/quote/domain/index.js.map +1 -0
- package/dist/modules/quote/index.d.ts +2 -0
- package/dist/modules/quote/index.d.ts.map +1 -0
- package/dist/modules/quote/index.js +18 -0
- package/dist/modules/quote/index.js.map +1 -0
- package/dist/modules/swap/domain/dto/index.d.ts +4 -0
- package/dist/modules/swap/domain/dto/index.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/index.js +20 -0
- package/dist/modules/swap/domain/dto/index.js.map +1 -0
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts +9 -0
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js +25 -0
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts +18 -0
- package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/token_swap_request.dto.js +31 -0
- package/dist/modules/swap/domain/dto/token_swap_request.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts +18 -0
- package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/token_swap_response.dto.js +32 -0
- package/dist/modules/swap/domain/dto/token_swap_response.dto.js.map +1 -0
- package/dist/modules/swap/domain/index.d.ts +2 -0
- package/dist/modules/swap/domain/index.d.ts.map +1 -0
- package/dist/modules/swap/domain/index.js +18 -0
- package/dist/modules/swap/domain/index.js.map +1 -0
- package/dist/modules/swap/index.d.ts +2 -0
- package/dist/modules/swap/index.d.ts.map +1 -0
- package/dist/modules/swap/index.js +18 -0
- package/dist/modules/swap/index.js.map +1 -0
- package/dist/modules/token/domain/dto/index.d.ts +4 -0
- package/dist/modules/token/domain/dto/index.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/index.js +20 -0
- package/dist/modules/token/domain/dto/index.js.map +1 -0
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts +27 -0
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.js +46 -0
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.js.map +1 -0
- package/dist/modules/token/domain/dto/token.dto.d.ts +59 -0
- package/dist/modules/token/domain/dto/token.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/token.dto.js +70 -0
- package/dist/modules/token/domain/dto/token.dto.js.map +1 -0
- package/dist/modules/token/domain/dto/token.update.dto.d.ts +66 -0
- package/dist/modules/token/domain/dto/token.update.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/token.update.dto.js +75 -0
- package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -0
- package/dist/modules/token/domain/index.d.ts +2 -0
- package/dist/modules/token/domain/index.d.ts.map +1 -0
- package/dist/modules/token/domain/index.js +18 -0
- package/dist/modules/token/domain/index.js.map +1 -0
- package/dist/modules/token/index.d.ts +2 -0
- package/dist/modules/token/index.d.ts.map +1 -0
- package/dist/modules/token/index.js +18 -0
- package/dist/modules/token/index.js.map +1 -0
- package/package.json +22 -0
|
@@ -0,0 +1,133 @@
|
|
|
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.ChainTransactionDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const list_1 = require("../../../../common/utils/list");
|
|
15
|
+
class ChainTransactionDto {
|
|
16
|
+
constructor() {
|
|
17
|
+
/**
|
|
18
|
+
* Confirmation Status of Transaction
|
|
19
|
+
* @example false
|
|
20
|
+
*/
|
|
21
|
+
this.confirmation = false;
|
|
22
|
+
}
|
|
23
|
+
static from(tx) {
|
|
24
|
+
const dto = new ChainTransactionDto();
|
|
25
|
+
dto.id = tx.id;
|
|
26
|
+
dto.requestQuoteId = tx.requestQuoteId;
|
|
27
|
+
dto.responseQuoteId = tx.responseQuoteId;
|
|
28
|
+
dto.blockNumber = tx.blockNumber;
|
|
29
|
+
dto.blockHash = tx.blockHash;
|
|
30
|
+
dto.hash = tx.hash;
|
|
31
|
+
dto.from = tx.from;
|
|
32
|
+
dto.toId = tx.toId;
|
|
33
|
+
dto.index = tx.index;
|
|
34
|
+
dto.type = tx.type;
|
|
35
|
+
dto.gasLimit = tx.gasLimit;
|
|
36
|
+
dto.gasPrice = tx.gasPrice;
|
|
37
|
+
dto.maxFeePerGas = tx.maxFeePerGas;
|
|
38
|
+
dto.data = tx.data;
|
|
39
|
+
dto.value = tx.value;
|
|
40
|
+
dto.chainId = tx.chainId;
|
|
41
|
+
dto.signature = tx.signature;
|
|
42
|
+
return dto;
|
|
43
|
+
}
|
|
44
|
+
static listFrom(entities) {
|
|
45
|
+
return (0, list_1.makeList)(entities, ChainTransactionDto.from);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.ChainTransactionDto = ChainTransactionDto;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
(0, class_validator_1.IsUUID)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], ChainTransactionDto.prototype, "requestQuoteId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
(0, class_validator_1.IsUUID)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], ChainTransactionDto.prototype, "responseQuoteId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsNumber)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], ChainTransactionDto.prototype, "blockNumber", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], ChainTransactionDto.prototype, "blockHash", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], ChainTransactionDto.prototype, "hash", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], ChainTransactionDto.prototype, "from", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
81
|
+
(0, class_validator_1.IsUUID)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], ChainTransactionDto.prototype, "toId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsNumber)(),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], ChainTransactionDto.prototype, "index", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_validator_1.IsNumber)(),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], ChainTransactionDto.prototype, "type", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
96
|
+
(0, class_validator_1.IsString)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], ChainTransactionDto.prototype, "gasLimit", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
101
|
+
(0, class_validator_1.IsString)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], ChainTransactionDto.prototype, "gasPrice", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsOptional)(),
|
|
106
|
+
(0, class_validator_1.IsString)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], ChainTransactionDto.prototype, "maxFeePerGas", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
111
|
+
(0, class_validator_1.IsString)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], ChainTransactionDto.prototype, "data", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
116
|
+
(0, class_validator_1.IsString)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], ChainTransactionDto.prototype, "value", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
(0, class_validator_1.IsString)(),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], ChainTransactionDto.prototype, "chainId", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_validator_1.IsString)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], ChainTransactionDto.prototype, "signature", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_validator_1.IsBoolean)(),
|
|
131
|
+
__metadata("design:type", Boolean)
|
|
132
|
+
], ChainTransactionDto.prototype, "confirmation", void 0);
|
|
133
|
+
//# sourceMappingURL=chain_transaction.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain_transaction.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,wDAAyD;AAEzD,MAAa,mBAAmB;IAAhC;QAwME;;;WAGG;QAEH,iBAAY,GAAY,KAAK,CAAC;IAChC,CAAC;IA7MQ,MAAM,CAAC,IAAI,CAoBhB,EAAK;QACL,MAAM,GAAG,GAAG,IAAI,mBAAmB,EAAE,CAAC;QACtC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;QACf,GAAG,CAAC,cAAc,GAAG,EAAE,CAAC,cAAc,CAAC;QACvC,GAAG,CAAC,eAAe,GAAG,EAAE,CAAC,eAAe,CAAC;QACzC,GAAG,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;QACjC,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;QAC7B,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;QAC3B,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;QAC3B,GAAG,CAAC,YAAY,GAAG,EAAE,CAAC,YAAY,CAAC;QACnC,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;QACzB,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;QAC7B,OAAO,GAAG,CAAC;IACb,CAAC;IAGD,MAAM,CAAC,QAAQ,CAkBZ,QAAa;QACd,OAAO,IAAA,eAAQ,EAAC,QAAQ,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;CA8IF;AA9MD,kDA8MC;AAhIC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAQxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAQzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACU;AAQrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACQ;AAQnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iDACK;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACW;AAQtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACQ;AAOnB;IADC,IAAA,2BAAS,GAAE;;yDACkB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare class ChainTransactionEventLogDto {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier (populated by the database)
|
|
4
|
+
* @example '12345'
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* UUID of the related chain transaction
|
|
9
|
+
* @example 'd6a7cb5e-6f88-4c73-9e59-d5c5f48e0f73'
|
|
10
|
+
*/
|
|
11
|
+
chainTransactionId: string;
|
|
12
|
+
/**
|
|
13
|
+
* UUID of the related chain contract address
|
|
14
|
+
* @example 'c9a3b14a-55ad-4f9d-a97b-1f4af3d52b67'
|
|
15
|
+
*/
|
|
16
|
+
addressId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Name of the event
|
|
19
|
+
* @example 'Transfer'
|
|
20
|
+
*/
|
|
21
|
+
eventName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Event data payload
|
|
24
|
+
* @example '0xabcdef1234567890'
|
|
25
|
+
*/
|
|
26
|
+
data: string;
|
|
27
|
+
/**
|
|
28
|
+
* Index of the event log
|
|
29
|
+
* @example 0
|
|
30
|
+
*/
|
|
31
|
+
index: number;
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if the event log has been removed
|
|
34
|
+
* @example false
|
|
35
|
+
*/
|
|
36
|
+
removed: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Additional arguments for the event log
|
|
39
|
+
* @example { key: 'value' }
|
|
40
|
+
*/
|
|
41
|
+
args?: Record<string, any>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=chain_transaction_event_log.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain_transaction_event_log.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction_event_log.dto.ts"],"names":[],"mappings":"AASA,qBAAa,2BAA2B;IACtC;;;OAGG;IACH,EAAE,EAAG,MAAM,CAAC;IAEZ;;;OAGG;IAGH,kBAAkB,EAAG,MAAM,CAAC;IAE5B;;;OAGG;IAGH,SAAS,EAAG,MAAM,CAAC;IAEnB;;;OAGG;IAGH,SAAS,EAAG,MAAM,CAAC;IAEnB;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,KAAK,EAAG,MAAM,CAAC;IAEf;;;OAGG;IAGH,OAAO,EAAG,OAAO,CAAC;IAElB;;;OAGG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ChainTransactionEventLogDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ChainTransactionEventLogDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ChainTransactionEventLogDto = ChainTransactionEventLogDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsUUID)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ChainTransactionEventLogDto.prototype, "chainTransactionId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsUUID)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ChainTransactionEventLogDto.prototype, "addressId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ChainTransactionEventLogDto.prototype, "eventName", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ChainTransactionEventLogDto.prototype, "data", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], ChainTransactionEventLogDto.prototype, "index", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
(0, class_validator_1.IsBoolean)(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], ChainTransactionEventLogDto.prototype, "removed", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], ChainTransactionEventLogDto.prototype, "args", void 0);
|
|
51
|
+
//# sourceMappingURL=chain_transaction_event_log.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain_transaction_event_log.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction_event_log.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAEzB,MAAa,2BAA2B;CA6DvC;AA7DD,kEA6DC;AAhDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uEACmB;AAQ5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACU;AAQnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACQ;AAQnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;4DACM;AAOlB;IADC,IAAA,4BAAU,GAAE;;yDACc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./chain_contract.dto"), exports);
|
|
18
|
+
__exportStar(require("./chain_transaction.dto"), exports);
|
|
19
|
+
__exportStar(require("./chain_transaction_event_log.dto"), exports);
|
|
20
|
+
__exportStar(require("./pluton_request.dto"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,0DAAwC;AACxC,oEAAkD;AAClD,uDAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare class PlutonRequestDto {
|
|
3
|
+
id: string;
|
|
4
|
+
user: string;
|
|
5
|
+
tokenInAddress: string;
|
|
6
|
+
initiationExpiry: BigNumber;
|
|
7
|
+
orderDataType: string;
|
|
8
|
+
orderData: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pluton_request.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluton_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAIrC,qBAAa,gBAAgB;IAG3B,EAAE,EAAE,MAAM,CAAC;IAIX,IAAI,EAAE,MAAM,CAAC;IAIb,cAAc,EAAE,MAAM,CAAC;IAKvB,gBAAgB,EAAE,SAAS,CAAC;IAK5B,aAAa,EAAE,MAAM,CAAC;IAItB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PlutonRequestDto = void 0;
|
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
class PlutonRequestDto {
|
|
20
|
+
}
|
|
21
|
+
exports.PlutonRequestDto = PlutonRequestDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsUUID)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PlutonRequestDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PlutonRequestDto.prototype, "user", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PlutonRequestDto.prototype, "tokenInAddress", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Transform)(({ value }) => value.toString()),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
__metadata("design:type", bignumber_js_1.default)
|
|
42
|
+
], PlutonRequestDto.prototype, "initiationExpiry", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.MaxLength)(64),
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PlutonRequestDto.prototype, "orderDataType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], PlutonRequestDto.prototype, "orderData", void 0);
|
|
54
|
+
//# sourceMappingURL=pluton_request.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluton_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,yDAA8C;AAC9C,qDAA0E;AAE1E,MAAa,gBAAgB;CA0B5B;AA1BD,4CA0BC;AAvBC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACF;AAIX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACU;AAKvB;IAHC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1C,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;8BACK,sBAAS;0DAAC;AAK5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;uDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chainsync/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -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("./dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chainsync/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/chainsync/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -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("./domain"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/chainsync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./chainsync"), exports);
|
|
18
|
+
__exportStar(require("./network"), exports);
|
|
19
|
+
__exportStar(require("./quote"), exports);
|
|
20
|
+
__exportStar(require("./swap"), exports);
|
|
21
|
+
__exportStar(require("./token"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,0CAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./network.dto"), exports);
|
|
18
|
+
__exportStar(require("./network.update.dto"), exports);
|
|
19
|
+
__exportStar(require("./network_provider.dto"), exports);
|
|
20
|
+
__exportStar(require("./network_provider.update.dto"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC;AACrC,yDAAuC;AACvC,gEAA8C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare class NetworkDto {
|
|
2
|
+
static from<T extends {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
image: string;
|
|
6
|
+
coinType: number;
|
|
7
|
+
chainId: number;
|
|
8
|
+
lastParsedBlock: number;
|
|
9
|
+
confirmationCount: number;
|
|
10
|
+
}>(obj: T): NetworkDto;
|
|
11
|
+
static listFrom<T extends {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
image: string;
|
|
15
|
+
coinType: number;
|
|
16
|
+
chainId: number;
|
|
17
|
+
lastParsedBlock: number;
|
|
18
|
+
confirmationCount: number;
|
|
19
|
+
}>(objs: T[]): NetworkDto[];
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example 'Ethereum Mainnet'
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* @example '/public/images/networks/ethereum.svg'
|
|
27
|
+
*/
|
|
28
|
+
image: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example 0
|
|
31
|
+
* @description Coin type of the network
|
|
32
|
+
*/
|
|
33
|
+
coinType: number;
|
|
34
|
+
/**
|
|
35
|
+
* @example 1
|
|
36
|
+
* @description Chain ID of the network
|
|
37
|
+
*/
|
|
38
|
+
chainId: number;
|
|
39
|
+
/**
|
|
40
|
+
* @example 12345678
|
|
41
|
+
* @description Last parsed block number
|
|
42
|
+
*/
|
|
43
|
+
lastParsedBlock: number;
|
|
44
|
+
/**
|
|
45
|
+
* @example 12
|
|
46
|
+
* @description Confirmation count for the network
|
|
47
|
+
*/
|
|
48
|
+
confirmationCount: number;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=network.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,UAAU;WACP,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,EACD,GAAG,EAAE,CAAC,GAAG,UAAU;IAYrB,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,UAAU,EAAE;IAK1B,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IAGH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAGH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.NetworkDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const list_1 = require("../../../../common/utils/list");
|
|
15
|
+
class NetworkDto {
|
|
16
|
+
static from(obj) {
|
|
17
|
+
const dto = new NetworkDto();
|
|
18
|
+
dto.id = obj.id;
|
|
19
|
+
dto.name = obj.name;
|
|
20
|
+
dto.image = obj.image;
|
|
21
|
+
dto.coinType = obj.coinType;
|
|
22
|
+
dto.chainId = obj.chainId;
|
|
23
|
+
dto.lastParsedBlock = obj.lastParsedBlock;
|
|
24
|
+
dto.confirmationCount = obj.confirmationCount;
|
|
25
|
+
return dto;
|
|
26
|
+
}
|
|
27
|
+
static listFrom(objs) {
|
|
28
|
+
return (0, list_1.makeList)(objs, NetworkDto.from);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.NetworkDto = NetworkDto;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], NetworkDto.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], NetworkDto.prototype, "name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], NetworkDto.prototype, "image", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
(0, class_validator_1.IsNumber)(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], NetworkDto.prototype, "coinType", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
53
|
+
(0, class_validator_1.IsNumber)(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], NetworkDto.prototype, "chainId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], NetworkDto.prototype, "lastParsedBlock", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
63
|
+
(0, class_validator_1.IsNumber)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], NetworkDto.prototype, "confirmationCount", void 0);
|
|
66
|
+
//# sourceMappingURL=network.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network.dto.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,wDAAyD;AAEzD,MAAa,UAAU;IACd,MAAM,CAAC,IAAI,CAUhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACpB,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACtB,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC1B,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC1C,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAUb,IAAS;QACT,OAAO,IAAA,eAAQ,EAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CAkDF;AArFD,gCAqFC;AA/CC;IADC,IAAA,wBAAM,GAAE;;sCACE;AAOX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACE;AAOb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACa;AAQxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACe"}
|