Skip to content

Commit b8b6c94

Browse files
committed
Confidence update for IR including Indexed fix for ast parameter
1 parent d74ff3e commit b8b6c94

15 files changed

+964
-98
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
# Go workspace file
2121
go.work
2222

23-
node_modules/
23+
node_modules/
24+
bin/

ast/parameters.proto

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ message Parameter {
2525
txpull.v1.ast.Mutability state_mutability = 8;
2626
txpull.v1.ast.Visibility visibility = 9;
2727
txpull.v1.ast.StorageLocation storage_location = 10;
28-
txpull.v1.ast.TypeName type_name = 11;
29-
txpull.v1.ast.TypeDescription type_description = 12;
28+
bool indexed = 11;
29+
txpull.v1.ast.TypeName type_name = 12;
30+
txpull.v1.ast.TypeDescription type_description = 13;
3031
}

dist/docs/docs.json

+116-6
Original file line numberDiff line numberDiff line change
@@ -8226,6 +8226,18 @@
82268226
"oneofdecl": "",
82278227
"defaultValue": ""
82288228
},
8229+
{
8230+
"name": "indexed",
8231+
"description": "",
8232+
"label": "",
8233+
"type": "bool",
8234+
"longType": "bool",
8235+
"fullType": "bool",
8236+
"ismap": false,
8237+
"isoneof": false,
8238+
"oneofdecl": "",
8239+
"defaultValue": ""
8240+
},
82298241
{
82308242
"name": "type_name",
82318243
"description": "",
@@ -12918,6 +12930,80 @@
1291812930
],
1291912931
"services": []
1292012932
},
12933+
{
12934+
"name": "ir/eip.proto",
12935+
"description": "",
12936+
"package": "txpull.v1.ir",
12937+
"hasEnums": false,
12938+
"hasExtensions": false,
12939+
"hasMessages": true,
12940+
"hasServices": false,
12941+
"enums": [],
12942+
"extensions": [],
12943+
"messages": [
12944+
{
12945+
"name": "EIP",
12946+
"longName": "EIP",
12947+
"fullName": "txpull.v1.ir.EIP",
12948+
"description": "EIP represents a specific Ethereum Improvement Proposal standard that a contract may adhere to.",
12949+
"hasExtensions": false,
12950+
"hasFields": true,
12951+
"hasOneofs": false,
12952+
"extensions": [],
12953+
"fields": [
12954+
{
12955+
"name": "contract_id",
12956+
"description": "Unique identifier for the contract.",
12957+
"label": "",
12958+
"type": "int64",
12959+
"longType": "int64",
12960+
"fullType": "int64",
12961+
"ismap": false,
12962+
"isoneof": false,
12963+
"oneofdecl": "",
12964+
"defaultValue": ""
12965+
},
12966+
{
12967+
"name": "contract_name",
12968+
"description": "Name of the contract.",
12969+
"label": "",
12970+
"type": "string",
12971+
"longType": "string",
12972+
"fullType": "string",
12973+
"ismap": false,
12974+
"isoneof": false,
12975+
"oneofdecl": "",
12976+
"defaultValue": ""
12977+
},
12978+
{
12979+
"name": "confidence",
12980+
"description": "Represents the confidence level of the contract adhering to a specific EIP standard.",
12981+
"label": "",
12982+
"type": "Discovery",
12983+
"longType": "txpull.v1.eip.Discovery",
12984+
"fullType": "txpull.v1.eip.Discovery",
12985+
"ismap": false,
12986+
"isoneof": false,
12987+
"oneofdecl": "",
12988+
"defaultValue": ""
12989+
},
12990+
{
12991+
"name": "standard",
12992+
"description": "Provides details about the specific EIP standard.",
12993+
"label": "",
12994+
"type": "ContractStandard",
12995+
"longType": "txpull.v1.eip.ContractStandard",
12996+
"fullType": "txpull.v1.eip.ContractStandard",
12997+
"ismap": false,
12998+
"isoneof": false,
12999+
"oneofdecl": "",
13000+
"defaultValue": ""
13001+
}
13002+
]
13003+
}
13004+
],
13005+
"services": []
13006+
},
1292113007
{
1292213008
"name": "ir/enum.proto",
1292313009
"description": "",
@@ -14325,7 +14411,7 @@
1432514411
"name": "Root",
1432614412
"longName": "Root",
1432714413
"fullName": "txpull.v1.ir.Root",
14328-
"description": "Represents the root of the intermediate representation (IR) for a collection of contracts.",
14414+
"description": "`Root` represents the top-level structure of the intermediate representation (IR) for a collection of contracts.",
1432914415
"hasExtensions": false,
1433014416
"hasFields": true,
1433114417
"hasOneofs": false,
@@ -14345,7 +14431,7 @@
1434514431
},
1434614432
{
1434714433
"name": "node_type",
14348-
"description": "Node type of the root. Refers to the AST node type enumeration in \"ast/types.proto\".",
14434+
"description": "Specifies the AST node type of the root.",
1434914435
"label": "",
1435014436
"type": "NodeType",
1435114437
"longType": "txpull.v1.ast.NodeType",
@@ -14357,7 +14443,7 @@
1435714443
},
1435814444
{
1435914445
"name": "entry_contract_id",
14360-
"description": "Identifier of the entry contract.",
14446+
"description": "Identifier of the primary or main contract within the collection.",
1436114447
"label": "",
1436214448
"type": "int64",
1436314449
"longType": "int64",
@@ -14369,7 +14455,7 @@
1436914455
},
1437014456
{
1437114457
"name": "entry_contract_name",
14372-
"description": "Name of the entry contract.",
14458+
"description": "Name of the primary or main contract.",
1437314459
"label": "",
1437414460
"type": "string",
1437514461
"longType": "string",
@@ -14379,9 +14465,21 @@
1437914465
"oneofdecl": "",
1438014466
"defaultValue": ""
1438114467
},
14468+
{
14469+
"name": "contract_types",
14470+
"description": "List of contract types associated with this IR.",
14471+
"label": "repeated",
14472+
"type": "string",
14473+
"longType": "string",
14474+
"fullType": "string",
14475+
"ismap": false,
14476+
"isoneof": false,
14477+
"oneofdecl": "",
14478+
"defaultValue": ""
14479+
},
1438214480
{
1438314481
"name": "contracts_count",
14384-
"description": "Count of contracts in the IR.",
14482+
"description": "Total number of contracts represented in this IR.",
1438514483
"label": "",
1438614484
"type": "int32",
1438714485
"longType": "int32",
@@ -14391,9 +14489,21 @@
1439114489
"oneofdecl": "",
1439214490
"defaultValue": ""
1439314491
},
14492+
{
14493+
"name": "eips",
14494+
"description": "List of Ethereum Improvement Proposals (EIPs) associated with this IR.",
14495+
"label": "repeated",
14496+
"type": "EIP",
14497+
"longType": "EIP",
14498+
"fullType": "txpull.v1.ir.EIP",
14499+
"ismap": false,
14500+
"isoneof": false,
14501+
"oneofdecl": "",
14502+
"defaultValue": ""
14503+
},
1439414504
{
1439514505
"name": "contracts",
14396-
"description": "List of contracts in the IR. Each contract is defined using the \"txpull.v1.ir.Contract\" message.",
14506+
"description": "Collection of contracts represented in this IR.",
1439714507
"label": "repeated",
1439814508
"type": "Contract",
1439914509
"longType": "Contract",

dist/go/ast/parameters.pb.go

+25-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)