Skip to content

Commit cbfb6a4

Browse files
authored
fix: cow-shed types (#224)
# Summary CoW-shed was using absolute imports in some places which causes the generated types to not find the the proper imports. Changed it to relative. # Testing In this lib all tests were passing as before. The issue was when importing it on watch-tower. I built it with `yalc`, published locally and installed onto watch-tower. After that the build was successful.
1 parent e157f7d commit cbfb6a4

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/cow-shed/CoWShedHooks.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
import {
2+
EcdsaSigningScheme,
3+
hashTypedData,
4+
isTypedDataSigner,
5+
SigningScheme,
6+
TypedDataTypes,
7+
} from '@cowprotocol/contracts'
8+
import type { Signer } from '@ethersproject/abstract-signer'
9+
import { TypedDataDomain } from 'ethers'
110
import {
211
arrayify,
312
defaultAbiCoder,
@@ -6,19 +15,10 @@ import {
615
solidityKeccak256,
716
splitSignature,
817
} from 'ethers/lib/utils'
9-
import { COW_SHED_FACTORY, COW_SHED_IMPLEMENTATION, SupportedChainId } from 'src/common'
10-
import { COW_SHED_712_TYPES, ICoWShedCall, ICoWShedOptions } from './types'
11-
import { COW_SHED_PROXY_INIT_CODE } from './proxyInitCode'
12-
import type { Signer } from '@ethersproject/abstract-signer'
18+
import { COW_SHED_FACTORY, COW_SHED_IMPLEMENTATION, SupportedChainId } from '../common'
1319
import { getCoWShedFactoryInterface } from './contracts'
14-
import { TypedDataDomain } from 'ethers'
15-
import {
16-
EcdsaSigningScheme,
17-
hashTypedData,
18-
isTypedDataSigner,
19-
SigningScheme,
20-
TypedDataTypes,
21-
} from '@cowprotocol/contracts'
20+
import { COW_SHED_PROXY_INIT_CODE } from './proxyInitCode'
21+
import { COW_SHED_712_TYPES, ICoWShedCall, ICoWShedOptions } from './types'
2222

2323
export class CowShedHooks {
2424
constructor(private chainId: SupportedChainId, private customOptions?: ICoWShedOptions) {}

src/cow-shed/contracts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { CoWShedInterface } from 'src/common/generated/CoWShed'
2-
import { CoWShed__factory, CoWShedFactory__factory } from 'src/common/generated'
3-
import { CoWShedFactoryInterface } from 'src/common/generated/CoWShedFactory'
1+
import { CoWShed__factory, CoWShedFactory__factory } from '../common/generated'
2+
import { CoWShedInterface } from '../common/generated/CoWShed'
3+
import { CoWShedFactoryInterface } from '../common/generated/CoWShedFactory'
44

55
let cowShedInterfaceCache: CoWShedInterface | undefined
66
let cowShedFactoryInterface: CoWShedFactoryInterface | undefined

0 commit comments

Comments
 (0)