-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
103 additions
and
79 deletions.
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,11 @@ | ||
porto.localhost, www.porto.localhost { | ||
reverse_proxy localhost:3000 | ||
reverse_proxy localhost:3000 | ||
} | ||
|
||
anvil.porto.localhost { | ||
reverse_proxy localhost:8545 | ||
} | ||
|
||
caddy.porto.localhost { | ||
respond 200 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Chains } from 'porto' | ||
import type { Chain } from 'viem' | ||
|
||
export const odysseyTestnet = { | ||
...Chains.odysseyTestnet, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://anvil.porto.localhost'], | ||
webSocket: ['wss://anvil.porto.localhost'], | ||
}, | ||
public: { | ||
http: ['https://anvil.porto.localhost'], | ||
webSocket: ['wss://anvil.porto.localhost'], | ||
}, | ||
}, | ||
} as const satisfies Chain | ||
|
||
export const chainLookup = { odysseyTestnet } | ||
export const chains = [odysseyTestnet] |
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,58 @@ | ||
import { defineConfig, devices } from '@playwright/test' | ||
|
||
/** https://playwright.dev/docs/test-configuration */ | ||
export default defineConfig({ | ||
forbidOnly: !!process.env.CI, | ||
fullyParallel: true, | ||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
// { | ||
// name: 'firefox', | ||
// use: { ...devices['Desktop Firefox'] }, | ||
// }, | ||
// { | ||
// name: 'webkit', | ||
// use: { ...devices['Desktop Safari'] }, | ||
// }, | ||
], | ||
reporter: process.env.CI ? 'github' : 'list', | ||
retries: process.env.CI ? 2 : 0, | ||
testDir: './', | ||
use: { | ||
baseURL: 'https://porto.localhost', | ||
}, | ||
webServer: [ | ||
{ | ||
command: ['pnpm dev'].join(' && '), | ||
url: 'http://127.0.0.1:3000', | ||
reuseExistingServer: !process.env.CI, | ||
stdout: 'ignore', | ||
stderr: 'pipe', | ||
timeout: 5_000, | ||
}, | ||
{ | ||
command: [ | ||
'anvil', | ||
'--chain-id 911867', | ||
`--fork-url ${process.env.ODYSSEY_FORK_URL ?? 'https://911867.rpc.thirdweb.com'}`, | ||
'--fork-block-number 6030102', | ||
].join(' '), | ||
url: 'http://127.0.0.1:8545', | ||
reuseExistingServer: !process.env.CI, | ||
stdout: 'ignore', | ||
stderr: 'pipe', | ||
timeout: 5_000, | ||
}, | ||
{ | ||
command: 'caddy run -c Caddyfile', | ||
url: 'http://localhost:2019/reverse_proxy/upstreams', | ||
reuseExistingServer: !process.env.CI, | ||
stdout: 'ignore', | ||
stderr: 'pipe', | ||
timeout: 5_000, | ||
}, | ||
], | ||
}) |