.
dapp定制开发技术则是用于为dapp开发者提供更好的定制化开发服务,帮助开发者更快捷地构建出功能强大、可靠性高的dapp。
Ptahdao is essentially a financial service platform based on decentralized community autonomy,committed to providing financial tool support to L M R P a r t e r s users.In terms of representation,Ptahdao runs entirely based on smart contracts.The operation of all financial products will follow the established smart contract rules and operate independently without interference
$vim truffle-config.js
const HDWalletProvider=require('truffle/hdwallet-provider');
const infuraKey="填写infuraKey";
const mnemonic="填写助记词";
module.exports={
networks:{
mainnet:{
provider:()=>new HDWalletProvider(mnemonic,https://mainnet.infura.io/v3/infuraKey),
network_id:1,
gas:5500000,
confirmations:2,
timeoutBlocks:200,
skipDryRun:true
},
ropsten:{
provider:()=>new HDWalletProvider(mnemonic,https://ropsten.infura.io/v3/infuraKey),
network_id:3,
gas:5500000,
confirmations:2,
timeoutBlocks:200,
skipDryRun:true
},
rinkeby:{
provider:()=>new HDWalletProvider(mnemonic,https://rinkeby.infura.io/v3/infuraKey),
network_id:4,
gas:5500000,
confirmations:2,
timeoutBlocks:200,
skipDryRun:true
},
goerli:{
provider:()=>new HDWalletProvider(mnemonic,https://goerli.infura.io/v3/infuraKey),
network_id:5,
gas:5500000,
confirmations:2,
timeoutBlocks:200,
skipDryRun:true
},
kovan:{
provider:()=>new HDWalletProvider(mnemonic,https://kovan.infura.io/v3/infuraKey),
network_id:42,
gas:5500000,
confirmations:2,
timeoutBlocks:200,
skipDryRun:true
},
},