@rango-dev/queue-manager-rango-preset 0.62.1-next.0 → 0.62.1-next.2
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/actions/checkStellarTrustline/types.d.ts +1 -1
- package/dist/actions/checkStellarTrustline/types.d.ts.map +1 -1
- package/dist/actions/checkXrplTrustline/types.d.ts +1 -1
- package/dist/actions/checkXrplTrustline/types.d.ts.map +1 -1
- package/dist/helpers.d.ts +4 -3
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/queue-manager-rango-preset.build.json +1 -1
- package/dist/shared-errors.d.ts +11 -2
- package/dist/shared-errors.d.ts.map +1 -1
- package/dist/types.d.ts +3 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/actions/checkStellarTrustline/types.ts +1 -1
- package/src/actions/checkXrplTrustline/types.ts +1 -1
- package/src/helpers.ts +4 -3
- package/src/shared-errors.ts +64 -29
- package/src/types.ts +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/env.ts":{"bytes":1074,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/configs.ts":{"bytes":733,"imports":[{"path":"src/env.ts","kind":"import-statement","original":"./env"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":8061,"imports":[],"format":"esm"},"src/actions/checkPrerequisites/utils.ts":{"bytes":3605,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/constants.ts":{"bytes":742,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/services/httpService.ts":{"bytes":284,"imports":[{"path":"rango-sdk","kind":"import-statement","external":true},{"path":"src/configs.ts","kind":"import-statement","original":"../configs"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/services/index.ts":{"bytes":45,"imports":[{"path":"src/services/httpService.ts","kind":"import-statement","original":"./httpService"}],"format":"esm"},"src/numbers.ts":{"bytes":1637,"imports":[{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/shared-errors.ts":{"bytes":4547,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/shared.ts":{"bytes":13034,"imports":[{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"src/numbers.ts","kind":"import-statement","original":"./numbers"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"./shared-errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/services/eventEmitter.ts":{"bytes":8276,"imports":[{"path":"src/configs.ts","kind":"import-statement","original":"../configs"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../shared"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/helpers.ts":{"bytes":46981,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/actions/checkPrerequisites/utils.ts","kind":"import-statement","original":"./actions/checkPrerequisites/utils"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/services/index.ts","kind":"import-statement","original":"./services"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"./services/eventEmitter"},{"path":"src/shared.ts","kind":"import-statement","original":"./shared"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"./shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/common/produceNextStateForTransaction.ts":{"bytes":4611,"imports":[{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../../services/eventEmitter"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkPrerequisites/checkPrerequisites.ts":{"bytes":3276,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/checkPrerequisites/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkPrerequisites/index.ts":{"bytes":59,"imports":[{"path":"src/actions/checkPrerequisites/checkPrerequisites.ts","kind":"import-statement","original":"./checkPrerequisites"}],"format":"esm"},"src/actions/checkStatus.ts":{"bytes":17008,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/services/index.ts","kind":"import-statement","original":"../services"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"src/shared.ts","kind":"import-statement","original":"../shared"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"../shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/common/utils.ts":{"bytes":645,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkStellarTrustline/constants.ts":{"bytes":162,"imports":[],"format":"esm"},"src/actions/checkStellarTrustline/utils.ts":{"bytes":5737,"imports":[{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@stellar/stellar-sdk","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/checkStellarTrustline/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkStellarTrustline/checkStellarTrustline.ts":{"bytes":6490,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/checkStellarTrustline/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkStellarTrustline/index.ts":{"bytes":200,"imports":[{"path":"src/actions/checkStellarTrustline/checkStellarTrustline.ts","kind":"import-statement","original":"./checkStellarTrustline.js"},{"path":"src/actions/checkStellarTrustline/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/actions/checkXrplTrustline/constants.ts":{"bytes":59,"imports":[],"format":"esm"},"src/actions/checkXrplTrustline/utils.ts":{"bytes":4694,"imports":[{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/checkXrplTrustline/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkXrplTrustline/checkXrplTrustline.ts":{"bytes":6317,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/checkXrplTrustline/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkXrplTrustline/index.ts":{"bytes":185,"imports":[{"path":"src/actions/checkXrplTrustline/checkXrplTrustline.ts","kind":"import-statement","original":"./checkXrplTrustline.js"},{"path":"src/actions/checkXrplTrustline/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/actions/checkXrplTrustlineTransactionStatus/constants.ts":{"bytes":135,"imports":[],"format":"esm"},"src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts":{"bytes":4462,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"xrpl","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/checkXrplTrustlineTransactionStatus/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkXrplTrustlineTransactionStatus/index.ts":{"bytes":93,"imports":[{"path":"src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts","kind":"import-statement","original":"./checkXrplTrustlineTransactionStatus"}],"format":"esm"},"src/actions/createTransaction.ts":{"bytes":3220,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/services/index.ts","kind":"import-statement","original":"../services"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"../shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeStellarTransaction/helpers.ts":{"bytes":1354,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeStellarTransaction/executeStellarTransaction.ts":{"bytes":4201,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/actions/checkStellarTrustline/index.ts","kind":"import-statement","original":"../checkStellarTrustline"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/executeStellarTransaction/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeStellarTransaction/index.ts":{"bytes":76,"imports":[{"path":"src/actions/executeStellarTransaction/executeStellarTransaction.ts","kind":"import-statement","original":"./executeStellarTransaction.js"}],"format":"esm"},"src/actions/common/checkEnvironmentBeforeExecuteTransaction.ts":{"bytes":4946,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeTransaction/executeTransaction.ts":{"bytes":3262,"imports":[{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/actions/common/checkEnvironmentBeforeExecuteTransaction.ts","kind":"import-statement","original":"../common/checkEnvironmentBeforeExecuteTransaction"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeTransaction/index.ts":{"bytes":62,"imports":[{"path":"src/actions/executeTransaction/executeTransaction.ts","kind":"import-statement","original":"./executeTransaction.js"}],"format":"esm"},"src/actions/executeXrplTransaction/helpers.ts":{"bytes":1650,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeXrplTransaction/executeXrplTransaction.ts":{"bytes":4151,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/actions/checkXrplTrustline/index.ts","kind":"import-statement","original":"../checkXrplTrustline"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/executeXrplTransaction/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeXrplTransaction/index.ts":{"bytes":70,"imports":[{"path":"src/actions/executeXrplTransaction/executeXrplTransaction.ts","kind":"import-statement","original":"./executeXrplTransaction.js"}],"format":"esm"},"src/actions/scheduleNextStep.ts":{"bytes":2759,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/start.ts":{"bytes":484,"imports":[{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/queueDef.ts":{"bytes":2472,"imports":[{"path":"src/actions/checkPrerequisites/index.ts","kind":"import-statement","original":"./actions/checkPrerequisites"},{"path":"src/actions/checkStatus.ts","kind":"import-statement","original":"./actions/checkStatus"},{"path":"src/actions/checkStellarTrustline/index.ts","kind":"import-statement","original":"./actions/checkStellarTrustline"},{"path":"src/actions/checkXrplTrustline/index.ts","kind":"import-statement","original":"./actions/checkXrplTrustline"},{"path":"src/actions/checkXrplTrustlineTransactionStatus/index.ts","kind":"import-statement","original":"./actions/checkXrplTrustlineTransactionStatus"},{"path":"src/actions/createTransaction.ts","kind":"import-statement","original":"./actions/createTransaction"},{"path":"src/actions/executeStellarTransaction/index.ts","kind":"import-statement","original":"./actions/executeStellarTransaction"},{"path":"src/actions/executeTransaction/index.ts","kind":"import-statement","original":"./actions/executeTransaction"},{"path":"src/actions/executeXrplTransaction/index.ts","kind":"import-statement","original":"./actions/executeXrplTransaction"},{"path":"src/actions/scheduleNextStep.ts","kind":"import-statement","original":"./actions/scheduleNextStep"},{"path":"src/actions/start.ts","kind":"import-statement","original":"./actions/start"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/migration.ts":{"bytes":3321,"imports":[{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"uuid","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks.ts":{"bytes":2290,"imports":[{"path":"@rango-dev/queue-manager-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/migration.ts","kind":"import-statement","original":"./migration"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1522,"imports":[{"path":"src/configs.ts","kind":"import-statement","original":"./configs"},{"path":"src/queueDef.ts","kind":"import-statement","original":"./queueDef"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"./shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/shared.ts","kind":"import-statement","original":"./shared"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/hooks.ts","kind":"import-statement","original":"./hooks"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":268768},"dist/index.js":{"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-sdk","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@stellar/stellar-sdk","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"xrpl","kind":"import-statement","external":true},{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"uuid","kind":"import-statement","external":true}],"exports":["EventSeverity","MessageSeverity","PrettyError","RouteEventType","StepEventType","StepExecutionBlockedEventStatus","StepExecutionEventStatus","WidgetEvents","calculatePendingSwap","cancelSwap","checkWaitingForNetworkChange","getCurrentNamespaceOfOrNull","getCurrentStep","getLastSuccessfulStep","getRelatedWallet","getRelatedWalletOrNull","getRequiredWallet","getRunningSwaps","getUsdPrice","isApprovalTX","makeQueueDefinition","prettifyErrorMessage","resetRunningSwapNotifsOnPageLoad","updateSwapStatus","useMigration","useQueueManager"],"entryPoint":"src/index.ts","inputs":{"src/env.ts":{"bytesInOutput":152},"src/configs.ts":{"bytesInOutput":127},"src/actions/checkPrerequisites/checkPrerequisites.ts":{"bytesInOutput":1134},"src/helpers.ts":{"bytesInOutput":16217},"src/actions/checkPrerequisites/utils.ts":{"bytesInOutput":1821},"src/types.ts":{"bytesInOutput":848},"src/constants.ts":{"bytesInOutput":430},"src/services/httpService.ts":{"bytesInOutput":118},"src/services/index.ts":{"bytesInOutput":0},"src/shared.ts":{"bytesInOutput":5564},"src/numbers.ts":{"bytesInOutput":689},"src/shared-errors.ts":{"bytesInOutput":2212},"src/services/eventEmitter.ts":{"bytesInOutput":3595},"src/actions/common/produceNextStateForTransaction.ts":{"bytesInOutput":1763},"src/actions/checkPrerequisites/index.ts":{"bytesInOutput":0},"src/actions/checkStatus.ts":{"bytesInOutput":6239},"src/actions/checkStellarTrustline/checkStellarTrustline.ts":{"bytesInOutput":1793},"src/actions/common/utils.ts":{"bytesInOutput":201},"src/actions/checkStellarTrustline/utils.ts":{"bytesInOutput":2057},"src/actions/checkStellarTrustline/constants.ts":{"bytesInOutput":30},"src/actions/checkStellarTrustline/index.ts":{"bytesInOutput":0},"src/actions/checkXrplTrustline/checkXrplTrustline.ts":{"bytesInOutput":1776},"src/actions/checkXrplTrustline/utils.ts":{"bytesInOutput":1665},"src/actions/checkXrplTrustline/constants.ts":{"bytesInOutput":24},"src/actions/checkXrplTrustline/index.ts":{"bytesInOutput":0},"src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts":{"bytesInOutput":1406},"src/actions/checkXrplTrustlineTransactionStatus/constants.ts":{"bytesInOutput":32},"src/actions/checkXrplTrustlineTransactionStatus/index.ts":{"bytesInOutput":0},"src/actions/createTransaction.ts":{"bytesInOutput":1035},"src/actions/executeStellarTransaction/executeStellarTransaction.ts":{"bytesInOutput":1135},"src/actions/executeStellarTransaction/helpers.ts":{"bytesInOutput":533},"src/actions/executeStellarTransaction/index.ts":{"bytesInOutput":0},"src/actions/common/checkEnvironmentBeforeExecuteTransaction.ts":{"bytesInOutput":1326},"src/actions/executeTransaction/executeTransaction.ts":{"bytesInOutput":553},"src/actions/executeTransaction/index.ts":{"bytesInOutput":0},"src/actions/executeXrplTransaction/executeXrplTransaction.ts":{"bytesInOutput":1163},"src/actions/executeXrplTransaction/helpers.ts":{"bytesInOutput":751},"src/actions/executeXrplTransaction/index.ts":{"bytesInOutput":0},"src/actions/scheduleNextStep.ts":{"bytesInOutput":805},"src/actions/start.ts":{"bytesInOutput":155},"src/queueDef.ts":{"bytesInOutput":516},"src/index.ts":{"bytesInOutput":59},"src/hooks.ts":{"bytesInOutput":652},"src/migration.ts":{"bytesInOutput":1138}},"bytes":60472}}}
|
|
1
|
+
{"inputs":{"src/env.ts":{"bytes":1074,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/configs.ts":{"bytes":733,"imports":[{"path":"src/env.ts","kind":"import-statement","original":"./env"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":8130,"imports":[],"format":"esm"},"src/actions/checkPrerequisites/utils.ts":{"bytes":3605,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/constants.ts":{"bytes":742,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/services/httpService.ts":{"bytes":284,"imports":[{"path":"rango-sdk","kind":"import-statement","external":true},{"path":"src/configs.ts","kind":"import-statement","original":"../configs"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/services/index.ts":{"bytes":45,"imports":[{"path":"src/services/httpService.ts","kind":"import-statement","original":"./httpService"}],"format":"esm"},"src/numbers.ts":{"bytes":1637,"imports":[{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/shared-errors.ts":{"bytes":5039,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/shared.ts":{"bytes":13034,"imports":[{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"src/numbers.ts","kind":"import-statement","original":"./numbers"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"./shared-errors"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/services/eventEmitter.ts":{"bytes":8276,"imports":[{"path":"src/configs.ts","kind":"import-statement","original":"../configs"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../shared"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/helpers.ts":{"bytes":47069,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/actions/checkPrerequisites/utils.ts","kind":"import-statement","original":"./actions/checkPrerequisites/utils"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/services/index.ts","kind":"import-statement","original":"./services"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"./services/eventEmitter"},{"path":"src/shared.ts","kind":"import-statement","original":"./shared"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"./shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/common/produceNextStateForTransaction.ts":{"bytes":4611,"imports":[{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../../services/eventEmitter"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkPrerequisites/checkPrerequisites.ts":{"bytes":3276,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/checkPrerequisites/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkPrerequisites/index.ts":{"bytes":59,"imports":[{"path":"src/actions/checkPrerequisites/checkPrerequisites.ts","kind":"import-statement","original":"./checkPrerequisites"}],"format":"esm"},"src/actions/checkStatus.ts":{"bytes":17008,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/services/index.ts","kind":"import-statement","original":"../services"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"src/shared.ts","kind":"import-statement","original":"../shared"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"../shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/common/utils.ts":{"bytes":645,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkStellarTrustline/constants.ts":{"bytes":162,"imports":[],"format":"esm"},"src/actions/checkStellarTrustline/utils.ts":{"bytes":5737,"imports":[{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@stellar/stellar-sdk","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/checkStellarTrustline/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkStellarTrustline/checkStellarTrustline.ts":{"bytes":6490,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/checkStellarTrustline/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkStellarTrustline/index.ts":{"bytes":200,"imports":[{"path":"src/actions/checkStellarTrustline/checkStellarTrustline.ts","kind":"import-statement","original":"./checkStellarTrustline.js"},{"path":"src/actions/checkStellarTrustline/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/actions/checkXrplTrustline/constants.ts":{"bytes":59,"imports":[],"format":"esm"},"src/actions/checkXrplTrustline/utils.ts":{"bytes":4694,"imports":[{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/checkXrplTrustline/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkXrplTrustline/checkXrplTrustline.ts":{"bytes":6317,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/checkXrplTrustline/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkXrplTrustline/index.ts":{"bytes":185,"imports":[{"path":"src/actions/checkXrplTrustline/checkXrplTrustline.ts","kind":"import-statement","original":"./checkXrplTrustline.js"},{"path":"src/actions/checkXrplTrustline/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/actions/checkXrplTrustlineTransactionStatus/constants.ts":{"bytes":135,"imports":[],"format":"esm"},"src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts":{"bytes":4462,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"xrpl","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/checkXrplTrustlineTransactionStatus/constants.ts","kind":"import-statement","original":"./constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/checkXrplTrustlineTransactionStatus/index.ts":{"bytes":93,"imports":[{"path":"src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts","kind":"import-statement","original":"./checkXrplTrustlineTransactionStatus"}],"format":"esm"},"src/actions/createTransaction.ts":{"bytes":3220,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/services/index.ts","kind":"import-statement","original":"../services"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"../shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeStellarTransaction/helpers.ts":{"bytes":1354,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeStellarTransaction/executeStellarTransaction.ts":{"bytes":4201,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/actions/checkStellarTrustline/index.ts","kind":"import-statement","original":"../checkStellarTrustline"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/executeStellarTransaction/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeStellarTransaction/index.ts":{"bytes":76,"imports":[{"path":"src/actions/executeStellarTransaction/executeStellarTransaction.ts","kind":"import-statement","original":"./executeStellarTransaction.js"}],"format":"esm"},"src/actions/common/checkEnvironmentBeforeExecuteTransaction.ts":{"bytes":4946,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/types.ts","kind":"import-statement","original":"../../types"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"./utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeTransaction/executeTransaction.ts":{"bytes":3262,"imports":[{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/actions/common/checkEnvironmentBeforeExecuteTransaction.ts","kind":"import-statement","original":"../common/checkEnvironmentBeforeExecuteTransaction"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeTransaction/index.ts":{"bytes":62,"imports":[{"path":"src/actions/executeTransaction/executeTransaction.ts","kind":"import-statement","original":"./executeTransaction.js"}],"format":"esm"},"src/actions/executeXrplTransaction/helpers.ts":{"bytes":1650,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeXrplTransaction/executeXrplTransaction.ts":{"bytes":4151,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/shared.ts","kind":"import-statement","original":"../../shared"},{"path":"src/actions/checkXrplTrustline/index.ts","kind":"import-statement","original":"../checkXrplTrustline"},{"path":"src/actions/common/produceNextStateForTransaction.ts","kind":"import-statement","original":"../common/produceNextStateForTransaction"},{"path":"src/actions/common/utils.ts","kind":"import-statement","original":"../common/utils"},{"path":"src/actions/executeXrplTransaction/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/executeXrplTransaction/index.ts":{"bytes":70,"imports":[{"path":"src/actions/executeXrplTransaction/executeXrplTransaction.ts","kind":"import-statement","original":"./executeXrplTransaction.js"}],"format":"esm"},"src/actions/scheduleNextStep.ts":{"bytes":2759,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/actions/start.ts":{"bytes":484,"imports":[{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types"},{"path":"src/services/eventEmitter.ts","kind":"import-statement","original":"../services/eventEmitter"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/queueDef.ts":{"bytes":2472,"imports":[{"path":"src/actions/checkPrerequisites/index.ts","kind":"import-statement","original":"./actions/checkPrerequisites"},{"path":"src/actions/checkStatus.ts","kind":"import-statement","original":"./actions/checkStatus"},{"path":"src/actions/checkStellarTrustline/index.ts","kind":"import-statement","original":"./actions/checkStellarTrustline"},{"path":"src/actions/checkXrplTrustline/index.ts","kind":"import-statement","original":"./actions/checkXrplTrustline"},{"path":"src/actions/checkXrplTrustlineTransactionStatus/index.ts","kind":"import-statement","original":"./actions/checkXrplTrustlineTransactionStatus"},{"path":"src/actions/createTransaction.ts","kind":"import-statement","original":"./actions/createTransaction"},{"path":"src/actions/executeStellarTransaction/index.ts","kind":"import-statement","original":"./actions/executeStellarTransaction"},{"path":"src/actions/executeTransaction/index.ts","kind":"import-statement","original":"./actions/executeTransaction"},{"path":"src/actions/executeXrplTransaction/index.ts","kind":"import-statement","original":"./actions/executeXrplTransaction"},{"path":"src/actions/scheduleNextStep.ts","kind":"import-statement","original":"./actions/scheduleNextStep"},{"path":"src/actions/start.ts","kind":"import-statement","original":"./actions/start"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/migration.ts":{"bytes":3321,"imports":[{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"uuid","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks.ts":{"bytes":2290,"imports":[{"path":"@rango-dev/queue-manager-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/migration.ts","kind":"import-statement","original":"./migration"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1522,"imports":[{"path":"src/configs.ts","kind":"import-statement","original":"./configs"},{"path":"src/queueDef.ts","kind":"import-statement","original":"./queueDef"},{"path":"src/shared-errors.ts","kind":"import-statement","original":"./shared-errors"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/shared.ts","kind":"import-statement","original":"./shared"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/hooks.ts","kind":"import-statement","original":"./hooks"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":269672},"dist/index.js":{"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-sdk","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"@stellar/stellar-sdk","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-core/legacy","kind":"import-statement","external":true},{"path":"bignumber.js","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"xrpl","kind":"import-statement","external":true},{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"ts-results","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@rango-dev/queue-manager-core","kind":"import-statement","external":true},{"path":"uuid","kind":"import-statement","external":true}],"exports":["EventSeverity","MessageSeverity","PrettyError","RouteEventType","StepEventType","StepExecutionBlockedEventStatus","StepExecutionEventStatus","WidgetEvents","calculatePendingSwap","cancelSwap","checkWaitingForNetworkChange","getCurrentNamespaceOfOrNull","getCurrentStep","getLastSuccessfulStep","getRelatedWallet","getRelatedWalletOrNull","getRequiredWallet","getRunningSwaps","getUsdPrice","isApprovalTX","makeQueueDefinition","prettifyErrorMessage","resetRunningSwapNotifsOnPageLoad","updateSwapStatus","useMigration","useQueueManager"],"entryPoint":"src/index.ts","inputs":{"src/env.ts":{"bytesInOutput":152},"src/configs.ts":{"bytesInOutput":127},"src/actions/checkPrerequisites/checkPrerequisites.ts":{"bytesInOutput":1134},"src/helpers.ts":{"bytesInOutput":16217},"src/actions/checkPrerequisites/utils.ts":{"bytesInOutput":1821},"src/types.ts":{"bytesInOutput":848},"src/constants.ts":{"bytesInOutput":430},"src/services/httpService.ts":{"bytesInOutput":118},"src/services/index.ts":{"bytesInOutput":0},"src/shared.ts":{"bytesInOutput":5564},"src/numbers.ts":{"bytesInOutput":689},"src/shared-errors.ts":{"bytesInOutput":2417},"src/services/eventEmitter.ts":{"bytesInOutput":3595},"src/actions/common/produceNextStateForTransaction.ts":{"bytesInOutput":1763},"src/actions/checkPrerequisites/index.ts":{"bytesInOutput":0},"src/actions/checkStatus.ts":{"bytesInOutput":6239},"src/actions/checkStellarTrustline/checkStellarTrustline.ts":{"bytesInOutput":1793},"src/actions/common/utils.ts":{"bytesInOutput":201},"src/actions/checkStellarTrustline/utils.ts":{"bytesInOutput":2057},"src/actions/checkStellarTrustline/constants.ts":{"bytesInOutput":30},"src/actions/checkStellarTrustline/index.ts":{"bytesInOutput":0},"src/actions/checkXrplTrustline/checkXrplTrustline.ts":{"bytesInOutput":1776},"src/actions/checkXrplTrustline/utils.ts":{"bytesInOutput":1665},"src/actions/checkXrplTrustline/constants.ts":{"bytesInOutput":24},"src/actions/checkXrplTrustline/index.ts":{"bytesInOutput":0},"src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts":{"bytesInOutput":1406},"src/actions/checkXrplTrustlineTransactionStatus/constants.ts":{"bytesInOutput":32},"src/actions/checkXrplTrustlineTransactionStatus/index.ts":{"bytesInOutput":0},"src/actions/createTransaction.ts":{"bytesInOutput":1035},"src/actions/executeStellarTransaction/executeStellarTransaction.ts":{"bytesInOutput":1135},"src/actions/executeStellarTransaction/helpers.ts":{"bytesInOutput":533},"src/actions/executeStellarTransaction/index.ts":{"bytesInOutput":0},"src/actions/common/checkEnvironmentBeforeExecuteTransaction.ts":{"bytesInOutput":1326},"src/actions/executeTransaction/executeTransaction.ts":{"bytesInOutput":553},"src/actions/executeTransaction/index.ts":{"bytesInOutput":0},"src/actions/executeXrplTransaction/executeXrplTransaction.ts":{"bytesInOutput":1163},"src/actions/executeXrplTransaction/helpers.ts":{"bytesInOutput":751},"src/actions/executeXrplTransaction/index.ts":{"bytesInOutput":0},"src/actions/scheduleNextStep.ts":{"bytesInOutput":805},"src/actions/start.ts":{"bytesInOutput":155},"src/queueDef.ts":{"bytesInOutput":516},"src/index.ts":{"bytesInOutput":59},"src/hooks.ts":{"bytesInOutput":652},"src/migration.ts":{"bytesInOutput":1138}},"bytes":60677}}}
|
package/dist/shared-errors.d.ts
CHANGED
|
@@ -6,20 +6,29 @@ export type ErrorDetail = {
|
|
|
6
6
|
};
|
|
7
7
|
type ErrorRoot = string | Record<string, string> | null;
|
|
8
8
|
export declare class PrettyError extends Error {
|
|
9
|
+
_isPrettyError: boolean;
|
|
9
10
|
private readonly detail?;
|
|
10
11
|
private readonly root?;
|
|
11
12
|
private readonly code?;
|
|
12
|
-
_isPrettyError: boolean;
|
|
13
13
|
constructor(code: APIErrorCode, m: string, root?: ErrorRoot, detail?: string);
|
|
14
14
|
static isPrettyError(obj: unknown): obj is PrettyError;
|
|
15
|
-
getErrorDetail(): ErrorDetail;
|
|
16
15
|
static AssertionFailed(m: string): PrettyError;
|
|
17
16
|
static BadStatusCode(message: string, statusCode: number | string): PrettyError;
|
|
18
17
|
static CreateTransaction(detail: string): PrettyError;
|
|
19
18
|
static WalletMissing(): PrettyError;
|
|
20
19
|
static BlockchainMissing(): PrettyError;
|
|
20
|
+
getErrorDetail(): ErrorDetail;
|
|
21
21
|
}
|
|
22
22
|
export declare function mapAppErrorCodesToAPIErrorCode(errorCode: string | null): APIErrorCode;
|
|
23
|
+
type AxiosError = {
|
|
24
|
+
isAxiosError: true;
|
|
25
|
+
response?: {
|
|
26
|
+
data?: {
|
|
27
|
+
error?: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function isAxiosError(obj: unknown): obj is AxiosError;
|
|
23
32
|
export declare const prettifyErrorMessage: (obj: unknown) => ErrorDetail;
|
|
24
33
|
export {};
|
|
25
34
|
//# sourceMappingURL=shared-errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-errors.d.ts","sourceRoot":"","sources":["../src/shared-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,IAAI,mBAAmB,EACvC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-errors.d.ts","sourceRoot":"","sources":["../src/shared-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,IAAI,mBAAmB,EACvC,MAAM,aAAa,CAAC;AAWrB,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,qBAAqB,EAAE,m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AAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TargetNamespace, Wallet } from './shared';
|
|
2
|
+
import type { Provider } from '@hub3js/core';
|
|
3
|
+
import type { DefaultNamespaces } from '@hub3js/namespaces';
|
|
2
4
|
import type { QueueContext, QueueDef, QueueStorage } from '@rango-dev/queue-manager-core';
|
|
3
|
-
import type { Provider } from '@rango-dev/wallets-core';
|
|
4
5
|
import type { LegacyConnectResult as ConnectResult } from '@rango-dev/wallets-core/legacy';
|
|
5
6
|
import type { Meta, Network, Providers, WalletState, WalletType } from '@rango-dev/wallets-shared';
|
|
6
7
|
import type { Transaction } from 'rango-sdk';
|
|
@@ -41,7 +42,7 @@ export interface SwapQueueContext extends QueueContext {
|
|
|
41
42
|
meta: Meta;
|
|
42
43
|
wallets: Wallet | null;
|
|
43
44
|
providers: Providers;
|
|
44
|
-
hubProvider: (type: WalletType) => Provider
|
|
45
|
+
hubProvider: (type: WalletType) => Provider<DefaultNamespaces>;
|
|
45
46
|
getSigners: (type: WalletType) => Promise<SignerFactory>;
|
|
46
47
|
switchNetwork: (wallet: WalletType, namespaces: TargetNamespace) => Promise<ConnectResult | ConnectResult[] | undefined> | undefined;
|
|
47
48
|
canSwitchNetworkTo: UseQueueManagerParams['canSwitchNetworkTo'];
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KA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AyB,CAC1B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAC7C,aAAa,CAAC,oBAAoB,EAClC,uBAAuB,CACxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GACtC,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAE7C,MAAM,MAAM,uBAAuB,GAAG,KAAK,CACzC,aAAa,CAAC,eAAe,EAC7B,0BAA0B,CAC3B,CAAC;AAEF,MAAM,MAAM,SAAS,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,2BAA2B,GAC3B,2BAA2B,GAC3B,oBAAoB,GACpB,4BAA4B,GAC5B,uBAAuB,CAAC;AAE5B,MAAM,MAAM,UAAU,GAClB,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,CAAC;AAErB,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC;IAC1C,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;CACzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/queue-manager-rango-preset",
|
|
3
|
-
"version": "0.62.1-next.
|
|
3
|
+
"version": "0.62.1-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
"@types/uuid": "^8.3.4"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@hub3js/core": "^0.60.1",
|
|
38
|
+
"@hub3js/namespaces": "^0.1.1",
|
|
37
39
|
"@rango-dev/logging-core": "^0.12.1",
|
|
38
40
|
"@stellar/stellar-sdk": "^15.0.1",
|
|
39
41
|
"rango-types": "^0.5.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProxiedNamespace } from '@
|
|
1
|
+
import type { ProxiedNamespace } from '@hub3js/core';
|
|
2
2
|
import type { StellarActions } from '@rango-dev/wallets-core/namespaces/stellar';
|
|
3
3
|
|
|
4
4
|
export type StellarNamespace = ProxiedNamespace<StellarActions>;
|
package/src/helpers.ts
CHANGED
|
@@ -12,6 +12,8 @@ import type {
|
|
|
12
12
|
SwapStorage,
|
|
13
13
|
UseQueueManagerParams,
|
|
14
14
|
} from './types';
|
|
15
|
+
import type { Provider } from '@hub3js/core';
|
|
16
|
+
import type { DefaultNamespaces } from '@hub3js/namespaces';
|
|
15
17
|
import type {
|
|
16
18
|
ExecuterActions,
|
|
17
19
|
Manager,
|
|
@@ -20,7 +22,6 @@ import type {
|
|
|
20
22
|
QueueType,
|
|
21
23
|
SetStorage,
|
|
22
24
|
} from '@rango-dev/queue-manager-core';
|
|
23
|
-
import type { Provider } from '@rango-dev/wallets-core';
|
|
24
25
|
import type {
|
|
25
26
|
Meta,
|
|
26
27
|
Network,
|
|
@@ -689,7 +690,7 @@ async function getChainId(provider: any): Promise<string | number | null> {
|
|
|
689
690
|
|
|
690
691
|
export async function getProviderChainId(
|
|
691
692
|
providers: Providers,
|
|
692
|
-
hubProvider: (type: WalletType) => Provider
|
|
693
|
+
hubProvider: (type: WalletType) => Provider<DefaultNamespaces>,
|
|
693
694
|
walletType: string
|
|
694
695
|
) {
|
|
695
696
|
const legacyProvider = getEvmProvider(providers, walletType);
|
|
@@ -718,7 +719,7 @@ export async function isNetworkMatchedForTransaction(
|
|
|
718
719
|
wallet: Wallet | null,
|
|
719
720
|
meta: Meta,
|
|
720
721
|
providers: Providers,
|
|
721
|
-
hubProvider: (type: WalletType) => Provider
|
|
722
|
+
hubProvider: (type: WalletType) => Provider<DefaultNamespaces>
|
|
722
723
|
): Promise<boolean> {
|
|
723
724
|
if (isWalletNull(wallet)) {
|
|
724
725
|
return false;
|
package/src/shared-errors.ts
CHANGED
|
@@ -2,12 +2,14 @@ import type {
|
|
|
2
2
|
APIErrorCode,
|
|
3
3
|
SignerErrorCode as SignerErrorCodeType,
|
|
4
4
|
} from 'rango-types';
|
|
5
|
+
|
|
5
6
|
import {
|
|
6
|
-
SignerErrorCode,
|
|
7
|
-
SignerError,
|
|
8
|
-
isSignerErrorCode,
|
|
9
7
|
isAPIErrorCode,
|
|
8
|
+
isSignerErrorCode,
|
|
9
|
+
SignerError,
|
|
10
|
+
SignerErrorCode,
|
|
10
11
|
} from 'rango-types';
|
|
12
|
+
|
|
11
13
|
import { DEFAULT_ERROR_CODE } from './constants';
|
|
12
14
|
|
|
13
15
|
export type ErrorDetail = {
|
|
@@ -23,10 +25,10 @@ const ERROR_INPUT_WALLET_NOT_FOUND = 'Input wallet not found';
|
|
|
23
25
|
type ErrorRoot = string | Record<string, string> | null;
|
|
24
26
|
|
|
25
27
|
export class PrettyError extends Error {
|
|
28
|
+
public _isPrettyError = true;
|
|
26
29
|
private readonly detail?: string;
|
|
27
30
|
private readonly root?: ErrorRoot;
|
|
28
31
|
private readonly code?: APIErrorCode;
|
|
29
|
-
public _isPrettyError = true;
|
|
30
32
|
|
|
31
33
|
constructor(
|
|
32
34
|
code: APIErrorCode,
|
|
@@ -49,24 +51,6 @@ export class PrettyError extends Error {
|
|
|
49
51
|
);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
getErrorDetail(): ErrorDetail {
|
|
53
|
-
const rawMessage =
|
|
54
|
-
typeof this.root === 'object' && this.root && this.root.error
|
|
55
|
-
? this.root.error
|
|
56
|
-
: JSON.stringify(this.root);
|
|
57
|
-
const rootStr =
|
|
58
|
-
typeof this.root === 'string'
|
|
59
|
-
? this.root
|
|
60
|
-
: this.root instanceof Error
|
|
61
|
-
? this.root.message
|
|
62
|
-
: rawMessage;
|
|
63
|
-
return {
|
|
64
|
-
extraMessage: this.message,
|
|
65
|
-
extraMessageDetail: this.detail || rootStr,
|
|
66
|
-
extraMessageErrorCode: this.code || null,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
54
|
static AssertionFailed(m: string): PrettyError {
|
|
71
55
|
return new PrettyError(
|
|
72
56
|
'CLIENT_UNEXPECTED_BEHAVIOUR',
|
|
@@ -114,14 +98,36 @@ export class PrettyError extends Error {
|
|
|
114
98
|
'Server requested for a blockchain or address not selected by user'
|
|
115
99
|
);
|
|
116
100
|
}
|
|
101
|
+
|
|
102
|
+
getErrorDetail(): ErrorDetail {
|
|
103
|
+
const rawMessage =
|
|
104
|
+
typeof this.root === 'object' && this.root && this.root.error
|
|
105
|
+
? this.root.error
|
|
106
|
+
: JSON.stringify(this.root);
|
|
107
|
+
const rootStr =
|
|
108
|
+
typeof this.root === 'string'
|
|
109
|
+
? this.root
|
|
110
|
+
: this.root instanceof Error
|
|
111
|
+
? this.root.message
|
|
112
|
+
: rawMessage;
|
|
113
|
+
return {
|
|
114
|
+
extraMessage: this.message,
|
|
115
|
+
extraMessageDetail: this.detail || rootStr,
|
|
116
|
+
extraMessageErrorCode: this.code || null,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
export function mapAppErrorCodesToAPIErrorCode(
|
|
120
122
|
errorCode: string | null
|
|
121
123
|
): APIErrorCode {
|
|
122
124
|
try {
|
|
123
|
-
if (!errorCode)
|
|
124
|
-
|
|
125
|
+
if (!errorCode) {
|
|
126
|
+
return DEFAULT_ERROR_CODE;
|
|
127
|
+
}
|
|
128
|
+
if (isAPIErrorCode(errorCode)) {
|
|
129
|
+
return errorCode;
|
|
130
|
+
}
|
|
125
131
|
if (isSignerErrorCode(errorCode)) {
|
|
126
132
|
const t: { [key in SignerErrorCodeType]: APIErrorCode } = {
|
|
127
133
|
[SignerErrorCode.REJECTED_BY_USER]: 'USER_REJECT',
|
|
@@ -135,14 +141,40 @@ export function mapAppErrorCodesToAPIErrorCode(
|
|
|
135
141
|
return t[errorCode];
|
|
136
142
|
}
|
|
137
143
|
return DEFAULT_ERROR_CODE;
|
|
138
|
-
} catch
|
|
144
|
+
} catch {
|
|
139
145
|
return DEFAULT_ERROR_CODE;
|
|
140
146
|
}
|
|
141
147
|
}
|
|
142
148
|
|
|
149
|
+
type AxiosError = {
|
|
150
|
+
isAxiosError: true;
|
|
151
|
+
response?: {
|
|
152
|
+
data?: { error?: string };
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export function isAxiosError(obj: unknown): obj is AxiosError {
|
|
157
|
+
return (
|
|
158
|
+
!!obj &&
|
|
159
|
+
typeof obj === 'object' &&
|
|
160
|
+
'isAxiosError' in obj &&
|
|
161
|
+
obj.isAxiosError === true
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
143
165
|
export const prettifyErrorMessage = (obj: unknown): ErrorDetail => {
|
|
144
|
-
if (!obj)
|
|
145
|
-
|
|
166
|
+
if (!obj) {
|
|
167
|
+
return { extraMessage: '', extraMessageErrorCode: null };
|
|
168
|
+
}
|
|
169
|
+
if (isAxiosError(obj)) {
|
|
170
|
+
return {
|
|
171
|
+
extraMessage: obj.response?.data?.error || 'Unknown error',
|
|
172
|
+
extraMessageErrorCode: null,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
if (PrettyError.isPrettyError(obj)) {
|
|
176
|
+
return obj.getErrorDetail();
|
|
177
|
+
}
|
|
146
178
|
if (SignerError.isSignerError(obj)) {
|
|
147
179
|
const t = obj.getErrorDetail();
|
|
148
180
|
return {
|
|
@@ -151,15 +183,18 @@ export const prettifyErrorMessage = (obj: unknown): ErrorDetail => {
|
|
|
151
183
|
extraMessageErrorCode: t.code,
|
|
152
184
|
};
|
|
153
185
|
}
|
|
154
|
-
if (obj instanceof Error)
|
|
186
|
+
if (obj instanceof Error) {
|
|
155
187
|
return {
|
|
156
188
|
extraMessage: obj.toString(),
|
|
157
189
|
extraMessageErrorCode: null,
|
|
158
190
|
};
|
|
159
|
-
|
|
191
|
+
}
|
|
192
|
+
if (typeof obj !== 'string') {
|
|
160
193
|
return {
|
|
161
194
|
extraMessage: JSON.stringify(obj),
|
|
162
195
|
extraMessageErrorCode: null,
|
|
163
196
|
};
|
|
197
|
+
}
|
|
198
|
+
|
|
164
199
|
return { extraMessage: obj, extraMessageErrorCode: null };
|
|
165
200
|
};
|
package/src/types.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { TargetNamespace, Wallet } from './shared';
|
|
2
|
+
import type { Provider } from '@hub3js/core';
|
|
3
|
+
import type { DefaultNamespaces } from '@hub3js/namespaces';
|
|
2
4
|
import type {
|
|
3
5
|
QueueContext,
|
|
4
6
|
QueueDef,
|
|
5
7
|
QueueStorage,
|
|
6
8
|
} from '@rango-dev/queue-manager-core';
|
|
7
|
-
import type { Provider } from '@rango-dev/wallets-core';
|
|
8
9
|
import type { LegacyConnectResult as ConnectResult } from '@rango-dev/wallets-core/legacy';
|
|
9
10
|
import type {
|
|
10
11
|
Meta,
|
|
@@ -77,7 +78,7 @@ export interface SwapQueueContext extends QueueContext {
|
|
|
77
78
|
meta: Meta;
|
|
78
79
|
wallets: Wallet | null;
|
|
79
80
|
providers: Providers;
|
|
80
|
-
hubProvider: (type: WalletType) => Provider
|
|
81
|
+
hubProvider: (type: WalletType) => Provider<DefaultNamespaces>;
|
|
81
82
|
getSigners: (type: WalletType) => Promise<SignerFactory>;
|
|
82
83
|
switchNetwork: (
|
|
83
84
|
wallet: WalletType,
|