truffle 框架
This commit is contained in:
parent
c914473c5c
commit
a1c481cef4
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
truffle compile && truffle migrate --reset && cp build/contracts/DeviceManager.json frontend/src/artifacts/DeviceManager.json
|
|
@ -0,0 +1,5 @@
|
|||
var Migrations = artifacts.require("./Migrations.sol");
|
||||
|
||||
module.exports = function(deployer) {
|
||||
deployer.deploy(Migrations);
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
var DeviceManager = artifacts.require("./DeviceManager.sol");
|
||||
|
||||
module.exports = function(deployer) {
|
||||
deployer.deploy(DeviceManager);
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"truffle": "^5.11.5"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
module.exports = {
|
||||
networks: {
|
||||
development: {
|
||||
host: "127.0.0.1",
|
||||
port: 8545,
|
||||
network_id: "*"
|
||||
}
|
||||
}
|
||||
};
|
|
@ -0,0 +1,9 @@
|
|||
module.exports = {
|
||||
networks: {
|
||||
development: {
|
||||
host: "127.0.0.1",
|
||||
port: 8545,
|
||||
network_id: "*"
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue