Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- changed: Add signature header support to Exolix
- changed: Add index for orderId
- changed: Add EVM chainId, pluginId, and tokenId fields to StandardTx
- changed: Update Lifi to provide chainId, pluginId, and tokenId
Expand Down
10 changes: 6 additions & 4 deletions src/partners/exolix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const asExolixPluginParams = asObject({
latestIsoDate: asOptional(asString, EXOLIX_START_DATE)
}),
apiKeys: asObject({
apiKey: asOptional(asString)
apiKey: asOptional(asString),
signature: asOptional(asString)
})
})

Expand Down Expand Up @@ -230,10 +231,10 @@ export async function queryExolix(
): Promise<PluginResult> {
const { log } = pluginParams
const { settings, apiKeys } = asExolixPluginParams(pluginParams)
const { apiKey } = apiKeys
const { apiKey, signature } = apiKeys
let { latestIsoDate } = settings

if (apiKey == null) {
if (apiKey == null || signature == null) {
return { settings: { latestIsoDate }, transactions: [] }
}

Expand All @@ -252,7 +253,8 @@ export async function queryExolix(
method: 'GET',
headers: {
'Content-Type': 'application/json',
Authorization: `${apiKey}`
Authorization: `${apiKey}`,
signature: `${signature}`
}
}

Expand Down
Loading