DAPP代幣合約流動(dòng)性質(zhì)押LP挖礦分紅系統(tǒng)開發(fā)邏輯方案/規(guī)則玩法/案例詳情/源碼功能
Web3.0致力于改變中心化平臺(tái)對(duì)數(shù)據(jù)的控制,從這個(gè)角度來看,Web3.0項(xiàng)目不會(huì)將數(shù)據(jù)存儲(chǔ)在中心化的服務(wù)器中。因此,Web3.0項(xiàng)目會(huì)有海量的數(shù)據(jù)存儲(chǔ)需求,分布式存儲(chǔ)是重要基礎(chǔ)設(shè)施。
公鏈?zhǔn)荳eb3.0的核心載體,支持互操作、賦權(quán)賦能和信用機(jī)制,以及各類應(yīng)用,Web3.0公鏈賽道主要包括Layer1、Layer2、Layer0。
Web3.0基礎(chǔ)設(shè)施主要包括節(jié)點(diǎn)基礎(chǔ)設(shè)施、存儲(chǔ)、預(yù)言機(jī)、安全審計(jì)、數(shù)據(jù)分析平臺(tái)、錢包、開發(fā)工具等。For example,the storage of wallet service users'assets on the chain is an important entrance to Web3.0,such as Metamask(Cryptocurrency wallet),WalletConnect(wallet general protocol),etc.
區(qū)塊鏈技術(shù)由此可以從多方面為企業(yè)賦能:提供可靠的共享數(shù)據(jù),在各方之間建立信任;Eliminate data silos,that is,integrate data into a system through centralized,shared ledgers on a network that support licensee access;Assign high security to data
//line6,替換路由地址
export const ROUTER_ADDRESS='0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'
//line20,增加BSC
const WETH_ONLY:ChainTokenList={
[ChainId.MAINNET]:[WETH[ChainId.MAINNET]],
[ChainId.ROPSTEN]:[WETH[ChainId.ROPSTEN]],
[ChainId.RINKEBY]:[WETH[ChainId.RINKEBY]],
[ChainId.G?RLI]:[WETH[ChainId.G?RLI]],
[ChainId.KOVAN]:[WETH[ChainId.KOVAN]],
[ChainId.BSC]:[WETH[ChainId.BSC]]
}
//line18,增加BSC
(function(ChainId){
ChainId[ChainId["MAINNET"]=1]="MAINNET";
ChainId[ChainId["ROPSTEN"]=3]="ROPSTEN";
ChainId[ChainId["RINKEBY"]=4]="RINKEBY";
ChainId[ChainId["GxD6RLI"]=5]="GxD6RLI";
ChainId[ChainId["KOVAN"]=42]="KOVAN";
ChainId[ChainId["BSC"]=97]="BSC";
})(ChainId||(ChainId={}));
//替換factory,initcode
var FACTORY_ADDRESS='0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f';
var INIT_CODE_HASH='0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f';
//line442,增加對(duì)應(yīng)的weth
var WETH=(_WETH={},_WETH[ChainId.MAINNET]=/*#__PURE__*/new Token(ChainId.MAINNET,'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',18,'WETH','Wrapped Ether'),_WETH[ChainId.ROPSTEN]=/*#__PURE__*/new Token(ChainId.ROPSTEN,'0xc778417E063141139Fce010982780140Aa0cD5Ab',18,'WETH','Wrapped Ether'),_WETH[ChainId.RINKEBY]=/*#__PURE__*/new Token(ChainId.RINKEBY,'0xc778417E063141139Fce010982780140Aa0cD5Ab',18,'WETH','Wrapped Ether'),_WETH[ChainId.G?RLI]=/*#__PURE__*/new Token(ChainId.G?RLI,'0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6',18,'WETH','Wrapped Ether'),_WETH[ChainId.KOVAN]=/*#__PURE__*/new Token(ChainId.KOVAN,'0xd0A1E359811322d97991E03f863a0C30C2cF029C',18,'WETH','Wrapped Ether'),_WETH[ChainId.BSC]=/*#__PURE__*/new Token(ChainId.BSC,'0x替換成自己的WETH地址',18,'WETH','Wrapped Ether'),_WETH);