rawExchangeRestrictions

This commit is contained in:
Kirill Litvinov
2023-12-26 21:22:18 +03:00
parent c7269f534e
commit 8eea148a5f
4 changed files with 6 additions and 5 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.34-rc-0",
"version": "0.20.36",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@orionprotocol/sdk",
"version": "0.20.34-rc-0",
"version": "0.20.36",
"hasInstallScript": true,
"license": "ISC",
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.35",
"version": "0.20.36",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -198,6 +198,7 @@ class Aggregator {
partnerId?: string,
fromWidget?: boolean,
source?: string,
rawExchangeRestrictions?: string | undefined,
) => {
const headers = {
'Content-Type': 'application/json',
@@ -228,7 +229,7 @@ class Aggregator {
{
headers,
method: 'POST',
body: JSON.stringify(signedOrder),
body: JSON.stringify({ signedOrder, rawExchangeRestrictions }),
},
errorSchema,
);

View File

@@ -40,7 +40,7 @@ type SwapInfoSubscriptionPayload = {
i: string // asset in
o: string // asset out
a: number // amount IN/OUT
es?: string[] | 'cex' | 'pools' // exchange list of all cex or all pools (ORION_POOL, UNISWAP, PANCAKESWAP etc)
es?: string // exchange list of all cex or all pools (ORION_POOL, UNISWAP, PANCAKESWAP etc)
e?: boolean // is amount IN? Value `false` means a = amount OUT, `true` if omitted
is?: boolean // instant settlement
}