@rango-dev/queue-manager-rango-preset 0.61.2-next.4 → 0.61.2-next.5

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.
Files changed (75) hide show
  1. package/dist/actions/checkPrerequisites/checkPrerequisites.d.ts +5 -0
  2. package/dist/actions/checkPrerequisites/checkPrerequisites.d.ts.map +1 -0
  3. package/dist/actions/checkPrerequisites/index.d.ts +2 -0
  4. package/dist/actions/checkPrerequisites/index.d.ts.map +1 -0
  5. package/dist/actions/checkPrerequisites/utils.d.ts +21 -0
  6. package/dist/actions/checkPrerequisites/utils.d.ts.map +1 -0
  7. package/dist/actions/checkStellarTrustline/checkStellarTrustline.d.ts +5 -0
  8. package/dist/actions/checkStellarTrustline/checkStellarTrustline.d.ts.map +1 -0
  9. package/dist/actions/checkStellarTrustline/constants.d.ts +2 -0
  10. package/dist/actions/checkStellarTrustline/constants.d.ts.map +1 -0
  11. package/dist/actions/checkStellarTrustline/index.d.ts +3 -0
  12. package/dist/actions/checkStellarTrustline/index.d.ts.map +1 -0
  13. package/dist/actions/checkStellarTrustline/types.d.ts +9 -0
  14. package/dist/actions/checkStellarTrustline/types.d.ts.map +1 -0
  15. package/dist/actions/checkStellarTrustline/utils.d.ts +26 -0
  16. package/dist/actions/checkStellarTrustline/utils.d.ts.map +1 -0
  17. package/dist/actions/checkXrplTrustline/checkXrplTrustline.d.ts.map +1 -1
  18. package/dist/actions/checkXrplTrustline/constants.d.ts +2 -0
  19. package/dist/actions/checkXrplTrustline/constants.d.ts.map +1 -0
  20. package/dist/actions/checkXrplTrustline/index.d.ts +1 -1
  21. package/dist/actions/checkXrplTrustline/index.d.ts.map +1 -1
  22. package/dist/actions/checkXrplTrustline/utils.d.ts +20 -7
  23. package/dist/actions/checkXrplTrustline/utils.d.ts.map +1 -1
  24. package/dist/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.d.ts +5 -0
  25. package/dist/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.d.ts.map +1 -0
  26. package/dist/actions/checkXrplTrustlineTransactionStatus/constants.d.ts +3 -0
  27. package/dist/actions/checkXrplTrustlineTransactionStatus/constants.d.ts.map +1 -0
  28. package/dist/actions/checkXrplTrustlineTransactionStatus/index.d.ts +2 -0
  29. package/dist/actions/checkXrplTrustlineTransactionStatus/index.d.ts.map +1 -0
  30. package/dist/actions/executeStellarTransaction/executeStellarTransaction.d.ts +4 -0
  31. package/dist/actions/executeStellarTransaction/executeStellarTransaction.d.ts.map +1 -0
  32. package/dist/actions/executeStellarTransaction/helpers.d.ts +7 -0
  33. package/dist/actions/executeStellarTransaction/helpers.d.ts.map +1 -0
  34. package/dist/actions/executeStellarTransaction/index.d.ts +2 -0
  35. package/dist/actions/executeStellarTransaction/index.d.ts.map +1 -0
  36. package/dist/actions/executeXrplTransaction/executeXrplTransaction.d.ts.map +1 -1
  37. package/dist/actions/executeXrplTransaction/helpers.d.ts +5 -0
  38. package/dist/actions/executeXrplTransaction/helpers.d.ts.map +1 -1
  39. package/dist/actions/scheduleNextStep.d.ts.map +1 -1
  40. package/dist/helpers.d.ts +2 -1
  41. package/dist/helpers.d.ts.map +1 -1
  42. package/dist/index.js +1 -1
  43. package/dist/index.js.map +4 -4
  44. package/dist/queue-manager-rango-preset.build.json +1 -1
  45. package/dist/queueDef.d.ts.map +1 -1
  46. package/dist/types.d.ts +5 -1
  47. package/dist/types.d.ts.map +1 -1
  48. package/package.json +3 -2
  49. package/src/actions/checkPrerequisites/checkPrerequisites.ts +113 -0
  50. package/src/actions/checkPrerequisites/index.ts +1 -0
  51. package/src/actions/checkPrerequisites/utils.ts +124 -0
  52. package/src/actions/checkStellarTrustline/checkStellarTrustline.ts +237 -0
  53. package/src/actions/checkStellarTrustline/constants.ts +1 -0
  54. package/src/actions/checkStellarTrustline/index.ts +6 -0
  55. package/src/actions/checkStellarTrustline/types.ts +9 -0
  56. package/src/actions/checkStellarTrustline/utils.ts +200 -0
  57. package/src/actions/checkXrplTrustline/checkXrplTrustline.ts +147 -97
  58. package/src/actions/checkXrplTrustline/constants.ts +1 -0
  59. package/src/actions/checkXrplTrustline/index.ts +2 -1
  60. package/src/actions/checkXrplTrustline/utils.ts +134 -59
  61. package/src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts +145 -0
  62. package/src/actions/checkXrplTrustlineTransactionStatus/constants.ts +2 -0
  63. package/src/actions/checkXrplTrustlineTransactionStatus/index.ts +1 -0
  64. package/src/actions/executeStellarTransaction/executeStellarTransaction.ts +168 -0
  65. package/src/actions/executeStellarTransaction/helpers.ts +43 -0
  66. package/src/actions/executeStellarTransaction/index.ts +1 -0
  67. package/src/actions/executeXrplTransaction/executeXrplTransaction.ts +79 -47
  68. package/src/actions/executeXrplTransaction/helpers.ts +46 -0
  69. package/src/actions/scheduleNextStep.ts +2 -6
  70. package/src/helpers.ts +29 -0
  71. package/src/queueDef.ts +10 -1
  72. package/src/types.ts +8 -1
  73. package/dist/actions/executeXrplTransaction/constants.d.ts +0 -2
  74. package/dist/actions/executeXrplTransaction/constants.d.ts.map +0 -1
  75. package/src/actions/executeXrplTransaction/constants.ts +0 -1
