Skip to content

Commit

Permalink
Merge pull request #914 from makerdao/new-vnet
Browse files Browse the repository at this point in the history
Update tenderly chain id
  • Loading branch information
tyler17 authored Sep 26, 2024
2 parents cf83ee4 + 540bb34 commit d70b7fd
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
include:
- test: executives.spec
- test: delegates.spec
- test: esmodule.spec
# - test: esmodule.spec
- test: polling.spec
runs-on: ubuntu-latest
env:
Expand Down
114 changes: 114 additions & 0 deletions modules/tags/constants/poll-tags-mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -4465,5 +4465,119 @@
"risk-parameter",
"d3m",
"spark"
],
"1120": [
"high-impact",
"risk-parameter",
"spark"
],
"1121": [
"high-impact",
"mips"
],
"1122": [
"high-impact",
"mips"
],
"1124": [
"high-impact",
"collateral-onboard",
"risk-parameter",
"psm"
],
"1125": [
"medium-impact",
"collateral-onboard",
"risk-parameter",
"d3m",
"spark"
],
"1126": [
"high-impact",
"risk-parameter",
"spark"
],
"1127": [
"high-impact",
"mips"
],
"1128": [
"high-impact",
"risk-parameter",
"psm"
],
"1129": [
"high-impact",
"ratification",
"mips"
],
"1130": [
"high-impact",
"mips"
],
"1131": [
"medium-impact",
"spark"
],
"1132": [
"high-impact",
"oracle",
"spark"
],
"1133": [
"high-impact",
"misc-governance",
"risk-parameter",
"endgame"
],
"1134": [
"high-impact",
"technical",
"endgame",
"spark"
],
"1135": [
"high-impact",
"collateral-offboard"
],
"1136": [
"high-impact",
"collateral-offboard"
],
"1137": [
"high-impact",
"collateral-offboard"
],
"1138": [
"high-impact",
"collateral-offboard"
],
"1139": [
"high-impact",
"collateral-offboard"
],
"1140": [
"high-impact",
"risk-parameter"
],
"1141": [
"high-impact",
"collateral-onboard",
"spark"
],
"1142": [
"high-impact",
"mips"
],
"1143": [
"high-impact",
"collateral-onboard",
"collateral-offboard",
"risk-parameter",
"psm"
],
"1144": [
"high-impact",
"endgame"
]
}
3 changes: 2 additions & 1 deletion modules/web3/connections/CustomizedBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import logger from 'lib/logger';

export class CustomizedBridge extends Eip1193Bridge {
chainId = SupportedChainId.TENDERLY;
chainIdHex = '0x1df2041';
chainIdHex = `0x${this.chainId.toString(16)}`;

address: string;

setAddress(add: string) {
Expand Down
2 changes: 1 addition & 1 deletion modules/web3/constants/chainID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export enum SupportedChainId {
MAINNET = 1,
ARBITRUM = 42161,
ARBITRUMTESTNET = 421614,
TENDERLY = 31400001
TENDERLY = 314311
}
2 changes: 1 addition & 1 deletion modules/web3/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const CHAIN_INFO: ChainInfo = {
defaultRpc: NodeProviders.TENDERLY,
spockUrl: TENDERLY_SPOCK_URL,
rpcs: {
[NodeProviders.TENDERLY]: TENDERLY_RPC_URL || `https://virtual.mainnet.rpc.tenderly.co/${config.TENDERLY_RPC_KEY}`
[NodeProviders.TENDERLY]: config.USE_MOCK_WALLET && TENDERLY_RPC_URL ? TENDERLY_RPC_URL : `https://virtual.mainnet.rpc.tenderly.co/${config.TENDERLY_RPC_KEY}`
},
showInProduction: false
}
Expand Down
2 changes: 1 addition & 1 deletion playwright/esmodule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';
import { connectWallet, closeModal } from './shared';
import './forkVnet';

test('Input 150,000MKR and burn it', async ({ page }) => {
test.skip('Input 150,000MKR and burn it', async ({ page }) => {
await page.goto('/esmodule');

await expect(page.locator('text=Emergency Shutdown Module')).toBeVisible();
Expand Down
6 changes: 3 additions & 3 deletions playwright/forkVnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test.afterAll(async () => {
export const setEthBalance = async (address: string, amount: string) => {
const file = await readFile('./tenderlyTestnetData.json', 'utf-8');
const { TENDERLY_RPC_URL } = JSON.parse(file);

const hexAmount = hexlify(parseEther(amount)).replace(/^0x0/, '0x');
const response = await fetch(TENDERLY_RPC_URL, {
method: 'POST',
headers: {
Expand All @@ -36,7 +36,7 @@ export const setEthBalance = async (address: string, amount: string) => {
},
body: JSON.stringify({
method: 'tenderly_setBalance',
params: [[address], hexlify(parseEther(amount))],
params: [[address], hexAmount],
id: 42,
jsonrpc: '2.0'
})
Expand Down Expand Up @@ -88,7 +88,7 @@ const forkVnet = async (displayName: string) => {
],
method: 'POST',
body: JSON.stringify({
srcContainerId: '15f151cf-8db9-4eca-bb64-ff557c753605', //id for mainnet-fork (https://api.tenderly.co/api/v1/makerdao/testnets)
srcContainerId: 'a3cdcbc9-56a7-4583-bb2d-705f3bd58e43', //id for e2e-testing-aug-28-fork
dstContainerDisplayName: displayName
})
}
Expand Down

0 comments on commit d70b7fd

Please sign in to comment.