@rango-dev/queue-manager-rango-preset 0.61.2-next.4 → 0.62.0
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/checkPrerequisites/checkPrerequisites.d.ts +5 -0
- package/dist/actions/checkPrerequisites/checkPrerequisites.d.ts.map +1 -0
- package/dist/actions/checkPrerequisites/index.d.ts +2 -0
- package/dist/actions/checkPrerequisites/index.d.ts.map +1 -0
- package/dist/actions/checkPrerequisites/utils.d.ts +21 -0
- package/dist/actions/checkPrerequisites/utils.d.ts.map +1 -0
- package/dist/actions/checkStellarTrustline/checkStellarTrustline.d.ts +5 -0
- package/dist/actions/checkStellarTrustline/checkStellarTrustline.d.ts.map +1 -0
- package/dist/actions/checkStellarTrustline/constants.d.ts +2 -0
- package/dist/actions/checkStellarTrustline/constants.d.ts.map +1 -0
- package/dist/actions/checkStellarTrustline/index.d.ts +3 -0
- package/dist/actions/checkStellarTrustline/index.d.ts.map +1 -0
- package/dist/actions/checkStellarTrustline/types.d.ts +9 -0
- package/dist/actions/checkStellarTrustline/types.d.ts.map +1 -0
- package/dist/actions/checkStellarTrustline/utils.d.ts +26 -0
- package/dist/actions/checkStellarTrustline/utils.d.ts.map +1 -0
- package/dist/actions/checkXrplTrustline/checkXrplTrustline.d.ts.map +1 -1
- package/dist/actions/checkXrplTrustline/constants.d.ts +2 -0
- package/dist/actions/checkXrplTrustline/constants.d.ts.map +1 -0
- package/dist/actions/checkXrplTrustline/index.d.ts +1 -1
- package/dist/actions/checkXrplTrustline/index.d.ts.map +1 -1
- package/dist/actions/checkXrplTrustline/utils.d.ts +20 -7
- package/dist/actions/checkXrplTrustline/utils.d.ts.map +1 -1
- package/dist/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.d.ts +5 -0
- package/dist/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.d.ts.map +1 -0
- package/dist/actions/checkXrplTrustlineTransactionStatus/constants.d.ts +3 -0
- package/dist/actions/checkXrplTrustlineTransactionStatus/constants.d.ts.map +1 -0
- package/dist/actions/checkXrplTrustlineTransactionStatus/index.d.ts +2 -0
- package/dist/actions/checkXrplTrustlineTransactionStatus/index.d.ts.map +1 -0
- package/dist/actions/executeStellarTransaction/executeStellarTransaction.d.ts +4 -0
- package/dist/actions/executeStellarTransaction/executeStellarTransaction.d.ts.map +1 -0
- package/dist/actions/executeStellarTransaction/helpers.d.ts +7 -0
- package/dist/actions/executeStellarTransaction/helpers.d.ts.map +1 -0
- package/dist/actions/executeStellarTransaction/index.d.ts +2 -0
- package/dist/actions/executeStellarTransaction/index.d.ts.map +1 -0
- package/dist/actions/executeXrplTransaction/executeXrplTransaction.d.ts.map +1 -1
- package/dist/actions/executeXrplTransaction/helpers.d.ts +5 -0
- package/dist/actions/executeXrplTransaction/helpers.d.ts.map +1 -1
- package/dist/actions/scheduleNextStep.d.ts.map +1 -1
- package/dist/helpers.d.ts +2 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/queue-manager-rango-preset.build.json +1 -1
- package/dist/queueDef.d.ts.map +1 -1
- package/dist/types.d.ts +5 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/actions/checkPrerequisites/checkPrerequisites.ts +113 -0
- package/src/actions/checkPrerequisites/index.ts +1 -0
- package/src/actions/checkPrerequisites/utils.ts +124 -0
- package/src/actions/checkStellarTrustline/checkStellarTrustline.ts +237 -0
- package/src/actions/checkStellarTrustline/constants.ts +1 -0
- package/src/actions/checkStellarTrustline/index.ts +6 -0
- package/src/actions/checkStellarTrustline/types.ts +9 -0
- package/src/actions/checkStellarTrustline/utils.ts +200 -0
- package/src/actions/checkXrplTrustline/checkXrplTrustline.ts +147 -97
- package/src/actions/checkXrplTrustline/constants.ts +1 -0
- package/src/actions/checkXrplTrustline/index.ts +2 -1
- package/src/actions/checkXrplTrustline/utils.ts +134 -59
- package/src/actions/checkXrplTrustlineTransactionStatus/checkXrplTrustlineTransactionStatus.ts +145 -0
- package/src/actions/checkXrplTrustlineTransactionStatus/constants.ts +2 -0
- package/src/actions/checkXrplTrustlineTransactionStatus/index.ts +1 -0
- package/src/actions/executeStellarTransaction/executeStellarTransaction.ts +168 -0
- package/src/actions/executeStellarTransaction/helpers.ts +43 -0
- package/src/actions/executeStellarTransaction/index.ts +1 -0
- package/src/actions/executeXrplTransaction/executeXrplTransaction.ts +79 -47
- package/src/actions/executeXrplTransaction/helpers.ts +46 -0
- package/src/actions/scheduleNextStep.ts +2 -6
- package/src/helpers.ts +29 -0
- package/src/queueDef.ts +10 -1
- package/src/types.ts +8 -1
- package/dist/actions/executeXrplTransaction/constants.d.ts +0 -2
- package/dist/actions/executeXrplTransaction/constants.d.ts.map +0 -1
- 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.
|
|
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
|
-
|
|
53
|
+
EXECUTE_STELLAR_TRANSACTION = 'EXECUTE_STELLAR_TRANSACTION',
|
|
54
|
+
|
|
48
55
|
CHECK_TRANSACTION_STATUS = 'CHECK_TRANSACTION_STATUS',
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -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';
|