mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-01 10:38:04 +03:00
update lockOrder types
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -64,7 +64,6 @@ export type LockOrder = {
|
||||
amount: ethers.BigNumberish // uint64
|
||||
targetChainId: SupportedChainId // uint64
|
||||
secretHash: string // uint64
|
||||
sign: string // uint64 // подпись юзера
|
||||
}
|
||||
|
||||
type SignedOrderAdditionalProps = {
|
||||
|
||||
Reference in New Issue
Block a user