package/src/queueDef.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  import type { SwapQueueDef } from './types';
2
2
 
3
+ import { checkPrerequisites } from './actions/checkPrerequisites';
3
4
  import { checkStatus } from './actions/checkStatus';
5
+ import { checkStellarTrustline } from './actions/checkStellarTrustline';
4
6
  import { checkXrplTrustline } from './actions/checkXrplTrustline';
7
+ import { checkXrplTrustLineTransactionStatus } from './actions/checkXrplTrustlineTransactionStatus';
5
8
  import { createTransaction } from './actions/createTransaction';
9
+ import { executeStellarTransaction } from './actions/executeStellarTransaction';
6
10
  import { executeTransaction } from './actions/executeTransaction';
7
11
  import { executeXrplTransaction } from './actions/executeXrplTransaction';
8
12
  import { scheduleNextStep } from './actions/scheduleNextStep';
@@ -27,9 +31,14 @@ export const swapQueueDef: SwapQueueDef = {
27
31
  [SwapActionTypes.START]: start,
28
32
  [SwapActionTypes.SCHEDULE_NEXT_STEP]: scheduleNextStep,
29
33
  [SwapActionTypes.CREATE_TRANSACTION]: createTransaction,
34
+ [SwapActionTypes.CHECK_PREREQUISITES]: checkPrerequisites,
35
+ [SwapActionTypes.CHECK_XRPL_TRUSTLINE]: checkXrplTrustline,
36
+ [SwapActionTypes.CHECK_XRPL_TRUSTLINE_TRANSACTION_STATUS]:
37
+ checkXrplTrustLineTransactionStatus,
38
+ [SwapActionTypes.CHECK_STELLAR_TRUSTLINE]: checkStellarTrustline,
30
39
  [SwapActionTypes.EXECUTE_TRANSACTION]: executeTransaction,
31
40
  [SwapActionTypes.EXECUTE_XRPL_TRANSACTION]: executeXrplTransaction,
32
- [SwapActionTypes.CHECK_XRPL_TRUSTLINE]: checkXrplTrustline,
41
+ [SwapActionTypes.EXECUTE_STELLAR_TRANSACTION]: executeStellarTransaction,
33
42
  [SwapActionTypes.CHECK_TRANSACTION_STATUS]: checkStatus,
34
43
  },
35
44
  run: [SwapActionTypes.START],
package/src/types.ts CHANGED
@@ -42,9 +42,16 @@ export enum SwapActionTypes {
42
42
  START = 'START',
43
43
  SCHEDULE_NEXT_STEP = 'SCHEDULE_NEXT_STEP',
44
44
  CREATE_TRANSACTION = 'CREATE_TRANSACTION',
45
+
46
+ CHECK_PREREQUISITES = 'CHECK_PREREQUISITES',
47
+ CHECK_XRPL_TRUSTLINE = 'CHECK_XRPL_TRUSTLINE',
48
+ CHECK_STELLAR_TRUSTLINE = 'CHECK_STELLAR_TRUSTLINE',
49
+ CHECK_XRPL_TRUSTLINE_TRANSACTION_STATUS = 'CHECK_XRPL_TRUSTLINE_TRANSACTION_STATUS',
50
+
45
51
  EXECUTE_TRANSACTION = 'EXECUTE_TRANSACTION',
46
52
  EXECUTE_XRPL_TRANSACTION = 'EXECUTE_XRPL_TRANSACTION',
47
- CHECK_XRPL_TRUSTLINE = 'CHECK_XRPL_TRUSTLINE',
53
+ EXECUTE_STELLAR_TRANSACTION = 'EXECUTE_STELLAR_TRANSACTION',
54
+
48
55
  CHECK_TRANSACTION_STATUS = 'CHECK_TRANSACTION_STATUS',
49
56
  }
50
57
 
@@ -1,2 +0,0 @@
1
- export declare const TRUST_LINE_AMOUNT = "10000000000000";
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/actions/executeXrplTransaction/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- export const TRUST_LINE_AMOUNT = '10000000000000';