Sokt – 索克区块链毕设代写

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

Sokt

Sokt - 索克

Sokt is a Kotlin wrapper for the Solidity compiler (solc). Given a solidity file, it can identify the ideal compiler version to use from the pragma statement at the top of the file. It can then download, install and invoke the compiler. Rather than using Dockerized versions of Solc, Sokt uses native builds and is compatible with Mac, Windows and Linux (x86/64 only). This means that the only dependency is a Java installation. Sokt also plays nicely with GraalVM, eliminating the Java dependency if necessary.

Sokt is currently under active development. You can use it in one of your own projects by adding the following dependency to your build.gradle:

dependencies {     compile group: 'org.web3j', name: 'web3j-sokt', version: '0.1.0' }

For other build systems, see here.

Example usage:

val fileName = filePath.substringAfterLast("/") println("sokt Processing $fileName") val solidityFile = SolidityFile(filePath)  println("Resolving compiler version for $fileName") val compilerInstance = solidityFile.getCompilerInstance()  println("Resolved ${compilerInstance.solcRelease.version} for $fileName")  val result = compilerInstance.execute(     SolcArguments.OUTPUT_DIR.param { "/tmp" },     SolcArguments.AST,     SolcArguments.BIN,     SolcArguments.OVERWRITE )  println("Solc exited with code: ${result.exitCode}") println("Solc standard output:n${result.stdOut}") println("Solc standard error:n${result.stdErr}") 

Sokt

Sokt - 索克

Sokt is a Kotlin wrapper for the Solidity compiler (solc). Given a solidity file, it can identify the ideal compiler version to use from the pragma statement at the top of the file. It can then download, install and invoke the compiler. Rather than using Dockerized versions of Solc, Sokt uses native builds and is compatible with Mac, Windows and Linux (x86/64 only). This means that the only dependency is a Java installation. Sokt also plays nicely with GraalVM, eliminating the Java dependency if necessary.

Sokt is currently under active development. You can use it in one of your own projects by adding the following dependency to your build.gradle:

dependencies {     compile group: 'org.web3j', name: 'web3j-sokt', version: '0.1.0' }

For other build systems, see here.

Example usage:

val fileName = filePath.substringAfterLast("/") println("sokt Processing $fileName") val solidityFile = SolidityFile(filePath)  println("Resolving compiler version for $fileName") val compilerInstance = solidityFile.getCompilerInstance()  println("Resolved ${compilerInstance.solcRelease.version} for $fileName")  val result = compilerInstance.execute(     SolcArguments.OUTPUT_DIR.param { "/tmp" },     SolcArguments.AST,     SolcArguments.BIN,     SolcArguments.OVERWRITE )  println("Solc exited with code: ${result.exitCode}") println("Solc standard output:n${result.stdOut}") println("Solc standard error:n${result.stdErr}") 

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情