Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c3a5ef3b
Commit
c3a5ef3b
authored
Mar 20, 2020
by
aniket-engg
Committed by
Aniket
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blockhash, type defs in test file & module import
parent
5681ff8b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
index.ts
remix-analyzer/src/solidity-analyzer/modules/index.ts
+22
-0
staticAnalysisCommon.ts
...zer/src/solidity-analyzer/modules/staticAnalysisCommon.ts
+3
-2
staticAnalysisIntegration-test-0.4.24.ts
...er/test/analysis/staticAnalysisIntegration-test-0.4.24.ts
+0
-0
No files found.
remix-analyzer/src/solidity-analyzer/modules/index.ts
0 → 100644
View file @
c3a5ef3b
export
{
default
as
txOrigin
}
from
'./txOrigin'
export
{
default
as
gasCosts
}
from
'./gasCosts'
export
{
default
as
thisLocal
}
from
'./thisLocal'
export
{
default
as
checksEffectsInteraction
}
from
'./checksEffectsInteraction'
export
{
default
as
constantFunctions
}
from
'./constantFunctions'
export
{
default
as
similarVariableNames
}
from
'./similarVariableNames'
export
{
default
as
inlineAssembly
}
from
'./inlineAssembly'
export
{
default
as
blockTimestamp
}
from
'./blockTimestamp'
export
{
default
as
lowLevelCalls
}
from
'./lowLevelCalls'
export
{
default
as
blockBlockhash
}
from
'./blockBlockhash'
export
{
default
as
noReturn
}
from
'./noReturn'
export
{
default
as
selfdestruct
}
from
'./selfdestruct'
export
{
default
as
guardConditions
}
from
'./guardConditions'
export
{
default
as
deleteDynamicArrays
}
from
'./deleteDynamicArrays'
export
{
default
as
assignAndCompare
}
from
'./assignAndCompare'
export
{
default
as
erc20Decimals
}
from
'./erc20Decimals'
export
{
default
as
stringBytesLength
}
from
'./stringBytesLength'
export
{
default
as
intDivisionTruncate
}
from
'./intDivisionTruncate'
export
{
default
as
etherTransferInLoop
}
from
'./etherTransferInLoop'
export
{
default
as
deleteFromDynamicArray
}
from
'./deleteFromDynamicArray'
export
{
default
as
forLoopIteratesOverDynamicArray
}
from
'./forLoopIteratesOverDynamicArray'
\ No newline at end of file
remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.ts
View file @
c3a5ef3b
...
@@ -132,7 +132,7 @@ const specialVariables: Record<string, SpecialObjDetail> = {
...
@@ -132,7 +132,7 @@ const specialVariables: Record<string, SpecialObjDetail> = {
BLOCKHASH
:
{
BLOCKHASH
:
{
obj
:
'block'
,
obj
:
'block'
,
member
:
'blockhash'
,
member
:
'blockhash'
,
type
:
buildFunctionSignature
([
basicTypes
.
UINT
],
[
basicTypes
.
BYTES32
],
false
)
type
:
buildFunctionSignature
([
basicTypes
.
UINT
],
[
basicTypes
.
BYTES32
],
false
,
'view'
)
}
}
}
}
...
@@ -808,7 +808,8 @@ function isBlockTimestampAccess (node: MemberAccessAstNode): boolean {
...
@@ -808,7 +808,8 @@ function isBlockTimestampAccess (node: MemberAccessAstNode): boolean {
* @return {bool}
* @return {bool}
*/
*/
function
isBlockBlockHashAccess
(
node
:
FunctionCallAstNode
):
boolean
{
function
isBlockBlockHashAccess
(
node
:
FunctionCallAstNode
):
boolean
{
return
isBuiltinFunctionCall
(
node
)
&&
getLocalCallName
(
node
)
===
'blockhash'
return
(
isBuiltinFunctionCall
(
node
)
&&
getLocalCallName
(
node
)
===
'blockhash'
)
||
isSpecialVariableAccess
(
node
.
expression
,
specialVariables
.
BLOCKHASH
)
}
}
/**
/**
...
...
remix-analyzer/test/analysis/staticAnalysisIntegration-test-0.4.24.ts
View file @
c3a5ef3b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment