Support local deploys for agent development (#234)
* Support local deploys for agent development * Write out base db path * PR reviewnambrot/fix-contracts-metrics
parent
649001d179
commit
f04959a57b
@ -0,0 +1,68 @@ |
||||
{ |
||||
"environment": "local", |
||||
"signers": { |
||||
"alfajores": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"kovan": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"fuji": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"mumbai": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
} |
||||
}, |
||||
"replicas": { |
||||
"kovan": { |
||||
"address": "0x67d269191c92Caf3cD7723F116c85e6E9bf55933", |
||||
"domain": "3000", |
||||
"name": "kovan", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"fuji": { |
||||
"address": "0x809d550fca64d94Bd9F66E60752A544199cfAC3D", |
||||
"domain": "43113", |
||||
"name": "fuji", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"mumbai": { |
||||
"address": "0xdbC43Ba45381e02825b14322cDdd15eC4B3164E6", |
||||
"domain": "80001", |
||||
"name": "mumbai", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
} |
||||
}, |
||||
"home": { |
||||
"address": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707", |
||||
"domain": "1000", |
||||
"name": "alfajores", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"tracing": { |
||||
"level": "debug", |
||||
"fmt": "json" |
||||
}, |
||||
"db": "db_path" |
||||
} |
@ -0,0 +1,68 @@ |
||||
{ |
||||
"environment": "local", |
||||
"signers": { |
||||
"fuji": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"alfajores": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"kovan": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"mumbai": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
} |
||||
}, |
||||
"replicas": { |
||||
"alfajores": { |
||||
"address": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82", |
||||
"domain": "1000", |
||||
"name": "alfajores", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"kovan": { |
||||
"address": "0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB", |
||||
"domain": "3000", |
||||
"name": "kovan", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"mumbai": { |
||||
"address": "0xDC11f7E700A4c898AE5CAddB1082cFfa76512aDD", |
||||
"domain": "80001", |
||||
"name": "mumbai", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
} |
||||
}, |
||||
"home": { |
||||
"address": "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF", |
||||
"domain": "43113", |
||||
"name": "fuji", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"tracing": { |
||||
"level": "debug", |
||||
"fmt": "json" |
||||
}, |
||||
"db": "db_path" |
||||
} |
@ -0,0 +1,68 @@ |
||||
{ |
||||
"environment": "local", |
||||
"signers": { |
||||
"kovan": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"alfajores": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"fuji": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"mumbai": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
} |
||||
}, |
||||
"replicas": { |
||||
"alfajores": { |
||||
"address": "0x610178dA211FEF7D417bC0e6FeD39F05609AD788", |
||||
"domain": "1000", |
||||
"name": "alfajores", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"fuji": { |
||||
"address": "0x5f3f1dBD7B74C6B46e8c44f98792A1dAf8d69154", |
||||
"domain": "43113", |
||||
"name": "fuji", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"mumbai": { |
||||
"address": "0x21dF544947ba3E8b3c32561399E88B52Dc8b2823", |
||||
"domain": "80001", |
||||
"name": "mumbai", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
} |
||||
}, |
||||
"home": { |
||||
"address": "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f", |
||||
"domain": "3000", |
||||
"name": "kovan", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"tracing": { |
||||
"level": "debug", |
||||
"fmt": "json" |
||||
}, |
||||
"db": "db_path" |
||||
} |
@ -0,0 +1,68 @@ |
||||
{ |
||||
"environment": "local", |
||||
"signers": { |
||||
"mumbai": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"alfajores": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"kovan": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
}, |
||||
"fuji": { |
||||
"key": "", |
||||
"type": "hexKey" |
||||
} |
||||
}, |
||||
"replicas": { |
||||
"alfajores": { |
||||
"address": "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1", |
||||
"domain": "1000", |
||||
"name": "alfajores", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"kovan": { |
||||
"address": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8", |
||||
"domain": "3000", |
||||
"name": "kovan", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"fuji": { |
||||
"address": "0x82e01223d51Eb87e16A03E24687EDF0F294da6f1", |
||||
"domain": "43113", |
||||
"name": "fuji", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
} |
||||
}, |
||||
"home": { |
||||
"address": "0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07", |
||||
"domain": "80001", |
||||
"name": "mumbai", |
||||
"rpcStyle": "ethereum", |
||||
"connection": { |
||||
"type": "http", |
||||
"url": "" |
||||
} |
||||
}, |
||||
"tracing": { |
||||
"level": "debug", |
||||
"fmt": "json" |
||||
}, |
||||
"db": "db_path" |
||||
} |
@ -0,0 +1,17 @@ |
||||
import { AgentConfig, DeployEnvironment } from '../../../src/config'; |
||||
|
||||
export const agentConfig: AgentConfig = { |
||||
environment: DeployEnvironment.local, |
||||
namespace: 'abacus-local', |
||||
runEnv: 'local', |
||||
docker: { |
||||
repo: 'gcr.io/abacus-labs/abacus-agent', |
||||
tag: 'e3c1b3bdcc8f92d506626785e4e7c058ba8d79be', |
||||
}, |
||||
validator: { |
||||
interval: 5, |
||||
}, |
||||
relayer: { |
||||
interval: 5, |
||||
}, |
||||
}; |
@ -0,0 +1,14 @@ |
||||
import { createAgentGCPKeys } from '../src/agents/gcp'; |
||||
import { getEnvironment, getChainConfigs } from './utils'; |
||||
|
||||
async function main() { |
||||
const environment = await getEnvironment(); |
||||
const chains = await getChainConfigs(environment); |
||||
|
||||
return createAgentGCPKeys( |
||||
environment, |
||||
Object.values(chains).map((c) => c.name), |
||||
); |
||||
} |
||||
|
||||
main().then(console.log).catch(console.error); |
@ -0,0 +1,14 @@ |
||||
import { deleteAgentGCPKeys } from '../src/agents/gcp'; |
||||
import { getEnvironment, getChainConfigsRecord } from './utils'; |
||||
|
||||
async function main() { |
||||
const environment = await getEnvironment(); |
||||
const chains = await getChainConfigsRecord(environment); |
||||
|
||||
return deleteAgentGCPKeys( |
||||
environment, |
||||
Object.values(chains).map((c) => c.name), |
||||
); |
||||
} |
||||
|
||||
main().then(console.log).catch(console.error); |
@ -1,12 +0,0 @@ |
||||
import { createAgentGCPKeys } from '../../src/agents/gcp'; |
||||
import { getChains } from '../../config/environments/dev/chains'; |
||||
|
||||
async function main() { |
||||
const chains = await getChains(); |
||||
return createAgentGCPKeys( |
||||
'dev', |
||||
chains.map((c) => c.name), |
||||
); |
||||
} |
||||
|
||||
main().then(console.log).catch(console.error); |
@ -1,12 +0,0 @@ |
||||
import { deleteAgentGCPKeys } from '../../src/agents/gcp'; |
||||
import { getChains } from '../../config/environments/dev/chains'; |
||||
|
||||
async function main() { |
||||
const chains = await getChains(); |
||||
return deleteAgentGCPKeys( |
||||
'dev', |
||||
chains.map((c) => c.name), |
||||
); |
||||
} |
||||
|
||||
main().then(console.log).catch(console.error); |
Loading…
Reference in new issue