@xyo-network/chain-bridge 1.19.14 → 1.19.16
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/BridgeActor.d.ts +3 -2
- package/dist/node/BridgeActor.d.ts.map +1 -1
- package/dist/node/config/getBridgeEscrowAddress.d.ts +3 -3
- package/dist/node/config/getBridgeEscrowAddress.d.ts.map +1 -1
- package/dist/node/config/getBridgeFeesAddress.d.ts +3 -3
- package/dist/node/config/getBridgeFeesAddress.d.ts.map +1 -1
- package/dist/node/config/getBridgeSettings.d.ts +2 -2
- package/dist/node/config/getBridgeSettings.d.ts.map +1 -1
- package/dist/node/config/getBridgeWalletAccount.d.ts +3 -3
- package/dist/node/config/getBridgeWalletAccount.d.ts.map +1 -1
- package/dist/node/config/getFeeStructure.d.ts +2 -2
- package/dist/node/config/getFeeStructure.d.ts.map +1 -1
- package/dist/node/config/getGateway.d.ts +3 -2
- package/dist/node/config/getGateway.d.ts.map +1 -1
- package/dist/node/config/getMaxBridgeAmount.d.ts +2 -2
- package/dist/node/config/getMaxBridgeAmount.d.ts.map +1 -1
- package/dist/node/config/getMinBridgeAmount.d.ts +2 -2
- package/dist/node/config/getMinBridgeAmount.d.ts.map +1 -1
- package/dist/node/config/getRemoteChainId.d.ts +3 -2
- package/dist/node/config/getRemoteChainId.d.ts.map +1 -1
- package/dist/node/config/getRemoteTokenAddress.d.ts +2 -2
- package/dist/node/config/getRemoteTokenAddress.d.ts.map +1 -1
- package/dist/node/config/getTransferAddresses.d.ts +2 -2
- package/dist/node/config/getTransferAddresses.d.ts.map +1 -1
- package/dist/node/config/getXl1ChainId.d.ts +3 -2
- package/dist/node/config/getXl1ChainId.d.ts.map +1 -1
- package/dist/node/config/getXl1TokenAddress.d.ts +2 -2
- package/dist/node/config/getXl1TokenAddress.d.ts.map +1 -1
- package/dist/node/index.mjs +178 -624
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.d.ts +1 -1
- package/dist/node/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.d.ts.map +1 -1
- package/dist/node/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts +1 -2
- package/dist/node/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts.map +1 -1
- package/dist/node/modules/XL1TransactionCompletionMonitorSentinel/XL1TransactionCompletionMonitorSentinel.d.ts +1 -2
- package/dist/node/modules/XL1TransactionCompletionMonitorSentinel/XL1TransactionCompletionMonitorSentinel.d.ts.map +1 -1
- package/dist/node/queue/connection.d.ts +2 -2
- package/dist/node/queue/connection.d.ts.map +1 -1
- package/dist/node/queue/workers/EthTransactionPreparation.d.ts.map +1 -1
- package/dist/node/queue/workers/util/index.d.ts +2 -0
- package/dist/node/queue/workers/util/index.d.ts.map +1 -1
- package/dist/node/queue/workers/util/validateSufficientAllowance.d.ts +19 -0
- package/dist/node/queue/workers/util/validateSufficientAllowance.d.ts.map +1 -0
- package/dist/node/queue/workers/util/validateSufficientBalance.d.ts +19 -0
- package/dist/node/queue/workers/util/validateSufficientBalance.d.ts.map +1 -0
- package/dist/node/server/addFlowProducer.d.ts +2 -2
- package/dist/node/server/addFlowProducer.d.ts.map +1 -1
- package/dist/node/server/addWorkers.d.ts +2 -2
- package/dist/node/server/addWorkers.d.ts.map +1 -1
- package/dist/node/server/app.d.ts +3 -3
- package/dist/node/server/app.d.ts.map +1 -1
- package/dist/node/server/index.d.ts +0 -2
- package/dist/node/server/index.d.ts.map +1 -1
- package/dist/node/server/routes/addRoutes.d.ts +3 -2
- package/dist/node/server/routes/addRoutes.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/addBridgeRoutes.d.ts +3 -2
- package/dist/node/server/routes/bridge/addBridgeRoutes.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/getRouteDefinitions.d.ts +3 -2
- package/dist/node/server/routes/bridge/routeDefinitions/getRouteDefinitions.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/pathParams/ChainIdPathParam.d.ts +2 -2
- package/dist/node/server/routes/bridge/routeDefinitions/pathParams/ChainIdPathParam.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeConfig.d.ts +2 -2
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeConfig.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeFromRemoteStatus.d.ts +2 -2
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeFromRemoteStatus.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemote.d.ts +3 -3
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemote.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteEstimate.d.ts +4 -3
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteEstimate.d.ts.map +1 -1
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.d.ts +2 -2
- package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.d.ts.map +1 -1
- package/dist/node/server/server.d.ts +3 -10
- package/dist/node/server/server.d.ts.map +1 -1
- package/dist/node/{manifest → services}/getIterableMap.d.ts +2 -2
- package/dist/node/services/getIterableMap.d.ts.map +1 -0
- package/dist/node/services/getServices.d.ts +9 -0
- package/dist/node/services/getServices.d.ts.map +1 -0
- package/dist/node/services/index.d.ts +1 -0
- package/dist/node/services/index.d.ts.map +1 -1
- package/dist/node/util/BridgeFees.d.ts +7 -0
- package/dist/node/util/BridgeFees.d.ts.map +1 -0
- package/dist/node/util/bridgeFeesAsBigInt.d.ts +7 -0
- package/dist/node/util/bridgeFeesAsBigInt.d.ts.map +1 -0
- package/dist/node/util/calculateBridgeFees.d.ts +4 -8
- package/dist/node/util/calculateBridgeFees.d.ts.map +1 -1
- package/dist/node/util/createBridgeTransfer.d.ts +14 -0
- package/dist/node/util/createBridgeTransfer.d.ts.map +1 -0
- package/dist/node/util/generateBridgeEstimate.d.ts +3 -2
- package/dist/node/util/generateBridgeEstimate.d.ts.map +1 -1
- package/dist/node/util/index.d.ts +3 -0
- package/dist/node/util/index.d.ts.map +1 -1
- package/dist/node/util/validateBridgeEstimate.d.ts +3 -2
- package/dist/node/util/validateBridgeEstimate.d.ts.map +1 -1
- package/dist/node/util/validateBridgeEstimateExact.d.ts +3 -2
- package/dist/node/util/validateBridgeEstimateExact.d.ts.map +1 -1
- package/dist/node/util/validateBridgeTransaction.d.ts +3 -2
- package/dist/node/util/validateBridgeTransaction.d.ts.map +1 -1
- package/package.json +46 -59
- package/src/BridgeActor.ts +3 -3
- package/src/config/getBridgeEscrowAddress.ts +5 -5
- package/src/config/getBridgeFeesAddress.ts +5 -5
- package/src/config/getBridgeSettings.ts +2 -2
- package/src/config/getBridgeWalletAccount.ts +7 -4
- package/src/config/getFeeStructure.ts +3 -3
- package/src/config/getGateway.ts +5 -4
- package/src/config/getMaxBridgeAmount.ts +3 -3
- package/src/config/getMinBridgeAmount.ts +3 -3
- package/src/config/getRemoteChainId.ts +4 -3
- package/src/config/getRemoteTokenAddress.ts +3 -3
- package/src/config/getTransferAddresses.ts +2 -2
- package/src/config/getXl1ChainId.ts +4 -3
- package/src/config/getXl1TokenAddress.ts +3 -3
- package/src/interface/service/Observer/LiquidityPoolBridgeObserver/LiquidityPoolBridgeObserver.ts +1 -1
- package/src/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.ts +1 -1
- package/src/interface/util/getBridgeIntentIdentifier.ts +1 -1
- package/src/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.ts +2 -3
- package/src/modules/XL1TransactionCompletionMonitorSentinel/XL1TransactionCompletionMonitorSentinel.ts +2 -3
- package/src/queue/connection.ts +3 -3
- package/src/queue/workers/EthTransactionMonitor.ts +1 -1
- package/src/queue/workers/EthTransactionPreparation.ts +14 -4
- package/src/queue/workers/EthTransactionSubmission.ts +1 -1
- package/src/queue/workers/Xl1TransactionMonitor.ts +1 -1
- package/src/queue/workers/Xl1TransactionPreparation.ts +1 -1
- package/src/queue/workers/Xl1TransactionSubmission.ts +1 -1
- package/src/queue/workers/util/index.ts +2 -0
- package/src/queue/workers/util/submitEthTransaction.ts +1 -1
- package/src/queue/workers/util/validateSufficientAllowance.ts +38 -0
- package/src/queue/workers/util/validateSufficientBalance.ts +37 -0
- package/src/server/addFlowProducer.ts +2 -2
- package/src/server/addWorkers.ts +2 -2
- package/src/server/app.ts +3 -4
- package/src/server/index.ts +2 -2
- package/src/server/routes/addRoutes.ts +3 -2
- package/src/server/routes/bridge/addBridgeRoutes.ts +3 -2
- package/src/server/routes/bridge/routeDefinitions/getRouteDefinitions.ts +3 -2
- package/src/server/routes/bridge/routeDefinitions/pathParams/ChainIdPathParam.ts +3 -2
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeConfig.ts +3 -2
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeFromRemoteStatus.ts +4 -3
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeToRemote.ts +6 -4
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteEstimate.ts +4 -3
- package/src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteStatus.ts +4 -5
- package/src/server/server.ts +7 -48
- package/src/{manifest → services}/getIterableMap.ts +2 -2
- package/src/{manifest → services}/getServices.ts +9 -13
- package/src/services/index.ts +1 -0
- package/src/util/BridgeFees.ts +7 -0
- package/src/util/bridgeFeesAsBigInt.ts +15 -0
- package/src/util/calculateBridgeFees.ts +5 -11
- package/src/util/createBridgeTransfer.ts +31 -0
- package/src/util/generateBridgeEstimate.ts +9 -17
- package/src/util/index.ts +3 -0
- package/src/util/validateBridgeEstimate.ts +4 -5
- package/src/util/validateBridgeEstimateExact.ts +4 -5
- package/src/util/validateBridgeTransaction.ts +4 -3
- package/dist/node/indexers/index.d.ts +0 -2
- package/dist/node/indexers/index.d.ts.map +0 -1
- package/dist/node/manifest/getIterableMap.d.ts.map +0 -1
- package/dist/node/manifest/getModuleLocator.d.ts +0 -15
- package/dist/node/manifest/getModuleLocator.d.ts.map +0 -1
- package/dist/node/manifest/getNode.d.ts +0 -15
- package/dist/node/manifest/getNode.d.ts.map +0 -1
- package/dist/node/manifest/getServices.d.ts +0 -13
- package/dist/node/manifest/getServices.d.ts.map +0 -1
- package/dist/node/manifest/index.d.ts +0 -7
- package/dist/node/manifest/index.d.ts.map +0 -1
- package/dist/node/manifest/nodeManifest.d.ts +0 -6
- package/dist/node/manifest/nodeManifest.d.ts.map +0 -1
- package/dist/node/manifest/private/index.d.ts +0 -5
- package/dist/node/manifest/private/index.d.ts.map +0 -1
- package/dist/node/manifest/public/index.d.ts +0 -14
- package/dist/node/manifest/public/index.d.ts.map +0 -1
- package/dist/node/server/routes/dataLake/addDataLakeRoutes.d.ts +0 -3
- package/dist/node/server/routes/dataLake/addDataLakeRoutes.d.ts.map +0 -1
- package/dist/node/server/routes/dataLake/archivistMiddleware.d.ts +0 -10
- package/dist/node/server/routes/dataLake/archivistMiddleware.d.ts.map +0 -1
- package/dist/node/server/routes/dataLake/index.d.ts +0 -2
- package/dist/node/server/routes/dataLake/index.d.ts.map +0 -1
- package/src/indexers/index.ts +0 -1
- package/src/manifest/getModuleLocator.ts +0 -153
- package/src/manifest/getNode.ts +0 -40
- package/src/manifest/index.ts +0 -6
- package/src/manifest/node.json +0 -17
- package/src/manifest/nodeManifest.ts +0 -8
- package/src/manifest/private/index.ts +0 -4
- package/src/manifest/public/Ethereum.json +0 -48
- package/src/manifest/public/XL1.json +0 -48
- package/src/manifest/public/index.ts +0 -23
- package/src/server/routes/dataLake/addDataLakeRoutes.ts +0 -9
- package/src/server/routes/dataLake/archivistMiddleware.ts +0 -85
- package/src/server/routes/dataLake/index.ts +0 -1
package/dist/node/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class LiquidityPoolBridgeRelay<TParams extends LiquidityPoolBridg
|
|
|
22
22
|
protected _bridgeRemoteChainId: Hex | undefined;
|
|
23
23
|
protected _bridgeTokenAddress: Address | undefined;
|
|
24
24
|
protected _wallet: Wallet | undefined;
|
|
25
|
-
protected get account(): import("@xyo-network/
|
|
25
|
+
protected get account(): import("@xyo-network/sdk-js").AccountInstance;
|
|
26
26
|
protected get bridge(): LiquidityPoolBridge;
|
|
27
27
|
protected get bridgeChainId(): Hex;
|
|
28
28
|
protected get bridgeRemoteChainId(): Hex;
|
package/dist/node/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidityPoolBridgeRelay.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAMlD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EACL,KAAK,4BAA4B,EAAsC,KAAK,YAAY,EACzF,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAc,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE3C,OAAO,KAAK,EACV,4CAA4C,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,uCAAuC,EACxI,yBAAyB,EAAE,qCAAqC,EAAE,uCAAuC,EAC1G,MAAM,6BAA6B,CAAA;AAEpC,MAAM,MAAM,8BAA8B,GAAG,mBAAmB,GAAG;IACjE;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAA;AAED,qBAAa,wBAAwB,CAAC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,CACnH,SAAQ,yBAAyB,CAAC,OAAO,CAAE,YAAW,yBAAyB;IAC/E,OAAO,SAA6B;IACpC,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAA;IAClD,SAAS,CAAC,cAAc,EAAE,GAAG,GAAG,SAAS,CAAA;IACzC,SAAS,CAAC,oBAAoB,EAAE,GAAG,GAAG,SAAS,CAAA;IAC/C,SAAS,CAAC,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAA;IAClD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAErC,SAAS,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"LiquidityPoolBridgeRelay.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/service/Relay/LiquidityPoolBridgeRelay/LiquidityPoolBridgeRelay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAMlD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EACL,KAAK,4BAA4B,EAAsC,KAAK,YAAY,EACzF,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAc,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE3C,OAAO,KAAK,EACV,4CAA4C,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,uCAAuC,EACxI,yBAAyB,EAAE,qCAAqC,EAAE,uCA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AAC,OAAO,CAAC;IAyB/C,aAAa;IAwC5B;;;;OAIG;IACG,wBAAwB,CAAC,4BAA4B,EAAE,4BAA4B,GAAG,OAAO,CAAC,OAAO,CAAC;IAoB5G;;;;OAIG;IACG,SAAS,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC;CAkC1F"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Attributes, Counter } from '@opentelemetry/api';
|
|
2
2
|
import type { Address, Hash, Hex } from '@xylabs/sdk-js';
|
|
3
|
-
import type { AnyConfigSchema } from '@xyo-network/
|
|
4
|
-
import { type Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import type { AnyConfigSchema, Payload } from '@xyo-network/sdk-js';
|
|
5
4
|
import { AbstractSentinel } from '@xyo-network/sentinel-abstract';
|
|
6
5
|
import type { SentinelConfig, SentinelInstance, SentinelModuleEventData, SentinelParams } from '@xyo-network/sentinel-model';
|
|
7
6
|
import { type LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
@@ -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,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"EVMLiquidityBridgeTransactionCompletionMonitorSentinel.d.ts","sourceRoot":"","sources":["../../../../src/modules/EVMLiquidityBridgeTransactionCompletionMonitorSentinel/EVMLiquidityBridgeTransactionCompletionMonitorSentinel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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C,IAAI,EAAE,yBAAyB,CAAC,CAEhF;IAED,SAAS,KAAK,MAAM,IAAI,MAAM,CAE7B;IAEc,aAAa;IAwCb,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YA0BxD,sBAAsB;YAUtB,kBAAkB;IA0BhC;;;;OAIG;YACW,qBAAqB;CAepC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/sdk-js';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/
|
|
3
|
-
import { type Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import type { AnyConfigSchema, Payload } from '@xyo-network/sdk-js';
|
|
4
3
|
import { AbstractSentinel } from '@xyo-network/sentinel-abstract';
|
|
5
4
|
import type { SentinelConfig, SentinelInstance, SentinelModuleEventData, SentinelParams } from '@xyo-network/sentinel-model';
|
|
6
5
|
import type { IterableMap, MapType, SignedHydratedTransaction, XyoViewer } from '@xyo-network/xl1-sdk';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XL1TransactionCompletionMonitorSentinel.d.ts","sourceRoot":"","sources":["../../../../src/modules/XL1TransactionCompletionMonitorSentinel/XL1TransactionCompletionMonitorSentinel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAI1C,OAAO,KAAK,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"XL1TransactionCompletionMonitorSentinel.d.ts","sourceRoot":"","sources":["../../../../src/modules/XL1TransactionCompletionMonitorSentinel/XL1TransactionCompletionMonitorSentinel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAI1C,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAC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OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,eAAe,CAAiC;IAExD,SAAS,KAAK,qBAAqB,IAAI,OAAO,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAE9E;IAED,SAAS,KAAK,gBAAgB,IAAI,MAAM,CAEvC;IAED,SAAS,KAAK,mBAAmB,IAAI,WAAW,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAEhF;IAED,SAAS,KAAK,MAAM,IAAI,SAAS,CAEhC;IAEc,aAAa;IASb,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YA0BxD,sBAAsB;YAUtB,kBAAkB;CA8BjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
2
|
import { Redis } from 'ioredis';
|
|
3
|
-
export declare const getConnection: (config:
|
|
3
|
+
export declare const getConnection: (config: BridgeConfig) => Redis;
|
|
4
4
|
//# sourceMappingURL=connection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../src/queue/connection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../src/queue/connection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAM/B,eAAO,MAAM,aAAa,GAAI,QAAQ,YAAY,UAOjD,CAAA"}
|
|
@@ -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":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAS/D,eAAO,MAAM,YAAY,GAAI,YAAY,KAAK,EAAE,WAAW,wBAAwB,SA6ClF,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,iBAEvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk-js';
|
|
2
|
+
import type { BridgeableToken, LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
3
|
+
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
4
|
+
interface IAsyncLogger {
|
|
5
|
+
log: (message: string) => Promisable<unknown>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Checks if the liquidity source has sufficient allowance for the bridge to execute the transaction. This doesn't
|
|
9
|
+
* ensure that (due to race conditions) the transaction will succeed, but is a quick check to avoid
|
|
10
|
+
* submitting transactions that are likely to fail.
|
|
11
|
+
* @param tx The transaction containing a bridge intent
|
|
12
|
+
* @param bridgeableToken The contract for the token being bridged
|
|
13
|
+
* @param bridge The contract for the liquidity bridge
|
|
14
|
+
* @param logger Optional logger for asynchronous logging
|
|
15
|
+
* @returns True if the liquidity source allowance is sufficient to execute the bridge
|
|
16
|
+
*/
|
|
17
|
+
export declare const validateSufficientAllowance: (tx: SignedHydratedTransaction, bridgeableToken: BridgeableToken, bridge: LiquidityPoolBridge, logger?: IAsyncLogger) => Promise<boolean>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=validateSufficientAllowance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSufficientAllowance.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/validateSufficientAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErF,UAAU,YAAY;IACpB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,UAAU,CAAC,OAAO,CAAC,CAAA;CAC9C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GACtC,IAAI,yBAAyB,EAC7B,iBAAiB,eAAe,EAChC,QAAQ,mBAAmB,EAC3B,SAAS,YAAY,qBActB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk-js';
|
|
2
|
+
import type { BridgeableToken, LiquidityPoolBridge } from '@xyo-network/typechain';
|
|
3
|
+
import { type SignedHydratedTransaction } from '@xyo-network/xl1-sdk';
|
|
4
|
+
interface IAsyncLogger {
|
|
5
|
+
log: (message: string) => Promisable<unknown>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Checks if the liquidity source has sufficient balance for the bridge to execute the transaction. This doesn't
|
|
9
|
+
* ensure that (due to race conditions) the transaction will succeed, but is a quick check to avoid
|
|
10
|
+
* submitting transactions that are likely to fail.
|
|
11
|
+
* @param tx The transaction containing a bridge intent
|
|
12
|
+
* @param bridgeableToken The contract for the token being bridged
|
|
13
|
+
* @param bridge The contract for the liquidity bridge
|
|
14
|
+
* @param logger Optional logger for asynchronous logging
|
|
15
|
+
* @returns True if the liquidity source balance is sufficient to execute the bridge
|
|
16
|
+
*/
|
|
17
|
+
export declare const validateSufficientBalance: (tx: SignedHydratedTransaction, bridgeableToken: BridgeableToken, bridge: LiquidityPoolBridge, logger?: IAsyncLogger) => Promise<boolean>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=validateSufficientBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSufficientBalance.d.ts","sourceRoot":"","sources":["../../../../../src/queue/workers/util/validateSufficientBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EAAkB,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAErF,UAAU,YAAY;IACpB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,UAAU,CAAC,OAAO,CAAC,CAAA;CAC9C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,GACpC,IAAI,yBAAyB,EAC7B,iBAAiB,eAAe,EAChC,QAAQ,mBAAmB,EAC3B,SAAS,YAAY,qBAatB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
2
|
import type { Express } from 'express';
|
|
3
|
-
export declare const addFlowProducer: (app: Express, config:
|
|
3
|
+
export declare const addFlowProducer: (app: Express, config: BridgeConfig) => Express;
|
|
4
4
|
//# sourceMappingURL=addFlowProducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addFlowProducer.d.ts","sourceRoot":"","sources":["../../../src/server/addFlowProducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"addFlowProducer.d.ts","sourceRoot":"","sources":["../../../src/server/addFlowProducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAItC,eAAO,MAAM,eAAe,GAAI,KAAK,OAAO,EAAE,QAAQ,YAAY,KAAG,OAKpE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
2
|
import type { IBridgeServiceCollection } from '../services/index.ts';
|
|
3
|
-
export declare const addWorkers: (config:
|
|
3
|
+
export declare const addWorkers: (config: BridgeConfig, services: IBridgeServiceCollection) => void;
|
|
4
4
|
//# sourceMappingURL=addWorkers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addWorkers.d.ts","sourceRoot":"","sources":["../../../src/server/addWorkers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"addWorkers.d.ts","sourceRoot":"","sources":["../../../src/server/addWorkers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAGpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAEpE,eAAO,MAAM,UAAU,GAAI,QAAQ,YAAY,EAAE,UAAU,wBAAwB,SAGlF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
3
3
|
import type { Express } from 'express';
|
|
4
|
-
export declare const getApp: (
|
|
4
|
+
export declare const getApp: (config: BridgeConfig, gateway: XyoGatewayRunner) => Express;
|
|
5
5
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/server/app.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/server/app.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAG5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAOtC,eAAO,MAAM,MAAM,GAAI,QAAQ,YAAY,EAAE,SAAS,gBAAgB,KAAG,OAgBxE,CAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export * from './app.ts';
|
|
2
2
|
export * from './server.ts';
|
|
3
|
-
import type { NodeInstance } from '@xyo-network/node-model';
|
|
4
3
|
import type { FlowProducer } from 'bullmq';
|
|
5
4
|
declare global {
|
|
6
5
|
namespace Express {
|
|
7
6
|
interface Application {
|
|
8
7
|
flowProducer: FlowProducer;
|
|
9
|
-
node: NodeInstance;
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAG3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAI1C,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,OAAO,CAAC;QAChB,UAAU,WAAW;YACnB,YAAY,EAAE,YAAY,CAAA;SAG3B;KACF;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
2
3
|
import type { Express } from 'express';
|
|
3
|
-
export declare const addRoutes: (app: Express, config:
|
|
4
|
+
export declare const addRoutes: (app: Express, config: BridgeConfig, gateway: XyoGatewayRunner) => void;
|
|
4
5
|
//# sourceMappingURL=addRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRoutes.d.ts","sourceRoot":"","sources":["../../../../src/server/routes/addRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"addRoutes.d.ts","sourceRoot":"","sources":["../../../../src/server/routes/addRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAItC,eAAO,MAAM,SAAS,GAAI,KAAK,OAAO,EAAE,QAAQ,YAAY,EAAE,SAAS,gBAAgB,SAEtF,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
2
3
|
import type { Express } from 'express';
|
|
3
|
-
export declare const addBridgeRoutes: (app: Express, config:
|
|
4
|
+
export declare const addBridgeRoutes: (app: Express, config: BridgeConfig, gateway: XyoGatewayRunner) => void;
|
|
4
5
|
//# sourceMappingURL=addBridgeRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addBridgeRoutes.d.ts","sourceRoot":"","sources":["../../../../../src/server/routes/bridge/addBridgeRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"addBridgeRoutes.d.ts","sourceRoot":"","sources":["../../../../../src/server/routes/bridge/addBridgeRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAItC,eAAO,MAAM,eAAe,GAAI,KAAK,OAAO,EAAE,QAAQ,YAAY,EAAE,SAAS,gBAAgB,SAK5F,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RouteDefinition } from '@xylabs/express';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
4
|
+
export declare const getRouteDefinitions: (config: BridgeConfig, gateway: XyoGatewayRunner) => RouteDefinition[];
|
|
4
5
|
//# sourceMappingURL=getRouteDefinitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRouteDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../src/server/routes/bridge/routeDefinitions/getRouteDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"getRouteDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../src/server/routes/bridge/routeDefinitions/getRouteDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM5D,eAAO,MAAM,mBAAmB,GAAI,QAAQ,YAAY,EAAE,SAAS,gBAAgB,KAAG,eAAe,EAQpG,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const getRemoteChainIdZod: (config:
|
|
1
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
2
|
+
export declare const getRemoteChainIdZod: (config: BridgeConfig) => import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
3
3
|
//# sourceMappingURL=ChainIdPathParam.d.ts.map
|
package/dist/node/server/routes/bridge/routeDefinitions/pathParams/ChainIdPathParam.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainIdPathParam.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/pathParams/ChainIdPathParam.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ChainIdPathParam.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/pathParams/ChainIdPathParam.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAKpE,eAAO,MAAM,mBAAmB,GAAI,QAAQ,YAAY,4HAYvD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RouteDefinition } from '@xylabs/express';
|
|
2
|
-
import {
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
3
|
import type { z } from 'zod';
|
|
4
4
|
export declare const BridgeConfigResponseZod: z.ZodObject<{
|
|
5
5
|
escrowAddress: z.ZodNonOptional<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
@@ -22,5 +22,5 @@ export declare const BridgeConfigResponseZod: z.ZodObject<{
|
|
|
22
22
|
xl1TokenAddress: z.ZodNonOptional<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export type BridgeConfigResponse = z.infer<typeof BridgeConfigResponseZod>;
|
|
25
|
-
export declare const makeBridgeConfigRoute: (config:
|
|
25
|
+
export declare const makeBridgeConfigRoute: (config: BridgeConfig) => RouteDefinition;
|
|
26
26
|
//# sourceMappingURL=bridgeConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,
|
|
1
|
+
{"version":3,"file":"bridgeConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAI5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAAoB,CAAA;AACxD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAI1E,eAAO,MAAM,qBAAqB,GAAI,QAAQ,YAAY,KAAG,eAgC5D,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RouteDefinition } from '@xylabs/express';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const makeBridgeFromRemoteStatusRoute: (config:
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
|
+
export declare const makeBridgeFromRemoteStatusRoute: (config: BridgeConfig) => RouteDefinition;
|
|
4
4
|
//# sourceMappingURL=bridgeFromRemoteStatus.d.ts.map
|
package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeFromRemoteStatus.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeFromRemoteStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeFromRemoteStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"bridgeFromRemoteStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeFromRemoteStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAYpE,eAAO,MAAM,+BAA+B,GAAI,QAAQ,YAAY,KAAG,eA0CtE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RouteDefinition } from '@xylabs/express';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const BridgeToRemoteBodyZod: z.ZodTuple<[z.ZodObject<{
|
|
5
5
|
schema: z.ZodLiteral<"network.xyo.boundwitness" & {
|
|
@@ -11,7 +11,7 @@ export declare const BridgeToRemoteBodyZod: z.ZodTuple<[z.ZodObject<{
|
|
|
11
11
|
readonly __address: true;
|
|
12
12
|
}, string>>>;
|
|
13
13
|
payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>;
|
|
14
|
-
payload_schemas: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/
|
|
14
|
+
payload_schemas: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>>;
|
|
15
15
|
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>>;
|
|
16
16
|
$destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
17
17
|
readonly __hex: true;
|
|
@@ -81,5 +81,5 @@ export declare const BridgeToRemoteResponseZod: z.ZodObject<{
|
|
|
81
81
|
srcConfirmation: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>>;
|
|
82
82
|
}, z.core.$strict>;
|
|
83
83
|
export type BridgeToRemoteResponse = z.infer<typeof BridgeToRemoteResponseZod>;
|
|
84
|
-
export declare const makeBridgeToRemoteRoute: (config:
|
|
84
|
+
export declare const makeBridgeToRemoteRoute: (config: BridgeConfig) => RouteDefinition;
|
|
85
85
|
//# sourceMappingURL=bridgeToRemote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeToRemote.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeToRemote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"bridgeToRemote.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeToRemote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAUpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAIhC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;kBAAyG,CAAA;AAC/I,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE9E,eAAO,MAAM,uBAAuB,GAAI,QAAQ,YAAY,KAAG,eA4C9D,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RouteDefinition } from '@xylabs/express';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
export declare const BridgeToRemoteEstimateBodyZod: z.ZodObject<{
|
|
5
6
|
srcAddress: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>;
|
|
@@ -17,7 +18,7 @@ export declare const BridgeToRemoteEstimateResponseZod: z.ZodTuple<[z.ZodObject<
|
|
|
17
18
|
readonly __address: true;
|
|
18
19
|
}, string>>>;
|
|
19
20
|
payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
20
|
-
payload_schemas: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/
|
|
21
|
+
payload_schemas: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>>;
|
|
21
22
|
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>>>;
|
|
22
23
|
$destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
|
|
23
24
|
readonly __hex: true;
|
|
@@ -72,5 +73,5 @@ export declare const BridgeToRemoteEstimateResponseZod: z.ZodTuple<[z.ZodObject<
|
|
|
72
73
|
}, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
73
74
|
}, z.core.$strip>], null>;
|
|
74
75
|
export type BridgeToRemoteEstimateResponse = z.infer<typeof BridgeToRemoteEstimateResponseZod>;
|
|
75
|
-
export declare const makeBridgeToRemoteEstimateRoute: (config:
|
|
76
|
+
export declare const makeBridgeToRemoteEstimateRoute: (config: BridgeConfig, gateway: XyoGatewayRunner) => RouteDefinition;
|
|
76
77
|
//# sourceMappingURL=bridgeToRemoteEstimate.d.ts.map
|
package/dist/node/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteEstimate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeToRemoteEstimate.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"bridgeToRemoteEstimate.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/routes/bridge/routeDefinitions/routes/bridgeToRemoteEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEtF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAI5C,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAE9F,eAAO,MAAM,+BAA+B,GAAI,QAAQ,YAAY,EAAE,SAAS,gBAAgB,KAAG,eA6BjG,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RouteDefinition } from '@xylabs/express';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const BridgeToRemoteStatusResponseZod: z.ZodUnion<readonly [z.ZodTuple<[], null>, z.ZodTuple<[z.ZodObject<{
|
|
5
5
|
schema: z.ZodLiteral<"network.xyo.chain.bridge.intent" & {
|
|
@@ -81,5 +81,5 @@ export declare const BridgeToRemoteStatusResponseZod: z.ZodUnion<readonly [z.Zod
|
|
|
81
81
|
destConfirmation: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHex, string>>>;
|
|
82
82
|
}, z.core.$strict>], null>]>;
|
|
83
83
|
export type BridgeToRemoteStatusResponse = z.infer<typeof BridgeToRemoteStatusResponseZod>;
|
|
84
|
-
export declare const makeBridgeToRemoteStatusRoute: (config:
|
|
84
|
+
export declare const makeBridgeToRemoteStatusRoute: (config: BridgeConfig) => RouteDefinition;
|
|
85
85
|
//# sourceMappingURL=bridgeToRemoteStatus.d.ts.map
|
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;
|
|
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;AAKtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAOpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAY1C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE1F,eAAO,MAAM,6BAA6B,GAAI,QAAQ,YAAY,KAAG,eAwEpE,CAAA"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
interface GetServerContext {
|
|
5
|
-
config: Config;
|
|
6
|
-
logger?: Logger;
|
|
7
|
-
node?: NodeInstance;
|
|
8
|
-
}
|
|
9
|
-
export declare const getServer: (context: GetServerContext, gateway: XyoGatewayRunner) => Promise<import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>>;
|
|
10
|
-
export {};
|
|
1
|
+
import type { BridgeConfigContext } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
3
|
+
export declare const getServer: (context: BridgeConfigContext, gateway: XyoGatewayRunner) => Promise<import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>>;
|
|
11
4
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server/server.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAS5D,eAAO,MAAM,SAAS,GAAU,SAAS,mBAAmB,EAAE,SAAS,gBAAgB,+HAStF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseConfig, IterableMap } from '@xyo-network/xl1-sdk';
|
|
2
2
|
import type { Document } from 'mongodb';
|
|
3
3
|
/**
|
|
4
4
|
* Gets an iterable map based on the storage instructions in the config
|
|
@@ -6,5 +6,5 @@ import type { Document } from 'mongodb';
|
|
|
6
6
|
* @param collection The collection to use if using MongoDB for persistence
|
|
7
7
|
* @returns The iterable map
|
|
8
8
|
*/
|
|
9
|
-
export declare const getIterableMap: <K extends {} = string, V extends Document = Document>(config:
|
|
9
|
+
export declare const getIterableMap: <K extends {} = string, V extends Document = Document>(config: BaseConfig, collection: string) => Promise<IterableMap<K, V>>;
|
|
10
10
|
//# sourceMappingURL=getIterableMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIterableMap.d.ts","sourceRoot":"","sources":["../../../src/services/getIterableMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAU,CAAC,SAAS,EAAE,GAAG,MAAM,EAAE,CAAC,SAAS,QAAQ,GAAG,QAAQ,EACvF,QAAQ,UAAU,EAClB,YAAY,MAAM,KACjB,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAkB3B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BridgeConfigContext } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { XyoGatewayRunner } from '@xyo-network/xl1-sdk';
|
|
3
|
+
import type { IBridgeServiceCollection } from './IBridgeServiceCollection.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Used for retrieving a service collection
|
|
6
|
+
* @returns A service collection
|
|
7
|
+
*/
|
|
8
|
+
export declare const getServices: (context: BridgeConfigContext, gateway: XyoGatewayRunner) => Promise<IBridgeServiceCollection>;
|
|
9
|
+
//# sourceMappingURL=getServices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getServices.d.ts","sourceRoot":"","sources":["../../../src/services/getServices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAIzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAK5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAG7E;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAU,SAAS,mBAAmB,EAAE,SAAS,gBAAgB,KAAG,OAAO,CAAC,wBAAwB,CAsB3H,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BridgeFees.d.ts","sourceRoot":"","sources":["../../../src/util/BridgeFees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAErD,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,QAAQ,EAAE,GAAG,CAAA;IACb,WAAW,EAAE,GAAG,CAAA;IAChB,SAAS,EAAE,GAAG,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeFeesAsBigInt.d.ts","sourceRoot":"","sources":["../../../src/util/bridgeFeesAsBigInt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,eAAO,MAAM,kBAAkB,GAAI,MAAM,UAAU,KAAG;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAOlB,CAAA"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { Hex } from '@xylabs/sdk-js';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
feeFixed: Hex;
|
|
7
|
-
feeVariable: Hex;
|
|
8
|
-
}
|
|
9
|
-
export declare const calculateBridgeFees: (srcAmount: Hex, feeStructure: FeeStructure) => FeeCalculationResult;
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
|
+
import type { BridgeFees } from './BridgeFees.ts';
|
|
4
|
+
export type FeeStructure = Pick<BridgeConfig, 'feeFixed' | 'feeRateBasisPoints'>;
|
|
5
|
+
export declare const calculateBridgeFees: (srcAmount: Hex, feeStructure: FeeStructure) => BridgeFees;
|
|
10
6
|
//# sourceMappingURL=calculateBridgeFees.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateBridgeFees.d.ts","sourceRoot":"","sources":["../../../src/util/calculateBridgeFees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"calculateBridgeFees.d.ts","sourceRoot":"","sources":["../../../src/util/calculateBridgeFees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,oBAAoB,CAAC,CAAA;AAEhF,eAAO,MAAM,mBAAmB,GAAI,WAAW,GAAG,EAAE,cAAc,YAAY,KAAG,UAwBhF,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Address, Hex } from '@xylabs/sdk-js';
|
|
2
|
+
import type { Transfer } from '@xyo-network/xl1-sdk';
|
|
3
|
+
import type { BridgeFees } from './BridgeFees.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the transfer representing the bridging of funds including the appropriate amounts for the bridge fees
|
|
6
|
+
* @param sender The client attempting to bridge
|
|
7
|
+
* @param srcAmount The amount the client is attempting to bridge
|
|
8
|
+
* @param escrowAddress The address in which bridged funds will be held until the transfer is executed on the destination chain
|
|
9
|
+
* @param feesAddress The address to which bridge fees will be paid
|
|
10
|
+
* @param context An object containing the necessary fee and amount information to construct the transfer context
|
|
11
|
+
* @returns A transfer representing the bridging of funds including the appropriate amounts for the bridge fees
|
|
12
|
+
*/
|
|
13
|
+
export declare const createBridgeTransfer: (sender: Address, srcAmount: Hex, escrowAddress: Address, feesAddress: Address, context: BridgeFees) => Transfer;
|
|
14
|
+
//# sourceMappingURL=createBridgeTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBridgeTransfer.d.ts","sourceRoot":"","sources":["../../../src/util/createBridgeTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,OAAO,EAAE,WAAW,GAAG,EAAE,eAAe,OAAO,EAAE,aAAa,OAAO,EAAE,SAAS,UAAU,KAAG,QAczI,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Hex } from '@xylabs/sdk-js';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { BridgeConfig } from '@xyo-network/chain-orchestration';
|
|
3
|
+
import type { BridgeIntent, Transfer } from '@xyo-network/xl1-sdk';
|
|
4
|
+
export declare const generateBridgeEstimate: (srcAddress: Hex, srcAmount: Hex, destAddress: Hex, config: BridgeConfig, nonceOverride?: string) => Promise<[BridgeIntent, Transfer]>;
|
|
4
5
|
//# sourceMappingURL=generateBridgeEstimate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateBridgeEstimate.d.ts","sourceRoot":"","sources":["../../../src/util/generateBridgeEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"generateBridgeEstimate.d.ts","sourceRoot":"","sources":["../../../src/util/generateBridgeEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EACV,YAAY,EAAsB,QAAQ,EAC3C,MAAM,sBAAsB,CAAA;AAQ7B,eAAO,MAAM,sBAAsB,GACjC,YAAY,GAAG,EACf,WAAW,GAAG,EACd,aAAa,GAAG,EAChB,QAAQ,YAAY,EACpB,gBAAgB,MAAM,KACrB,OAAO,CAAC,CAAC,YAAY,EAAE,QAAQ,CAAC,CAkClC,CAAA"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
export * from './BridgeFees.ts';
|
|
2
|
+
export * from './bridgeFeesAsBigInt.ts';
|
|
1
3
|
export * from './calculateBridgeFees.ts';
|
|
4
|
+
export * from './createBridgeTransfer.ts';
|
|
2
5
|
export * from './generateBridgeEstimate.ts';
|
|
3
6
|
export * from './getConfigFromEnv.ts';
|
|
4
7
|
export * from './validateBridgeEstimate.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA"}
|