diff --git a/package.json b/package.json index e9ac20891..1c2fa253e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@across-protocol/sdk", "author": "UMA Team", - "version": "3.1.9", + "version": "3.1.10", "license": "AGPL-3.0", "homepage": "https://docs.across.to/reference/sdk", "files": [ diff --git a/src/utils/ValidatorUtils.ts b/src/utils/ValidatorUtils.ts index 64bdb585f..d50ad9b8c 100644 --- a/src/utils/ValidatorUtils.ts +++ b/src/utils/ValidatorUtils.ts @@ -1,5 +1,5 @@ import { BigNumber, ethers } from "ethers"; -import { object, min as Min, define, optional, string, integer } from "superstruct"; +import { object, min as Min, define, optional, string, integer, boolean } from "superstruct"; import { DepositWithBlock } from "../interfaces"; const AddressValidator = define("AddressValidator", (v) => ethers.utils.isAddress(String(v))); @@ -31,6 +31,8 @@ const V3DepositSchema = object({ logIndex: Min(integer(), 0), quoteBlockNumber: Min(integer(), 0), transactionHash: HexValidator, + fromLiteChain: optional(boolean()), + toLiteChain: optional(boolean()), }); export function isDepositFormedCorrectly(deposit: unknown): deposit is DepositWithBlock { diff --git a/test/validatorUtils.test.ts b/test/validatorUtils.test.ts index 28d101115..8d77225d6 100644 --- a/test/validatorUtils.test.ts +++ b/test/validatorUtils.test.ts @@ -31,6 +31,8 @@ describe("validatorUtils", () => { transactionIndex: 0, logIndex: 0, quoteBlockNumber: 0, + fromLiteChain: false, + toLiteChain: false, }; });