Slither scripts | Functions by modifier – 按修饰符滑动脚本|函数区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Slither scripts | Functions by modifier – 按修饰符滑动脚本|函数区块链毕设代写 是一篇很好的国外资料

title description version
GitHub Workflow Template for Crytic Slither
Slither CI Pipeline workflow
v.1.0.0

Slither scripts | Functions by modifier

Detect functions in any set of Solidity smart contract that are labeled with a given modifier, using Slither.

This script is based on Slither’s contract-summary printer.

Usage

python modifier.py <contract.sol> <modifier-name>

Example:

$ python modifier.py test/TestContract.sol firstModifier == Functions with firstModifier modifier ==  + Contract ParentContract  + Contract TestContract   - From TestContract     - withTwoModifiers(address) (public)     - withOneModifier() (internal) 

Limitations

Currently, the script does not look for modifiers in internal calls. For instance, in the following code snippet, foo will not be listed as having the onlyOwner modifier, even though it actually is restricted by that modifier due to the internal call to bar().

contract Test {     modifier onlyOwner() { ... }      function foo() public {         bar();     }          function bar() public onlyOwner { ... } }

Slither GitHub Actions Workflow

Static Analysis Tool for Ethereum Smart Contracts

Supported tags

#{range $_, $v := .Versions}

#{$v.Version}

#{3.6.5-3.8, $b := $v.Builds}

  • #{$b.Tag}#{range $3.6.5-3.8}, #{$t}#{end} #{end}#{end}

API

Note: unlike realpath(1), these functions take no options; do not use -- to escape any arguments

Function Description
{{ slither-flat }} 
{ flatten source file: [‘MostDerived’ ‘OneFile’] }
 slither $PWD
run slither-analysis
solc-select 
solidity version manager

License

AGPL


title description version
GitHub Workflow Template for Crytic Slither
Slither CI Pipeline workflow
v.1.0.0

Slither scripts | Functions by modifier

使用Slither检测任何一组带有给定修饰符的Solidity智能合约中的函数。

此脚本基于Slither的合同摘要打印机。

Usage

蟒蛇修改器.py&lt;合同sol&gt;&lt;modifier name&gt;

示例:

$ python modifier.py test/TestContract.sol firstModifier == Functions with firstModifier modifier ==  + Contract ParentContract  + Contract TestContract   - From TestContract     - withTwoModifiers(address) (public)     - withOneModifier() (internal) 

Limitations

当前,脚本不在内部调用中查找修饰符。例如,在下面的代码段中,foo不会被列为具有onlyOwner修饰符,即使它实际上由于对bar()的内部调用而受到该修饰符的限制。以太坊eth智能合约静态分析工具;不要使用–来通过修饰符转义任何参数,#{$t}{end}}{end}}{end}}{end}

contract Test {     modifier onlyOwner() { ... }      function foo() public {         bar();     }          function bar() public onlyOwner { ... } }

Slither GitHub Actions Workflow

Static Analysis Tool for Ethereum Smart Contracts

Supported tags

#{range $_, $v := .Versions}

#{$v.Version}

#{3.6.5-3.8, $b := $v.Builds}

  • #{$b.Tag}#{range $3.6.5-3.8}, #{$t}#{end} #{end}#{end}

API

Note: unlike realpath(1), these functions take no options; do not use -- to escape any arguments

Function Description
{{ slither-flat }} 
{ flatten source file: [‘MostDerived’ ‘OneFile’] }
 slither $PWD
run slither-analysis
solc-select 
solidity version manager

License

AGPL

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Slither scripts | Functions by modifier – 按修饰符滑动脚本|函数区块链毕设代写

提供最优质的资源集合

立即查看 了解详情