From 02ab0ad07bddefe501d8399af335c53ce591ad72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hi=E1=BA=BFu=20Ph=E1=BA=A1m?= Date: Tue, 18 Jun 2024 13:18:21 +0700 Subject: [PATCH] add migration scripts --- migrations/320_feralfile_exhibition_v4_2.js | 46 +++++++++++++++++++++ migrations/321_feralfile_vault_v2.js | 11 +++++ 2 files changed, 57 insertions(+) create mode 100644 migrations/320_feralfile_exhibition_v4_2.js create mode 100644 migrations/321_feralfile_vault_v2.js diff --git a/migrations/320_feralfile_exhibition_v4_2.js b/migrations/320_feralfile_exhibition_v4_2.js new file mode 100644 index 0000000..4c4b3ac --- /dev/null +++ b/migrations/320_feralfile_exhibition_v4_2.js @@ -0,0 +1,46 @@ +var FeralfileExhibitionV4_2 = artifacts.require("FeralfileExhibitionV4_2"); + +const argv = require("minimist")(process.argv.slice(2), { + string: [ + "exhibition_signer", + "exhibition_vault", + "exhibition_cost_receiver", + ], +}); + +module.exports = function (deployer) { + let exhibition_name = argv.exhibition_name || "crystalline work"; + let exhibition_symbol = argv.exhibition_symbol || "FERALFILE"; + let exhibition_signer = + argv.exhibition_signer || "0xBEb9F810862c40A144925f568b1853d72Acc492F"; + let exhibition_vault = + argv.exhibition_vault || "0xcBFaf4BDE69C9b37835761E5228f9fe9E25b452f"; + let exhibition_cost_receiver = + argv.exhibition_cost_receiver || + "0x080FEB125bA730D6D12789B6AAAB01f4E31D8Bd1"; + let burnable = argv.burnable || true; + let bridgeable = argv.bridgeable || true; + let contract_uri = + argv.contract_uri || + "ipfs://QmZuygbgeVDZ8NBBpD3oSVUAibTTgKYnKvYWikdGp7HwNb"; + let series_ids = argv.series_ids || [1]; + let max_supplies = argv.max_supplies || [9048]; + let next_purchasable_tokens = argv.next_purchasable_tokens || [ + "31946296525744824328753280828797417080692251952513183340713878305007073182561", + ]; + + deployer.deploy( + FeralfileExhibitionV4_2, + exhibition_name, + exhibition_symbol, + burnable, + bridgeable, + exhibition_signer, + exhibition_vault, + exhibition_cost_receiver, + contract_uri, + series_ids, + max_supplies, + next_purchasable_tokens + ); +}; diff --git a/migrations/321_feralfile_vault_v2.js b/migrations/321_feralfile_vault_v2.js new file mode 100644 index 0000000..9cc7868 --- /dev/null +++ b/migrations/321_feralfile_vault_v2.js @@ -0,0 +1,11 @@ +var FeralfileVaultV2 = artifacts.require("FeralfileVaultV2"); + +const argv = require("minimist")(process.argv.slice(2), { + string: ["exhibition_signer"], +}); + +module.exports = function (deployer) { + let exhibition_signer = + argv.exhibition_signer || "0xBEb9F810862c40A144925f568b1853d72Acc492F"; + deployer.deploy(FeralfileVaultV2, exhibition_signer); +};