当前位置:网站首页>Remix localization, loading local contract file, local link Remix

Remix localization, loading local contract file, local link Remix

2022-06-11 23:26:00 Muziyang 555

Intelligent contract IDE, Online comparison card , And switching networks faces the risk of file loss , Select local build Solidity Local editing environment ,Remix-IDE + Remixd Combine , Load local contract code . Two tools are used here :

Remix IDE( Local IDE)+ Remixd ( link )
Remix IDE
Project source code :https://github.com/ethereum/remix-project

Introduce : Remix IDE Is a local deployment run , Browser based compiler and IDE, Allow users to use Solidity Language to build Ethereum contracts and debug transactions . To put it bluntly, it is a local version Remix.

Remixd
Project source code :https://github.com/ethereum/remixd

Introduce :Remixd It's a relationship with Remix IDE Tools used together . It allows Remix IDE (web Applications ) And the local computer websocket Connect . actually Remix IDE Make available by Remixd Shared folders . To put it bluntly, just provide a local file directory and Remix IDE Linked Services .

Deployment process

Remix IDE

#  Install the front 
npm install -g @nrwl/cli

#  Download the source code 
git clone https://github.com/ethereum/remix-project.git

# build Source code 
cd remix-project
npm install
npm run build:libs // Build remix libs
nx build

#  start-up 
nx serve

Browser input http://127.0.0.1:8080

So our Remix-IDE Deployment completed , Now let's deploy Remixd, And complete the local file link test

Remixd

#  install remixd
npm install -g remixd

#  Create a new folder to store contract files 
mkdir remix-project

#  Link , It can also be used to link online Remix
remixd -s ./ --remix-ide http://127.0.0.1:8080

Select activate... In the tool REMIXD

Click the link

choice “localhost”

Localization is now complete , You can write the contract safely ~

原网站

版权声明
本文为[Muziyang 555]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203011612221785.html