mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-16 16:21:32 +03:00
update domainData chainId type
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.21.0-rc17",
|
||||
"version": "0.21.0-rc18",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.21.0-rc17",
|
||||
"version": "0.21.0-rc18",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.21.0-rc17",
|
||||
"version": "0.21.0-rc18",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const LOCK_ORDER_TYPES = {
|
||||
Order: [
|
||||
LockOrder: [
|
||||
{ name: 'sender', type: 'address' },
|
||||
{ name: 'expiration', type: 'uint64' },
|
||||
{ name: 'asset', type: 'address' },
|
||||
|
||||
@@ -19,7 +19,7 @@ function removeUndefined<T>(obj: Record<string, T | undefined>) {
|
||||
*/
|
||||
const getDomainData = (chainId: SupportedChainId) => ({
|
||||
...removeUndefined(EIP712Domain),
|
||||
chainId,
|
||||
chainId: Number(chainId), // check if it broke
|
||||
});
|
||||
|
||||
export default getDomainData;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ethers } from 'ethers';
|
||||
import type { LockOrder, SignedLockOrder, SupportedChainId } from '../types.js';
|
||||
import type { SupportedChainId, LockOrder, SignedLockOrder } from '../types.js';
|
||||
import getDomainData from './getDomainData.js';
|
||||
import generateSecret from '../utils/generateSecret';
|
||||
import { BigNumber } from 'bignumber.js';
|
||||
|
||||
Reference in New Issue
Block a user