Merge remote-tracking branch 'origin/main' into feat/OP-3702-add-governance-pools

This commit is contained in:
Dmitry Leleko
2023-04-11 19:54:38 +03:00
3 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -26,6 +26,7 @@ export const signCFDOrder = async (
signer: ethers.Signer,
chainId: SupportedChainId,
stopPrice: BigNumber.Value | undefined,
isFromDelegate?: boolean,
) => {
const nonce = Date.now();
const expiration = nonce + DEFAULT_EXPIRATION;
@@ -56,6 +57,7 @@ export const signCFDOrder = async (
? new BigNumber(stopPrice).toNumber()
: undefined,
isPersonalSign: usePersonalSign,
isFromDelegate,
};
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions

View File

@@ -85,6 +85,7 @@ export type CFDOrder = {
buySide: 0 | 1 // uint8, 1=buy, 0=sell
stopPrice?: number | undefined // uint64
isPersonalSign: boolean // bool
isFromDelegate?: boolean | undefined // bool
}
export type SignedCFDOrder = {