Skip to content

Commit

Permalink
add migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jollyjoker992 committed Jun 18, 2024
1 parent b5d26d3 commit 02ab0ad
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
46 changes: 46 additions & 0 deletions migrations/320_feralfile_exhibition_v4_2.js
Original file line number Diff line number Diff line change
@@ -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
);
};
11 changes: 11 additions & 0 deletions migrations/321_feralfile_vault_v2.js
Original file line number Diff line number Diff line change
@@ -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);
};

0 comments on commit 02ab0ad

Please sign in to comment.