PtahDao普塔道/ProTradex普瑞缇流动性质押挖矿系统开发实现技术方案及代码部署
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.
智能合约dapp开发技术是一种基于区块链技术的开发技术,它可以帮助开发者快速高效地开发出功能强大、可靠性高的dapp(去中心化应用)。
dapp定制开发技术则是用于为dapp开发者提供更好的定制化开发服务,帮助开发者更快捷地构建出功能强大、可靠性高的dapp。
Web3.0基础设施主要包括节点基础设施、存储、预言机、安全审计、数据分析平台、钱包、开发工具等。开发案例唯:MrsFu123如钱包服务用户链上资产的存储,是Web3.0的重要入口,如Metamask(加密货币钱包)、WalletConnect(钱包通用协议)等
$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
},智能合约开发案例I35方案7O98系统O7I8
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
},
},