Skip to content

Commit 0b5ad75

Browse files
authored
Adding support for link (http?s) extraction from source code including social recognition (#126)
1 parent 993fc9b commit 0b5ad75

19 files changed

Lines changed: 382 additions & 53 deletions

data/solc/releases/releases.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/audits/ERC20.slither.raw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/audits/Lottery.slither.raw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/audits/SimpleStorage.slither.raw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/audits/TokenSale.slither.raw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/audits/TransparentUpgradeableProxy.slither.raw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/audits/VulnerableBank.slither.raw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/tests/contracts/0x7C3a812bBfC759bf85097211253e63f9e5F49439/ItemsMarketplace.solgo.ast.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13454,10 +13454,10 @@
1345413454
},
1345513455
"member_name": "get",
1345613456
"argument_types": [],
13457-
"referenced_declaration": 1501,
13457+
"referenced_declaration": 910,
1345813458
"type_description": {
13459-
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
13460-
"type_string": "function(struct IterableMapping.Map,uint128)"
13459+
"type_identifier": "t_contract$_IterableMapping_$2131",
13460+
"type_string": "contract IterableMapping"
1346113461
}
1346213462
},
1346313463
"type_description": {
@@ -13899,8 +13899,8 @@
1389913899
}
1390013900
},
1390113901
"type_description": {
13902-
"type_identifier": "t_struct$_Global_Order_$2494",
13903-
"type_string": "struct Global.Order"
13902+
"type_identifier": "t_contract$_IterableMapping_$2131",
13903+
"type_string": "contract IterableMapping"
1390413904
}
1390513905
}
1390613906
],
@@ -14199,10 +14199,10 @@
1419914199
},
1420014200
"member_name": "set",
1420114201
"argument_types": [],
14202-
"referenced_declaration": 1343,
14202+
"referenced_declaration": 2307,
1420314203
"type_description": {
14204-
"type_identifier": "t_contract$_IterableMapping_$2131",
14205-
"type_string": "contract IterableMapping"
14204+
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$_t_struct$_IterableMapping_Order_$2147$",
14205+
"type_string": "function(struct IterableMapping.Map,uint128,struct IterableMapping.Order)"
1420614206
}
1420714207
},
1420814208
"type_description": {
@@ -15084,7 +15084,7 @@
1508415084
},
1508515085
"member_name": "remove",
1508615086
"argument_types": [],
15087-
"referenced_declaration": 1226,
15087+
"referenced_declaration": 1398,
1508815088
"type_description": {
1508915089
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
1509015090
"type_string": "function(struct IterableMapping.Map,uint128)"
@@ -15379,7 +15379,7 @@
1537915379
},
1538015380
"member_name": "size",
1538115381
"argument_types": [],
15382-
"referenced_declaration": 2274,
15382+
"referenced_declaration": 1555,
1538315383
"type_description": {
1538415384
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$",
1538515385
"type_string": "function(struct IterableMapping.Map)"
@@ -15766,7 +15766,7 @@
1576615766
},
1576715767
"member_name": "getKeyAtIndex",
1576815768
"argument_types": [],
15769-
"referenced_declaration": 2241,
15769+
"referenced_declaration": 1874,
1577015770
"type_description": {
1577115771
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint32$",
1577215772
"type_string": "function(struct IterableMapping.Map,uint32)"
@@ -15953,7 +15953,7 @@
1595315953
},
1595415954
"member_name": "get",
1595515955
"argument_types": [],
15956-
"referenced_declaration": 2206,
15956+
"referenced_declaration": 1720,
1595715957
"type_description": {
1595815958
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
1595915959
"type_string": "function(struct IterableMapping.Map,uint128)"
@@ -16285,7 +16285,7 @@
1628516285
},
1628616286
"member_name": "remove",
1628716287
"argument_types": [],
16288-
"referenced_declaration": 1226,
16288+
"referenced_declaration": 1398,
1628916289
"type_description": {
1629016290
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
1629116291
"type_string": "function(struct IterableMapping.Map,uint128)"
@@ -16543,7 +16543,7 @@
1654316543
},
1654416544
"member_name": "size",
1654516545
"argument_types": [],
16546-
"referenced_declaration": 1448,
16546+
"referenced_declaration": 1637,
1654716547
"type_description": {
1654816548
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$",
1654916549
"type_string": "function(struct IterableMapping.Map)"
@@ -17031,7 +17031,7 @@
1703117031
},
1703217032
"member_name": "remove",
1703317033
"argument_types": [],
17034-
"referenced_declaration": 1226,
17034+
"referenced_declaration": 1398,
1703517035
"type_description": {
1703617036
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
1703717037
"type_string": "function(struct IterableMapping.Map,uint128)"
@@ -17286,7 +17286,7 @@
1728617286
},
1728717287
"member_name": "size",
1728817288
"argument_types": [],
17289-
"referenced_declaration": 1448,
17289+
"referenced_declaration": 1808,
1729017290
"type_description": {
1729117291
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$",
1729217292
"type_string": "function(struct IterableMapping.Map)"
@@ -18128,10 +18128,10 @@
1812818128
},
1812918129
"member_name": "get",
1813018130
"argument_types": [],
18131-
"referenced_declaration": 910,
18131+
"referenced_declaration": 2206,
1813218132
"type_description": {
18133-
"type_identifier": "t_contract$_IterableMapping_$2131",
18134-
"type_string": "contract IterableMapping"
18133+
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
18134+
"type_string": "function(struct IterableMapping.Map,uint128)"
1813518135
}
1813618136
},
1813718137
"type_description": {
@@ -19003,7 +19003,7 @@
1900319003
},
1900419004
"member_name": "size",
1900519005
"argument_types": [],
19006-
"referenced_declaration": 1448,
19006+
"referenced_declaration": 2274,
1900719007
"type_description": {
1900819008
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$",
1900919009
"type_string": "function(struct IterableMapping.Map)"
@@ -19658,7 +19658,7 @@
1965819658
},
1965919659
"member_name": "getKeyAtIndex",
1966019660
"argument_types": [],
19661-
"referenced_declaration": 1484,
19661+
"referenced_declaration": 2241,
1966219662
"type_description": {
1966319663
"type_identifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint32$",
1966419664
"type_string": "function(struct IterableMapping.Map,uint32)"

data/tests/contracts/0x7C3a812bBfC759bf85097211253e63f9e5F49439/ItemsMarketplace.solgo.ast.proto.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13395,7 +13395,7 @@
1339513395
},
1339613396
"memberName": "get",
1339713397
"nodeType": "MEMBER_ACCESS",
13398-
"referencedDeclaration": "1501",
13398+
"referencedDeclaration": "910",
1339913399
"src": {
1340013400
"column": "46",
1340113401
"end": "15247",
@@ -13406,8 +13406,8 @@
1340613406
"start": "15230"
1340713407
},
1340813408
"typeDescription": {
13409-
"typeIdentifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
13410-
"typeString": "function(struct IterableMapping.Map,uint128)"
13409+
"typeIdentifier": "t_contract$_IterableMapping_$2131",
13410+
"typeString": "contract IterableMapping"
1341113411
}
1341213412
}
1341313413
},
@@ -13843,8 +13843,8 @@
1384313843
"start": "15380"
1384413844
},
1384513845
"typeDescription": {
13846-
"typeIdentifier": "t_struct$_Global_Order_$2494",
13847-
"typeString": "struct Global.Order"
13846+
"typeIdentifier": "t_contract$_IterableMapping_$2131",
13847+
"typeString": "contract IterableMapping"
1384813848
}
1384913849
}
1385013850
}
@@ -14168,7 +14168,7 @@
1416814168
},
1416914169
"memberName": "set",
1417014170
"nodeType": "MEMBER_ACCESS",
14171-
"referencedDeclaration": "1343",
14171+
"referencedDeclaration": "2307",
1417214172
"src": {
1417314173
"column": "8",
1417414174
"end": "15551",
@@ -14179,8 +14179,8 @@
1417914179
"start": "15534"
1418014180
},
1418114181
"typeDescription": {
14182-
"typeIdentifier": "t_contract$_IterableMapping_$2131",
14183-
"typeString": "contract IterableMapping"
14182+
"typeIdentifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$_t_struct$_IterableMapping_Order_$2147$",
14183+
"typeString": "function(struct IterableMapping.Map,uint128,struct IterableMapping.Order)"
1418414184
}
1418514185
}
1418614186
},
@@ -15055,7 +15055,7 @@
1505515055
},
1505615056
"memberName": "remove",
1505715057
"nodeType": "MEMBER_ACCESS",
15058-
"referencedDeclaration": "1226",
15058+
"referencedDeclaration": "1398",
1505915059
"src": {
1506015060
"column": "8",
1506115061
"end": "15964",
@@ -15335,7 +15335,7 @@
1533515335
},
1533615336
"memberName": "size",
1533715337
"nodeType": "MEMBER_ACCESS",
15338-
"referencedDeclaration": "2274",
15338+
"referencedDeclaration": "1555",
1533915339
"src": {
1534015340
"column": "29",
1534115341
"end": "16090",
@@ -15524,7 +15524,7 @@
1552415524
},
1552515525
"memberName": "getKeyAtIndex",
1552615526
"nodeType": "MEMBER_ACCESS",
15527-
"referencedDeclaration": "2241",
15527+
"referencedDeclaration": "1874",
1552815528
"src": {
1552915529
"column": "30",
1553015530
"end": "16203",
@@ -15719,7 +15719,7 @@
1571915719
},
1572015720
"memberName": "get",
1572115721
"nodeType": "MEMBER_ACCESS",
15722-
"referencedDeclaration": "2206",
15722+
"referencedDeclaration": "1720",
1572315723
"src": {
1572415724
"column": "50",
1572515725
"end": "16276",
@@ -15850,7 +15850,7 @@
1585015850
},
1585115851
"memberName": "remove",
1585215852
"nodeType": "MEMBER_ACCESS",
15853-
"referencedDeclaration": "1226",
15853+
"referencedDeclaration": "1398",
1585415854
"src": {
1585515855
"column": "16",
1585615856
"end": "16393",
@@ -16524,7 +16524,7 @@
1652416524
},
1652516525
"memberName": "size",
1652616526
"nodeType": "MEMBER_ACCESS",
16527-
"referencedDeclaration": "1448",
16527+
"referencedDeclaration": "1637",
1652816528
"src": {
1652916529
"column": "29",
1653016530
"end": "16536",
@@ -16828,7 +16828,7 @@
1682816828
},
1682916829
"memberName": "remove",
1683016830
"nodeType": "MEMBER_ACCESS",
16831-
"referencedDeclaration": "1226",
16831+
"referencedDeclaration": "1398",
1683216832
"src": {
1683316833
"column": "12",
1683416834
"end": "16687",
@@ -17283,7 +17283,7 @@
1728317283
},
1728417284
"memberName": "size",
1728517285
"nodeType": "MEMBER_ACCESS",
17286-
"referencedDeclaration": "1448",
17286+
"referencedDeclaration": "1808",
1728717287
"src": {
1728817288
"column": "29",
1728917289
"end": "16845",
@@ -17951,7 +17951,7 @@
1795117951
},
1795217952
"memberName": "get",
1795317953
"nodeType": "MEMBER_ACCESS",
17954-
"referencedDeclaration": "910",
17954+
"referencedDeclaration": "2206",
1795517955
"src": {
1795617956
"column": "50",
1795717957
"end": "17163",
@@ -17962,8 +17962,8 @@
1796217962
"start": "17146"
1796317963
},
1796417964
"typeDescription": {
17965-
"typeIdentifier": "t_contract$_IterableMapping_$2131",
17966-
"typeString": "contract IterableMapping"
17965+
"typeIdentifier": "t_function_$_t_struct$_IterableMapping_Map_$2174$_t_uint128$",
17966+
"typeString": "function(struct IterableMapping.Map,uint128)"
1796717967
}
1796817968
}
1796917969
},
@@ -19078,7 +19078,7 @@
1907819078
},
1907919079
"memberName": "size",
1908019080
"nodeType": "MEMBER_ACCESS",
19081-
"referencedDeclaration": "1448",
19081+
"referencedDeclaration": "2274",
1908219082
"src": {
1908319083
"column": "29",
1908419084
"end": "17623",
@@ -19551,7 +19551,7 @@
1955119551
},
1955219552
"memberName": "getKeyAtIndex",
1955319553
"nodeType": "MEMBER_ACCESS",
19554-
"referencedDeclaration": "1484",
19554+
"referencedDeclaration": "2241",
1955519555
"src": {
1955619556
"column": "30",
1955719557
"end": "17869",

data/tests/ir/ERC20.ir.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82006,5 +82006,22 @@
8200682006
}
8200782007
]
8200882008
}
82009+
],
82010+
"links": [
82011+
{
82012+
"location": "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522",
82013+
"is_social": true,
82014+
"network": "github"
82015+
},
82016+
{
82017+
"location": "https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729",
82018+
"is_social": true,
82019+
"network": "github"
82020+
},
82021+
{
82022+
"location": "https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226",
82023+
"is_social": false,
82024+
"network": ""
82025+
}
8200982026
]
8201082027
}

0 commit comments

Comments
 (0)