Skip to content

Commit

Permalink
Merge pull request #35 from cowprotocol/update-contracts-dependency
Browse files Browse the repository at this point in the history
This PR just changes the dependency on `@gnosispm/gp-v2-contracts` to `@cowprotocol/contracts`, since that the new NPM package that we are using 😄.
  • Loading branch information
nlordell committed Jun 17, 2022
2 parents e3322fa + 9465f57 commit 82283be
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"graphql:codegen": "graphql-codegen --config graphql-codegen.yml"
},
"dependencies": {
"@gnosis.pm/gp-v2-contracts": "^1.1.2",
"@cowprotocol/contracts": "^1.3.1",
"ajv": "^8.8.2",
"cross-fetch": "^3.1.5",
"ethers": "^5.5.3",
Expand Down
2 changes: 1 addition & 1 deletion src/api/cow/cow.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethers } from 'ethers'
import fetchMock, { enableFetchMocks } from 'jest-fetch-mock'
import { CowSdk } from '../../CowSdk'
import { OrderKind, SigningScheme } from '@gnosis.pm/gp-v2-contracts'
import { OrderKind, SigningScheme } from '@cowprotocol/contracts'
import OperatorError from './errors/OperatorError'
import { FeeQuoteParams, PriceQuoteParams } from './types'
import QuoteError, { GpQuoteErrorObject } from './errors/QuoteError'
Expand Down
2 changes: 1 addition & 1 deletion src/api/cow/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import log from 'loglevel'
import fetch from 'cross-fetch'
import { OrderKind, QuoteQuery } from '@gnosis.pm/gp-v2-contracts'
import { OrderKind, QuoteQuery } from '@cowprotocol/contracts'
import { SupportedChainId as ChainId } from '../../constants/chains'
import { getSigningSchemeApiValue, OrderCreation } from '../../utils/sign'
import OperatorError, { ApiErrorCodeDetails, ApiErrorCodes, ApiErrorObject } from './errors/OperatorError'
Expand Down
4 changes: 2 additions & 2 deletions src/api/cow/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GetQuoteResponse, OrderKind } from '@gnosis.pm/gp-v2-contracts'
import { GetQuoteResponse, OrderKind } from '@cowprotocol/contracts'
import { SupportedChainId as ChainId } from '../../constants/chains'
import { OrderCancellation, SigningSchemeValue } from '../../utils/sign'

Expand Down Expand Up @@ -98,7 +98,7 @@ export interface PriceInformation {
amount: string | null
}

// GetQuoteResponse from @gnosis.pm/gp-v2-contracts types Timestamp and BigNumberish
// GetQuoteResponse from @cowprotocol/contracts types Timestamp and BigNumberish
// do not play well with our existing methods, using string instead
export type SimpleGetQuoteResponse = Pick<GetQuoteResponse, 'from'> & {
// We need to map BigNumberIsh and Timestamp to what we use: string
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import contractNetworks from '@gnosis.pm/gp-v2-contracts/networks.json'
import contractNetworks from '@cowprotocol/contracts/networks.json'
import { SupportedChainId as ChainId } from './chains'

const { GPv2Settlement } = contractNetworks
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from '../api/cow/types'
export * from '../api/metadata/types'
export { OrderKind } from '@gnosis.pm/gp-v2-contracts'
export { OrderKind } from '@cowprotocol/contracts'
export class Token {
constructor(public symbol: string, public address: string) {}
}
2 changes: 1 addition & 1 deletion src/utils/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
TypedDataV3Signer,
IntChainIdTypedDataV4Signer,
SigningScheme,
} from '@gnosis.pm/gp-v2-contracts'
} from '@cowprotocol/contracts'
import log from 'loglevel'

import { SupportedChainId as ChainId } from '../constants/chains'
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,11 @@
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@cowprotocol/contracts@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@cowprotocol/contracts/-/contracts-1.3.1.tgz#a812b27bdd0c046ab730eb24911ef7c641ed0df8"
integrity sha512-p93xODog3XG5eSDU5od1ERvYf7YIyXd7USknKcsWnka5VN5mDDjqjCKTLw8EoZdrCIEpf6fGd8At2nv+MsvNqA==

"@endemolshinegroup/cosmiconfig-typescript-loader@3.0.2":
version "3.0.2"
resolved "https://registry.npmjs.org/@endemolshinegroup/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-3.0.2.tgz"
Expand Down Expand Up @@ -1462,11 +1467,6 @@
"@ethersproject/properties" "^5.6.0"
"@ethersproject/strings" "^5.6.0"

"@gnosis.pm/gp-v2-contracts@^1.1.2":
version "1.1.2"
resolved "https://registry.npmjs.org/@gnosis.pm/gp-v2-contracts/-/gp-v2-contracts-1.1.2.tgz"
integrity sha512-BvZMNS+fwITb+qs+trs2fyvYksa6MPjjLze9AOXPnvcKVYFEGwG6cfsecBswEMo+xevLIQNDyF7HZRhN7ply8w==

"@graphql-codegen/cli@2.6.2":
version "2.6.2"
resolved "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-2.6.2.tgz"
Expand Down

0 comments on commit 82283be

Please sign in to comment.