Skip to content

Commit

Permalink
refactor: remove unnecessary internal
Browse files Browse the repository at this point in the history
Now that contracts are more stable and we know which variable do and do not need to be virtualized, no need to waste lines of code and/or add complexity with functions that just expose internal variables with the exact same name.
  • Loading branch information
deluca-mike committed Nov 28, 2023
1 parent c84f9bb commit e817e13
Show file tree
Hide file tree
Showing 52 changed files with 284 additions and 431 deletions.
4 changes: 2 additions & 2 deletions abi/ERC20PermitHarness.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"outputs": [
{
"internalType": "uint8",
"name": "decimals_",
"name": "",
"type": "uint8"
}
],
Expand Down Expand Up @@ -391,7 +391,7 @@
"outputs": [
{
"internalType": "string",
"name": "symbol_",
"name": "",
"type": "string"
}
],
Expand Down
16 changes: 8 additions & 8 deletions abi/EmergencyGovernor.json
Original file line number Diff line number Diff line change
Expand Up @@ -865,20 +865,20 @@
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"name": "proposalId",
"type": "uint256"
},
{
"internalType": "address",
"name": "account_",
"name": "voter",
"type": "address"
}
],
"name": "hasVoted",
"outputs": [
{
"internalType": "bool",
"name": "hasVoted_",
"name": "hasVoted",
"type": "bool"
}
],
Expand Down Expand Up @@ -1099,7 +1099,7 @@
"outputs": [
{
"internalType": "address",
"name": "registrar_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -1156,7 +1156,7 @@
"outputs": [
{
"internalType": "address",
"name": "standardGovernor_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -1188,7 +1188,7 @@
"outputs": [
{
"internalType": "uint16",
"name": "thresholdRatio_",
"name": "",
"type": "uint16"
}
],
Expand Down Expand Up @@ -1219,7 +1219,7 @@
"outputs": [
{
"internalType": "address",
"name": "voteToken_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -1258,7 +1258,7 @@
"outputs": [
{
"internalType": "address",
"name": "zeroGovernor_",
"name": "",
"type": "address"
}
],
Expand Down
4 changes: 2 additions & 2 deletions abi/EmergencyGovernorDeployer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"inputs": [
{
"internalType": "address",
"name": "voteToken_",
"name": "powerToken_",
"type": "address"
},
{
Expand All @@ -61,7 +61,7 @@
},
{
"inputs": [],
"name": "getNextDeploy",
"name": "nextDeploy",
"outputs": [
{
"internalType": "address",
Expand Down
4 changes: 2 additions & 2 deletions abi/PowerBootstrapToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
{
"internalType": "uint256",
"name": "epoch_",
"name": "",
"type": "uint256"
}
],
Expand All @@ -59,7 +59,7 @@
"inputs": [
{
"internalType": "uint256",
"name": "epoch_",
"name": "",
"type": "uint256"
}
],
Expand Down
44 changes: 22 additions & 22 deletions abi/PowerToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"inputs": [
{
"internalType": "address",
"name": "governor_",
"name": "standardGovernor_",
"type": "address"
},
{
Expand Down Expand Up @@ -82,7 +82,7 @@
},
{
"inputs": [],
"name": "NotGovernor",
"name": "NotStandardGovernor",
"type": "error"
},
{
Expand Down Expand Up @@ -390,7 +390,7 @@
"outputs": [
{
"internalType": "uint256",
"name": "activeEpochs_",
"name": "",
"type": "uint256"
}
],
Expand Down Expand Up @@ -560,7 +560,7 @@
"outputs": [
{
"internalType": "uint256",
"name": "bootstrapEpoch_",
"name": "",
"type": "uint256"
}
],
Expand All @@ -573,7 +573,7 @@
"outputs": [
{
"internalType": "address",
"name": "bootstrapToken_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -630,7 +630,7 @@
"outputs": [
{
"internalType": "uint8",
"name": "decimals_",
"name": "",
"type": "uint8"
}
],
Expand Down Expand Up @@ -817,19 +817,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "governor",
"outputs": [
{
"internalType": "address",
"name": "governor_",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -955,7 +942,7 @@
"outputs": [
{
"internalType": "uint256",
"name": "participationInflation_",
"name": "",
"type": "uint256"
}
],
Expand Down Expand Up @@ -1018,13 +1005,26 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "standardGovernor",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "symbol_",
"name": "",
"type": "string"
}
],
Expand Down Expand Up @@ -1165,7 +1165,7 @@
"outputs": [
{
"internalType": "address",
"name": "vault_",
"name": "",
"type": "address"
}
],
Expand Down
4 changes: 2 additions & 2 deletions abi/PowerTokenDeployer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"inputs": [
{
"internalType": "address",
"name": "governor_",
"name": "standardGovernor_",
"type": "address"
},
{
Expand All @@ -61,7 +61,7 @@
},
{
"inputs": [],
"name": "getNextDeploy",
"name": "nextDeploy",
"outputs": [
{
"internalType": "address",
Expand Down
24 changes: 12 additions & 12 deletions abi/StandardGovernor.json
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
"outputs": [
{
"internalType": "address",
"name": "cashToken_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -857,7 +857,7 @@
"outputs": [
{
"internalType": "address",
"name": "emergencyGovernor_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -975,20 +975,20 @@
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"name": "proposalId",
"type": "uint256"
},
{
"internalType": "address",
"name": "account_",
"name": "voter",
"type": "address"
}
],
"name": "hasVoted",
"outputs": [
{
"internalType": "bool",
"name": "hasVoted_",
"name": "hasVoted",
"type": "bool"
}
],
Expand Down Expand Up @@ -1085,7 +1085,7 @@
"outputs": [
{
"internalType": "uint256",
"name": "reward_",
"name": "",
"type": "uint256"
}
],
Expand Down Expand Up @@ -1192,7 +1192,7 @@
"outputs": [
{
"internalType": "uint256",
"name": "proposalFee_",
"name": "",
"type": "uint256"
}
],
Expand Down Expand Up @@ -1296,7 +1296,7 @@
"outputs": [
{
"internalType": "address",
"name": "registrar_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -1408,7 +1408,7 @@
"outputs": [
{
"internalType": "address",
"name": "vault_",
"name": "",
"type": "address"
}
],
Expand All @@ -1421,7 +1421,7 @@
"outputs": [
{
"internalType": "address",
"name": "voteToken_",
"name": "",
"type": "address"
}
],
Expand Down Expand Up @@ -1460,7 +1460,7 @@
"outputs": [
{
"internalType": "address",
"name": "zeroGovernor_",
"name": "",
"type": "address"
}
],
Expand All @@ -1473,7 +1473,7 @@
"outputs": [
{
"internalType": "address",
"name": "zeroToken_",
"name": "",
"type": "address"
}
],
Expand Down
4 changes: 2 additions & 2 deletions abi/StandardGovernorDeployer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"inputs": [
{
"internalType": "address",
"name": "voteToken_",
"name": "powerToken_",
"type": "address"
},
{
Expand Down Expand Up @@ -91,7 +91,7 @@
},
{
"inputs": [],
"name": "getNextDeploy",
"name": "nextDeploy",
"outputs": [
{
"internalType": "address",
Expand Down
Loading

0 comments on commit e817e13

Please sign in to comment.