-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_deploy_contracts.js
41 lines (30 loc) · 1.31 KB
/
2_deploy_contracts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Fetch the xxx contract data from the xxx.json file
const AuctionManagement = artifacts.require("AuctionManagement")
//const AuctionBidding = artifacts.require("AuctionBidding")
//const AuctionDataModel = artifacts.require("AuctionDataModel")
const NFTbC = artifacts.require("NFTbC")
//const Escrow = artifacts.require("Escrow")
// JavaScript export
module.exports = async function(deployer) {
// Deployer is the Truffle wrapper for deploying contracts to the network
let totalSupply = 1000000
console.log("1111111111111111111111111")
// Deploy NFTbC_ERC20 contract
deployer.deploy(NFTbC, totalSupply)
const nFTbC = await NFTbC.deployed()
console.log("nFTbC Address:" + nFTbC.address)
console.log("2222222222222222222222222")
//Deploy AuctionManagement contract
deployer.deploy(AuctionManagement)
const auctionManagement = await AuctionManagement.deployed()
console.log("33333333333333333333333")
console.log("AM Address:" + auctionManagement.address)
// Deploy Escrow contract
// deployer.deploy(Escrow, auctionManagement.address);
// const escrow = await Escrow.deployed()
// console.log("4444444444444444444444444")
// console.log("Escr address: "+ escrow.address)
// Deploy AuctionBidding contract
deployer.deploy(AuctionBidding)
const auctionBidding = await AuctionBidding.deployed()
}