solrun – 索伦区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,solrun – 索伦区块链毕设代写 是一篇很好的国外资料

solrun

Command line tool for run solidity contract locally. based on ethereumjs-vm and soljson.js

  • default solc complier version is 0.6.12

Example

Let’s take a look!

test.sol

contract Test {      event Log(string);     event Test(string, string);      string public state;      constructor() {         state = "constructor";     }      // solrun will auto call this function      function main() external {         emit Log(state);         if (2 > 1) emit Log("failed");         emit Log("hello world");         emit Test("Abc", "ad");         state = "fuck";         string memory curSate = getState();         emit Test("now state is", curSate);     }      function getState() public view returns (string memory) {         return state;     } }

Run

solrun test.sol

Output

Log(failed) Log(hello world) Test(Abc, ad) Test(now state is, fuck)

Roadamp

  • Run contract
  • Support import
  • Call specify Contract
  • Call specify function
  • Multiple function call

solrun

用于在本地运行solidity合同的命令行工具。基于EthuMujs VM和SojsJ.JS

  • 默认solc编译器版本为0.6.12

示例

solrun

示例

test.sol

Run

输出

Roadamp

  • 默认solc编译器版本为0.6.12
  • 运行契约
  • 支持导入

    调用指定契约

  • 调用指定函数
  • 多函数调用
  • test.sol

    contract Test {      event Log(string);     event Test(string, string);      string public state;      constructor() {         state = "constructor";     }      // solrun will auto call this function      function main() external {         emit Log(state);         if (2 > 1) emit Log("failed");         emit Log("hello world");         emit Test("Abc", "ad");         state = "fuck";         string memory curSate = getState();         emit Test("now state is", curSate);     }      function getState() public view returns (string memory) {         return state;     } }

    Run

    solrun test.sol

    Roadamp

    Log(failed) Log(hello world) Test(Abc, ad) Test(now state is, fuck)

    Roadamp

    • 运行契约
    • 调用指定函数
    • 多函数调用
    • Call specify function
    • Multiple function call

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

    www.interchains.cc

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

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

    提供最优质的资源集合

    立即查看 了解详情