mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
update lockOrder types
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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