Skip to content

Commit

Permalink
integ-test fixes so far
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Feb 12, 2025
1 parent c01d8f7 commit ebefd19
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 35 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -809,38 +809,6 @@ jobs:
env:
# TODO: add secret in github secrets
JSON_RPC_PROVIDER_UNICHAIN: ${{ secrets.JSON_RPC_PROVIDER_UNICHAIN }}
TENDERLY_BASE_URL: ${{ secrets.TENDERLY_BASE_URL }}
TENDERLY_USER: ${{ secrets.TENDERLY_USER }}
TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }}
TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }}

integration-tests-quote-for-other-networks-unichain-sepolia:
name: Integration Tests - Quote For Other Networks Unichain Sepolia
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.x
registry-url: https://registry.npmjs.org

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install

# This is required separately from yarn test because it generates the typechain definitions
- name: Compile
run: npm run build

- name: Run Integration tests
run: npm run integ-test -- -t 'quote for other networks * unichain sepolia'
env:
JSON_RPC_PROVIDER_UNICHAIN_SEPOLIA: ${{ secrets.JSON_RPC_PROVIDER_UNICHAIN_SEPOLIA }}
TENDERLY_BASE_URL: ${{ secrets.TENDERLY_BASE_URL }}
TENDERLY_USER: ${{ secrets.TENDERLY_USER }}
Expand Down
2 changes: 2 additions & 0 deletions src/util/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const V2_SUPPORTED = [
ChainId.BNB,
ChainId.AVALANCHE,
ChainId.MONAD_TESTNET,
ChainId.UNICHAIN_SEPOLIA,
ChainId.UNICHAIN
];

export const V4_SUPPORTED = [ChainId.SEPOLIA];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3574,7 +3574,7 @@ describe('quote for other networks', () => {
[ChainId.ZKSYNC]: () => WNATIVE_ON(ChainId.ZKSYNC),
[ChainId.WORLDCHAIN]: () => WLD_WORLDCHAIN,
[ChainId.UNICHAIN_SEPOLIA]: () => WNATIVE_ON(ChainId.UNICHAIN_SEPOLIA),
[ChainId.UNICHAIN]: () => WNATIVE_ON(ChainId.UNICHAIN),
[ChainId.UNICHAIN]: () => DAI_ON(ChainId.UNICHAIN),
[ChainId.MONAD_TESTNET]: () => WNATIVE_ON(ChainId.MONAD_TESTNET),
[ChainId.BASE_SEPOLIA]: () => WNATIVE_ON(ChainId.BASE_SEPOLIA),
};
Expand Down
10 changes: 8 additions & 2 deletions test/test-util/whales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ export const WHALES = (token: Currency): string => {
case nativeOnChain(ChainId.BNB):
return '0x8894E0a0c962CB723c1976a4421c95949bE2D4E3';
case nativeOnChain(ChainId.OPTIMISM):
return '0x12478d1a60a910C9CbFFb90648766a2bDD5918f5';
return '0xf977814e90da44bfa03b6295a0616a897441acec';
case nativeOnChain(ChainId.ZORA):
return '0xBC698ce1933aFb2980D4A5a0F85feA1b02fbb1c9';
case nativeOnChain(ChainId.UNICHAIN):
return '0x1f49a3fa2b5B5b61df8dE486aBb6F3b9df066d86';
case WETH9[1]:
return '0x6B44ba0a126a2A1a8aa6cD1AdeeD002e141Bcd44';
case WNATIVE_ON(ChainId.MAINNET):
Expand All @@ -64,13 +66,15 @@ export const WHALES = (token: Currency): string => {
case WNATIVE_ON(ChainId.BASE):
return '0x0172e05392aba65366C4dbBb70D958BbF43304E4';
case WNATIVE_ON(ChainId.OPTIMISM):
return '0x12478d1a60a910C9CbFFb90648766a2bDD5918f5';
return '0x274d9E726844AB52E351e8F1272e7fc3f58B7E5F';
case WNATIVE_ON(ChainId.BNB):
return '0x59d779BED4dB1E734D3fDa3172d45bc3063eCD69';
case WNATIVE_ON(ChainId.AVALANCHE):
return '0xba12222222228d8ba445958a75a0704d566bf2c8';
case WNATIVE_ON(ChainId.ZORA):
return '0xBC698ce1933aFb2980D4A5a0F85feA1b02fbb1c9';
case WNATIVE_ON(ChainId.UNICHAIN):
return '0x07aE8551Be970cB1cCa11Dd7a11F47Ae82e70E67';
case USDC_MAINNET:
return '0x8eb8a3b98659cce290402893d0123abb75e3ab28';
case UNI_MAINNET:
Expand Down Expand Up @@ -113,6 +117,8 @@ export const WHALES = (token: Currency): string => {
return '0x20fe51a9229eef2cf8ad9e89d91cab9312cf3b7a';
case USDC_ON(ChainId.UNICHAIN_SEPOLIA):
return '0xca8cA8840c77589981E63f4D8122fFEc4b74e2a1';
case USDC_UNICHAIN:
return '0xB5A2a236581dbd6BCECD8A25EeBFF140595f138C';
case DAI_ON(ChainId.GOERLI):
return '0x20918f71e99c09ae2ac3e33dbde33457d3be01f4';
case DAI_ON(ChainId.SEPOLIA):
Expand Down

0 comments on commit ebefd19

Please sign in to comment.