update lockOrder types

This commit is contained in:
TheJuze
2024-01-23 16:52:22 +03:00
parent aac63a6930
commit a2cdadfa09
5 changed files with 5 additions and 9 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.45",
"version": "0.20.42-rc9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@orionprotocol/sdk",
"version": "0.20.45",
"version": "0.20.42-rc9",
"hasInstallScript": true,
"license": "ISC",
"dependencies": {

View File

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

View File

@@ -10,7 +10,7 @@ import {
LOCKATOMIC_GAS_LIMIT,
REDEEMATOMIC_GAS_LIMIT,
WITHDRAW_GAS_LIMIT
} from '../../constants/index.js';
} from '../../constants';
import getNativeCryptocurrencyName from '../../utils/getNativeCryptocurrencyName.js';
import { denormalizeNumber, generateSecret, normalizeNumber, toUpperCase } from '../../utils/index.js';
import type { SupportedChainId } from '../../types.js';

View File

@@ -14,7 +14,6 @@ export type LockOrderProps = {
senderAddress: string // broker
asset: string
amount: ethers.BigNumberish
sign: string // подпись юзера
signer: ethers.Signer
chainId: SupportedChainId
targetChainId: SupportedChainId
@@ -23,11 +22,10 @@ export type LockOrderProps = {
export const signLockOrder = async ({
userAddress,
senderAddress,
sign,
amount,
chainId,
targetChainId,
asset,
chainId,
signer
}: LockOrderProps) => {
const nonce = Date.now();
@@ -43,7 +41,6 @@ export const signLockOrder = async ({
amount,
targetChainId,
secretHash,
sign
};
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions

View File

@@ -64,7 +64,6 @@ export type LockOrder = {
amount: ethers.BigNumberish // uint64
targetChainId: SupportedChainId // uint64
secretHash: string // uint64
sign: string // uint64 // подпись юзера
}
type SignedOrderAdditionalProps = {