MetaCoin Demo Project
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
mocha: {
enableTimeouts: false,
before_timeout: 480000
},
networks: {
Dnero_privatenet: {
provider: () => {
// private key for test wallet #1: 0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A
var privateKeyTest1 = '1111111111111111111111111111111111111111111111111111111111111111';
// private key for test wallet #2: 0x1563915e194D8CfBA1943570603F7606A3115508
var privateKeyTest2 = '2222222222222222222222222222222222222222222222222222222222222222';
return new HDWalletProvider({
privateKeys: [privateKeyTest1, privateKeyTest2],
providerOrUrl: 'http://localhost:18888/rpc',
});
},
network_id: 5467,
gasPrice: 4000000000000,
},
Dnero_testnet: {
provider: () => {
// Replace the private key below with the private key of the deployer wallet.
// Make sure the deployer wallet has a sufficient amount of Dtoken, e.g. 100 Dtoken
var deployerPrivateKey = '12345';
return new HDWalletProvider({
privateKeys: [deployerPrivateKey],
providerOrUrl: 'http://164.92.98.151:15444/rpc',
});
},
network_id: 5467,
gasPrice: 4000000000000,
},
Dnero_mainnet: {
provider: () => {
// Replace the private key below with the private key of the deployer wallet.
// Make sure the deployer wallet has a sufficient amount of Dtoken, e.g. 100 Dtoken
var deployerPrivateKey = '12345';
return new HDWalletProvider({
privateKeys: [deployerPrivateKey],
providerOrUrl: 'http://164.92.98.151:15444/rpc',
});
},
network_id: 5467,
gasPrice: 4000000000000,
}
}
};Run the MetaCoin Unit Test Suite against the DNERO Local Privatenet
Deploy the MetaCoin Contract to the Dnero Mainnet
Last updated