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

more tenderly updates #876

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the plan is to only support Mainnet and Tenderly I think this can just point to the mainnet repo (no need for test repo). Same for the delegates repo in the following file

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
Loading