Skip to content

Commit a708978

Browse files
authoredMay 1, 2024
feat: add run-id compatible logger and replace FTL with logger package (across-protocol#1464)
1 parent e3e6809 commit a708978

File tree

7 files changed

+80
-134
lines changed

7 files changed

+80
-134
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@maticnetwork/maticjs-ethers": "^1.0.3",
2727
"@openzeppelin/hardhat-upgrades": "^1.28.0",
2828
"@uma/common": "2.33.0",
29-
"@uma/financial-templates-lib": "^2.34.1",
29+
"@uma/logger": "1.2.0",
3030
"async": "^3.2.4",
3131
"axios": "^1.6.1",
3232
"dotenv": "^16.3.1",

‎src/scripts/validateRunningBalances.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { getWidestPossibleExpectedBlockRange } from "../dataworker/PoolRebalance
4444
import { getBlockForChain, getEndBlockBuffers } from "../dataworker/DataworkerUtils";
4545
import { ProposedRootBundle, SpokePoolClientsByChain, V3SlowFillLeaf } from "../interfaces";
4646
import { CONTRACT_ADDRESSES, constructSpokePoolClientsWithStartBlocks, updateSpokePoolClients } from "../common";
47-
import { createConsoleTransport } from "@uma/financial-templates-lib";
47+
import { createConsoleTransport } from "@uma/logger";
4848

4949
config();
5050
let logger: winston.Logger;

‎src/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type { Block, TransactionResponse, TransactionReceipt, Provider } from "@
2929
export { config } from "dotenv";
3030

3131
export { replaceAddressCase } from "@uma/common";
32-
export { Logger } from "@uma/financial-templates-lib";
32+
export { Logger } from "@uma/logger";
3333

3434
export { CHAIN_IDs, TOKEN_SYMBOLS_MAP } from "@across-protocol/constants-v2";
3535

‎tasks/integration-tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import { task } from "hardhat/config";
33
import { getSigner, winston } from "../src/utils";
4-
import { SpyTransport, bigNumberFormatter } from "@uma/financial-templates-lib";
4+
import { SpyTransport, bigNumberFormatter } from "@uma/logger";
55
import { runDataworker } from "../src/dataworker";
66
import { runRelayer } from "../src/relayer";
77
import { runFinalizer } from "../src/finalizer";

‎test/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * as contracts from "@across-protocol/contracts-v2/dist/test-utils";
2-
export * as uma from "@uma/financial-templates-lib";
2+
export * as uma from "@uma/logger";
33

44
export * from "./utils";
55
export * from "./BlockchainUtils";

‎test/utils/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as utils from "@across-protocol/contracts-v2/dist/test-utils";
22
import { TokenRolesEnum } from "@uma/common";
3-
import { SpyTransport, bigNumberFormatter } from "@uma/financial-templates-lib";
3+
import { SpyTransport, bigNumberFormatter } from "@uma/logger";
44
import { AcrossConfigStore, FakeContract } from "@across-protocol/contracts-v2";
55
import { constants, utils as sdkUtils } from "@across-protocol/sdk-v2";
66
import { BigNumber, Contract, providers } from "ethers";
@@ -27,7 +27,7 @@ export {
2727
lastSpyLogLevel,
2828
spyLogIncludes,
2929
spyLogLevel,
30-
} from "@uma/financial-templates-lib";
30+
} from "@uma/logger";
3131
export { MAX_SAFE_ALLOWANCE, MAX_UINT_VAL } from "../../src/utils";
3232
export const {
3333
ethers,

‎yarn.lock

+73-127
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.