Skip to content
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

integrations/wagmi: initial re-work of wagmi support #292

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ada5a12
integrations/wagmi: initial re-work of wagmi support
CedarMist Mar 22, 2024
2f3c44d
updated pnpm-lock.yaml
CedarMist Mar 22, 2024
881c8f6
wagmi: added docs & minor cleanup
CedarMist Mar 23, 2024
66e41e3
Try global 'fetch' function if not defined in globalThis
CedarMist Mar 23, 2024
3547e56
clients/js: removed --no-experimental-fetch from CI tests
CedarMist Mar 23, 2024
9b67e2d
clients/js: updated docs & changelog
CedarMist Mar 23, 2024
72ed436
clients/js: formatting
CedarMist Mar 23, 2024
195e537
examples/wagmi: added visualizer to output
CedarMist Mar 23, 2024
2155379
Add sapphire testnet to wagmi example
CedarMist Mar 26, 2024
01f81dd
examples: formatting of wagmi example
CedarMist Mar 29, 2024
64afe5d
wagmi: renamed Wagmi related packages `-v2` + addressed PR comments
CedarMist Apr 2, 2024
7511296
integrations/wagmi-v2: biome linting config
CedarMist Apr 2, 2024
bd3ce31
wagmi: removed wagmi from docs, it has its own section in integration…
CedarMist Apr 2, 2024
372fe95
wagmi: formatting
CedarMist Apr 2, 2024
3adfc65
wagmi: removed wagmi from docs
CedarMist Apr 2, 2024
6045522
wagmi/viem: added hardhat-viem example and fixed TX serializer
CedarMist Apr 4, 2024
ad207a2
ci: added wagmi & viem to CI + fixed lint errors
CedarMist Apr 4, 2024
77fe9c6
ci: fixes
CedarMist Apr 4, 2024
5edc5a6
clients/js: fixed formatting
CedarMist Apr 4, 2024
30d0a52
viem: CI test to verify encryption
CedarMist Apr 4, 2024
4143067
viem: moved viem tests further up CI
CedarMist Apr 4, 2024
4ca20e2
wagmi: lint + CI step reorg
CedarMist Apr 5, 2024
862aa35
viem: fixed proxy tests
CedarMist Apr 5, 2024
9f9bfac
wagmi & viem: updated dependencies so peer types work correctly with …
CedarMist Apr 5, 2024
ee112fd
wagmi: reorder tests + lint for CI
CedarMist Apr 5, 2024
241d339
wagmi: build supports alpha release now
CedarMist Apr 6, 2024
11e75ea
feedback from PR #292
CedarMist Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"eslint-config-prettier": "^8.5.0",
"jest": "^29.7.0",
"nock": "^13.4.0",
"node-fetch": "^2.6.7",
"prettier": "^2.7.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion clients/js/scripts/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface JSONRPCRequest {

async function onRequest(req: IncomingMessage, response: ServerResponse) {
if (req.method !== 'POST') {
// An initial prefetch request will be made to determine of CORS is allowed
// An initial prefetch request will be made to determine if CORS is allowed.
lubej marked this conversation as resolved.
Show resolved Hide resolved
response.writeHead(200, 'Not POST!', {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
Expand Down
70 changes: 36 additions & 34 deletions examples/wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
{
"name": "example-wagmi",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "biome check .",
"preview": "vite preview",
"synpress:run": "synpress run",
"start:server": "vite --port 3000",
"test": "start-server-and-test 'pnpm start:server' http-get://localhost:3000 'pnpm synpress:run -b chromium'",
"test:headless": "start-server-and-test 'pnpm start:server' http-get://localhost:3000 'pnpm synpress:run --headless -b chromium'"
},
"dependencies": {
"@oasisprotocol/sapphire-wagmi": "workspace:^",
"@tanstack/react-query": "5.0.5",
"react": ">=18",
"react-dom": ">=18",
"start-server-and-test": "^2.0.0",
"viem": "2.x",
"wagmi": "2.x"
},
"devDependencies": {
"@biomejs/biome": "^1.6.1",
"@synthetixio/synpress": "^3.7.2-beta.10",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"buffer": "^6.0.3",
"rollup-plugin-visualizer": "^5.12.0",
"typescript": "^5.4.2",
"vite": "^4.5.2"
}
"name": "example-wagmi",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "biome check .",
"format": "biome format --write .",
"preview": "vite preview",
"synpress:run": "synpress run",
"start:server": "vite --port 3000",
"test": "start-server-and-test 'pnpm start:server' http-get://localhost:3000 'pnpm synpress:run -b chromium'",
"test:headless": "start-server-and-test 'pnpm start:server' http-get://localhost:3000 'pnpm synpress:run --headless -b chromium'"
},
"dependencies": {
"@oasisprotocol/sapphire-wagmi": "workspace:^",
"@tanstack/react-query": "5.0.5",
"abitype": "^1.0.2",
"react": ">=18",
"react-dom": ">=18",
"start-server-and-test": "^2.0.0",
"viem": "2.x",
"wagmi": "2.x"
},
"devDependencies": {
"@biomejs/biome": "^1.6.1",
"@synthetixio/synpress": "^3.7.2-beta.10",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"buffer": "^6.0.3",
"rollup-plugin-visualizer": "^5.12.0",
"typescript": "^5.4.2",
"vite": "^4.5.2"
}
}
Loading
Loading