Skip to content

Commit

Permalink
refactor: Cleanup UMA exports in test (#1191)
Browse files Browse the repository at this point in the history
As was recently done over in the SDK.
  • Loading branch information
pxrl authored Feb 13, 2024
1 parent 92a1ecd commit 3dc4b43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/utils/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
14 changes: 11 additions & 3 deletions test/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
Expand Down

0 comments on commit 3dc4b43

Please sign in to comment.