diff --git a/package.json b/package.json index 79ddb5992..1c6a1619f 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "dependencies": { "@across-protocol/across-token": "^1.0.0", "@across-protocol/constants": "^3.1.94", - "@across-protocol/contracts": "^4.1.14", + "@across-protocol/contracts": "^4.1.19-alpha.3", "@coral-xyz/anchor": "^0.30.1", "@eth-optimism/sdk": "^3.3.1", "@ethersproject/bignumber": "^5.7.0", diff --git a/src/typechain.ts b/src/typechain.ts index 99c0012c1..6259fe6b6 100644 --- a/src/typechain.ts +++ b/src/typechain.ts @@ -3,14 +3,12 @@ * Currently, the packages `@across-protocol/contracts` and `@across-protocol/across-token` are not optimized for tree-shaking * and contain modules that are not compatible in a browser environment. This is a temporary solution until we can fix the issue upstream. */ -import type { TypedEvent, TypedEventFilter } from "@across-protocol/contracts/dist/typechain/common"; - -export type { TypedEvent, TypedEventFilter }; -export { AcrossMerkleDistributor__factory } from "@across-protocol/contracts/dist/typechain/factories/contracts/merkle-distributor/AcrossMerkleDistributor__factory"; -export { AcrossConfigStore__factory } from "@across-protocol/contracts/dist/typechain/factories/contracts/AcrossConfigStore__factory"; -export { HubPool__factory } from "@across-protocol/contracts/dist/typechain/factories/contracts/HubPool__factory"; -export { SpokePool__factory } from "@across-protocol/contracts/dist/typechain/factories/contracts/SpokePool__factory"; -export { ERC20__factory } from "@across-protocol/contracts/dist/typechain/factories/@openzeppelin/contracts-v4/token/ERC20/ERC20__factory"; +export type { TypedEvent, TypedEventFilter } from "@across-protocol/contracts/dist/typechain/common"; +export { AcrossMerkleDistributor__factory } from "@across-protocol/contracts/dist/typechain/factories/AcrossMerkleDistributor__factory"; +export { AcrossConfigStore__factory } from "@across-protocol/contracts/dist/typechain/factories/AcrossConfigStore__factory"; +export { HubPool__factory } from "@across-protocol/contracts/dist/typechain/factories/HubPool__factory"; +export { SpokePool__factory } from "@across-protocol/contracts/dist/typechain/factories/SpokePool__factory"; +export { ERC20__factory } from "@across-protocol/contracts/dist/typechain/factories/ERC20__factory"; export { AcceleratingDistributor__factory } from "@across-protocol/across-token/dist/typechain/factories/AcceleratingDistributor__factory"; export { ClaimAndStake__factory } from "@across-protocol/across-token/dist/typechain/factories/ClaimAndStake__factory"; @@ -19,18 +17,18 @@ export { MerkleDistributor__factory } from "@across-protocol/across-token/dist/t export type { AcrossMerkleDistributor, AcrossMerkleDistributorInterface, -} from "@across-protocol/contracts/dist/typechain/contracts/merkle-distributor/AcrossMerkleDistributor"; +} from "@across-protocol/contracts/dist/typechain/AcrossMerkleDistributor"; export type { AcrossConfigStore, AcrossConfigStoreInterface, -} from "@across-protocol/contracts/dist/typechain/contracts/AcrossConfigStore"; -export type { HubPool, HubPoolInterface } from "@across-protocol/contracts/dist/typechain/contracts/HubPool"; +} from "@across-protocol/contracts/dist/typechain/AcrossConfigStore"; +export type { HubPool, HubPoolInterface } from "@across-protocol/contracts/dist/typechain/HubPool"; export type { SpokePool, SpokePoolInterface, V3FundsDepositedEvent, FilledV3RelayEvent, -} from "@across-protocol/contracts/dist/typechain/contracts/SpokePool"; +} from "@across-protocol/contracts/dist/typechain/SpokePool"; export type { AcceleratingDistributor, diff --git a/yarn.lock b/yarn.lock index 09b56a906..8f0a67300 100644 --- a/yarn.lock +++ b/yarn.lock @@ -35,10 +35,10 @@ "@openzeppelin/contracts" "4.1.0" "@uma/core" "^2.18.0" -"@across-protocol/contracts@^4.1.14": - version "4.1.14" - resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-4.1.14.tgz#abedc67f8d5515d799da0d3a73fac40e8edc659f" - integrity sha512-8Akpqj4sGxdceQI+QSzNh2O2/sIX99j3TTSFMCaXH7W0MzZxsMytvHZJKgZJOgps5Aged+X61pyCC08xhWIOVQ== +"@across-protocol/contracts@^4.1.19-alpha.3": + version "4.1.19-alpha.3" + resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-4.1.19-alpha.3.tgz#2ddbbd4f87e7b846392540e885f47bfe8d7dfcf3" + integrity sha512-2cr1KqEpZF4H/kYxSkojSVno81AF23i+/MmGOD2LXsV36MFFUr2VzZXf2wdiU/uuPUxPwCGQJmZd5SRf+Vx1/A== dependencies: "@across-protocol/constants" "^3.1.88" "@coral-xyz/anchor" "^0.31.1"