-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch Quest Chains from ethers
to Viem for Contract Access
#1761
Merged
Merged
Changes from 11 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
aa2109f
converting PNGs to WebP 🚁
dysbulic c353420
replacing `ethers` with Viem for Quest Chains contract access 🪡
dysbulic 6230eb3
displaying ENS name for Quest Chain author 🈴
dysbulic b07ada6
fixing submission 🏈
dysbulic e4fec00
adding `onComplete` handler for uploading 🥕
dysbulic fbeef7f
in the process of upgrading `ethers` to `v6`
dysbulic d7369f0
trying to upgrade `yarn` b/c `yarn` classic was crapping out 🪇
dysbulic 0dfe315
updating dependencies 🫛
dysbulic 0207ed4
almost running; need to check another branch 🎤
dysbulic d725c5c
disabled `yarn` PnP 🥏
dysbulic fa37b69
pushing so I can reinstall my OS 🧙♂️
dysbulic 11d9c91
switching to `package.json` import munging from TypeScript `paths` 🥔
dysbulic 4163b66
fixing ERC-20 contract read using WAGMI 👛
dysbulic 235ad17
criminey, much finessing to hopefully cause the test instance to buil…
dysbulic e7b8c04
moving Markdown component to `design-system` 🧱
dysbulic 7193bbf
upgrading `eslint` 🪢
dysbulic 6b511b1
switching to `yarn workspaces focus` for production dependencies 🔱
dysbulic 09e495e
removing unneeded `node_modules/`? ✊🏻
dysbulic cb07eff
enable `corepack` for `yarn` `berry` 🪮
dysbulic a3c3058
fighting with `docker` ⛑️
dysbulic 298c4ef
finagling `package.json` `imports` to work in dev & prod 🥫
dysbulic 9773e46
allowing Discord bot to start w/o credentials 🏺
dysbulic 83e942c
frontend container building & should deploy 🦥
dysbulic 1204ce2
working on auth & fixing all-category playbooks 🍂
dysbulic ace7ab6
improving login experience 🪴
dysbulic 18addfd
working on relative paths & saving to Ceramic 🧇
dysbulic b5f28bd
matching [a recent example](https://github.com/ceramicstudio/walletco…
dysbulic 56707ef
debugging Ceramic & winnowing down `ethers` presence 🏎️
dysbulic a9e45c4
cleaning up save error messages 🌀
dysbulic 34f2279
Merge branch 'develop' into fix/quest-chains-ethers
dysbulic 12d63d6
testing `yarn` install error on GitHub 🐦🔥
dysbulic 6701d92
🪆 Merge branch 'fix/quest-chains-ethers' of github.com:MetaFam/TheGam…
dysbulic f3aa8a4
trying to get `yarn` to not die when installing from GitHub 🥕
dysbulic 3283e13
missed updating `yarn.lock` 🦞
dysbulic d944743
reenabling EAS & switching `node-ts` to `tsx` 🏚️
dysbulic f0aec1f
tweaking Discord bot GraphQL codegen 🏔️
dysbulic 36d41d9
tweaking backend GraphQL codegen 🚒
dysbulic 82e4b09
trying DAOHaus v3 Graph endpoint 🚜
dysbulic 207a713
trying DAOHaus Graph endpoint from [the docs]('https://docs.daohaus.c…
dysbulic 7cde476
maybe this Graph will work 🛰️
dysbulic c509513
making attestations non-conditional 🚤
dysbulic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,4 @@ tsconfig.tsbuildinfo | |
# Ceramic daemon | ||
ipfs | ||
packages/backend/uploads/ | ||
*.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
lts/gallium | ||
lts/iron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"githubPullRequests.ignoredPullRequestBranches": [ | ||
"develop" | ||
] | ||
} | ||
{ | ||
"githubPullRequests.ignoredPullRequestBranches": [ | ||
"develop" | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.3.1.cjs | ||
|
||
progressBarStyle: simba | ||
|
||
preferInteractive: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
import fetch from 'node-fetch' | ||
|
||
/* eslint-disable no-console */ | ||
|
||
const TARGET_GRAPHQL_URL = ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@metafam/the-game", | ||
"version": "0.2.0", | ||
"license": "GPL-3.0", | ||
"license": "GPL-2.0", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=20" | ||
|
@@ -15,6 +15,7 @@ | |
"docker:stop": "docker-compose down", | ||
"docker:clean": "docker-compose down -v", | ||
"docker:dev": "DOCKER_BUILDKIT=1 docker compose up --build", | ||
"docker:debug": "docker compose --progress=plain up --build", | ||
"build": "lerna run --concurrency 1 --stream build", | ||
"web:dev": "lerna run dev --parallel --scope @metafam/web --include-dependencies", | ||
"web:build": "lerna run build --scope @metafam/web --include-dependencies --stream", | ||
|
@@ -29,7 +30,7 @@ | |
"test": "lerna run test --parallel --", | ||
"test:full": "yarn lint && yarn typecheck && yarn test", | ||
"clean": "lerna clean", | ||
"clean:libndist": "CMD='rm -rf node_modules/ packages/*/node_modules/ packages/*/dist/ packages/web/.next/' && echo \"$CMD\" && eval $CMD", | ||
"clean:libndist": "CMD='rm -rf node_modules/ packages/*/node_modules/ packages/*/dist/ packages/web/.next/' && echo \"$CMD\" && sh -c \"eval $CMD\"", | ||
"clean:autogen": "find -type d -name autogen -exec rm -rfv '{}' \\; || true", | ||
"clean:full": "yarn clean:libndist && yarn clean:autogen", | ||
"format": "prettier --write \"{*,**/*}.{ts,tsx,js,jsx,json,yml,yaml,md}\"", | ||
|
@@ -43,35 +44,29 @@ | |
"web": "yarn --cwd packages/web/", | ||
"ds": "yarn --cwd packages/design-system/", | ||
"release": "standard-version", | ||
"composedb:create-composite": "composedb composite:create packages/utils/schema/user-profile.graphql -o packages/utils/schema/user-profile-composite.json", | ||
"composedb:create-definition": "composedb composite:compile packages/utils/schema/user-profile-composite.json packages/utils/schema/user-profile-definition.json", | ||
"composedb:graphql-generate": "composedb composite:compile packages/utils/schema/user-profile-composite.json packages/utils/src/graphql/composeDBDefinition.ts", | ||
"composedb:graphql-server": "composedb graphql:server --graphiql packages/utils/schema/user-profile-definition.json" | ||
"composedb:create-composite": "composedb composite:create packages/utils/schema/user-profile.graphql --output packages/utils/schema/user-profile-composite.json", | ||
"composedb:create-definition": "composedb composite:compile packages/utils/schema/user-profile-composite.json packages/utils/schema/user-profile-definition.json --ceramic-url=https://ceramic.metagame.wtf", | ||
"composedb:graphql-generate": "composedb composite:compile packages/utils/schema/user-profile-composite.json packages/utils/src/graphql/composeDBDefinition.ts --ceramic-url=https://ceramic.metagame.wtf", | ||
"composedb:graphql-server": "composedb graphql:server --graphiql packages/utils/schema/user-profile-definition.json --ceramic-url=https://ceramic.metagame.wtf" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"dependencies": { | ||
"dag-jose": "^4.0.0", | ||
"tslib": "^2.4.0", | ||
"uuid": "8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@apollo/rover": "^0.18.0", | ||
"@composedb/cli": "^0.4.4", | ||
"@graphql-codegen/add": "^5.0.0", | ||
"@graphql-codegen/cli": "^5.0.0", | ||
"@graphql-codegen/introspection": "^4.0.0", | ||
"@graphql-codegen/typescript": "^4.0.1", | ||
"@graphql-codegen/typescript-graphql-request": "^5.0.0", | ||
"@graphql-codegen/typescript-operations": "^4.0.1", | ||
"@graphql-codegen/typescript-react-apollo": "^3.3.7", | ||
"@graphql-codegen/typescript-resolvers": "^4.0.1", | ||
"@graphql-codegen/typescript-urql": "^4.0.0", | ||
"@apollo/rover": "^0.23.0", | ||
"@composedb/cli": "^0.7.1", | ||
"@types/jest": "^29.2.1", | ||
"@types/node": "^20.8.6", | ||
"@types/node-fetch": "^2.6.2", | ||
"@types/react": "^18.0.21", | ||
"@types/react-dom": "^18.0.6", | ||
"@types/uuid": "8.3.4", | ||
"@typescript-eslint/eslint-plugin": "5.45.0", | ||
"@typescript-eslint/parser": "^6.6.0", | ||
"caniuse-lite": "^1.0.30001383", | ||
"concurrently": "7.0.0", | ||
"env-cmd": "10.1.0", | ||
"eslint": "^8.39.0", | ||
|
@@ -97,10 +92,7 @@ | |
"wait-on": "6.0.1" | ||
}, | ||
"resolutions": { | ||
"@ceramicnetwork/common": "2.31.1", | ||
"did-resolver": "4.1.0", | ||
"dids": "4.0.4", | ||
"graphql": "16.5.0", | ||
"graphql": "16.9.0", | ||
"multihashes": "4.0.3", | ||
"node-gyp": "10.0.1", | ||
"better-sqlite3": "9.4.5", | ||
|
@@ -110,10 +102,5 @@ | |
"defaults", | ||
"not IE 11" | ||
], | ||
"dependencies": { | ||
"dag-jose": "^4.0.0", | ||
"tslib": "^2.4.0", | ||
"uuid": "8.3.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,53 +4,60 @@ | |
"version": "0.2.0", | ||
"description": "", | ||
"author": "MetaFam", | ||
"license": "ISC", | ||
"contributors": [ | ||
"δυς <[email protected]> (https://trwb.live)" | ||
], | ||
"license": "GPL-2.0", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"start": "node --trace-warnings dist/index.js", | ||
"build": "yarn generate && tsc -b", | ||
"dev": "tsc --build && concurrently 'tsc --watch --preserveWatchOutput' nodemon", | ||
"dev": "nodemon", | ||
"typecheck": "tsc --noEmit --pretty", | ||
"precommit": "yarn typecheck", | ||
"generate": "graphql-code-generator --debug && yarn fix:daohaus-types", | ||
"fix:daohaus-types": "export OUT=src/lib/autogen/daohaus-sdk.ts && awk '!/MolochVersion = .molochVersion/' $OUT > $OUT.filtered && mv $OUT.filtered $OUT", | ||
"fix:daohaus-types": "bash -c 'export OUT=src/lib/autogen/daohaus-sdk.ts && awk \"!/MolochVersion = .molochVersion/\" $OUT > $OUT.filtered && mv $OUT.filtered $OUT'", | ||
"fix:lint": "eslint --fix", | ||
"test": "jest --passWithNoTests" | ||
}, | ||
"dependencies": { | ||
"@ceramicnetwork/stream-caip10-link": "^2.26.1", | ||
"@composedb/client": "^0.4.4", | ||
"@graphql-tools/schema": "8.3.2", | ||
"@metafam/discord-bot": "0.1.0", | ||
"@metafam/utils": "1.0.1", | ||
"@ceramicnetwork/http-client": "^5.16.0", | ||
"@ceramicnetwork/stream-caip10-link": "^5.15.0", | ||
"@composedb/client": "^0.7.1", | ||
"@datamodels/identity-accounts-crypto": "^0.2.0", | ||
"@datamodels/identity-profile-basic": "^0.2.0", | ||
"@graphql-tools/schema": "^10.0.4", | ||
"@metafam/discord-bot": "workspace:*", | ||
"@metafam/utils": "workspace:*", | ||
"bluebird": "3.7.2", | ||
"bottleneck": "^2.19.5", | ||
"cors": "2.8.5", | ||
"discord.js": "13.6.0", | ||
"discord.js": "^14.15.3", | ||
"dotenv": "16.0.0", | ||
"ethers": "5.7.2", | ||
"express": "^4.18.2", | ||
"ethers": "^6.13.1", | ||
"express": "^4.19.2", | ||
"express-graphql": "0.12.0", | ||
"graphql": "16.5.0", | ||
"graphql-request": "4.0.0", | ||
"graphql-tag": "2.12.6", | ||
"graphql": "16.9.0", | ||
"graphql-request": "^7.1.0", | ||
"graphql-tag": "^2.12.6", | ||
"showdown": "^2.1.0", | ||
"uuid": "8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@composedb/types": "^0.7.1", | ||
"@types/bluebird": "3.5.36", | ||
"@types/body-parser": "1.19.2", | ||
"@types/cors": "2.8.12", | ||
"@types/create-hash": "^1.2.6", | ||
"@types/express": "^4.17.21", | ||
"@types/node": "^20.14.10", | ||
"@types/showdown": "^2.0.0", | ||
"@types/uuid": "8.3.0", | ||
"@types/uuid": "^10.0.0", | ||
"nock": "13.2.4", | ||
"nodemon": "^2.0.20", | ||
"ts-node": "^10.9.1" | ||
}, | ||
"resolutions": { | ||
"better-sqlite3": "9.4.5", | ||
"node-gyp": "10.0.1" | ||
"nodemon": "^3.1.4", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.5.3" | ||
}, | ||
"nodemonConfig": { | ||
"exec": "node --inspect=0.0.0.0:4322 --loader ts-node/esm src/index.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dysbulic Does line 41 change need an actual url link also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it's fine because line 44 refers to the env? I'm still getting backend build fails on the test build for dAcademy PR. @dysbulic