From 3b0fbcbefd76bd32fe252a735d46786248978940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20D=C3=ADaz?= Date: Tue, 13 Feb 2024 09:19:28 +0100 Subject: [PATCH] chore: refactor addresses file name --- migrations/{witnet.addresses.json => addresses.json} | 5 +++-- migrations/ops/rng/sla/1_set-randomness-sla.js | 2 +- scripts/addresses.js | 2 +- scripts/vanity2gen.js | 2 +- scripts/vanity3gen.js | 2 +- src/index.js | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) rename migrations/{witnet.addresses.json => addresses.json} (83%) diff --git a/migrations/witnet.addresses.json b/migrations/addresses.json similarity index 83% rename from migrations/witnet.addresses.json rename to migrations/addresses.json index 93f402465..4326f7c85 100644 --- a/migrations/witnet.addresses.json +++ b/migrations/addresses.json @@ -15,11 +15,12 @@ "WitnetRequestBoardTrustableDefault": "0x7FEf83f7078F6135C006E770251039e59F952D2E" }, "ten:testnet": { - "WitnetErrorsLib": "0x38eB91d52dADe5B4Ded868c0eED9DdA4630AE67a", + "WitnetErrorsLib": "0x05F47A53598ff14899f7cdA2320E4D6059Aa2D91", "WitnetEncodingLib": "0x85350c3738864554993EE45b57e9B46d08b80Eec", "WitnetPriceFeedsLib": "0x65E4e65E8A0706706Fe3E9Eee01E164d12A58012", "WitnetBytecodesDefault": "0x62e9D7eD2CEB27F252E46cA52574DF75293ac733", "WitnetRequestFactoryDefault": "0xeD6b48575779e0e5b26463533084284c7235c0C4", - "WitnetRequestBoardTrustableObscuro": "0xeAcf2949b6396d4fF973Ab8A0F085F18063D61aF" + "WitnetRequestBoardTrustableObscuro": "0x4b9afCCb4f1A1827B080b38ae23D09AbA2243ec3", + "WitnetRequestBoardTrustableDefault": "0x1B059f8B478312c25e6fBEF5a147121059E53cB3" } } \ No newline at end of file diff --git a/migrations/ops/rng/sla/1_set-randomness-sla.js b/migrations/ops/rng/sla/1_set-randomness-sla.js index 0e53eeef1..50b753ff3 100644 --- a/migrations/ops/rng/sla/1_set-randomness-sla.js +++ b/migrations/ops/rng/sla/1_set-randomness-sla.js @@ -1,4 +1,4 @@ -const addresses = require("../../../witnet.addresses") +const addresses = require("../../../addresses") const utils = require("../../../../scripts/utils") const WitnetRandomness = artifacts.require("WitnetRandomness") diff --git a/scripts/addresses.js b/scripts/addresses.js index ba962c6d3..12af4b0e4 100644 --- a/scripts/addresses.js +++ b/scripts/addresses.js @@ -1,4 +1,4 @@ -let addresses = require("../migrations/witnet.addresses") +let addresses = require("../migrations/addresses") let realm, network if (process.argv.length >= 3) { network = process.argv[2].toLowerCase() diff --git a/scripts/vanity2gen.js b/scripts/vanity2gen.js index 489d1a693..4b3847d7a 100644 --- a/scripts/vanity2gen.js +++ b/scripts/vanity2gen.js @@ -3,7 +3,7 @@ const create2 = require("./eth-create2") const fs = require("fs") const utils = require("../src/utils") -const addresses = require("../migrations/witnet.addresses") +const addresses = require("../migrations/addresses") module.exports = async function () { let artifact diff --git a/scripts/vanity3gen.js b/scripts/vanity3gen.js index 24a7bed59..6b20d7e45 100644 --- a/scripts/vanity3gen.js +++ b/scripts/vanity3gen.js @@ -3,7 +3,7 @@ const create3 = require("./eth-create3") const fs = require("fs") const utils = require("../src/utils") -const addresses = require("../migrations/witnet.addresses") +const addresses = require("../migrations/addresses") module.exports = async function () { let count = 0 diff --git a/src/index.js b/src/index.js index f688d1a41..a516bdf99 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -const addresses = require("../migrations/witnet.addresses.json") +const addresses = require("../migrations/addresses.json") const merge = require("lodash.merge") const utils = require("./utils") module.exports = {