From 3dc4b434afbb718bac58ee610526f3a34a2e2a97 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:23:43 +0100 Subject: [PATCH] refactor: Cleanup UMA exports in test (#1191) As was recently done over in the SDK. --- test/utils/index.ts | 2 +- test/utils/utils.ts | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/test/utils/index.ts b/test/utils/index.ts index b4fedb882..90d59c28d 100644 --- a/test/utils/index.ts +++ b/test/utils/index.ts @@ -1,5 +1,5 @@ export * from "@across-protocol/contracts-v2/dist/test-utils"; -export * from "@uma/financial-templates-lib"; +export * as uma from "@uma/financial-templates-lib"; export * from "./utils"; export * from "./BlockchainUtils"; diff --git a/test/utils/utils.ts b/test/utils/utils.ts index 4deca46d0..76553e7d3 100644 --- a/test/utils/utils.ts +++ b/test/utils/utils.ts @@ -15,9 +15,6 @@ import { zeroAddress, } from "../constants"; import { BigNumber, Contract, SignerWithAddress } from "./index"; -export { sinon, winston }; -export { MAX_SAFE_ALLOWANCE, MAX_UINT_VAL } from "../../src/utils"; - import { AcrossConfigStore, MerkleTree } from "@across-protocol/contracts-v2"; import { constants } from "@across-protocol/sdk-v2"; import chai, { expect } from "chai"; @@ -27,6 +24,17 @@ import sinon from "sinon"; import winston from "winston"; import { ContractsV2SlowFill, SpokePoolDeploymentResult, SpyLoggerResult } from "../types"; +export { + SpyTransport, + bigNumberFormatter, + lastSpyLogIncludes, + lastSpyLogLevel, + spyLogIncludes, + spyLogLevel, +} from "@uma/financial-templates-lib"; +export { sinon, winston }; +export { MAX_SAFE_ALLOWANCE, MAX_UINT_VAL } from "../../src/utils"; + chai.use(chaiExclude); const assert = chai.assert;