@xyo-network/chain-bridge 1.20.4 → 1.20.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.
- package/dist/node/index.mjs +54 -31
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts +2 -3
- package/dist/node/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts.map +1 -1
- package/dist/node/queue/flows/createXl1ToEthBridgeJob/createXl1ToEthBridgeJob.d.ts +3 -1
- package/dist/node/queue/flows/createXl1ToEthBridgeJob/createXl1ToEthBridgeJob.d.ts.map +1 -1
- package/dist/node/queue/workers/EthTransactionMonitor.d.ts +2 -4
- package/dist/node/queue/workers/EthTransactionMonitor.d.ts.map +1 -1
- package/dist/node/queue/workers/EthTransactionPreparation.d.ts +2 -4
- package/dist/node/queue/workers/EthTransactionPreparation.d.ts.map +1 -1
- package/dist/node/queue/workers/EthTransactionSubmission.d.ts +2 -4
- package/dist/node/queue/workers/EthTransactionSubmission.d.ts.map +1 -1
- package/dist/node/queue/workers/EthTransactionSubmissionStorage.d.ts +2 -4
- package/dist/node/queue/workers/EthTransactionSubmissionStorage.d.ts.map +1 -1
- package/dist/node/queue/workers/Xl1ToEthBridgeParent.d.ts +2 -4
- package/dist/node/queue/workers/Xl1ToEthBridgeParent.d.ts.map +1 -1
- package/dist/node/queue/workers/Xl1TransactionJobData.d.ts +15 -0
- package/dist/node/queue/workers/Xl1TransactionJobData.d.ts.map +1 -0
- package/dist/node/queue/workers/Xl1TransactionMonitor.d.ts +2 -4
- package/dist/node/queue/workers/Xl1TransactionMonitor.d.ts.map +1 -1
- package/dist/node/queue/workers/Xl1TransactionPreparation.d.ts +2 -3
- package/dist/node/queue/workers/Xl1TransactionPreparation.d.ts.map +1 -1
- package/dist/node/queue/workers/Xl1TransactionSubmission.d.ts +2 -4
- package/dist/node/queue/workers/Xl1TransactionSubmission.d.ts.map +1 -1
- package/dist/node/queue/workers/Xl1TransactionSubmissionStorage.d.ts +2 -4
- package/dist/node/queue/workers/Xl1TransactionSubmissionStorage.d.ts.map +1 -1
- package/dist/node/queue/workers/util/submitEthTransaction.d.ts +3 -2
- package/dist/node/queue/workers/util/submitEthTransaction.d.ts.map +1 -1
- package/dist/node/queue/workers/util/submitXl1Transaction.d.ts +2 -1
- package/dist/node/queue/workers/util/submitXl1Transaction.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.d.ts.map +1 -1
- package/dist/node/services/Xl1TxState.d.ts +2 -0
- package/dist/node/services/Xl1TxState.d.ts.map +1 -1
- package/dist/node/validation/validateSufficientLiquiditySourceAllowance.d.ts +3 -1
- package/dist/node/validation/validateSufficientLiquiditySourceAllowance.d.ts.map +1 -1
- package/dist/node/validation/validateSufficientLiquiditySourceBalance.d.ts +3 -1
- package/dist/node/validation/validateSufficientLiquiditySourceBalance.d.ts.map +1 -1
- package/package.json +18 -19
- package/src/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.ts +5 -4
- package/src/queue/flows/createXl1ToEthBridgeJob/createXl1ToEthBridgeJob.ts +23 -9
- package/src/queue/workers/EthTransactionMonitor.ts +2 -1
- package/src/queue/workers/EthTransactionPreparation.ts +8 -6
- package/src/queue/workers/EthTransactionSubmission.ts +4 -5
- package/src/queue/workers/EthTransactionSubmissionStorage.ts +2 -2
- package/src/queue/workers/Xl1ToEthBridgeParent.ts +2 -2
- package/src/queue/workers/Xl1TransactionJobData.ts +12 -0
- package/src/queue/workers/Xl1TransactionMonitor.ts +2 -2
- package/src/queue/workers/Xl1TransactionPreparation.ts +4 -3
- package/src/queue/workers/Xl1TransactionSubmission.ts +7 -8
- package/src/queue/workers/Xl1TransactionSubmissionStorage.ts +2 -1
- package/src/queue/workers/util/submitEthTransaction.ts +10 -3
- package/src/queue/workers/util/submitXl1Transaction.ts +4 -5
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeToRemote.ts +2 -2
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.ts +3 -2
- package/src/services/Xl1TxState.ts +4 -1
- package/src/validation/validateSufficientLiquiditySourceAllowance.ts +5 -1
- package/src/validation/validateSufficientLiquiditySourceBalance.ts +5 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Attributes, Counter } from '@opentelemetry/api';
|
|
2
2
|
import type { Address, Hash, Hex } from '@xylabs/sdk-js';
|
|
3
|
-
import type { AnyConfigSchema, Payload } from '@xyo-network/sdk-js';
|
|
4
|
-
import { AbstractSentinel } from '@xyo-network/
|
|
5
|
-
import type { SentinelConfig, SentinelInstance, SentinelModuleEventData, SentinelParams } from '@xyo-network/sentinel-model';
|
|
3
|
+
import type { AnyConfigSchema, Payload, SentinelConfig, SentinelInstance, SentinelModuleEventData, SentinelParams } from '@xyo-network/sdk-js';
|
|
4
|
+
import { AbstractSentinel } from '@xyo-network/sdk-js';
|
|
6
5
|
import { type LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
7
6
|
import type { BridgeDestinationObservation, IterableMap, MapType, SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
8
7
|
import { Mutex } from 'async-mutex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts","sourceRoot":"","sources":["../../../../src/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,EACV,OAAO,EAAE,IAAI,EAAE,GAAG,EACnB,MAAM,gBAAgB,CAAA;AAIvB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts","sourceRoot":"","sources":["../../../../src/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
1
2
|
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
3
|
import type { FlowProducer } from 'bullmq';
|
|
3
4
|
/**
|
|
4
5
|
* Creates a job flow for bridging a transaction from XL1 to Ethereum.
|
|
5
6
|
* @param flowProducer The flow producer to run the job
|
|
6
7
|
* @param tx The bridge transaction
|
|
8
|
+
* @param offChainPayloads The payloads to put off chain
|
|
7
9
|
* @returns The JobNode representing the XL1 to ETH bridge job
|
|
8
10
|
*/
|
|
9
|
-
export declare const createXl1ToEthBridgeJob: (flowProducer: FlowProducer, tx: SignedHydratedTransaction) => Promise<import("bullmq").JobNode>;
|
|
11
|
+
export declare const createXl1ToEthBridgeJob: (flowProducer: FlowProducer, tx: SignedHydratedTransaction, offChainPayloads?: Payload[]) => Promise<import("bullmq").JobNode>;
|
|
10
12
|
//# sourceMappingURL=createXl1ToEthBridgeJob.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createXl1ToEthBridgeJob.d.ts","sourceRoot":"","sources":["../../../../../src/queue/flows/createXl1ToEthBridgeJob/createXl1ToEthBridgeJob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"createXl1ToEthBridgeJob.d.ts","sourceRoot":"","sources":["../../../../../src/queue/flows/createXl1ToEthBridgeJob/createXl1ToEthBridgeJob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAmB1C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAClC,cAAc,YAAY,EAC1B,IAAI,yBAAyB,EAC7B,mBAAkB,OAAO,EAAO,sCA+FjC,CAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
import type { Xl1TransactionJobData } from './Xl1TransactionJobData.ts';
|
|
4
|
+
export type EthTransactionMonitorJobData = Xl1TransactionJobData;
|
|
7
5
|
export interface EthTransactionMonitorJobReturn {
|
|
8
6
|
blockHash: string;
|
|
9
7
|
blockNumber: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthTransactionMonitor.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionMonitor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EthTransactionMonitor.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionMonitor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAOjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAA;AAChE,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;CACvB;AACD,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,4BAA4B,EAAE,8BAA8B,CAAC,CAAA;AAsCxG,eAAO,MAAM,qBAAqB,EAAE,iBAEnC,CAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { BullMQOtel } from 'bullmq-otel';
|
|
4
3
|
import type { Redis } from 'ioredis';
|
|
5
4
|
import type { IBridgeServiceCollection } from '../../services/index.ts';
|
|
6
5
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
6
|
+
import type { Xl1DataLakeTransactionJobData } from './Xl1TransactionJobData.ts';
|
|
7
|
+
export type EthTransactionPreparationJobData = Xl1DataLakeTransactionJobData;
|
|
10
8
|
export type EthTransactionPreparationJobReturn = Record<string, never>;
|
|
11
9
|
export type EthTransactionPreparationJob = Job<EthTransactionPreparationJobData, EthTransactionPreparationJobReturn>;
|
|
12
10
|
export declare const createWorker: (connection: Redis, telemetry?: BullMQOtel, services?: IBridgeServiceCollection) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthTransactionPreparation.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionPreparation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EthTransactionPreparation.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionPreparation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAEjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAKvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,MAAM,MAAM,gCAAgC,GAAG,6BAA6B,CAAA;AAC5E,MAAM,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AACtE,MAAM,MAAM,4BAA4B,GAAG,GAAG,CAAC,gCAAgC,EAAE,kCAAkC,CAAC,CAAA;AAKpH,eAAO,MAAM,YAAY,GAAI,YAAY,KAAK,EAAE,YAAY,UAAU,EAAE,WAAW,wBAAwB,SAsD1G,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,iBAEvC,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { EthTxState } from '../../services/index.ts';
|
|
4
3
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
4
|
+
import type { Xl1DataLakeTransactionJobData } from './Xl1TransactionJobData.ts';
|
|
5
|
+
export type EthTransactionSubmissionJobData = Xl1DataLakeTransactionJobData;
|
|
8
6
|
export interface EthTransactionSubmissionJobReturn {
|
|
9
7
|
submissionHash: Required<EthTxState>['submissionHash'];
|
|
10
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthTransactionSubmission.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionSubmission.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"EthTransactionSubmission.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionSubmission.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAKjC,OAAO,KAAK,EAAE,UAAU,EAA4B,MAAM,yBAAyB,CAAA;AAGnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,MAAM,MAAM,+BAA+B,GAAG,6BAA6B,CAAA;AAC3E,MAAM,WAAW,iCAAiC;IAChD,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACvD;AACD,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,+BAA+B,EAAE,iCAAiC,CAAC,CAAA;AA2CjH,eAAO,MAAM,wBAAwB,EAAE,iBAEtC,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { EthTxState } from '../../services/index.ts';
|
|
4
3
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
4
|
+
import type { Xl1TransactionJobData } from './Xl1TransactionJobData.ts';
|
|
5
|
+
export type EthTransactionSubmissionStorageJobData = Xl1TransactionJobData;
|
|
8
6
|
export interface EthTransactionSubmissionStorageJobReturn {
|
|
9
7
|
submissionHash: Required<EthTxState>['submissionHash'];
|
|
10
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthTransactionSubmissionStorage.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionSubmissionStorage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"EthTransactionSubmissionStorage.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/EthTransactionSubmissionStorage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAKjC,OAAO,KAAK,EAAE,UAAU,EAA4B,MAAM,yBAAyB,CAAA;AAInF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,MAAM,MAAM,sCAAsC,GAAG,qBAAqB,CAAA;AAC1E,MAAM,WAAW,wCAAwC;IACvD,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACvD;AACD,MAAM,MAAM,kCAAkC,GAAG,GAAG,CAAC,sCAAsC,EAAE,wCAAwC,CAAC,CAAA;AAuDtI,eAAO,MAAM,+BAA+B,EAAE,iBAE7C,CAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
import type { Xl1DataLakeTransactionJobData } from './Xl1TransactionJobData.ts';
|
|
4
|
+
export type Xl1ToEthBridgeParentJobData = Xl1DataLakeTransactionJobData;
|
|
7
5
|
export interface Xl1ToEthBridgeParentJobReturn {
|
|
8
6
|
}
|
|
9
7
|
export type Xl1ToEthBridgeParentJob = Job<Xl1ToEthBridgeParentJobData, Xl1ToEthBridgeParentJobReturn>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xl1ToEthBridgeParent.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1ToEthBridgeParent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Xl1ToEthBridgeParent.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1ToEthBridgeParent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAMjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,MAAM,MAAM,2BAA2B,GAAG,6BAA6B,CAAA;AACvE,MAAM,WAAW,6BAA6B;CAAI;AAClD,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,2BAA2B,EAAE,6BAA6B,CAAC,CAAA;AA2BrG,eAAO,MAAM,oBAAoB,EAAE,iBAElC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the data required for a job that requires an XL1 transaction.
|
|
5
|
+
*/
|
|
6
|
+
export type Xl1TransactionJobData = {
|
|
7
|
+
tx: SignedHydratedTransaction;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Represents the data required for a job that requires an XL1 transaction and its associated off-chain payloads.
|
|
11
|
+
*/
|
|
12
|
+
export type Xl1DataLakeTransactionJobData = Xl1TransactionJobData & {
|
|
13
|
+
offChainPayloads: Payload[];
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Xl1TransactionJobData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Xl1TransactionJobData.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionJobData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAAE,EAAE,EAAE,yBAAyB,CAAA;CAAE,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG;IAAE,gBAAgB,EAAE,OAAO,EAAE,CAAA;CAAE,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { BrandedHash } from '@xylabs/sdk-js';
|
|
2
|
-
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
3
2
|
import type { Job } from 'bullmq';
|
|
4
3
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
4
|
+
import type { Xl1TransactionJobData } from './Xl1TransactionJobData.ts';
|
|
5
|
+
export type Xl1TransactionMonitorJobData = Xl1TransactionJobData;
|
|
8
6
|
export interface Xl1TransactionMonitorJobReturn {
|
|
9
7
|
submissionHash: BrandedHash;
|
|
10
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xl1TransactionMonitor.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionMonitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Xl1TransactionMonitor.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionMonitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAOjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAA;AAChE,MAAM,WAAW,8BAA8B;IAC7C,cAAc,EAAE,WAAW,CAAA;CAC5B;AACD,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,4BAA4B,EAAE,8BAA8B,CAAC,CAAA;AA4DxG,eAAO,MAAM,qBAAqB,EAAE,iBAEnC,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
2
|
import type { Job } from 'bullmq';
|
|
3
3
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
4
|
+
import type { Xl1DataLakeTransactionJobData } from './Xl1TransactionJobData.ts';
|
|
5
|
+
export type Xl1TransactionPreparationJobData = Xl1DataLakeTransactionJobData;
|
|
7
6
|
export interface Xl1TransactionPreparationJobReturn {
|
|
8
7
|
preparedTx: SignedHydratedTransaction;
|
|
9
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xl1TransactionPreparation.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionPreparation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAOjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"Xl1TransactionPreparation.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionPreparation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAOjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,MAAM,MAAM,gCAAgC,GAAG,6BAA6B,CAAA;AAC5E,MAAM,WAAW,kCAAkC;IAAG,UAAU,EAAE,yBAAyB,CAAA;CAAE;AAC7F,MAAM,MAAM,4BAA4B,GAAG,GAAG,CAAC,gCAAgC,EAAE,kCAAkC,CAAC,CAAA;AAkCpH,eAAO,MAAM,yBAAyB,EAAE,iBAEvC,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { Xl1TxState } from '../../services/index.ts';
|
|
4
3
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
4
|
+
import type { Xl1TransactionJobData } from './Xl1TransactionJobData.ts';
|
|
5
|
+
export type Xl1TransactionSubmissionJobData = Xl1TransactionJobData;
|
|
8
6
|
export interface Xl1TransactionSubmissionJobReturn {
|
|
9
7
|
submissionHash: Required<Xl1TxState>['submissionHash'];
|
|
10
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xl1TransactionSubmission.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionSubmission.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Xl1TransactionSubmission.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionSubmission.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAKjC,OAAO,KAAK,EAA4B,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,MAAM,MAAM,+BAA+B,GAAG,qBAAqB,CAAA;AACnE,MAAM,WAAW,iCAAiC;IAChD,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACvD;AACD,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,+BAA+B,EAAE,iCAAiC,CAAC,CAAA;AAkDjH,eAAO,MAAM,wBAAwB,EAAE,iBAEtC,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
2
1
|
import type { Job } from 'bullmq';
|
|
3
2
|
import type { Xl1TxState } from '../../services/index.ts';
|
|
4
3
|
import type { WorkerDescription } from './WorkerDescription.ts';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
4
|
+
import type { Xl1TransactionJobData } from './Xl1TransactionJobData.ts';
|
|
5
|
+
export type Xl1TransactionSubmissionStorageJobData = Xl1TransactionJobData;
|
|
8
6
|
export interface Xl1TransactionSubmissionStorageJobReturn {
|
|
9
7
|
submissionHash: Required<Xl1TxState>['submissionHash'];
|
|
10
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xl1TransactionSubmissionStorage.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionSubmissionStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Xl1TransactionSubmissionStorage.d.ts","sourceRoot":"","sources":["../../../../src/queue/workers/Xl1TransactionSubmissionStorage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAKjC,OAAO,KAAK,EAA4B,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAIvE,MAAM,MAAM,sCAAsC,GAAG,qBAAqB,CAAA;AAC1E,MAAM,WAAW,wCAAwC;IACvD,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACvD;AACD,MAAM,MAAM,kCAAkC,GAAG,GAAG,CAAC,sCAAsC,EAAE,wCAAwC,CAAC,CAAA;AAwDtI,eAAO,MAAM,+BAA+B,EAAE,iBAE7C,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
2
3
|
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
3
4
|
import type { Wallet } from 'ethers';
|
|
4
|
-
export declare const submitEthTransaction: (tx: SignedHydratedTransaction,
|
|
5
|
+
export declare const submitEthTransaction: (tx: SignedHydratedTransaction, offChainPayloads: Payload[], bridge: LiquidityPoolBridge, wallet: Wallet) => Promise<string | undefined>;
|
|
5
6
|
//# sourceMappingURL=submitEthTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitEthTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/submitEthTransaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"submitEthTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/submitEthTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,eAAO,MAAM,oBAAoB,GAC/B,IAAI,yBAAyB,EAC7B,kBAAkB,OAAO,EAAE,EAC3B,QAAQ,mBAAmB,EAC3B,QAAQ,MAAM,gCAkBf,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type BrandedHash } from '@xylabs/sdk-js';
|
|
2
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
2
3
|
import { type SignedHydratedTransaction, type XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
3
|
-
export declare const submitXl1Transaction: (preparedTx: SignedHydratedTransaction, gateway: XyoGatewayRunner) => Promise<[BrandedHash, SignedHydratedTransaction]>;
|
|
4
|
+
export declare const submitXl1Transaction: (preparedTx: SignedHydratedTransaction, offChain: Payload[] | undefined, gateway: XyoGatewayRunner) => Promise<[BrandedHash, SignedHydratedTransaction]>;
|
|
4
5
|
//# sourceMappingURL=submitXl1Transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitXl1Transaction.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/submitXl1Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"submitXl1Transaction.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/submitXl1Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5F,eAAO,MAAM,oBAAoB,GAC/B,YAAY,yBAAyB,EACrC,UAAU,OAAO,EAAE,YAAK,EACxB,SAAS,gBAAgB,KACxB,OAAO,CAAC,CAAC,WAAW,EAAE,yBAAyB,CAAC,CAiBlD,CAAA"}
|
package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeToRemoteStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAOpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAK1C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE1F,eAAO,MAAM,6BAA6B,GAAI,QAAQ,YAAY,KAAG,
|
|
1
|
+
{"version":3,"file":"bridgeToRemoteStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAOpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAK1C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE1F,eAAO,MAAM,6BAA6B,GAAI,QAAQ,YAAY,KAAG,eAiEpE,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/sdk-js';
|
|
2
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
2
3
|
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
3
4
|
import type { TxState } from './TxState.ts';
|
|
4
5
|
export interface Xl1TxState extends TxState<SignedHydratedTransaction, Hash, Hash> {
|
|
6
|
+
offChainPayloads?: Payload[];
|
|
5
7
|
}
|
|
6
8
|
//# sourceMappingURL=Xl1TxState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xl1TxState.d.ts","sourceRoot":"","sources":["../../../src/services/Xl1TxState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,yBAAyB,EAAE,IAAI,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Xl1TxState.d.ts","sourceRoot":"","sources":["../../../src/services/Xl1TxState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,yBAAyB,EAAE,IAAI,EAAE,IAAI,CAAC;IAChF,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAA;CAC7B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
1
2
|
import type { BridgeableToken, LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
2
3
|
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
3
4
|
import type { AsyncLogger } from './AsyncLogger.ts';
|
|
@@ -6,10 +7,11 @@ import type { AsyncLogger } from './AsyncLogger.ts';
|
|
|
6
7
|
* ensure that (due to race conditions) the transaction will succeed, but is a quick check to avoid
|
|
7
8
|
* submitting transactions that are likely to fail.
|
|
8
9
|
* @param tx The transaction containing a bridge intent
|
|
10
|
+
* @param offChainPayloads The payloads to put off chain
|
|
9
11
|
* @param bridgeableToken The contract for the token being bridged
|
|
10
12
|
* @param bridge The contract for the liquidity bridge
|
|
11
13
|
* @param logger Optional logger for asynchronous logging
|
|
12
14
|
* @returns True if the liquidity source allowance is sufficient to execute the bridge
|
|
13
15
|
*/
|
|
14
|
-
export declare const validateSufficientLiquiditySourceAllowance: (tx: SignedHydratedTransaction, bridgeableToken: BridgeableToken, bridge: LiquidityPoolBridge, logger?: AsyncLogger) => Promise<boolean>;
|
|
16
|
+
export declare const validateSufficientLiquiditySourceAllowance: (tx: SignedHydratedTransaction, offChainPayloads: Payload[], bridgeableToken: BridgeableToken, bridge: LiquidityPoolBridge, logger?: AsyncLogger) => Promise<boolean>;
|
|
15
17
|
//# sourceMappingURL=validateSufficientLiquiditySourceAllowance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateSufficientLiquiditySourceAllowance.d.ts","sourceRoot":"","sources":["../../../src/validation/validateSufficientLiquiditySourceAllowance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD
|
|
1
|
+
{"version":3,"file":"validateSufficientLiquiditySourceAllowance.d.ts","sourceRoot":"","sources":["../../../src/validation/validateSufficientLiquiditySourceAllowance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0CAA0C,GACrD,IAAI,yBAAyB,EAC7B,kBAAkB,OAAO,EAAE,EAC3B,iBAAiB,eAAe,EAChC,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,qBAerB,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
1
2
|
import type { BridgeableToken, LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
2
3
|
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
3
4
|
import type { AsyncLogger } from './AsyncLogger.ts';
|
|
@@ -6,10 +7,11 @@ import type { AsyncLogger } from './AsyncLogger.ts';
|
|
|
6
7
|
* ensure that (due to race conditions) the transaction will succeed, but is a quick check to avoid
|
|
7
8
|
* submitting transactions that are likely to fail.
|
|
8
9
|
* @param tx The transaction containing a bridge intent
|
|
10
|
+
* @param offChainPayloads The payloads to put off chain
|
|
9
11
|
* @param bridgeableToken The contract for the token being bridged
|
|
10
12
|
* @param bridge The contract for the liquidity bridge
|
|
11
13
|
* @param logger Optional logger for asynchronous logging
|
|
12
14
|
* @returns True if the liquidity source balance is sufficient to execute the bridge
|
|
13
15
|
*/
|
|
14
|
-
export declare const validateSufficientLiquiditySourceBalance: (tx: SignedHydratedTransaction, bridgeableToken: BridgeableToken, bridge: LiquidityPoolBridge, logger?: AsyncLogger) => Promise<boolean>;
|
|
16
|
+
export declare const validateSufficientLiquiditySourceBalance: (tx: SignedHydratedTransaction, offChainPayloads: Payload[], bridgeableToken: BridgeableToken, bridge: LiquidityPoolBridge, logger?: AsyncLogger) => Promise<boolean>;
|
|
15
17
|
//# sourceMappingURL=validateSufficientLiquiditySourceBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateSufficientLiquiditySourceBalance.d.ts","sourceRoot":"","sources":["../../../src/validation/validateSufficientLiquiditySourceBalance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD
|
|
1
|
+
{"version":3,"file":"validateSufficientLiquiditySourceBalance.d.ts","sourceRoot":"","sources":["../../../src/validation/validateSufficientLiquiditySourceBalance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wCAAwC,GACnD,IAAI,yBAAyB,EAC7B,kBAAkB,OAAO,EAAE,EAC3B,iBAAiB,eAAe,EAChC,QAAQ,mBAAmB,EAC3B,SAAS,WAAW,qBAcrB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/chain-bridge",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.5",
|
|
4
4
|
"description": "XYO Layer One Bridge",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -52,19 +52,19 @@
|
|
|
52
52
|
"@opentelemetry/instrumentation": "~0.213.0",
|
|
53
53
|
"@opentelemetry/instrumentation-express": "~0.61.0",
|
|
54
54
|
"@opentelemetry/instrumentation-http": "~0.213.0",
|
|
55
|
-
"@xylabs/express": "~5.0.
|
|
56
|
-
"@xylabs/mongo": "~5.0.
|
|
57
|
-
"@xylabs/sdk-js": "~5.0.
|
|
55
|
+
"@xylabs/express": "~5.0.83",
|
|
56
|
+
"@xylabs/mongo": "~5.0.83",
|
|
57
|
+
"@xylabs/sdk-js": "~5.0.83",
|
|
58
58
|
"@xyo-network/boundwitness-validator": "~5.3.15",
|
|
59
|
-
"@xyo-network/chain-orchestration": "~1.20.
|
|
60
|
-
"@xyo-network/chain-protocol": "~1.20.
|
|
61
|
-
"@xyo-network/chain-services": "~1.20.
|
|
59
|
+
"@xyo-network/chain-orchestration": "~1.20.5",
|
|
60
|
+
"@xyo-network/chain-protocol": "~1.20.5",
|
|
61
|
+
"@xyo-network/chain-services": "~1.20.5",
|
|
62
62
|
"@xyo-network/sdk-js": "~5.3.15",
|
|
63
63
|
"@xyo-network/sentinel-abstract": "~5.3.15",
|
|
64
64
|
"@xyo-network/sentinel-model": "~5.3.15",
|
|
65
65
|
"@xyo-network/typechain": "~4.1.2",
|
|
66
66
|
"@xyo-network/wallet-model": "~5.3.15",
|
|
67
|
-
"@xyo-network/xl1-sdk": "~1.25.
|
|
67
|
+
"@xyo-network/xl1-sdk": "~1.25.22",
|
|
68
68
|
"async-mutex": "~0.5.0",
|
|
69
69
|
"bullmq": "~5.70.4",
|
|
70
70
|
"bullmq-otel": "~1.3.0",
|
|
@@ -80,14 +80,13 @@
|
|
|
80
80
|
"@opentelemetry/api": "^1.9.0",
|
|
81
81
|
"@types/compression": "~1.8.1",
|
|
82
82
|
"@types/cors": "~2.8.19",
|
|
83
|
-
"@types/express": "5.0.6",
|
|
84
83
|
"@types/express-serve-static-core": "~5.1.1",
|
|
85
|
-
"@types/node": "~25.
|
|
86
|
-
"@xylabs/mongo": "~5.0.
|
|
87
|
-
"@xylabs/sdk-js": "~5.0.
|
|
88
|
-
"@xylabs/ts-scripts-yarn3": "~7.4.
|
|
89
|
-
"@xylabs/tsconfig": "~7.4.
|
|
90
|
-
"@xylabs/vitest-extended": "~5.0.
|
|
84
|
+
"@types/node": "~25.4.0",
|
|
85
|
+
"@xylabs/mongo": "~5.0.83",
|
|
86
|
+
"@xylabs/sdk-js": "~5.0.83",
|
|
87
|
+
"@xylabs/ts-scripts-yarn3": "~7.4.13",
|
|
88
|
+
"@xylabs/tsconfig": "~7.4.13",
|
|
89
|
+
"@xylabs/vitest-extended": "~5.0.83",
|
|
91
90
|
"@xyo-network/account": "~5.3.15",
|
|
92
91
|
"@xyo-network/account-model": "~5.3.15",
|
|
93
92
|
"@xyo-network/archivist-abstract": "~5.3.15",
|
|
@@ -96,15 +95,15 @@
|
|
|
96
95
|
"@xyo-network/bios": "~7.2.1",
|
|
97
96
|
"@xyo-network/bios-model": "~7.2.1",
|
|
98
97
|
"@xyo-network/boundwitness-builder": "~5.3.15",
|
|
99
|
-
"@xyo-network/chain-protocol": "~1.20.
|
|
100
|
-
"@xyo-network/chain-services": "~1.20.
|
|
101
|
-
"@xyo-network/chain-telemetry": "~1.20.
|
|
98
|
+
"@xyo-network/chain-protocol": "~1.20.5",
|
|
99
|
+
"@xyo-network/chain-services": "~1.20.5",
|
|
100
|
+
"@xyo-network/chain-telemetry": "~1.20.5",
|
|
102
101
|
"@xyo-network/module-abstract": "~5.3.15",
|
|
103
102
|
"@xyo-network/module-abstract-mongodb": "~5.3.15",
|
|
104
103
|
"@xyo-network/node-memory": "~5.3.15",
|
|
105
104
|
"@xyo-network/sdk-js": "~5.3.15",
|
|
106
105
|
"@xyo-network/sentinel-memory": "~5.3.15",
|
|
107
|
-
"@xyo-network/xl1-sdk": "~1.25.
|
|
106
|
+
"@xyo-network/xl1-sdk": "~1.25.22",
|
|
108
107
|
"async-mutex": "~0.5.0",
|
|
109
108
|
"axios": "~1.13.6",
|
|
110
109
|
"dotenv": "~17.3.1",
|
|
@@ -5,12 +5,13 @@ import type {
|
|
|
5
5
|
import {
|
|
6
6
|
asAddress, asHex, assertEx, delay, hexFromBigInt, hexToBigInt, isDefined, isUndefined,
|
|
7
7
|
} from '@xylabs/sdk-js'
|
|
8
|
-
import type { AnyConfigSchema, Payload } from '@xyo-network/sdk-js'
|
|
9
|
-
import { asSchema, PayloadBuilder } from '@xyo-network/sdk-js'
|
|
10
|
-
import { AbstractSentinel } from '@xyo-network/sentinel-abstract'
|
|
11
8
|
import type {
|
|
9
|
+
AnyConfigSchema, Payload,
|
|
12
10
|
SentinelConfig, SentinelInstance, SentinelModuleEventData, SentinelParams,
|
|
13
|
-
} from '@xyo-network/
|
|
11
|
+
} from '@xyo-network/sdk-js'
|
|
12
|
+
import {
|
|
13
|
+
AbstractSentinel, asSchema, PayloadBuilder,
|
|
14
|
+
} from '@xyo-network/sdk-js'
|
|
14
15
|
import { type LiquidityPoolBridge, LiquidityPoolBridge__factory } from '@xyo-network/typechain'
|
|
15
16
|
import type {
|
|
16
17
|
BridgeDestinationObservation, BridgeIntent, IterableMap, MapType,
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js'
|
|
1
2
|
import type { SignedHydratedTransaction } from '@xyo-network/xl1-sdk'
|
|
2
3
|
import type { FlowProducer } from 'bullmq'
|
|
3
4
|
|
|
5
|
+
import type {
|
|
6
|
+
EthTransactionMonitorJobData,
|
|
7
|
+
EthTransactionPreparationJobData,
|
|
8
|
+
EthTransactionSubmissionJobData,
|
|
9
|
+
EthTransactionSubmissionStorageJobData,
|
|
10
|
+
Xl1ToEthBridgeParentJobData,
|
|
11
|
+
Xl1TransactionMonitorJobData,
|
|
12
|
+
Xl1TransactionPreparationJobData,
|
|
13
|
+
Xl1TransactionSubmissionJobData,
|
|
14
|
+
Xl1TransactionSubmissionStorageJobData,
|
|
15
|
+
} from '../../workers/index.ts'
|
|
4
16
|
import {
|
|
5
17
|
EthTransactionMonitor, EthTransactionPreparation, EthTransactionSubmission, EthTransactionSubmissionStorage, Xl1ToEthBridgeParent, Xl1TransactionMonitor,
|
|
6
18
|
Xl1TransactionPreparation, Xl1TransactionSubmission, Xl1TransactionSubmissionStorage,
|
|
@@ -11,25 +23,27 @@ import { getJobIdForXl1ToEthBridgeJob } from './getJobIdForXl1ToEthBridgeJob.ts'
|
|
|
11
23
|
* Creates a job flow for bridging a transaction from XL1 to Ethereum.
|
|
12
24
|
* @param flowProducer The flow producer to run the job
|
|
13
25
|
* @param tx The bridge transaction
|
|
26
|
+
* @param offChainPayloads The payloads to put off chain
|
|
14
27
|
* @returns The JobNode representing the XL1 to ETH bridge job
|
|
15
28
|
*/
|
|
16
29
|
export const createXl1ToEthBridgeJob = async (
|
|
17
30
|
flowProducer: FlowProducer,
|
|
18
31
|
tx: SignedHydratedTransaction,
|
|
32
|
+
offChainPayloads: Payload[] = [],
|
|
19
33
|
) => {
|
|
20
34
|
const jobId = await getJobIdForXl1ToEthBridgeJob(tx)
|
|
21
35
|
const flow = await flowProducer.add({
|
|
22
36
|
// Step 0 (runs first as parent job)
|
|
23
37
|
name: Xl1ToEthBridgeParent.name,
|
|
24
38
|
queueName: Xl1ToEthBridgeParent.queueName,
|
|
25
|
-
data: { tx },
|
|
39
|
+
data: { tx, offChainPayloads } as Xl1ToEthBridgeParentJobData,
|
|
26
40
|
opts: { jobId },
|
|
27
41
|
children: [
|
|
28
42
|
{
|
|
29
43
|
// Step 8
|
|
30
44
|
name: EthTransactionMonitor.name,
|
|
31
45
|
queueName: EthTransactionMonitor.queueName,
|
|
32
|
-
data: { tx },
|
|
46
|
+
data: { tx } as EthTransactionMonitorJobData,
|
|
33
47
|
opts: {
|
|
34
48
|
jobId, attempts: 60, backoff: { type: 'fixed', delay: 5000 },
|
|
35
49
|
},
|
|
@@ -38,7 +52,7 @@ export const createXl1ToEthBridgeJob = async (
|
|
|
38
52
|
// Step 7
|
|
39
53
|
name: EthTransactionSubmissionStorage.name,
|
|
40
54
|
queueName: EthTransactionSubmissionStorage.queueName,
|
|
41
|
-
data: { tx },
|
|
55
|
+
data: { tx } as EthTransactionSubmissionStorageJobData,
|
|
42
56
|
opts: {
|
|
43
57
|
jobId, attempts: 60, backoff: { type: 'fixed', delay: 5000 },
|
|
44
58
|
},
|
|
@@ -47,14 +61,14 @@ export const createXl1ToEthBridgeJob = async (
|
|
|
47
61
|
// Step 6
|
|
48
62
|
name: EthTransactionSubmission.name,
|
|
49
63
|
queueName: EthTransactionSubmission.queueName,
|
|
50
|
-
data: { tx },
|
|
64
|
+
data: { tx, offChainPayloads } as EthTransactionSubmissionJobData,
|
|
51
65
|
opts: { jobId },
|
|
52
66
|
children: [
|
|
53
67
|
{
|
|
54
68
|
// Step 5
|
|
55
69
|
name: EthTransactionPreparation.name,
|
|
56
70
|
queueName: EthTransactionPreparation.queueName,
|
|
57
|
-
data: { tx },
|
|
71
|
+
data: { tx, offChainPayloads } as EthTransactionPreparationJobData,
|
|
58
72
|
opts: {
|
|
59
73
|
jobId, attempts: 60, backoff: { type: 'fixed', delay: 5000 },
|
|
60
74
|
},
|
|
@@ -63,7 +77,7 @@ export const createXl1ToEthBridgeJob = async (
|
|
|
63
77
|
// Step 4
|
|
64
78
|
name: Xl1TransactionMonitor.name,
|
|
65
79
|
queueName: Xl1TransactionMonitor.queueName,
|
|
66
|
-
data: { tx },
|
|
80
|
+
data: { tx } as Xl1TransactionMonitorJobData,
|
|
67
81
|
opts: {
|
|
68
82
|
jobId, attempts: 60, backoff: { type: 'fixed', delay: 5000 },
|
|
69
83
|
},
|
|
@@ -72,7 +86,7 @@ export const createXl1ToEthBridgeJob = async (
|
|
|
72
86
|
// Step 3
|
|
73
87
|
name: Xl1TransactionSubmissionStorage.name,
|
|
74
88
|
queueName: Xl1TransactionSubmissionStorage.queueName,
|
|
75
|
-
data: { tx },
|
|
89
|
+
data: { tx } as Xl1TransactionSubmissionStorageJobData,
|
|
76
90
|
opts: {
|
|
77
91
|
jobId, attempts: 60, backoff: { type: 'fixed', delay: 5000 },
|
|
78
92
|
},
|
|
@@ -81,14 +95,14 @@ export const createXl1ToEthBridgeJob = async (
|
|
|
81
95
|
// Step 2
|
|
82
96
|
name: Xl1TransactionSubmission.name,
|
|
83
97
|
queueName: Xl1TransactionSubmission.queueName,
|
|
84
|
-
data: { tx },
|
|
98
|
+
data: { tx } as Xl1TransactionSubmissionJobData,
|
|
85
99
|
opts: { jobId },
|
|
86
100
|
children: [
|
|
87
101
|
{
|
|
88
102
|
// Step 1 (runs first as deepest child)
|
|
89
103
|
name: Xl1TransactionPreparation.name,
|
|
90
104
|
queueName: Xl1TransactionPreparation.queueName,
|
|
91
|
-
data: { tx },
|
|
105
|
+
data: { tx, offChainPayloads } as Xl1TransactionPreparationJobData,
|
|
92
106
|
opts: {
|
|
93
107
|
jobId, attempts: 60, backoff: { type: 'fixed', delay: 5000 },
|
|
94
108
|
},
|
|
@@ -9,8 +9,9 @@ import type { Redis } from 'ioredis'
|
|
|
9
9
|
import type { IBridgeServiceCollection } from '../../services/index.ts'
|
|
10
10
|
import { prefix } from '../prefix.ts'
|
|
11
11
|
import type { WorkerDescription } from './WorkerDescription.ts'
|
|
12
|
+
import type { Xl1TransactionJobData } from './Xl1TransactionJobData.ts'
|
|
12
13
|
|
|
13
|
-
export type EthTransactionMonitorJobData =
|
|
14
|
+
export type EthTransactionMonitorJobData = Xl1TransactionJobData
|
|
14
15
|
export interface EthTransactionMonitorJobReturn {
|
|
15
16
|
blockHash: string
|
|
16
17
|
blockNumber: number
|