Skip to content

Commit 025e49c

Browse files
committed
Add order uri to bridgeless plugin
1 parent 249316d commit 025e49c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- added: (LI.FI) Add SUI blockchain support for swaps via Aftermath and Bluefin7k DEXs
6+
- changed: Include `orderUri` on Bridgeless swaps
67
- fixed: Fix `bridgeless` Zano burn asset params
78

89
## 2.33.0 (2025-09-09)

src/swap/defi/bridgeless.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ const swapInfo: EdgeSwapInfo = {
4040
pluginId,
4141
displayName: 'Bridgeless',
4242
isDex: true,
43-
orderUri: undefined,
4443
supportEmail: '[email protected]'
4544
}
4645

4746
const BASE_URL = 'https://rpc-api.node0.mainnet.bridgeless.com'
47+
const ORDER_URL = 'https://tss1.mainnet.bridgeless.com'
4848

4949
const EDGE_PLUGINID_CHAINID_MAP: Record<string, string> = {
5050
bitcoin: '0',
@@ -237,11 +237,18 @@ export function makeBridgelessPlugin(
237237
}
238238
}
239239

240+
// chainId/txid/outputIndex
241+
// output index is 0 for both Bitcoin (output of actual deposit) and Zano (index of serviceEntries with deposit instructions)
242+
// txid must be 0x prefixed
243+
const orderId = `${fromChainId}/0x{{TXID}}/0`
244+
240245
const assetAction: EdgeAssetAction = {
241246
assetActionType: 'swap'
242247
}
243248
const savedAction: EdgeTxActionSwap = {
244249
actionType: 'swap',
250+
orderId,
251+
orderUri: `${ORDER_URL}/check/${orderId}`,
245252
swapInfo,
246253
isEstimate: false,
247254
toAsset: {

0 commit comments

Comments
 (0)