Uniswap contracts for the Litetokens blockchain – Uniswap签订LiteTokes区块链合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Uniswap contracts for the Litetokens blockchain – Uniswap签订LiteTokes区块链合同区块链毕设代写 是一篇很好的国外资料

Uniswap contracts for the Litetokens blockchain

Install dependencies:

npm install

Private key to use for deployment:

export TRON_NETWORK=shasta # export DEPLOY_PRIVATE_KEY_MAINNET=privatekey_for_mainnet export PRIVATE_KEY=yourprivatekey

Compile contracts:

npm run compile

Deploy:

npm run deploy:mainnet npm run deploy:shasta

Deploying Exchange through Tronscan

  1. Go to https://tronscan.org/#/contracts/contract-compiler and drag & drop files from ./tronscan-contracts directory.

  2. Click compile

    • Solidity version: 0.5.8_Odyssey_v3.6.0
    • Optimization: enabled
    • Runs: 200
  3. Set Contact Name to UniswapExchange.sol and click deploy (keep other parameters to their default values).

  4. Note contract address (e.g. TSpoeVoxnZHdnLopfMd5YPJyFEE2zPjb8v)

  5. Add entry to ./src/other-tokens.js with token information (token address, code and decimals). For example:

    {   "address": "TNo59Khpq46FGf4sD7XSWYFNfYfbc8CqNK",   "code": "BNKR",   "decimals": 6 }
  6. Add entry to ./addresses.json with token information (addresses in tron hex format). address is the address of the exchange previously created at step 4 and tokenAddress is the token address in tron hex format. You can use tronWeb.address.toHex('...') in browser console to convert from Tron address format to tron hex address format. The setup field should be false (meaning the exchange is not setup yet).

    For example:

       "BNKR": {      "address": "41b8e350b56e26fdc2a8cbc0700657b88587043609",      "tokenAddress": "418caeea9c7ebb8840ee4b49d10542b99cec6ffbc6",      "decimals": 6,      "setup": false    }
  7. Run npm run deploy:mainnet to setup the exchange.

Update README.md


Uniswap contracts for the Litetokens blockchain

Install dependencies:

npm install

Private key to use for deployment:

export TRON_NETWORK=shasta # export DEPLOY_PRIVATE_KEY_MAINNET=privatekey_for_mainnet export PRIVATE_KEY=yourprivatekey

Compile contracts:

npm run compile

Deploy:

npm run deploy:mainnet npm run deploy:shasta

Deploying Exchange through Tronscan

  1. Go to https://tronscan.org/#/contracts/contract-compiler and drag & drop files from ./tronscan-contracts directory.

  2. Click compile

    • Solidity version: 0.5.8_Odyssey_v3.6.0
    • Optimization: enabled
    • Runs: 200
  3. Set Contact Name to UniswapExchange.sol and click deploy (keep other parameters to their default values).

  4. Note contract address (e.g. TSpoeVoxnZHdnLopfMd5YPJyFEE2zPjb8v)

  5. Add entry to ./src/other-tokens.js with token information (token address, code and decimals). For example:

    {   "address": "TNo59Khpq46FGf4sD7XSWYFNfYfbc8CqNK",   "code": "BNKR",   "decimals": 6 }
  6. Add entry to ./addresses.json with token information (addresses in tron hex format). address is the address of the exchange previously created at step 4 and tokenAddress is the token address in tron hex format. You can use tronWeb.address.toHex('...') in browser console to convert from Tron address format to tron hex address format. The setup field should be false (meaning the exchange is not setup yet).

    For example:

       "BNKR": {      "address": "41b8e350b56e26fdc2a8cbc0700657b88587043609",      "tokenAddress": "418caeea9c7ebb8840ee4b49d10542b99cec6ffbc6",      "decimals": 6,      "setup": false    }
  7. Run npm run deploy:mainnet to setup the exchange.

Update README.md

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/21578.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Uniswap contracts for the Litetokens blockchain – Uniswap签订LiteTokes区块链合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情