Quellcode durchsuchen

Make truffle migrations directory configurable

Tom Pointon vor 3 Jahren
Ursprung
Commit
f9b55ee633

+ 4 - 0
ethereum/.env.test

@@ -1,3 +1,7 @@
+# Migrations Metadata
+MIGRATIONS_DIR=./migrations/test
+MIGRATIONS_NETWORK=development
+
 # Wormhole Core Migrations
 INIT_SIGNERS=["0xbeFA429d57cD18b7F8A4d91A2da9AB4AF05d0FBe"]
 INIT_CHAIN_ID=0x2

+ 0 - 0
ethereum/migrations/1_initial_migration.js → ethereum/migrations/test/1_initial_migration.js


+ 0 - 0
ethereum/migrations/2_deploy_wormhole.js → ethereum/migrations/test/2_deploy_wormhole.js


+ 0 - 0
ethereum/migrations/3_deploy_bridge.js → ethereum/migrations/test/3_deploy_bridge.js


+ 0 - 0
ethereum/migrations/4_deploy_nft_bridge.js → ethereum/migrations/test/4_deploy_nft_bridge.js


+ 0 - 0
ethereum/migrations/5_deploy_pyth.js → ethereum/migrations/test/5_deploy_pyth.js


+ 0 - 0
ethereum/migrations/6_deploy_bridge_implementation_only.js → ethereum/migrations/test/6_deploy_bridge_implementation_only.js


+ 0 - 0
ethereum/migrations/9_deploy_weth9.js → ethereum/migrations/test/9_deploy_weth9.js


+ 1 - 0
ethereum/truffle-config.js

@@ -2,6 +2,7 @@ require("dotenv").config({ path: ".env" });
 const HDWalletProvider = require("@truffle/hdwallet-provider");
 
 module.exports = {
+  migrations_directory: process.env.MIGRATIONS_DIR,
   networks: {
     development: {
       host: "127.0.0.1",