@superfluid-finance/ethereum-contracts 1.2.3-dev.f94fdbb.0 → 1.3.1-dev.7df8a6a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contracts/AccessControl.json +3 -3
- package/build/contracts/AccessControlEnumerable.json +3 -3
- package/build/contracts/Address.json +5 -5
- package/build/contracts/AgreementBase.json +13 -13
- package/build/contracts/AgreementLibrary.json +7 -7
- package/build/contracts/BaseRelayRecipient.json +5 -5
- package/build/contracts/BatchLiquidator.json +179 -179
- package/build/contracts/BatchOperation.json +5 -5
- package/build/contracts/CFAv1Library.json +5 -5
- package/build/contracts/CallUtils.json +7 -7
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +2107 -1917
- package/build/contracts/ConstantFlowAgreementV1.json +8 -8
- package/build/contracts/Context.json +3 -3
- package/build/contracts/ContextDefinitions.json +5 -5
- package/build/contracts/Create2.json +5 -5
- package/build/contracts/CustomSuperTokenBase.json +3 -3
- package/build/contracts/ERC165.json +3 -3
- package/build/contracts/ERC1820Implementer.json +5 -5
- package/build/contracts/ERC1820RegistryCompiled.json +7 -7
- package/build/contracts/ERC20.json +5 -5
- package/build/contracts/ERC20Burnable.json +3 -3
- package/build/contracts/ERC20Pausable.json +3 -3
- package/build/contracts/ERC20PresetMinterPauser.json +5 -5
- package/build/contracts/ERC20WithTokenInfo.json +3 -3
- package/build/contracts/ERC777Helper.json +7 -7
- package/build/contracts/ERC777RecipientDrainingGas.json +839 -839
- package/build/contracts/ERC777RecipientReverting.json +839 -839
- package/build/contracts/EnumerableSet.json +5 -5
- package/build/contracts/EventsEmitter.json +47 -47
- package/build/contracts/ExclusiveInflowTestApp.json +2107 -1917
- package/build/contracts/FixedSizeData.json +213 -213
- package/build/contracts/FlowExchangeTestApp.json +2107 -1917
- package/build/contracts/FlowOperatorDefinitions.json +5 -5
- package/build/contracts/FullUpgradableSuperTokenProxy.json +226 -312
- package/build/contracts/IAccessControl.json +3 -3
- package/build/contracts/IAccessControlEnumerable.json +3 -3
- package/build/contracts/IConstantFlowAgreementV1.json +451 -444
- package/build/contracts/IDAv1Library.json +5 -5
- package/build/contracts/IERC165.json +3 -3
- package/build/contracts/IERC1820Implementer.json +3 -3
- package/build/contracts/IERC1820Registry.json +3 -3
- package/build/contracts/IERC20.json +3 -3
- package/build/contracts/IERC20Metadata.json +3 -3
- package/build/contracts/IERC777.json +3 -3
- package/build/contracts/IERC777Recipient.json +3 -3
- package/build/contracts/IERC777Sender.json +3 -3
- package/build/contracts/IInstantDistributionAgreementV1.json +570 -559
- package/build/contracts/IMaticBridgedNativeSuperToken.json +71 -32
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +3 -3
- package/build/contracts/IMultiSigWallet.json +3 -3
- package/build/contracts/IPureSuperToken.json +71 -32
- package/build/contracts/IPureSuperTokenCustom.json +3 -3
- package/build/contracts/IRelayRecipient.json +3 -3
- package/build/contracts/IResolver.json +3 -3
- package/build/contracts/ISETH.json +71 -32
- package/build/contracts/ISETHCustom.json +3 -3
- package/build/contracts/ISuperAgreement.json +3 -3
- package/build/contracts/ISuperApp.json +179 -173
- package/build/contracts/ISuperToken.json +522 -483
- package/build/contracts/ISuperTokenFactory.json +3 -3
- package/build/contracts/ISuperfluid.json +633 -628
- package/build/contracts/ISuperfluidGovernance.json +134 -133
- package/build/contracts/ISuperfluidToken.json +403 -394
- package/build/contracts/ITOGAv1.json +1211 -1211
- package/build/contracts/ITOGAv2.json +1211 -1211
- package/build/contracts/Initializable.json +3 -3
- package/build/contracts/InstantDistributionAgreementV1.json +10 -10
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +194 -194
- package/build/contracts/NonClosableOutflowTestApp.json +2107 -1917
- package/build/contracts/Ownable.json +3 -3
- package/build/contracts/Pausable.json +3 -3
- package/build/contracts/Proxy.json +3 -3
- package/build/contracts/PureSuperToken.json +91 -91
- package/build/contracts/Resolver.json +96 -96
- package/build/contracts/SETHProxy.json +199 -199
- package/build/contracts/SafeCast.json +5 -5
- package/build/contracts/SafeERC20.json +5 -5
- package/build/contracts/SafeMath.json +5 -5
- package/build/contracts/SelfDeletingFlowTestApp.json +2107 -1917
- package/build/contracts/SlotsBitmapLibrary.json +7 -7
- package/build/contracts/Strings.json +5 -5
- package/build/contracts/SuperAppBase.json +3 -3
- package/build/contracts/SuperAppDefinitions.json +5 -5
- package/build/contracts/SuperToken.json +2262 -2262
- package/build/contracts/SuperTokenFactory.json +582 -582
- package/build/contracts/SuperTokenFactoryBase.json +576 -576
- package/build/contracts/SuperTokenFactoryHelper.json +578 -578
- package/build/contracts/SuperUpgrader.json +687 -687
- package/build/contracts/Superfluid.json +6648 -6678
- package/build/contracts/SuperfluidFrameworkDeployer.json +526 -526
- package/build/contracts/SuperfluidGovernanceBase.json +13 -13
- package/build/contracts/SuperfluidGovernanceConfigs.json +5 -5
- package/build/contracts/SuperfluidGovernanceII.json +21 -21
- package/build/contracts/SuperfluidGovernanceIIProxy.json +20 -20
- package/build/contracts/SuperfluidLoader.json +147 -147
- package/build/contracts/SuperfluidToken.json +1269 -1269
- package/build/contracts/TOGA.json +1221 -1221
- package/build/contracts/TestGovernance.json +315 -315
- package/build/contracts/TestToken.json +475 -561
- package/build/contracts/TokenCustodian.json +220 -220
- package/build/contracts/TokenInfo.json +3 -3
- package/build/contracts/UUPSProxiable.json +136 -136
- package/build/contracts/UUPSProxy.json +87 -87
- package/build/contracts/UUPSUtils.json +43 -43
- package/build/contracts-sizes.txt +6 -6
- package/contracts/agreements/AgreementBase.sol +1 -1
- package/contracts/agreements/AgreementLibrary.sol +1 -1
- package/contracts/agreements/ConstantFlowAgreementV1.sol +1 -1
- package/contracts/agreements/InstantDistributionAgreementV1.sol +1 -1
- package/contracts/gov/SuperfluidGovernanceBase.sol +1 -1
- package/contracts/gov/SuperfluidGovernanceII.sol +1 -1
- package/contracts/interfaces/agreements/IConstantFlowAgreementV1.sol +7 -10
- package/contracts/interfaces/agreements/IInstantDistributionAgreementV1.sol +11 -18
- package/contracts/interfaces/superfluid/ISuperApp.sol +7 -9
- package/contracts/interfaces/superfluid/ISuperToken.sol +36 -44
- package/contracts/interfaces/superfluid/ISuperfluid.sol +17 -21
- package/contracts/interfaces/superfluid/ISuperfluidGovernance.sol +1 -1
- package/contracts/interfaces/superfluid/ISuperfluidToken.sol +13 -14
- package/contracts/libs/BaseRelayRecipient.sol +1 -1
- package/contracts/libs/CallUtils.sol +1 -1
- package/contracts/libs/ERC1820RegistryCompiled.sol +1 -1
- package/contracts/libs/ERC777Helper.sol +1 -1
- package/contracts/libs/EventsEmitter.sol +2 -2
- package/contracts/libs/FixedSizeData.sol +2 -2
- package/contracts/libs/SlotsBitmapLibrary.sol +1 -1
- package/contracts/mocks/AgreementMock.sol +1 -1
- package/contracts/mocks/CFAAppMocks.sol +6 -6
- package/contracts/mocks/CFALibraryMock.sol +2 -2
- package/contracts/mocks/CallUtilsMock.sol +1 -1
- package/contracts/mocks/CallUtilsTester.sol +1 -1
- package/contracts/mocks/CustomSuperTokenMock.sol +1 -1
- package/contracts/mocks/ERC777SenderRecipientMock.sol +1 -1
- package/contracts/mocks/FakeSuperfluidMock.sol +1 -1
- package/contracts/mocks/ForwarderMock.sol +1 -1
- package/contracts/mocks/IDASuperAppTester.sol +2 -2
- package/contracts/mocks/IDAv1LibraryMock.sol +3 -3
- package/contracts/mocks/MockSmartWallet.sol +1 -1
- package/contracts/mocks/MultiFlowTesterApp.sol +2 -2
- package/contracts/mocks/SuperAppMocks.sol +15 -12
- package/contracts/mocks/SuperTokenFactoryMock.sol +1 -1
- package/contracts/mocks/SuperTokenMock.sol +1 -1
- package/contracts/mocks/SuperfluidDestructorMock.sol +1 -1
- package/contracts/mocks/SuperfluidGovernanceIIMock.sol +1 -1
- package/contracts/mocks/SuperfluidMock.sol +2 -2
- package/contracts/mocks/UUPSProxiableMock.sol +1 -1
- package/contracts/superfluid/FullUpgradableSuperTokenProxy.sol +2 -2
- package/contracts/superfluid/SuperToken.sol +1 -1
- package/contracts/superfluid/SuperTokenFactory.sol +1 -1
- package/contracts/superfluid/Superfluid.sol +4 -4
- package/contracts/superfluid/SuperfluidToken.sol +1 -1
- package/contracts/tokens/MaticBridgedNativeSuperToken.sol +1 -1
- package/contracts/tokens/PureSuperToken.sol +1 -1
- package/contracts/tokens/SETH.sol +1 -1
- package/contracts/upgradability/UUPSProxiable.sol +1 -1
- package/contracts/upgradability/UUPSProxy.sol +1 -1
- package/contracts/upgradability/UUPSUtils.sol +1 -1
- package/contracts/utils/BatchLiquidator.sol +1 -1
- package/contracts/utils/Resolver.sol +1 -1
- package/contracts/utils/SuperUpgrader.sol +6 -6
- package/contracts/utils/SuperfluidLoader.sol +1 -1
- package/contracts/utils/TOGA.sol +1 -1
- package/contracts/utils/TestGovernance.sol +2 -2
- package/contracts/utils/TestToken.sol +2 -2
- package/contracts/utils/TokenCustodian.sol +1 -1
- package/package.json +5 -3
- package/scripts/deploy-framework.js +5 -5
- package/scripts/deploy-super-token.js +13 -4
- package/scripts/gov-create-new-app-registration-key.js +2 -1
- package/scripts/gov-create-new-factory-registration.js +1 -1
- package/scripts/libs/getConfig.js +21 -3
- package/scripts/resolver-list-super-token.js +1 -0
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"type": "function"
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
"metadata": "{\"compiler\":{\"version\":\"0.8.
|
|
63
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.14+commit.80d49f37\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"uuid\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"codeAddress\",\"type\":\"address\"}],\"name\":\"CodeUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getCodeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"codeAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"updateCode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getCodeAddress()\":{\"details\":\"Get current implementation code address.\"},\"proxiableUUID()\":{\"details\":\"Proxiable UUID marker function, this would help to avoid wrong logic contract to be used for upgrading. NOTE: The semantics of the UUID deviates from the actual UUPS standard, where it is equivalent of _IMPLEMENTATION_SLOT.\"}},\"title\":\"UUPS (Universal Upgradeable Proxy Standard) Proxiable contract.\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/upgradability/UUPSProxiable.sol\":\"UUPSProxiable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x4823752b07b8ea4ca971b217e39457930e7cb103c2c91e2a29729e5ca907e4f0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f319af26a9ade3e6cf3698bf1b84aa6213bdd7a76606ea9ba56ced163593934\",\"dweb:/ipfs/QmZ2u9zen5Htan4dSP1RZCY2XqB9HUwqkNCMzdn7aV2jWc\"]},\"@openzeppelin/contracts/utils/Address.sol\":{\"keccak256\":\"0x2ccf9d2313a313d41a791505f2b5abfdc62191b5d4334f7f7a82691c088a1c87\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b3a57d0854b2fdce6ebff933a48dca2445643d1eccfc27f00292e937f26c6a58\",\"dweb:/ipfs/QmW45rZooS9TqR4YXUbjRbtf2Bpb5ouSarBvfW1LdGprvV\"]},\"project:/contracts/upgradability/UUPSProxiable.sol\":{\"keccak256\":\"0xabe3beb46dff1433d7ae61fe470fc347967d5a5b09d48fa45f35ddb2735d61f2\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://ad0fdb3210d3b0ed62886decdeef62b43bdbdd59bd55fc5ea3d636e97fbfb65d\",\"dweb:/ipfs/QmPjd6ehqgoiHkrf2g2h9AZRxKakqxsGx1GTiy5DSwfYJg\"]},\"project:/contracts/upgradability/UUPSUtils.sol\":{\"keccak256\":\"0xe624225773a60f62c7a0687afb0536ba19a17e4e5605ae71e8af77a0287aca59\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://4294e5eb5b194477bca3b8ca04ca92a6fe72dd6cf8da8f0d942a4a86c41c1c7f\",\"dweb:/ipfs/QmdfPXZxJPaBjKNfC8joTcvEhWammJHzRACB1S18sFYfd7\"]}},\"version\":1}",
|
|
64
64
|
"bytecode": "0x",
|
|
65
65
|
"deployedBytecode": "0x",
|
|
66
66
|
"immutableReferences": {},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"deployedGeneratedSources": [],
|
|
69
69
|
"sourceMap": "",
|
|
70
70
|
"deployedSourceMap": "",
|
|
71
|
-
"source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.
|
|
71
|
+
"source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.14;\n\nimport { UUPSUtils } from \"./UUPSUtils.sol\";\nimport { Initializable } from \"@openzeppelin/contracts/proxy/utils/Initializable.sol\";\n\n/**\n * @title UUPS (Universal Upgradeable Proxy Standard) Proxiable contract.\n */\nabstract contract UUPSProxiable is Initializable {\n\n /**\n * @dev Get current implementation code address.\n */\n function getCodeAddress() public view returns (address codeAddress)\n {\n return UUPSUtils.implementation();\n }\n\n function updateCode(address newAddress) external virtual;\n\n /**\n * @dev Proxiable UUID marker function, this would help to avoid wrong logic\n * contract to be used for upgrading.\n *\n * NOTE: The semantics of the UUID deviates from the actual UUPS standard,\n * where it is equivalent of _IMPLEMENTATION_SLOT.\n */\n function proxiableUUID() public view virtual returns (bytes32);\n\n /**\n * @dev Update code address function.\n * It is internal, so the derived contract could setup its own permission logic.\n */\n function _updateCodeAddress(address newAddress) internal\n {\n // require UUPSProxy.initializeProxy first\n require(UUPSUtils.implementation() != address(0), \"UUPSProxiable: not upgradable\");\n require(\n proxiableUUID() == UUPSProxiable(newAddress).proxiableUUID(),\n \"UUPSProxiable: not compatible logic\"\n );\n require(\n address(this) != newAddress,\n \"UUPSProxiable: proxy loop\"\n );\n UUPSUtils.setImplementation(newAddress);\n emit CodeUpdated(proxiableUUID(), newAddress);\n }\n\n event CodeUpdated(bytes32 uuid, address codeAddress);\n\n}\n",
|
|
72
72
|
"sourcePath": "/home/runner/work/protocol-monorepo/protocol-monorepo/packages/ethereum-contracts/contracts/upgradability/UUPSProxiable.sol",
|
|
73
73
|
"ast": {
|
|
74
74
|
"absolutePath": "project:/contracts/upgradability/UUPSProxiable.sol",
|
|
@@ -77,22 +77,22 @@
|
|
|
77
77
|
762
|
|
78
78
|
],
|
|
79
79
|
"UUPSProxiable": [
|
|
80
|
-
|
|
80
|
+
34857
|
|
81
81
|
],
|
|
82
82
|
"UUPSUtils": [
|
|
83
|
-
|
|
83
|
+
34938
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"id":
|
|
86
|
+
"id": 34858,
|
|
87
87
|
"license": "AGPLv3",
|
|
88
88
|
"nodeType": "SourceUnit",
|
|
89
89
|
"nodes": [
|
|
90
90
|
{
|
|
91
|
-
"id":
|
|
91
|
+
"id": 34768,
|
|
92
92
|
"literals": [
|
|
93
93
|
"solidity",
|
|
94
94
|
"0.8",
|
|
95
|
-
".
|
|
95
|
+
".14"
|
|
96
96
|
],
|
|
97
97
|
"nodeType": "PragmaDirective",
|
|
98
98
|
"src": "35:23:93"
|
|
@@ -100,20 +100,20 @@
|
|
|
100
100
|
{
|
|
101
101
|
"absolutePath": "project:/contracts/upgradability/UUPSUtils.sol",
|
|
102
102
|
"file": "./UUPSUtils.sol",
|
|
103
|
-
"id":
|
|
103
|
+
"id": 34770,
|
|
104
104
|
"nameLocation": "-1:-1:-1",
|
|
105
105
|
"nodeType": "ImportDirective",
|
|
106
|
-
"scope":
|
|
107
|
-
"sourceUnit":
|
|
106
|
+
"scope": 34858,
|
|
107
|
+
"sourceUnit": 34939,
|
|
108
108
|
"src": "60:44:93",
|
|
109
109
|
"symbolAliases": [
|
|
110
110
|
{
|
|
111
111
|
"foreign": {
|
|
112
|
-
"id":
|
|
112
|
+
"id": 34769,
|
|
113
113
|
"name": "UUPSUtils",
|
|
114
114
|
"nodeType": "Identifier",
|
|
115
115
|
"overloadedDeclarations": [],
|
|
116
|
-
"referencedDeclaration":
|
|
116
|
+
"referencedDeclaration": 34938,
|
|
117
117
|
"src": "69:9:93",
|
|
118
118
|
"typeDescriptions": {}
|
|
119
119
|
},
|
|
@@ -125,16 +125,16 @@
|
|
|
125
125
|
{
|
|
126
126
|
"absolutePath": "@openzeppelin/contracts/proxy/utils/Initializable.sol",
|
|
127
127
|
"file": "@openzeppelin/contracts/proxy/utils/Initializable.sol",
|
|
128
|
-
"id":
|
|
128
|
+
"id": 34772,
|
|
129
129
|
"nameLocation": "-1:-1:-1",
|
|
130
130
|
"nodeType": "ImportDirective",
|
|
131
|
-
"scope":
|
|
131
|
+
"scope": 34858,
|
|
132
132
|
"sourceUnit": 763,
|
|
133
133
|
"src": "105:86:93",
|
|
134
134
|
"symbolAliases": [
|
|
135
135
|
{
|
|
136
136
|
"foreign": {
|
|
137
|
-
"id":
|
|
137
|
+
"id": 34771,
|
|
138
138
|
"name": "Initializable",
|
|
139
139
|
"nodeType": "Identifier",
|
|
140
140
|
"overloadedDeclarations": [],
|
|
@@ -152,13 +152,13 @@
|
|
|
152
152
|
"baseContracts": [
|
|
153
153
|
{
|
|
154
154
|
"baseName": {
|
|
155
|
-
"id":
|
|
155
|
+
"id": 34774,
|
|
156
156
|
"name": "Initializable",
|
|
157
157
|
"nodeType": "IdentifierPath",
|
|
158
158
|
"referencedDeclaration": 762,
|
|
159
159
|
"src": "310:13:93"
|
|
160
160
|
},
|
|
161
|
-
"id":
|
|
161
|
+
"id": 34775,
|
|
162
162
|
"nodeType": "InheritanceSpecifier",
|
|
163
163
|
"src": "310:13:93"
|
|
164
164
|
}
|
|
@@ -167,15 +167,15 @@
|
|
|
167
167
|
"contractDependencies": [],
|
|
168
168
|
"contractKind": "contract",
|
|
169
169
|
"documentation": {
|
|
170
|
-
"id":
|
|
170
|
+
"id": 34773,
|
|
171
171
|
"nodeType": "StructuredDocumentation",
|
|
172
172
|
"src": "193:81:93",
|
|
173
173
|
"text": " @title UUPS (Universal Upgradeable Proxy Standard) Proxiable contract."
|
|
174
174
|
},
|
|
175
175
|
"fullyImplemented": false,
|
|
176
|
-
"id":
|
|
176
|
+
"id": 34857,
|
|
177
177
|
"linearizedBaseContracts": [
|
|
178
|
-
|
|
178
|
+
34857,
|
|
179
179
|
762
|
|
180
180
|
],
|
|
181
181
|
"name": "UUPSProxiable",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"nodes": [
|
|
185
185
|
{
|
|
186
186
|
"body": {
|
|
187
|
-
"id":
|
|
187
|
+
"id": 34785,
|
|
188
188
|
"nodeType": "Block",
|
|
189
189
|
"src": "472:50:93",
|
|
190
190
|
"statements": [
|
|
@@ -194,32 +194,32 @@
|
|
|
194
194
|
"expression": {
|
|
195
195
|
"argumentTypes": [],
|
|
196
196
|
"expression": {
|
|
197
|
-
"id":
|
|
197
|
+
"id": 34781,
|
|
198
198
|
"name": "UUPSUtils",
|
|
199
199
|
"nodeType": "Identifier",
|
|
200
200
|
"overloadedDeclarations": [],
|
|
201
|
-
"referencedDeclaration":
|
|
201
|
+
"referencedDeclaration": 34938,
|
|
202
202
|
"src": "489:9:93",
|
|
203
203
|
"typeDescriptions": {
|
|
204
|
-
"typeIdentifier": "t_type$_t_contract$_UUPSUtils_$
|
|
204
|
+
"typeIdentifier": "t_type$_t_contract$_UUPSUtils_$34938_$",
|
|
205
205
|
"typeString": "type(library UUPSUtils)"
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
|
-
"id":
|
|
208
|
+
"id": 34782,
|
|
209
209
|
"isConstant": false,
|
|
210
210
|
"isLValue": false,
|
|
211
211
|
"isPure": false,
|
|
212
212
|
"lValueRequested": false,
|
|
213
213
|
"memberName": "implementation",
|
|
214
214
|
"nodeType": "MemberAccess",
|
|
215
|
-
"referencedDeclaration":
|
|
215
|
+
"referencedDeclaration": 34929,
|
|
216
216
|
"src": "489:24:93",
|
|
217
217
|
"typeDescriptions": {
|
|
218
218
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
|
|
219
219
|
"typeString": "function () view returns (address)"
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
|
-
"id":
|
|
222
|
+
"id": 34783,
|
|
223
223
|
"isConstant": false,
|
|
224
224
|
"isLValue": false,
|
|
225
225
|
"isPure": false,
|
|
@@ -234,21 +234,21 @@
|
|
|
234
234
|
"typeString": "address"
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
|
-
"functionReturnParameters":
|
|
238
|
-
"id":
|
|
237
|
+
"functionReturnParameters": 34780,
|
|
238
|
+
"id": 34784,
|
|
239
239
|
"nodeType": "Return",
|
|
240
240
|
"src": "482:33:93"
|
|
241
241
|
}
|
|
242
242
|
]
|
|
243
243
|
},
|
|
244
244
|
"documentation": {
|
|
245
|
-
"id":
|
|
245
|
+
"id": 34776,
|
|
246
246
|
"nodeType": "StructuredDocumentation",
|
|
247
247
|
"src": "331:64:93",
|
|
248
248
|
"text": " @dev Get current implementation code address."
|
|
249
249
|
},
|
|
250
250
|
"functionSelector": "50d75d25",
|
|
251
|
-
"id":
|
|
251
|
+
"id": 34786,
|
|
252
252
|
"implemented": true,
|
|
253
253
|
"kind": "function",
|
|
254
254
|
"modifiers": [],
|
|
@@ -256,23 +256,23 @@
|
|
|
256
256
|
"nameLocation": "409:14:93",
|
|
257
257
|
"nodeType": "FunctionDefinition",
|
|
258
258
|
"parameters": {
|
|
259
|
-
"id":
|
|
259
|
+
"id": 34777,
|
|
260
260
|
"nodeType": "ParameterList",
|
|
261
261
|
"parameters": [],
|
|
262
262
|
"src": "423:2:93"
|
|
263
263
|
},
|
|
264
264
|
"returnParameters": {
|
|
265
|
-
"id":
|
|
265
|
+
"id": 34780,
|
|
266
266
|
"nodeType": "ParameterList",
|
|
267
267
|
"parameters": [
|
|
268
268
|
{
|
|
269
269
|
"constant": false,
|
|
270
|
-
"id":
|
|
270
|
+
"id": 34779,
|
|
271
271
|
"mutability": "mutable",
|
|
272
272
|
"name": "codeAddress",
|
|
273
273
|
"nameLocation": "455:11:93",
|
|
274
274
|
"nodeType": "VariableDeclaration",
|
|
275
|
-
"scope":
|
|
275
|
+
"scope": 34786,
|
|
276
276
|
"src": "447:19:93",
|
|
277
277
|
"stateVariable": false,
|
|
278
278
|
"storageLocation": "default",
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"typeString": "address"
|
|
282
282
|
},
|
|
283
283
|
"typeName": {
|
|
284
|
-
"id":
|
|
284
|
+
"id": 34778,
|
|
285
285
|
"name": "address",
|
|
286
286
|
"nodeType": "ElementaryTypeName",
|
|
287
287
|
"src": "447:7:93",
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
],
|
|
297
297
|
"src": "446:21:93"
|
|
298
298
|
},
|
|
299
|
-
"scope":
|
|
299
|
+
"scope": 34857,
|
|
300
300
|
"src": "400:122:93",
|
|
301
301
|
"stateMutability": "view",
|
|
302
302
|
"virtual": false,
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"functionSelector": "46951954",
|
|
307
|
-
"id":
|
|
307
|
+
"id": 34791,
|
|
308
308
|
"implemented": false,
|
|
309
309
|
"kind": "function",
|
|
310
310
|
"modifiers": [],
|
|
@@ -312,17 +312,17 @@
|
|
|
312
312
|
"nameLocation": "537:10:93",
|
|
313
313
|
"nodeType": "FunctionDefinition",
|
|
314
314
|
"parameters": {
|
|
315
|
-
"id":
|
|
315
|
+
"id": 34789,
|
|
316
316
|
"nodeType": "ParameterList",
|
|
317
317
|
"parameters": [
|
|
318
318
|
{
|
|
319
319
|
"constant": false,
|
|
320
|
-
"id":
|
|
320
|
+
"id": 34788,
|
|
321
321
|
"mutability": "mutable",
|
|
322
322
|
"name": "newAddress",
|
|
323
323
|
"nameLocation": "556:10:93",
|
|
324
324
|
"nodeType": "VariableDeclaration",
|
|
325
|
-
"scope":
|
|
325
|
+
"scope": 34791,
|
|
326
326
|
"src": "548:18:93",
|
|
327
327
|
"stateVariable": false,
|
|
328
328
|
"storageLocation": "default",
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"typeString": "address"
|
|
332
332
|
},
|
|
333
333
|
"typeName": {
|
|
334
|
-
"id":
|
|
334
|
+
"id": 34787,
|
|
335
335
|
"name": "address",
|
|
336
336
|
"nodeType": "ElementaryTypeName",
|
|
337
337
|
"src": "548:7:93",
|
|
@@ -347,12 +347,12 @@
|
|
|
347
347
|
"src": "547:20:93"
|
|
348
348
|
},
|
|
349
349
|
"returnParameters": {
|
|
350
|
-
"id":
|
|
350
|
+
"id": 34790,
|
|
351
351
|
"nodeType": "ParameterList",
|
|
352
352
|
"parameters": [],
|
|
353
353
|
"src": "584:0:93"
|
|
354
354
|
},
|
|
355
|
-
"scope":
|
|
355
|
+
"scope": 34857,
|
|
356
356
|
"src": "528:57:93",
|
|
357
357
|
"stateMutability": "nonpayable",
|
|
358
358
|
"virtual": true,
|
|
@@ -360,13 +360,13 @@
|
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"documentation": {
|
|
363
|
-
"id":
|
|
363
|
+
"id": 34792,
|
|
364
364
|
"nodeType": "StructuredDocumentation",
|
|
365
365
|
"src": "591:286:93",
|
|
366
366
|
"text": " @dev Proxiable UUID marker function, this would help to avoid wrong logic\n contract to be used for upgrading.\n NOTE: The semantics of the UUID deviates from the actual UUPS standard,\n where it is equivalent of _IMPLEMENTATION_SLOT."
|
|
367
367
|
},
|
|
368
368
|
"functionSelector": "52d1902d",
|
|
369
|
-
"id":
|
|
369
|
+
"id": 34797,
|
|
370
370
|
"implemented": false,
|
|
371
371
|
"kind": "function",
|
|
372
372
|
"modifiers": [],
|
|
@@ -374,23 +374,23 @@
|
|
|
374
374
|
"nameLocation": "891:13:93",
|
|
375
375
|
"nodeType": "FunctionDefinition",
|
|
376
376
|
"parameters": {
|
|
377
|
-
"id":
|
|
377
|
+
"id": 34793,
|
|
378
378
|
"nodeType": "ParameterList",
|
|
379
379
|
"parameters": [],
|
|
380
380
|
"src": "904:2:93"
|
|
381
381
|
},
|
|
382
382
|
"returnParameters": {
|
|
383
|
-
"id":
|
|
383
|
+
"id": 34796,
|
|
384
384
|
"nodeType": "ParameterList",
|
|
385
385
|
"parameters": [
|
|
386
386
|
{
|
|
387
387
|
"constant": false,
|
|
388
|
-
"id":
|
|
388
|
+
"id": 34795,
|
|
389
389
|
"mutability": "mutable",
|
|
390
390
|
"name": "",
|
|
391
391
|
"nameLocation": "-1:-1:-1",
|
|
392
392
|
"nodeType": "VariableDeclaration",
|
|
393
|
-
"scope":
|
|
393
|
+
"scope": 34797,
|
|
394
394
|
"src": "936:7:93",
|
|
395
395
|
"stateVariable": false,
|
|
396
396
|
"storageLocation": "default",
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
"typeString": "bytes32"
|
|
400
400
|
},
|
|
401
401
|
"typeName": {
|
|
402
|
-
"id":
|
|
402
|
+
"id": 34794,
|
|
403
403
|
"name": "bytes32",
|
|
404
404
|
"nodeType": "ElementaryTypeName",
|
|
405
405
|
"src": "936:7:93",
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
],
|
|
414
414
|
"src": "935:9:93"
|
|
415
415
|
},
|
|
416
|
-
"scope":
|
|
416
|
+
"scope": 34857,
|
|
417
417
|
"src": "882:63:93",
|
|
418
418
|
"stateMutability": "view",
|
|
419
419
|
"virtual": true,
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
"body": {
|
|
424
|
-
"id":
|
|
424
|
+
"id": 34849,
|
|
425
425
|
"nodeType": "Block",
|
|
426
426
|
"src": "1160:515:93",
|
|
427
427
|
"statements": [
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
"typeIdentifier": "t_address",
|
|
434
434
|
"typeString": "address"
|
|
435
435
|
},
|
|
436
|
-
"id":
|
|
436
|
+
"id": 34811,
|
|
437
437
|
"isConstant": false,
|
|
438
438
|
"isLValue": false,
|
|
439
439
|
"isPure": false,
|
|
@@ -443,32 +443,32 @@
|
|
|
443
443
|
"expression": {
|
|
444
444
|
"argumentTypes": [],
|
|
445
445
|
"expression": {
|
|
446
|
-
"id":
|
|
446
|
+
"id": 34804,
|
|
447
447
|
"name": "UUPSUtils",
|
|
448
448
|
"nodeType": "Identifier",
|
|
449
449
|
"overloadedDeclarations": [],
|
|
450
|
-
"referencedDeclaration":
|
|
450
|
+
"referencedDeclaration": 34938,
|
|
451
451
|
"src": "1229:9:93",
|
|
452
452
|
"typeDescriptions": {
|
|
453
|
-
"typeIdentifier": "t_type$_t_contract$_UUPSUtils_$
|
|
453
|
+
"typeIdentifier": "t_type$_t_contract$_UUPSUtils_$34938_$",
|
|
454
454
|
"typeString": "type(library UUPSUtils)"
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
|
-
"id":
|
|
457
|
+
"id": 34805,
|
|
458
458
|
"isConstant": false,
|
|
459
459
|
"isLValue": false,
|
|
460
460
|
"isPure": false,
|
|
461
461
|
"lValueRequested": false,
|
|
462
462
|
"memberName": "implementation",
|
|
463
463
|
"nodeType": "MemberAccess",
|
|
464
|
-
"referencedDeclaration":
|
|
464
|
+
"referencedDeclaration": 34929,
|
|
465
465
|
"src": "1229:24:93",
|
|
466
466
|
"typeDescriptions": {
|
|
467
467
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
|
|
468
468
|
"typeString": "function () view returns (address)"
|
|
469
469
|
}
|
|
470
470
|
},
|
|
471
|
-
"id":
|
|
471
|
+
"id": 34806,
|
|
472
472
|
"isConstant": false,
|
|
473
473
|
"isLValue": false,
|
|
474
474
|
"isPure": false,
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
"arguments": [
|
|
490
490
|
{
|
|
491
491
|
"hexValue": "30",
|
|
492
|
-
"id":
|
|
492
|
+
"id": 34809,
|
|
493
493
|
"isConstant": false,
|
|
494
494
|
"isLValue": false,
|
|
495
495
|
"isPure": true,
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
"typeString": "int_const 0"
|
|
512
512
|
}
|
|
513
513
|
],
|
|
514
|
-
"id":
|
|
514
|
+
"id": 34808,
|
|
515
515
|
"isConstant": false,
|
|
516
516
|
"isLValue": false,
|
|
517
517
|
"isPure": true,
|
|
@@ -523,14 +523,14 @@
|
|
|
523
523
|
"typeString": "type(address)"
|
|
524
524
|
},
|
|
525
525
|
"typeName": {
|
|
526
|
-
"id":
|
|
526
|
+
"id": 34807,
|
|
527
527
|
"name": "address",
|
|
528
528
|
"nodeType": "ElementaryTypeName",
|
|
529
529
|
"src": "1259:7:93",
|
|
530
530
|
"typeDescriptions": {}
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
|
-
"id":
|
|
533
|
+
"id": 34810,
|
|
534
534
|
"isConstant": false,
|
|
535
535
|
"isLValue": false,
|
|
536
536
|
"isPure": true,
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
"hexValue": "5555505350726f786961626c653a206e6f742075706772616461626c65",
|
|
556
|
-
"id":
|
|
556
|
+
"id": 34812,
|
|
557
557
|
"isConstant": false,
|
|
558
558
|
"isLValue": false,
|
|
559
559
|
"isPure": true,
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
"typeString": "literal_string \"UUPSProxiable: not upgradable\""
|
|
580
580
|
}
|
|
581
581
|
],
|
|
582
|
-
"id":
|
|
582
|
+
"id": 34803,
|
|
583
583
|
"name": "require",
|
|
584
584
|
"nodeType": "Identifier",
|
|
585
585
|
"overloadedDeclarations": [
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
"typeString": "function (bool,string memory) pure"
|
|
594
594
|
}
|
|
595
595
|
},
|
|
596
|
-
"id":
|
|
596
|
+
"id": 34813,
|
|
597
597
|
"isConstant": false,
|
|
598
598
|
"isLValue": false,
|
|
599
599
|
"isPure": false,
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
"typeString": "tuple()"
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
|
-
"id":
|
|
611
|
+
"id": 34814,
|
|
612
612
|
"nodeType": "ExpressionStatement",
|
|
613
613
|
"src": "1221:82:93"
|
|
614
614
|
},
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
"typeIdentifier": "t_bytes32",
|
|
621
621
|
"typeString": "bytes32"
|
|
622
622
|
},
|
|
623
|
-
"id":
|
|
623
|
+
"id": 34823,
|
|
624
624
|
"isConstant": false,
|
|
625
625
|
"isLValue": false,
|
|
626
626
|
"isPure": false,
|
|
@@ -629,18 +629,18 @@
|
|
|
629
629
|
"arguments": [],
|
|
630
630
|
"expression": {
|
|
631
631
|
"argumentTypes": [],
|
|
632
|
-
"id":
|
|
632
|
+
"id": 34816,
|
|
633
633
|
"name": "proxiableUUID",
|
|
634
634
|
"nodeType": "Identifier",
|
|
635
635
|
"overloadedDeclarations": [],
|
|
636
|
-
"referencedDeclaration":
|
|
636
|
+
"referencedDeclaration": 34797,
|
|
637
637
|
"src": "1334:13:93",
|
|
638
638
|
"typeDescriptions": {
|
|
639
639
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
|
|
640
640
|
"typeString": "function () view returns (bytes32)"
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
|
-
"id":
|
|
643
|
+
"id": 34817,
|
|
644
644
|
"isConstant": false,
|
|
645
645
|
"isLValue": false,
|
|
646
646
|
"isPure": false,
|
|
@@ -664,11 +664,11 @@
|
|
|
664
664
|
"expression": {
|
|
665
665
|
"arguments": [
|
|
666
666
|
{
|
|
667
|
-
"id":
|
|
667
|
+
"id": 34819,
|
|
668
668
|
"name": "newAddress",
|
|
669
669
|
"nodeType": "Identifier",
|
|
670
670
|
"overloadedDeclarations": [],
|
|
671
|
-
"referencedDeclaration":
|
|
671
|
+
"referencedDeclaration": 34800,
|
|
672
672
|
"src": "1367:10:93",
|
|
673
673
|
"typeDescriptions": {
|
|
674
674
|
"typeIdentifier": "t_address",
|
|
@@ -683,18 +683,18 @@
|
|
|
683
683
|
"typeString": "address"
|
|
684
684
|
}
|
|
685
685
|
],
|
|
686
|
-
"id":
|
|
686
|
+
"id": 34818,
|
|
687
687
|
"name": "UUPSProxiable",
|
|
688
688
|
"nodeType": "Identifier",
|
|
689
689
|
"overloadedDeclarations": [],
|
|
690
|
-
"referencedDeclaration":
|
|
690
|
+
"referencedDeclaration": 34857,
|
|
691
691
|
"src": "1353:13:93",
|
|
692
692
|
"typeDescriptions": {
|
|
693
|
-
"typeIdentifier": "t_type$_t_contract$_UUPSProxiable_$
|
|
693
|
+
"typeIdentifier": "t_type$_t_contract$_UUPSProxiable_$34857_$",
|
|
694
694
|
"typeString": "type(contract UUPSProxiable)"
|
|
695
695
|
}
|
|
696
696
|
},
|
|
697
|
-
"id":
|
|
697
|
+
"id": 34820,
|
|
698
698
|
"isConstant": false,
|
|
699
699
|
"isLValue": false,
|
|
700
700
|
"isPure": false,
|
|
@@ -705,25 +705,25 @@
|
|
|
705
705
|
"src": "1353:25:93",
|
|
706
706
|
"tryCall": false,
|
|
707
707
|
"typeDescriptions": {
|
|
708
|
-
"typeIdentifier": "t_contract$_UUPSProxiable_$
|
|
708
|
+
"typeIdentifier": "t_contract$_UUPSProxiable_$34857",
|
|
709
709
|
"typeString": "contract UUPSProxiable"
|
|
710
710
|
}
|
|
711
711
|
},
|
|
712
|
-
"id":
|
|
712
|
+
"id": 34821,
|
|
713
713
|
"isConstant": false,
|
|
714
714
|
"isLValue": false,
|
|
715
715
|
"isPure": false,
|
|
716
716
|
"lValueRequested": false,
|
|
717
717
|
"memberName": "proxiableUUID",
|
|
718
718
|
"nodeType": "MemberAccess",
|
|
719
|
-
"referencedDeclaration":
|
|
719
|
+
"referencedDeclaration": 34797,
|
|
720
720
|
"src": "1353:39:93",
|
|
721
721
|
"typeDescriptions": {
|
|
722
722
|
"typeIdentifier": "t_function_external_view$__$returns$_t_bytes32_$",
|
|
723
723
|
"typeString": "function () view external returns (bytes32)"
|
|
724
724
|
}
|
|
725
725
|
},
|
|
726
|
-
"id":
|
|
726
|
+
"id": 34822,
|
|
727
727
|
"isConstant": false,
|
|
728
728
|
"isLValue": false,
|
|
729
729
|
"isPure": false,
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
},
|
|
747
747
|
{
|
|
748
748
|
"hexValue": "5555505350726f786961626c653a206e6f7420636f6d70617469626c65206c6f676963",
|
|
749
|
-
"id":
|
|
749
|
+
"id": 34824,
|
|
750
750
|
"isConstant": false,
|
|
751
751
|
"isLValue": false,
|
|
752
752
|
"isPure": true,
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
"typeString": "literal_string \"UUPSProxiable: not compatible logic\""
|
|
773
773
|
}
|
|
774
774
|
],
|
|
775
|
-
"id":
|
|
775
|
+
"id": 34815,
|
|
776
776
|
"name": "require",
|
|
777
777
|
"nodeType": "Identifier",
|
|
778
778
|
"overloadedDeclarations": [
|
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
"typeString": "function (bool,string memory) pure"
|
|
787
787
|
}
|
|
788
788
|
},
|
|
789
|
-
"id":
|
|
789
|
+
"id": 34825,
|
|
790
790
|
"isConstant": false,
|
|
791
791
|
"isLValue": false,
|
|
792
792
|
"isPure": false,
|
|
@@ -801,7 +801,7 @@
|
|
|
801
801
|
"typeString": "tuple()"
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
|
-
"id":
|
|
804
|
+
"id": 34826,
|
|
805
805
|
"nodeType": "ExpressionStatement",
|
|
806
806
|
"src": "1313:142:93"
|
|
807
807
|
},
|
|
@@ -813,7 +813,7 @@
|
|
|
813
813
|
"typeIdentifier": "t_address",
|
|
814
814
|
"typeString": "address"
|
|
815
815
|
},
|
|
816
|
-
"id":
|
|
816
|
+
"id": 34833,
|
|
817
817
|
"isConstant": false,
|
|
818
818
|
"isLValue": false,
|
|
819
819
|
"isPure": false,
|
|
@@ -821,14 +821,14 @@
|
|
|
821
821
|
"leftExpression": {
|
|
822
822
|
"arguments": [
|
|
823
823
|
{
|
|
824
|
-
"id":
|
|
824
|
+
"id": 34830,
|
|
825
825
|
"name": "this",
|
|
826
826
|
"nodeType": "Identifier",
|
|
827
827
|
"overloadedDeclarations": [],
|
|
828
828
|
"referencedDeclaration": 4294967268,
|
|
829
829
|
"src": "1494:4:93",
|
|
830
830
|
"typeDescriptions": {
|
|
831
|
-
"typeIdentifier": "t_contract$_UUPSProxiable_$
|
|
831
|
+
"typeIdentifier": "t_contract$_UUPSProxiable_$34857",
|
|
832
832
|
"typeString": "contract UUPSProxiable"
|
|
833
833
|
}
|
|
834
834
|
}
|
|
@@ -836,11 +836,11 @@
|
|
|
836
836
|
"expression": {
|
|
837
837
|
"argumentTypes": [
|
|
838
838
|
{
|
|
839
|
-
"typeIdentifier": "t_contract$_UUPSProxiable_$
|
|
839
|
+
"typeIdentifier": "t_contract$_UUPSProxiable_$34857",
|
|
840
840
|
"typeString": "contract UUPSProxiable"
|
|
841
841
|
}
|
|
842
842
|
],
|
|
843
|
-
"id":
|
|
843
|
+
"id": 34829,
|
|
844
844
|
"isConstant": false,
|
|
845
845
|
"isLValue": false,
|
|
846
846
|
"isPure": true,
|
|
@@ -852,14 +852,14 @@
|
|
|
852
852
|
"typeString": "type(address)"
|
|
853
853
|
},
|
|
854
854
|
"typeName": {
|
|
855
|
-
"id":
|
|
855
|
+
"id": 34828,
|
|
856
856
|
"name": "address",
|
|
857
857
|
"nodeType": "ElementaryTypeName",
|
|
858
858
|
"src": "1486:7:93",
|
|
859
859
|
"typeDescriptions": {}
|
|
860
860
|
}
|
|
861
861
|
},
|
|
862
|
-
"id":
|
|
862
|
+
"id": 34831,
|
|
863
863
|
"isConstant": false,
|
|
864
864
|
"isLValue": false,
|
|
865
865
|
"isPure": false,
|
|
@@ -877,11 +877,11 @@
|
|
|
877
877
|
"nodeType": "BinaryOperation",
|
|
878
878
|
"operator": "!=",
|
|
879
879
|
"rightExpression": {
|
|
880
|
-
"id":
|
|
880
|
+
"id": 34832,
|
|
881
881
|
"name": "newAddress",
|
|
882
882
|
"nodeType": "Identifier",
|
|
883
883
|
"overloadedDeclarations": [],
|
|
884
|
-
"referencedDeclaration":
|
|
884
|
+
"referencedDeclaration": 34800,
|
|
885
885
|
"src": "1503:10:93",
|
|
886
886
|
"typeDescriptions": {
|
|
887
887
|
"typeIdentifier": "t_address",
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
},
|
|
897
897
|
{
|
|
898
898
|
"hexValue": "5555505350726f786961626c653a2070726f7879206c6f6f70",
|
|
899
|
-
"id":
|
|
899
|
+
"id": 34834,
|
|
900
900
|
"isConstant": false,
|
|
901
901
|
"isLValue": false,
|
|
902
902
|
"isPure": true,
|
|
@@ -922,7 +922,7 @@
|
|
|
922
922
|
"typeString": "literal_string \"UUPSProxiable: proxy loop\""
|
|
923
923
|
}
|
|
924
924
|
],
|
|
925
|
-
"id":
|
|
925
|
+
"id": 34827,
|
|
926
926
|
"name": "require",
|
|
927
927
|
"nodeType": "Identifier",
|
|
928
928
|
"overloadedDeclarations": [
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
"typeString": "function (bool,string memory) pure"
|
|
937
937
|
}
|
|
938
938
|
},
|
|
939
|
-
"id":
|
|
939
|
+
"id": 34835,
|
|
940
940
|
"isConstant": false,
|
|
941
941
|
"isLValue": false,
|
|
942
942
|
"isPure": false,
|
|
@@ -951,7 +951,7 @@
|
|
|
951
951
|
"typeString": "tuple()"
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
|
-
"id":
|
|
954
|
+
"id": 34836,
|
|
955
955
|
"nodeType": "ExpressionStatement",
|
|
956
956
|
"src": "1465:99:93"
|
|
957
957
|
},
|
|
@@ -959,11 +959,11 @@
|
|
|
959
959
|
"expression": {
|
|
960
960
|
"arguments": [
|
|
961
961
|
{
|
|
962
|
-
"id":
|
|
962
|
+
"id": 34840,
|
|
963
963
|
"name": "newAddress",
|
|
964
964
|
"nodeType": "Identifier",
|
|
965
965
|
"overloadedDeclarations": [],
|
|
966
|
-
"referencedDeclaration":
|
|
966
|
+
"referencedDeclaration": 34800,
|
|
967
967
|
"src": "1602:10:93",
|
|
968
968
|
"typeDescriptions": {
|
|
969
969
|
"typeIdentifier": "t_address",
|
|
@@ -979,32 +979,32 @@
|
|
|
979
979
|
}
|
|
980
980
|
],
|
|
981
981
|
"expression": {
|
|
982
|
-
"id":
|
|
982
|
+
"id": 34837,
|
|
983
983
|
"name": "UUPSUtils",
|
|
984
984
|
"nodeType": "Identifier",
|
|
985
985
|
"overloadedDeclarations": [],
|
|
986
|
-
"referencedDeclaration":
|
|
986
|
+
"referencedDeclaration": 34938,
|
|
987
987
|
"src": "1574:9:93",
|
|
988
988
|
"typeDescriptions": {
|
|
989
|
-
"typeIdentifier": "t_type$_t_contract$_UUPSUtils_$
|
|
989
|
+
"typeIdentifier": "t_type$_t_contract$_UUPSUtils_$34938_$",
|
|
990
990
|
"typeString": "type(library UUPSUtils)"
|
|
991
991
|
}
|
|
992
992
|
},
|
|
993
|
-
"id":
|
|
993
|
+
"id": 34839,
|
|
994
994
|
"isConstant": false,
|
|
995
995
|
"isLValue": false,
|
|
996
996
|
"isPure": false,
|
|
997
997
|
"lValueRequested": false,
|
|
998
998
|
"memberName": "setImplementation",
|
|
999
999
|
"nodeType": "MemberAccess",
|
|
1000
|
-
"referencedDeclaration":
|
|
1000
|
+
"referencedDeclaration": 34937,
|
|
1001
1001
|
"src": "1574:27:93",
|
|
1002
1002
|
"typeDescriptions": {
|
|
1003
1003
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
|
|
1004
1004
|
"typeString": "function (address)"
|
|
1005
1005
|
}
|
|
1006
1006
|
},
|
|
1007
|
-
"id":
|
|
1007
|
+
"id": 34841,
|
|
1008
1008
|
"isConstant": false,
|
|
1009
1009
|
"isLValue": false,
|
|
1010
1010
|
"isPure": false,
|
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
"typeString": "tuple()"
|
|
1020
1020
|
}
|
|
1021
1021
|
},
|
|
1022
|
-
"id":
|
|
1022
|
+
"id": 34842,
|
|
1023
1023
|
"nodeType": "ExpressionStatement",
|
|
1024
1024
|
"src": "1574:39:93"
|
|
1025
1025
|
},
|
|
@@ -1030,18 +1030,18 @@
|
|
|
1030
1030
|
"arguments": [],
|
|
1031
1031
|
"expression": {
|
|
1032
1032
|
"argumentTypes": [],
|
|
1033
|
-
"id":
|
|
1033
|
+
"id": 34844,
|
|
1034
1034
|
"name": "proxiableUUID",
|
|
1035
1035
|
"nodeType": "Identifier",
|
|
1036
1036
|
"overloadedDeclarations": [],
|
|
1037
|
-
"referencedDeclaration":
|
|
1037
|
+
"referencedDeclaration": 34797,
|
|
1038
1038
|
"src": "1640:13:93",
|
|
1039
1039
|
"typeDescriptions": {
|
|
1040
1040
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
|
|
1041
1041
|
"typeString": "function () view returns (bytes32)"
|
|
1042
1042
|
}
|
|
1043
1043
|
},
|
|
1044
|
-
"id":
|
|
1044
|
+
"id": 34845,
|
|
1045
1045
|
"isConstant": false,
|
|
1046
1046
|
"isLValue": false,
|
|
1047
1047
|
"isPure": false,
|
|
@@ -1057,11 +1057,11 @@
|
|
|
1057
1057
|
}
|
|
1058
1058
|
},
|
|
1059
1059
|
{
|
|
1060
|
-
"id":
|
|
1060
|
+
"id": 34846,
|
|
1061
1061
|
"name": "newAddress",
|
|
1062
1062
|
"nodeType": "Identifier",
|
|
1063
1063
|
"overloadedDeclarations": [],
|
|
1064
|
-
"referencedDeclaration":
|
|
1064
|
+
"referencedDeclaration": 34800,
|
|
1065
1065
|
"src": "1657:10:93",
|
|
1066
1066
|
"typeDescriptions": {
|
|
1067
1067
|
"typeIdentifier": "t_address",
|
|
@@ -1080,18 +1080,18 @@
|
|
|
1080
1080
|
"typeString": "address"
|
|
1081
1081
|
}
|
|
1082
1082
|
],
|
|
1083
|
-
"id":
|
|
1083
|
+
"id": 34843,
|
|
1084
1084
|
"name": "CodeUpdated",
|
|
1085
1085
|
"nodeType": "Identifier",
|
|
1086
1086
|
"overloadedDeclarations": [],
|
|
1087
|
-
"referencedDeclaration":
|
|
1087
|
+
"referencedDeclaration": 34856,
|
|
1088
1088
|
"src": "1628:11:93",
|
|
1089
1089
|
"typeDescriptions": {
|
|
1090
1090
|
"typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_address_$returns$__$",
|
|
1091
1091
|
"typeString": "function (bytes32,address)"
|
|
1092
1092
|
}
|
|
1093
1093
|
},
|
|
1094
|
-
"id":
|
|
1094
|
+
"id": 34847,
|
|
1095
1095
|
"isConstant": false,
|
|
1096
1096
|
"isLValue": false,
|
|
1097
1097
|
"isPure": false,
|
|
@@ -1106,19 +1106,19 @@
|
|
|
1106
1106
|
"typeString": "tuple()"
|
|
1107
1107
|
}
|
|
1108
1108
|
},
|
|
1109
|
-
"id":
|
|
1109
|
+
"id": 34848,
|
|
1110
1110
|
"nodeType": "EmitStatement",
|
|
1111
1111
|
"src": "1623:45:93"
|
|
1112
1112
|
}
|
|
1113
1113
|
]
|
|
1114
1114
|
},
|
|
1115
1115
|
"documentation": {
|
|
1116
|
-
"id":
|
|
1116
|
+
"id": 34798,
|
|
1117
1117
|
"nodeType": "StructuredDocumentation",
|
|
1118
1118
|
"src": "951:143:93",
|
|
1119
1119
|
"text": " @dev Update code address function.\n It is internal, so the derived contract could setup its own permission logic."
|
|
1120
1120
|
},
|
|
1121
|
-
"id":
|
|
1121
|
+
"id": 34850,
|
|
1122
1122
|
"implemented": true,
|
|
1123
1123
|
"kind": "function",
|
|
1124
1124
|
"modifiers": [],
|
|
@@ -1126,17 +1126,17 @@
|
|
|
1126
1126
|
"nameLocation": "1108:18:93",
|
|
1127
1127
|
"nodeType": "FunctionDefinition",
|
|
1128
1128
|
"parameters": {
|
|
1129
|
-
"id":
|
|
1129
|
+
"id": 34801,
|
|
1130
1130
|
"nodeType": "ParameterList",
|
|
1131
1131
|
"parameters": [
|
|
1132
1132
|
{
|
|
1133
1133
|
"constant": false,
|
|
1134
|
-
"id":
|
|
1134
|
+
"id": 34800,
|
|
1135
1135
|
"mutability": "mutable",
|
|
1136
1136
|
"name": "newAddress",
|
|
1137
1137
|
"nameLocation": "1135:10:93",
|
|
1138
1138
|
"nodeType": "VariableDeclaration",
|
|
1139
|
-
"scope":
|
|
1139
|
+
"scope": 34850,
|
|
1140
1140
|
"src": "1127:18:93",
|
|
1141
1141
|
"stateVariable": false,
|
|
1142
1142
|
"storageLocation": "default",
|
|
@@ -1145,7 +1145,7 @@
|
|
|
1145
1145
|
"typeString": "address"
|
|
1146
1146
|
},
|
|
1147
1147
|
"typeName": {
|
|
1148
|
-
"id":
|
|
1148
|
+
"id": 34799,
|
|
1149
1149
|
"name": "address",
|
|
1150
1150
|
"nodeType": "ElementaryTypeName",
|
|
1151
1151
|
"src": "1127:7:93",
|
|
@@ -1161,12 +1161,12 @@
|
|
|
1161
1161
|
"src": "1126:20:93"
|
|
1162
1162
|
},
|
|
1163
1163
|
"returnParameters": {
|
|
1164
|
-
"id":
|
|
1164
|
+
"id": 34802,
|
|
1165
1165
|
"nodeType": "ParameterList",
|
|
1166
1166
|
"parameters": [],
|
|
1167
1167
|
"src": "1160:0:93"
|
|
1168
1168
|
},
|
|
1169
|
-
"scope":
|
|
1169
|
+
"scope": 34857,
|
|
1170
1170
|
"src": "1099:576:93",
|
|
1171
1171
|
"stateMutability": "nonpayable",
|
|
1172
1172
|
"virtual": false,
|
|
@@ -1175,23 +1175,23 @@
|
|
|
1175
1175
|
{
|
|
1176
1176
|
"anonymous": false,
|
|
1177
1177
|
"eventSelector": "e011bc04c286c344a8fcbb8de77f953da762c3e25d8cdea984147fc4168a5dcc",
|
|
1178
|
-
"id":
|
|
1178
|
+
"id": 34856,
|
|
1179
1179
|
"name": "CodeUpdated",
|
|
1180
1180
|
"nameLocation": "1687:11:93",
|
|
1181
1181
|
"nodeType": "EventDefinition",
|
|
1182
1182
|
"parameters": {
|
|
1183
|
-
"id":
|
|
1183
|
+
"id": 34855,
|
|
1184
1184
|
"nodeType": "ParameterList",
|
|
1185
1185
|
"parameters": [
|
|
1186
1186
|
{
|
|
1187
1187
|
"constant": false,
|
|
1188
|
-
"id":
|
|
1188
|
+
"id": 34852,
|
|
1189
1189
|
"indexed": false,
|
|
1190
1190
|
"mutability": "mutable",
|
|
1191
1191
|
"name": "uuid",
|
|
1192
1192
|
"nameLocation": "1707:4:93",
|
|
1193
1193
|
"nodeType": "VariableDeclaration",
|
|
1194
|
-
"scope":
|
|
1194
|
+
"scope": 34856,
|
|
1195
1195
|
"src": "1699:12:93",
|
|
1196
1196
|
"stateVariable": false,
|
|
1197
1197
|
"storageLocation": "default",
|
|
@@ -1200,7 +1200,7 @@
|
|
|
1200
1200
|
"typeString": "bytes32"
|
|
1201
1201
|
},
|
|
1202
1202
|
"typeName": {
|
|
1203
|
-
"id":
|
|
1203
|
+
"id": 34851,
|
|
1204
1204
|
"name": "bytes32",
|
|
1205
1205
|
"nodeType": "ElementaryTypeName",
|
|
1206
1206
|
"src": "1699:7:93",
|
|
@@ -1213,13 +1213,13 @@
|
|
|
1213
1213
|
},
|
|
1214
1214
|
{
|
|
1215
1215
|
"constant": false,
|
|
1216
|
-
"id":
|
|
1216
|
+
"id": 34854,
|
|
1217
1217
|
"indexed": false,
|
|
1218
1218
|
"mutability": "mutable",
|
|
1219
1219
|
"name": "codeAddress",
|
|
1220
1220
|
"nameLocation": "1721:11:93",
|
|
1221
1221
|
"nodeType": "VariableDeclaration",
|
|
1222
|
-
"scope":
|
|
1222
|
+
"scope": 34856,
|
|
1223
1223
|
"src": "1713:19:93",
|
|
1224
1224
|
"stateVariable": false,
|
|
1225
1225
|
"storageLocation": "default",
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
"typeString": "address"
|
|
1229
1229
|
},
|
|
1230
1230
|
"typeName": {
|
|
1231
|
-
"id":
|
|
1231
|
+
"id": 34853,
|
|
1232
1232
|
"name": "address",
|
|
1233
1233
|
"nodeType": "ElementaryTypeName",
|
|
1234
1234
|
"src": "1713:7:93",
|
|
@@ -1246,7 +1246,7 @@
|
|
|
1246
1246
|
"src": "1681:53:93"
|
|
1247
1247
|
}
|
|
1248
1248
|
],
|
|
1249
|
-
"scope":
|
|
1249
|
+
"scope": 34858,
|
|
1250
1250
|
"src": "275:1462:93",
|
|
1251
1251
|
"usedErrors": []
|
|
1252
1252
|
}
|
|
@@ -1255,11 +1255,11 @@
|
|
|
1255
1255
|
},
|
|
1256
1256
|
"compiler": {
|
|
1257
1257
|
"name": "solc",
|
|
1258
|
-
"version": "0.8.
|
|
1258
|
+
"version": "0.8.14+commit.80d49f37.Emscripten.clang"
|
|
1259
1259
|
},
|
|
1260
1260
|
"networks": {},
|
|
1261
1261
|
"schemaVersion": "3.4.7",
|
|
1262
|
-
"updatedAt": "2022-06-
|
|
1262
|
+
"updatedAt": "2022-06-20T11:32:30.088Z",
|
|
1263
1263
|
"devdoc": {
|
|
1264
1264
|
"kind": "dev",
|
|
1265
1265
|
"methods": {
|