Skip to content

Commit

Permalink
chore(refactor): dep resolution bug - del eth v5
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers committed Nov 3, 2023
1 parent 788e00b commit 4fca018
Show file tree
Hide file tree
Showing 35 changed files with 2,381 additions and 1,331 deletions.
2 changes: 1 addition & 1 deletion graph/tests/.latest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.6.0",
"timestamp": 1698847161929
"timestamp": 1698982104763
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
},
"@hypercerts/frontend": {
"ethers": "5.7.2"
},
"@hypercerts/sdk": {
"ethers": "5.7.2"
}
}
}
362 changes: 208 additions & 154 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ packages:
- "docs"
- "frontend"
- "graph"
- "vendor/observabletreemap"
- "sdk"
- "vendor/observabletreemap"
- "contracts"
3 changes: 1 addition & 2 deletions sdk/.graphclient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,7 @@ export type DirectiveResolvers<ContextType = MeshContext & { graphUrl: string, c
export type MeshContext = HypercertsTypes.Context & BaseMeshContext;


import { fileURLToPath } from '@graphql-mesh/utils';
const baseDir = pathModule.join(pathModule.dirname(fileURLToPath(import.meta.url)), '..');
const baseDir = pathModule.join(typeof __dirname === 'string' ? __dirname : '/', '..');

const importFn: ImportFn = <T>(moduleId: string) => {
const relativeModuleId = (pathModule.isAbsolute(moduleId) ? pathModule.relative(baseDir, moduleId) : moduleId).split('\\').join('/').replace(baseDir + '/', '');
Expand Down
1 change: 1 addition & 0 deletions sdk/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const config: Config = {
resolver: "ts-jest-resolver",
moduleFileExtensions: ["js", "jsx", "json", "ts"],
transform: {},
workerThreads: true,
};

export default config;
11 changes: 8 additions & 3 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hypercerts-org/sdk",
"version": "0.8.16",
"version": "0.9.0-viem",
"description": "SDK for hypercerts protocol",
"repository": "[email protected]:hypercerts-org/hypercerts.git",
"author": "Hypercerts team",
Expand All @@ -23,7 +23,7 @@
"package.json"
],
"dependencies": {
"@ethereum-attestation-service/eas-sdk": "^0.28.3",
"@ethereum-attestation-service/eas-sdk": "1.2.2-beta.0",
"@ethersproject/abstract-signer": "^5.7.0",
"@graphprotocol/client-add-source-name": "^1.0.16",
"@graphprotocol/client-polling-live": "^2.0.0",
Expand All @@ -49,6 +49,7 @@
"loglevel": "^1.8.1",
"mime": "^3.0.0",
"nft.storage": "^7.1.1",
"viem": "1.5.3",
"web3.storage": "^4.5.5"
},
"devDependencies": {
Expand All @@ -67,15 +68,19 @@
"@types/mocha": "9.1.0",
"@types/node": "^18.11.17",
"@types/sinon": "^10.0.15",
"@viem/anvil": "^0.0.6",
"abitype": "^0.10.2",
"babel-jest": "^29.7.0",
"chai": "^4.3.7",
"chai-assertions-count": "^1.0.2",
"chai-subset": "^1.6.0",
"esbuild": "^0.17.10",
"ethereum-waffle": "^4.0.10",
"fetch-mock": "^9.11.0",
"it-all": "^2.0.0",
"jest": "^29.3.1",
"jest-extended": "^4.0.0",
"jest-fetch-mock": "^3.0.3",
"json-schema-to-typescript": "^12.0.0",
"msw": "^1.2.1",
"nyc": "^15.1.0",
Expand All @@ -95,7 +100,7 @@
"typedoc": "^0.23.25",
"typedoc-plugin-markdown": "^3.14.0",
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "^4.9.0"
"typescript": "5.1.6"
},
"scripts": {
"build": "pnpm types:json && pnpm graph:build:esm && rollup -c",
Expand Down
Loading

0 comments on commit 4fca018

Please sign in to comment.