Skip to content

Commit

Permalink
chore: remove timestamp from deployment task output (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Nov 29, 2022
1 parent a74e4c4 commit 0f434b5
Show file tree
Hide file tree
Showing 260 changed files with 441 additions and 701 deletions.
2 changes: 1 addition & 1 deletion pkg/deployments/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ task('save-action-ids', `Print the action IDs for a particular contract and chec
const outputFilePath = path.resolve(outputDir, outputFile);
if (outputFile.includes(hre.network.name) && statSync(outputFilePath).isFile()) {
const fileContents = JSON.parse(readFileSync(outputFilePath).toString());
const contractNames = Object.keys(fileContents).filter((name) => name !== 'timestamp');
const contractNames = Object.keys(fileContents);

for (const contractName of contractNames) {
await saveActionIds(task, contractName);
Expand Down
4 changes: 1 addition & 3 deletions pkg/deployments/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export function saveContractDeploymentAddresses(task: Task): void {
if (task.network === 'hardhat') return;

const newEntries = Object.fromEntries(
Object.entries(task.output({ ensure: false }))
.filter(([name]) => name !== 'timestamp')
.map(([name, address]) => [address, { task: task.id, name }])
Object.entries(task.output({ ensure: false })).map(([name, address]) => [address, { task: task.id, name }])
);

const filePath = path.join(CONTRACT_ADDRESSES_DIRECTORY, `${task.network}.json`);
Expand Down
3 changes: 1 addition & 2 deletions pkg/deployments/src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ export default class Task {
}

private _write(path: string, output: Output): void {
const timestamp = new Date().getTime();
const finalOutputJSON = JSON.stringify({ ...output, timestamp }, null, 2);
const finalOutputJSON = JSON.stringify(output, null, 2);
fs.writeFileSync(path, finalOutputJSON);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6",
"timestamp": 1629840766973
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6"
}
5 changes: 2 additions & 3 deletions pkg/deployments/tasks/20210418-authorizer/output/bsc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6",
"timestamp": 1667337886920
}
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6"
}
5 changes: 2 additions & 3 deletions pkg/deployments/tasks/20210418-authorizer/output/gnosis.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6",
"timestamp": 1667328578460
}
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6",
"timestamp": 1651613981863
}
"Authorizer": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6"
}
3 changes: 1 addition & 2 deletions pkg/deployments/tasks/20210418-vault/output/arbitrum.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"timestamp": 1653679382263,
"BalancerHelpers": "0x77d46184d22CA6a3726a2F500c776767b6A3d6Ab",
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F"
}
}
3 changes: 1 addition & 2 deletions pkg/deployments/tasks/20210418-vault/output/bsc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"timestamp": 1667338929218,
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F",
"BalancerHelpers": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9"
}
}
3 changes: 1 addition & 2 deletions pkg/deployments/tasks/20210418-vault/output/gnosis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"timestamp": 1667330400655,
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F",
"BalancerHelpers": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9"
}
}
5 changes: 2 additions & 3 deletions pkg/deployments/tasks/20210418-vault/output/kovan.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"BalancerHelpers": "0x94905e703fEAd7f0fD0eEe355D267eE909784e6d",
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F",
"timestamp": 1653679478406
}
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F"
}
5 changes: 2 additions & 3 deletions pkg/deployments/tasks/20210418-vault/output/mainnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"BalancerHelpers": "0x5aDDCCa35b7A0D07C74063c48700C8590E87864E",
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F",
"timestamp": 1653679599312
}
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F"
}
3 changes: 1 addition & 2 deletions pkg/deployments/tasks/20210418-vault/output/optimism.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"timestamp": 1653679552374,
"BalancerHelpers": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9",
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F"
}
}
3 changes: 1 addition & 2 deletions pkg/deployments/tasks/20210418-vault/output/polygon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"BalancerHelpers": "0x239e55F427D44C3cc793f49bFB507ebe76638a2b",
"timestamp": 1653679527016,
"ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"WstETHRateProvider": "0x80a94F458491CA88F09767E58a92FD23Cbf1196F",
"timestamp": 1654186218713
}
"WstETHRateProvider": "0x80a94F458491CA88F09767E58a92FD23Cbf1196F"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"WstETHRateProvider": "0xD7FAD3bd59D6477cbe1BE7f646F7f1BA25b230f8",
"timestamp": 1628803356923
}
"WstETHRateProvider": "0xD7FAD3bd59D6477cbe1BE7f646F7f1BA25b230f8"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"WstETHRateProvider": "0x72D07D7DcA67b8A406aD1Ec34ce969c90bFEE768",
"timestamp": 1628810530447
}
"WstETHRateProvider": "0x72D07D7DcA67b8A406aD1Ec34ce969c90bFEE768"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x1802953277FD955f9a254B80Aa0582f193cF1d77",
"timestamp": 1642773390198
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x1802953277FD955f9a254B80Aa0582f193cF1d77"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD",
"timestamp": 1667339543515
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xB0C726778C3AE4B3454D85557A48e8fa502bDD6A",
"timestamp": 1654189735602
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xB0C726778C3AE4B3454D85557A48e8fa502bDD6A"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x1B57f637Ce3408f1f834b0b70f9A595b062DAea7",
"timestamp": 1638487891078
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x1B57f637Ce3408f1f834b0b70f9A595b062DAea7"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e",
"timestamp": 1638488316522
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xf302f9F50958c5593770FDf4d4812309fF77414f",
"timestamp": 1651618264756
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xf302f9F50958c5593770FDf4d4812309fF77414f"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac",
"timestamp": 1638488443986
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac",
"timestamp": 1638488066959
}
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e",
"timestamp": 1648224647818
}
"AuthorizerAdaptor": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac",
"timestamp": 1667339080726
}
"AuthorizerAdaptor": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x5aDDCCa35b7A0D07C74063c48700C8590E87864E",
"timestamp": 1667330454410
}
"AuthorizerAdaptor": "0x5aDDCCa35b7A0D07C74063c48700C8590E87864E"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x5D90225De345eE24d1d2B6F45DE90B056F5265A1",
"timestamp": 1654308960531
}
"AuthorizerAdaptor": "0x5D90225De345eE24d1d2B6F45DE90B056F5265A1"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x97207B095e4D5C9a6e4cfbfcd2C3358E03B90c4A",
"timestamp": 1648224520597
}
"AuthorizerAdaptor": "0x97207B095e4D5C9a6e4cfbfcd2C3358E03B90c4A"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x8F42aDBbA1B16EaAE3BB5754915E0D06059aDd75",
"timestamp": 1648224927385
}
"AuthorizerAdaptor": "0x8F42aDBbA1B16EaAE3BB5754915E0D06059aDd75"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0x8F42aDBbA1B16EaAE3BB5754915E0D06059aDd75",
"timestamp": 1651617955002
}
"AuthorizerAdaptor": "0x8F42aDBbA1B16EaAE3BB5754915E0D06059aDd75"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"AuthorizerAdaptor": "0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD",
"timestamp": 1648224711149
}
"AuthorizerAdaptor": "0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"BALTokenHolderFactory": "0x45E617B07021B97407367624648d1A0A358a751A",
"timestamp": 1654310791791
}
"BALTokenHolderFactory": "0x45E617B07021B97407367624648d1A0A358a751A"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"BALTokenHolderFactory": "0xa98Bce70c92aD2ef3288dbcd659bC0d6b62f8F13",
"timestamp": 1648242350188
}
"BALTokenHolderFactory": "0xa98Bce70c92aD2ef3288dbcd659bC0d6b62f8F13"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"BALTokenHolderFactory": "0xB848f50141F3D4255b37aC288C25C109104F2158",
"timestamp": 1648242298483
}
"BALTokenHolderFactory": "0xB848f50141F3D4255b37aC288C25C109104F2158"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"BalancerTokenAdmin": "0x0F32D7D830E20809Bcb9071581A696135dD472B7",
"timestamp": 1654309726101
}
"BalancerTokenAdmin": "0x0F32D7D830E20809Bcb9071581A696135dD472B7"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"BalancerTokenAdmin": "0xAB093cd16e765b5B23D34030aaFaF026558e0A19",
"timestamp": 1648228541609
}
"BalancerTokenAdmin": "0xAB093cd16e765b5B23D34030aaFaF026558e0A19"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"BalancerTokenAdmin": "0xf302f9F50958c5593770FDf4d4812309fF77414f",
"timestamp": 1648228794235
}
"BalancerTokenAdmin": "0xf302f9F50958c5593770FDf4d4812309fF77414f"
}
5 changes: 2 additions & 3 deletions pkg/deployments/tasks/20220325-gauge-adder/output/goerli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"GaugeAdder": "0x0Df18b22fB1DD4c1D4bfBF783A8acF0758979328",
"timestamp": 1654310719343
}
"GaugeAdder": "0x0Df18b22fB1DD4c1D4bfBF783A8acF0758979328"
}
5 changes: 2 additions & 3 deletions pkg/deployments/tasks/20220325-gauge-adder/output/kovan.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"GaugeAdder": "0x1c99324EDC771c82A0DCCB780CC7DDA0045E50e7",
"timestamp": 1648241992774
}
"GaugeAdder": "0x1c99324EDC771c82A0DCCB780CC7DDA0045E50e7"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"GaugeAdder": "0xEd5ba579bB5D516263ff6E1C10fcAc1040075Fe2",
"timestamp": 1648242136547
}
"GaugeAdder": "0xEd5ba579bB5D516263ff6E1C10fcAc1040075Fe2"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"VotingEscrow": "0x33A99Dcc4C85C014cf12626959111D5898bbCAbF",
"timestamp": 1654309831399,
"GaugeController": "0xBB1CE49b16d55A1f2c6e88102f32144C7334B116",
"BalancerMinter": "0xdf0399539A72E2689B8B2DD53C3C2A0883879fDd"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"VotingEscrow": "0x16ba924752EF283C7946db8A122a6742AA35C1DC",
"timestamp": 1648232238246,
"GaugeController": "0x35c425234DC42e7402f54cC54573f77842963a56",
"BalancerMinter": "0x1bbfa323155526F54EEc458571Bb5A75e0c41507"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"VotingEscrow": "0xC128a9954e6c874eA3d62ce62B468bA073093F25",
"timestamp": 1648232658464,
"GaugeController": "0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD",
"BalancerMinter": "0x239e55F427D44C3cc793f49bFB507ebe76638a2b"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"SingleRecipientGaugeFactory": "0xd14FFA46C211eac64338c27549c3312380f850Fa",
"timestamp": 1654310960332
}
"SingleRecipientGaugeFactory": "0xd14FFA46C211eac64338c27549c3312380f850Fa"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"SingleRecipientGaugeFactory": "0x866D4B65694c66fbFD15Dd6fa933D0A6b3940A36",
"timestamp": 1648242600810
}
"SingleRecipientGaugeFactory": "0x866D4B65694c66fbFD15Dd6fa933D0A6b3940A36"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"SingleRecipientGaugeFactory": "0x94f68b54191F62f781Fe8298A8A5Fa3ed772d227",
"timestamp": 1648242679621,
"SingleRecipientGauge": "0x5D3d2D18148baAcE45D09254513BcF2C548C4480"
}
Loading

0 comments on commit 0f434b5

Please sign in to comment.