Skip to content

Commit

Permalink
Merge pull request #876 from makerdao/tenderly-delegates
Browse files Browse the repository at this point in the history
more tenderly updates
  • Loading branch information
tyler17 authored Apr 24, 2024
2 parents 0059265 + 886da40 commit c9f1993
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ GASLESS_WEBHOOK_URL=
GASLESS_DISABLED=false
DASHBOARD_PASSWORD=
NEXT_PUBLIC_TENDERLY_RPC_KEY=
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=

# this is used to determine which database to fetch data from
NEXT_PUBLIC_VERCEL_ENV=development
3 changes: 2 additions & 1 deletion modules/avcs/api/getAvcsRepositoryInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function getAvcsRepositoryInformation(network: SupportedNetworks): Reposi
page: 'delegates/templates'
};

const avcsRepositoryInfo = network === SupportedNetworks.MAINNET ? repoMainnet : repoTest;
const avcsRepositoryInfo =
network === SupportedNetworks.MAINNET || network === SupportedNetworks.TENDERLY ? repoMainnet : repoTest;
return avcsRepositoryInfo;
}
3 changes: 2 additions & 1 deletion modules/delegates/api/getDelegatesRepositoryInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function getDelegatesRepositoryInformation(network: SupportedNetworks): R
page: 'delegates'
};

const delegatesRepositoryInfo = network === SupportedNetworks.MAINNET ? repoMainnet : repoTest;
const delegatesRepositoryInfo =
network === SupportedNetworks.MAINNET || SupportedNetworks.TENDERLY ? repoMainnet : repoTest;
return delegatesRepositoryInfo;
}
1 change: 1 addition & 0 deletions modules/gql/gql.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const LOCAL_SPOCK_URL = 'http://localhost:3001/v1';
export const GOERLI_SPOCK_URL = 'https://pollingdb2-goerli-staging.makerdux.com/api/v1';
export const STAGING_MAINNET_SPOCK_URL = 'https://pollingdb2-mainnet-staging.makerdux.com/api/v1';
export const MAINNET_SPOCK_URL = 'https://pollingdb2-mainnet-prod.makerdux.com/api/v1';
export const TENDERLY_SPOCK_URL = 'https://pollingdb2-tenderly-staging.makerdux.com/api/v1';

export enum QueryFilterNames {
Active = 'active',
Expand Down
5 changes: 3 additions & 2 deletions modules/web3/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
MAINNET_SPOCK_URL,
STAGING_MAINNET_SPOCK_URL,
GOERLI_SPOCK_URL,
LOCAL_SPOCK_URL
LOCAL_SPOCK_URL,
TENDERLY_SPOCK_URL
} from 'modules/gql/gql.constants';

export enum SupportedConnectors {
Expand Down Expand Up @@ -128,7 +129,7 @@ export const CHAIN_INFO: ChainInfo = {
type: 'normal',
network: SupportedNetworks.TENDERLY,
defaultRpc: NodeProviders.TENDERLY,
spockUrl: STAGING_MAINNET_SPOCK_URL,
spockUrl: TENDERLY_SPOCK_URL,
rpcs: {
[NodeProviders.TENDERLY]: `https://virtual.mainnet.rpc.tenderly.co/${config.TENDERLY_RPC_KEY}`
},
Expand Down

0 comments on commit c9f1993

Please sign in to comment.