Skip to content

Commit

Permalink
add mainnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
defi-dev committed Nov 10, 2023
1 parent 81e5eda commit 35232b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/ConfigGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export function getDefaultExecutorConfig() {
gas_price_priority_add_gwei: 2,
};
}

//TODO: use AVERAGE_BLOCK_TIME_SECONDS
const maxNewBlockDelayByNetwork = {
gnosis: 10,
sepolia: 20,
ethereum: 20,
mainnet: 20,
};

export function getDefaultNetworkConfig(name) {
Expand Down
9 changes: 7 additions & 2 deletions app/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AgentHardcodedConfig } from './Types';
export const MIN_EXECUTION_GAS = 55_000;

export const DEFAULT_SYNC_FROM_CHAINS: { [network: string]: number } = {
mainnet: 15665361,
mainnet: 18533834,
goerli: 7298263,
rinkeby: 11096966,
};
Expand All @@ -16,6 +16,11 @@ export const AGENT_HARDCODED_CONFIGS: { [network: string]: { [agent: string]: Ag
version: '2.2.0',
strategy: 'light',
},
'0xc9ce4CdA5897707546F3904C0FfCC6e429bC4546': {
deployedAt: 18533834,
version: '2.3.0',
strategy: 'randao',
},
},
gnosis: {
'0x071412e301C2087A4DAA055CF4aFa2683cE1e499': {
Expand Down Expand Up @@ -149,7 +154,7 @@ export const EXTERNAL_LENS_CONTRACTS_2_2_0: { [network: string]: string } = {
};

export const EXTERNAL_LENS_CONTRACTS_2_3_0: { [network: string]: string } = {
mainnet: '',
mainnet: '0xbB8dAC006c8B6F67c4bc2563b64ed669Faa54F07',
gnosis: '0x2b3d29dAa9F41c4171416Af3D66f5a2aE210616E', // v2
goerli: '0x1a348FDcD9EcB6c81CA5043B4278716189e6aEe4', // v1
sepolia: '0x42a2D286Bac644CfdB4030d96b4f7b2ad9dFA998', // v2
Expand Down
1 change: 1 addition & 0 deletions app/agents/AbstractAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ export abstract class AbstractAgent implements IAgent {
const latestBock = this.network.getLatestBlockNumber();
// 1. init jobs
let newJobs = new Map<string, RandaoJob | LightJob>();
//TODO: handle timeout error on getting all jobs from blockchain
newJobs = await this.dataSource.getRegisteredJobs(this);

// 2. set owners
Expand Down

0 comments on commit 35232b8

Please sign in to comment.