@superfluid-finance/ethereum-contracts 1.4.4-dev.bb1ba68.0 → 1.4.4-dev.cd4538f.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/artifacts/contracts/utils/TOGA.sol/ITOGAv3.json +194 -0
- package/artifacts/contracts/utils/TOGA.sol/TOGA.json +2 -33
- package/build/contracts/AccessControl.json +1 -1
- package/build/contracts/AccessControlEnumerable.json +1 -1
- package/build/contracts/Address.json +1 -1
- package/build/contracts/AgreementBase.json +1 -1
- package/build/contracts/AgreementLibrary.json +1 -1
- package/build/contracts/BaseRelayRecipient.json +1 -1
- package/build/contracts/BatchLiquidator.json +723 -723
- package/build/contracts/BatchOperation.json +1 -1
- package/build/contracts/CFAv1Forwarder.json +2050 -2050
- package/build/contracts/CFAv1Library.json +1 -1
- package/build/contracts/CallUtils.json +1 -1
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +1566 -1566
- package/build/contracts/ConstantFlowAgreementV1.json +4582 -4582
- package/build/contracts/Context.json +1 -1
- package/build/contracts/ContextDefinitions.json +1 -1
- package/build/contracts/CustomSuperTokenBase.json +1 -1
- package/build/contracts/ERC165.json +1 -1
- package/build/contracts/ERC1820Implementer.json +79 -79
- package/build/contracts/ERC1820RegistryCompiled.json +1 -1
- package/build/contracts/ERC20.json +1289 -1289
- package/build/contracts/ERC20WithTokenInfo.json +1 -1
- package/build/contracts/ERC777Helper.json +1 -1
- package/build/contracts/ERC777RecipientDrainingGas.json +350 -350
- package/build/contracts/ERC777RecipientReverting.json +373 -373
- package/build/contracts/EnumerableSet.json +1 -1
- package/build/contracts/EventsEmitter.json +1 -1
- package/build/contracts/ExclusiveInflowTestApp.json +1594 -1594
- package/build/contracts/FixedSizeData.json +1 -1
- package/build/contracts/FlowExchangeTestApp.json +1704 -1704
- package/build/contracts/FlowOperatorDefinitions.json +1 -1
- package/build/contracts/FullUpgradableSuperTokenProxy.json +74 -74
- package/build/contracts/IAccessControl.json +1 -1
- package/build/contracts/IAccessControlEnumerable.json +1 -1
- package/build/contracts/IConstantFlowAgreementHook.json +1 -1
- package/build/contracts/IConstantFlowAgreementV1.json +1 -1
- package/build/contracts/IDAv1Library.json +1 -1
- package/build/contracts/IERC165.json +1 -1
- package/build/contracts/IERC1820Implementer.json +1 -1
- package/build/contracts/IERC1820Registry.json +1 -1
- package/build/contracts/IERC20.json +1 -1
- package/build/contracts/IERC20Metadata.json +1 -1
- package/build/contracts/IERC20Permit.json +1 -1
- package/build/contracts/IERC777.json +1 -1
- package/build/contracts/IERC777Recipient.json +1 -1
- package/build/contracts/IERC777Sender.json +1 -1
- package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
- package/build/contracts/IMultiSigWallet.json +1 -1
- package/build/contracts/IPureSuperToken.json +1 -1
- package/build/contracts/IPureSuperTokenCustom.json +1 -1
- package/build/contracts/IRelayRecipient.json +1 -1
- package/build/contracts/IResolver.json +1 -1
- package/build/contracts/ISETH.json +1 -1
- package/build/contracts/ISETHCustom.json +1 -1
- package/build/contracts/ISuperAgreement.json +1 -1
- package/build/contracts/ISuperApp.json +1 -1
- package/build/contracts/ISuperToken.json +1 -1
- package/build/contracts/ISuperTokenFactory.json +1 -1
- package/build/contracts/ISuperfluid.json +1 -1
- package/build/contracts/ISuperfluidGovernance.json +1 -1
- package/build/contracts/ISuperfluidToken.json +1 -1
- package/build/contracts/ITOGAv1.json +2099 -2898
- package/build/contracts/ITOGAv2.json +2098 -2897
- package/build/contracts/ITOGAv3.json +10990 -0
- package/build/contracts/Initializable.json +1 -1
- package/build/contracts/InstantDistributionAgreementV1.json +5077 -5077
- package/build/contracts/NonClosableOutflowTestApp.json +1469 -1469
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/Proxy.json +1 -1
- package/build/contracts/PureSuperToken.json +534 -534
- package/build/contracts/Resolver.json +885 -885
- package/build/contracts/SETHProxy.json +293 -293
- package/build/contracts/SafeCast.json +1 -1
- package/build/contracts/SafeERC20.json +1 -1
- package/build/contracts/SafeMath.json +1 -1
- package/build/contracts/SelfDeletingFlowTestApp.json +1566 -1566
- package/build/contracts/SlotsBitmapLibrary.json +971 -971
- package/build/contracts/StreamRedirector.json +1956 -1956
- package/build/contracts/Strings.json +1 -1
- package/build/contracts/SuperAppBase.json +1 -1
- package/build/contracts/SuperAppDefinitions.json +1 -1
- package/build/contracts/SuperToken.json +4575 -4575
- package/build/contracts/SuperTokenFactory.json +1753 -1753
- package/build/contracts/SuperTokenFactoryBase.json +1 -1
- package/build/contracts/SuperTokenFactoryHelper.json +104 -104
- package/build/contracts/SuperUpgrader.json +1718 -1718
- package/build/contracts/Superfluid.json +4566 -4566
- package/build/contracts/SuperfluidFrameworkDeployer.json +2400 -2400
- package/build/contracts/SuperfluidGovernanceBase.json +1 -1
- package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
- package/build/contracts/SuperfluidGovernanceII.json +2438 -2438
- package/build/contracts/SuperfluidGovernanceIIProxy.json +211 -211
- package/build/contracts/SuperfluidLoader.json +500 -500
- package/build/contracts/SuperfluidToken.json +1 -1
- package/build/contracts/TOGA.json +4255 -6226
- package/build/contracts/TestGovernance.json +2494 -2494
- package/build/contracts/TestResolver.json +964 -964
- package/build/contracts/TestToken.json +1478 -1478
- package/build/contracts/TokenInfo.json +1 -1
- package/build/contracts/UUPSProxiable.json +1 -1
- package/build/contracts/UUPSProxy.json +116 -116
- package/build/contracts/UUPSUtils.json +1 -1
- package/build/typechain/contracts/utils/TOGA.sol/ITOGAv3.d.ts +158 -0
- package/build/typechain/contracts/utils/TOGA.sol/ITOGAv3.d.ts.map +1 -0
- package/build/typechain/contracts/utils/{TokenCustodian.js → TOGA.sol/ITOGAv3.js} +1 -1
- package/build/typechain/contracts/utils/TOGA.sol/ITOGAv3.js.map +1 -0
- package/build/typechain/contracts/utils/TOGA.sol/TOGA.d.ts +1 -25
- package/build/typechain/contracts/utils/TOGA.sol/TOGA.d.ts.map +1 -1
- package/build/typechain/contracts/utils/TOGA.sol/index.d.ts +1 -0
- package/build/typechain/contracts/utils/TOGA.sol/index.d.ts.map +1 -1
- package/build/typechain/contracts/utils/index.d.ts +0 -1
- package/build/typechain/contracts/utils/index.d.ts.map +1 -1
- package/build/typechain/factories/contracts/utils/TOGA.sol/ITOGAv3__factory.d.ts +36 -0
- package/build/typechain/factories/contracts/utils/TOGA.sol/ITOGAv3__factory.d.ts.map +1 -0
- package/build/typechain/factories/contracts/utils/TOGA.sol/ITOGAv3__factory.js +203 -0
- package/build/typechain/factories/contracts/utils/TOGA.sol/ITOGAv3__factory.js.map +1 -0
- package/build/typechain/factories/contracts/utils/TOGA.sol/TOGA__factory.d.ts +3 -3
- package/build/typechain/factories/contracts/utils/TOGA.sol/TOGA__factory.d.ts.map +1 -1
- package/build/typechain/factories/contracts/utils/TOGA.sol/TOGA__factory.js +5 -36
- package/build/typechain/factories/contracts/utils/TOGA.sol/TOGA__factory.js.map +1 -1
- package/build/typechain/factories/contracts/utils/TOGA.sol/index.d.ts +1 -0
- package/build/typechain/factories/contracts/utils/TOGA.sol/index.d.ts.map +1 -1
- package/build/typechain/factories/contracts/utils/TOGA.sol/index.js +3 -1
- package/build/typechain/factories/contracts/utils/TOGA.sol/index.js.map +1 -1
- package/build/typechain/factories/contracts/utils/index.d.ts +0 -1
- package/build/typechain/factories/contracts/utils/index.d.ts.map +1 -1
- package/build/typechain/factories/contracts/utils/index.js +1 -3
- package/build/typechain/factories/contracts/utils/index.js.map +1 -1
- package/build/typechain/index.d.ts +2 -2
- package/build/typechain/index.d.ts.map +1 -1
- package/build/typechain/index.js +3 -3
- package/build/typechain/index.js.map +1 -1
- package/contracts/utils/TOGA.sol +16 -28
- package/package.json +2 -2
- package/scripts/deploy-aux-contracts.js +1 -5
- package/artifacts/contracts/utils/TokenCustodian.sol/TokenCustodian.json +0 -146
- package/build/contracts/TokenCustodian.json +0 -5052
- package/build/typechain/contracts/utils/TokenCustodian.d.ts +0 -114
- package/build/typechain/contracts/utils/TokenCustodian.d.ts.map +0 -1
- package/build/typechain/contracts/utils/TokenCustodian.js.map +0 -1
- package/build/typechain/factories/contracts/utils/TokenCustodian__factory.d.ts +0 -56
- package/build/typechain/factories/contracts/utils/TokenCustodian__factory.d.ts.map +0 -1
- package/build/typechain/factories/contracts/utils/TokenCustodian__factory.js +0 -178
- package/build/typechain/factories/contracts/utils/TokenCustodian__factory.js.map +0 -1
- package/contracts/utils/TokenCustodian.sol +0 -55
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
{
|
|
33
33
|
"ast": {
|
|
34
34
|
"nodeType": "YulBlock",
|
|
35
|
-
"src": "0:1013:
|
|
35
|
+
"src": "0:1013:103",
|
|
36
36
|
"statements": [
|
|
37
37
|
{
|
|
38
38
|
"nodeType": "YulBlock",
|
|
39
|
-
"src": "6:3:
|
|
39
|
+
"src": "6:3:103",
|
|
40
40
|
"statements": []
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"body": {
|
|
44
44
|
"nodeType": "YulBlock",
|
|
45
|
-
"src": "84:216:
|
|
45
|
+
"src": "84:216:103",
|
|
46
46
|
"statements": [
|
|
47
47
|
{
|
|
48
48
|
"body": {
|
|
49
49
|
"nodeType": "YulBlock",
|
|
50
|
-
"src": "130:16:
|
|
50
|
+
"src": "130:16:103",
|
|
51
51
|
"statements": [
|
|
52
52
|
{
|
|
53
53
|
"expression": {
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
{
|
|
56
56
|
"kind": "number",
|
|
57
57
|
"nodeType": "YulLiteral",
|
|
58
|
-
"src": "139:1:
|
|
58
|
+
"src": "139:1:103",
|
|
59
59
|
"type": "",
|
|
60
60
|
"value": "0"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"kind": "number",
|
|
64
64
|
"nodeType": "YulLiteral",
|
|
65
|
-
"src": "142:1:
|
|
65
|
+
"src": "142:1:103",
|
|
66
66
|
"type": "",
|
|
67
67
|
"value": "0"
|
|
68
68
|
}
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"functionName": {
|
|
71
71
|
"name": "revert",
|
|
72
72
|
"nodeType": "YulIdentifier",
|
|
73
|
-
"src": "132:6:
|
|
73
|
+
"src": "132:6:103"
|
|
74
74
|
},
|
|
75
75
|
"nodeType": "YulFunctionCall",
|
|
76
|
-
"src": "132:12:
|
|
76
|
+
"src": "132:12:103"
|
|
77
77
|
},
|
|
78
78
|
"nodeType": "YulExpressionStatement",
|
|
79
|
-
"src": "132:12:
|
|
79
|
+
"src": "132:12:103"
|
|
80
80
|
}
|
|
81
81
|
]
|
|
82
82
|
},
|
|
@@ -87,26 +87,26 @@
|
|
|
87
87
|
{
|
|
88
88
|
"name": "dataEnd",
|
|
89
89
|
"nodeType": "YulIdentifier",
|
|
90
|
-
"src": "105:7:
|
|
90
|
+
"src": "105:7:103"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"name": "headStart",
|
|
94
94
|
"nodeType": "YulIdentifier",
|
|
95
|
-
"src": "114:9:
|
|
95
|
+
"src": "114:9:103"
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
98
|
"functionName": {
|
|
99
99
|
"name": "sub",
|
|
100
100
|
"nodeType": "YulIdentifier",
|
|
101
|
-
"src": "101:3:
|
|
101
|
+
"src": "101:3:103"
|
|
102
102
|
},
|
|
103
103
|
"nodeType": "YulFunctionCall",
|
|
104
|
-
"src": "101:23:
|
|
104
|
+
"src": "101:23:103"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"kind": "number",
|
|
108
108
|
"nodeType": "YulLiteral",
|
|
109
|
-
"src": "126:2:
|
|
109
|
+
"src": "126:2:103",
|
|
110
110
|
"type": "",
|
|
111
111
|
"value": "32"
|
|
112
112
|
}
|
|
@@ -114,38 +114,38 @@
|
|
|
114
114
|
"functionName": {
|
|
115
115
|
"name": "slt",
|
|
116
116
|
"nodeType": "YulIdentifier",
|
|
117
|
-
"src": "97:3:
|
|
117
|
+
"src": "97:3:103"
|
|
118
118
|
},
|
|
119
119
|
"nodeType": "YulFunctionCall",
|
|
120
|
-
"src": "97:32:
|
|
120
|
+
"src": "97:32:103"
|
|
121
121
|
},
|
|
122
122
|
"nodeType": "YulIf",
|
|
123
|
-
"src": "94:52:
|
|
123
|
+
"src": "94:52:103"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"nodeType": "YulVariableDeclaration",
|
|
127
|
-
"src": "155:36:
|
|
127
|
+
"src": "155:36:103",
|
|
128
128
|
"value": {
|
|
129
129
|
"arguments": [
|
|
130
130
|
{
|
|
131
131
|
"name": "headStart",
|
|
132
132
|
"nodeType": "YulIdentifier",
|
|
133
|
-
"src": "181:9:
|
|
133
|
+
"src": "181:9:103"
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
136
|
"functionName": {
|
|
137
137
|
"name": "calldataload",
|
|
138
138
|
"nodeType": "YulIdentifier",
|
|
139
|
-
"src": "168:12:
|
|
139
|
+
"src": "168:12:103"
|
|
140
140
|
},
|
|
141
141
|
"nodeType": "YulFunctionCall",
|
|
142
|
-
"src": "168:23:
|
|
142
|
+
"src": "168:23:103"
|
|
143
143
|
},
|
|
144
144
|
"variables": [
|
|
145
145
|
{
|
|
146
146
|
"name": "value",
|
|
147
147
|
"nodeType": "YulTypedName",
|
|
148
|
-
"src": "159:5:
|
|
148
|
+
"src": "159:5:103",
|
|
149
149
|
"type": ""
|
|
150
150
|
}
|
|
151
151
|
]
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
{
|
|
154
154
|
"body": {
|
|
155
155
|
"nodeType": "YulBlock",
|
|
156
|
-
"src": "254:16:
|
|
156
|
+
"src": "254:16:103",
|
|
157
157
|
"statements": [
|
|
158
158
|
{
|
|
159
159
|
"expression": {
|
|
@@ -161,14 +161,14 @@
|
|
|
161
161
|
{
|
|
162
162
|
"kind": "number",
|
|
163
163
|
"nodeType": "YulLiteral",
|
|
164
|
-
"src": "263:1:
|
|
164
|
+
"src": "263:1:103",
|
|
165
165
|
"type": "",
|
|
166
166
|
"value": "0"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"kind": "number",
|
|
170
170
|
"nodeType": "YulLiteral",
|
|
171
|
-
"src": "266:1:
|
|
171
|
+
"src": "266:1:103",
|
|
172
172
|
"type": "",
|
|
173
173
|
"value": "0"
|
|
174
174
|
}
|
|
@@ -176,13 +176,13 @@
|
|
|
176
176
|
"functionName": {
|
|
177
177
|
"name": "revert",
|
|
178
178
|
"nodeType": "YulIdentifier",
|
|
179
|
-
"src": "256:6:
|
|
179
|
+
"src": "256:6:103"
|
|
180
180
|
},
|
|
181
181
|
"nodeType": "YulFunctionCall",
|
|
182
|
-
"src": "256:12:
|
|
182
|
+
"src": "256:12:103"
|
|
183
183
|
},
|
|
184
184
|
"nodeType": "YulExpressionStatement",
|
|
185
|
-
"src": "256:12:
|
|
185
|
+
"src": "256:12:103"
|
|
186
186
|
}
|
|
187
187
|
]
|
|
188
188
|
},
|
|
@@ -193,14 +193,14 @@
|
|
|
193
193
|
{
|
|
194
194
|
"name": "value",
|
|
195
195
|
"nodeType": "YulIdentifier",
|
|
196
|
-
"src": "213:5:
|
|
196
|
+
"src": "213:5:103"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"arguments": [
|
|
200
200
|
{
|
|
201
201
|
"name": "value",
|
|
202
202
|
"nodeType": "YulIdentifier",
|
|
203
|
-
"src": "224:5:
|
|
203
|
+
"src": "224:5:103"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
"arguments": [
|
|
@@ -209,14 +209,14 @@
|
|
|
209
209
|
{
|
|
210
210
|
"kind": "number",
|
|
211
211
|
"nodeType": "YulLiteral",
|
|
212
|
-
"src": "239:3:
|
|
212
|
+
"src": "239:3:103",
|
|
213
213
|
"type": "",
|
|
214
214
|
"value": "160"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"kind": "number",
|
|
218
218
|
"nodeType": "YulLiteral",
|
|
219
|
-
"src": "244:1:
|
|
219
|
+
"src": "244:1:103",
|
|
220
220
|
"type": "",
|
|
221
221
|
"value": "1"
|
|
222
222
|
}
|
|
@@ -224,15 +224,15 @@
|
|
|
224
224
|
"functionName": {
|
|
225
225
|
"name": "shl",
|
|
226
226
|
"nodeType": "YulIdentifier",
|
|
227
|
-
"src": "235:3:
|
|
227
|
+
"src": "235:3:103"
|
|
228
228
|
},
|
|
229
229
|
"nodeType": "YulFunctionCall",
|
|
230
|
-
"src": "235:11:
|
|
230
|
+
"src": "235:11:103"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"kind": "number",
|
|
234
234
|
"nodeType": "YulLiteral",
|
|
235
|
-
"src": "248:1:
|
|
235
|
+
"src": "248:1:103",
|
|
236
236
|
"type": "",
|
|
237
237
|
"value": "1"
|
|
238
238
|
}
|
|
@@ -240,54 +240,54 @@
|
|
|
240
240
|
"functionName": {
|
|
241
241
|
"name": "sub",
|
|
242
242
|
"nodeType": "YulIdentifier",
|
|
243
|
-
"src": "231:3:
|
|
243
|
+
"src": "231:3:103"
|
|
244
244
|
},
|
|
245
245
|
"nodeType": "YulFunctionCall",
|
|
246
|
-
"src": "231:19:
|
|
246
|
+
"src": "231:19:103"
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
"functionName": {
|
|
250
250
|
"name": "and",
|
|
251
251
|
"nodeType": "YulIdentifier",
|
|
252
|
-
"src": "220:3:
|
|
252
|
+
"src": "220:3:103"
|
|
253
253
|
},
|
|
254
254
|
"nodeType": "YulFunctionCall",
|
|
255
|
-
"src": "220:31:
|
|
255
|
+
"src": "220:31:103"
|
|
256
256
|
}
|
|
257
257
|
],
|
|
258
258
|
"functionName": {
|
|
259
259
|
"name": "eq",
|
|
260
260
|
"nodeType": "YulIdentifier",
|
|
261
|
-
"src": "210:2:
|
|
261
|
+
"src": "210:2:103"
|
|
262
262
|
},
|
|
263
263
|
"nodeType": "YulFunctionCall",
|
|
264
|
-
"src": "210:42:
|
|
264
|
+
"src": "210:42:103"
|
|
265
265
|
}
|
|
266
266
|
],
|
|
267
267
|
"functionName": {
|
|
268
268
|
"name": "iszero",
|
|
269
269
|
"nodeType": "YulIdentifier",
|
|
270
|
-
"src": "203:6:
|
|
270
|
+
"src": "203:6:103"
|
|
271
271
|
},
|
|
272
272
|
"nodeType": "YulFunctionCall",
|
|
273
|
-
"src": "203:50:
|
|
273
|
+
"src": "203:50:103"
|
|
274
274
|
},
|
|
275
275
|
"nodeType": "YulIf",
|
|
276
|
-
"src": "200:70:
|
|
276
|
+
"src": "200:70:103"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"nodeType": "YulAssignment",
|
|
280
|
-
"src": "279:15:
|
|
280
|
+
"src": "279:15:103",
|
|
281
281
|
"value": {
|
|
282
282
|
"name": "value",
|
|
283
283
|
"nodeType": "YulIdentifier",
|
|
284
|
-
"src": "289:5:
|
|
284
|
+
"src": "289:5:103"
|
|
285
285
|
},
|
|
286
286
|
"variableNames": [
|
|
287
287
|
{
|
|
288
288
|
"name": "value0",
|
|
289
289
|
"nodeType": "YulIdentifier",
|
|
290
|
-
"src": "279:6:
|
|
290
|
+
"src": "279:6:103"
|
|
291
291
|
}
|
|
292
292
|
]
|
|
293
293
|
}
|
|
@@ -299,13 +299,13 @@
|
|
|
299
299
|
{
|
|
300
300
|
"name": "headStart",
|
|
301
301
|
"nodeType": "YulTypedName",
|
|
302
|
-
"src": "50:9:
|
|
302
|
+
"src": "50:9:103",
|
|
303
303
|
"type": ""
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"name": "dataEnd",
|
|
307
307
|
"nodeType": "YulTypedName",
|
|
308
|
-
"src": "61:7:
|
|
308
|
+
"src": "61:7:103",
|
|
309
309
|
"type": ""
|
|
310
310
|
}
|
|
311
311
|
],
|
|
@@ -313,16 +313,16 @@
|
|
|
313
313
|
{
|
|
314
314
|
"name": "value0",
|
|
315
315
|
"nodeType": "YulTypedName",
|
|
316
|
-
"src": "73:6:
|
|
316
|
+
"src": "73:6:103",
|
|
317
317
|
"type": ""
|
|
318
318
|
}
|
|
319
319
|
],
|
|
320
|
-
"src": "14:286:
|
|
320
|
+
"src": "14:286:103"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
"body": {
|
|
324
324
|
"nodeType": "YulBlock",
|
|
325
|
-
"src": "479:173:
|
|
325
|
+
"src": "479:173:103",
|
|
326
326
|
"statements": [
|
|
327
327
|
{
|
|
328
328
|
"expression": {
|
|
@@ -330,12 +330,12 @@
|
|
|
330
330
|
{
|
|
331
331
|
"name": "headStart",
|
|
332
332
|
"nodeType": "YulIdentifier",
|
|
333
|
-
"src": "496:9:
|
|
333
|
+
"src": "496:9:103"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"kind": "number",
|
|
337
337
|
"nodeType": "YulLiteral",
|
|
338
|
-
"src": "507:2:
|
|
338
|
+
"src": "507:2:103",
|
|
339
339
|
"type": "",
|
|
340
340
|
"value": "32"
|
|
341
341
|
}
|
|
@@ -343,13 +343,13 @@
|
|
|
343
343
|
"functionName": {
|
|
344
344
|
"name": "mstore",
|
|
345
345
|
"nodeType": "YulIdentifier",
|
|
346
|
-
"src": "489:6:
|
|
346
|
+
"src": "489:6:103"
|
|
347
347
|
},
|
|
348
348
|
"nodeType": "YulFunctionCall",
|
|
349
|
-
"src": "489:21:
|
|
349
|
+
"src": "489:21:103"
|
|
350
350
|
},
|
|
351
351
|
"nodeType": "YulExpressionStatement",
|
|
352
|
-
"src": "489:21:
|
|
352
|
+
"src": "489:21:103"
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
"expression": {
|
|
@@ -359,12 +359,12 @@
|
|
|
359
359
|
{
|
|
360
360
|
"name": "headStart",
|
|
361
361
|
"nodeType": "YulIdentifier",
|
|
362
|
-
"src": "530:9:
|
|
362
|
+
"src": "530:9:103"
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
"kind": "number",
|
|
366
366
|
"nodeType": "YulLiteral",
|
|
367
|
-
"src": "541:2:
|
|
367
|
+
"src": "541:2:103",
|
|
368
368
|
"type": "",
|
|
369
369
|
"value": "32"
|
|
370
370
|
}
|
|
@@ -372,15 +372,15 @@
|
|
|
372
372
|
"functionName": {
|
|
373
373
|
"name": "add",
|
|
374
374
|
"nodeType": "YulIdentifier",
|
|
375
|
-
"src": "526:3:
|
|
375
|
+
"src": "526:3:103"
|
|
376
376
|
},
|
|
377
377
|
"nodeType": "YulFunctionCall",
|
|
378
|
-
"src": "526:18:
|
|
378
|
+
"src": "526:18:103"
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
"kind": "number",
|
|
382
382
|
"nodeType": "YulLiteral",
|
|
383
|
-
"src": "546:2:
|
|
383
|
+
"src": "546:2:103",
|
|
384
384
|
"type": "",
|
|
385
385
|
"value": "23"
|
|
386
386
|
}
|
|
@@ -388,13 +388,13 @@
|
|
|
388
388
|
"functionName": {
|
|
389
389
|
"name": "mstore",
|
|
390
390
|
"nodeType": "YulIdentifier",
|
|
391
|
-
"src": "519:6:
|
|
391
|
+
"src": "519:6:103"
|
|
392
392
|
},
|
|
393
393
|
"nodeType": "YulFunctionCall",
|
|
394
|
-
"src": "519:30:
|
|
394
|
+
"src": "519:30:103"
|
|
395
395
|
},
|
|
396
396
|
"nodeType": "YulExpressionStatement",
|
|
397
|
-
"src": "519:30:
|
|
397
|
+
"src": "519:30:103"
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
"expression": {
|
|
@@ -404,12 +404,12 @@
|
|
|
404
404
|
{
|
|
405
405
|
"name": "headStart",
|
|
406
406
|
"nodeType": "YulIdentifier",
|
|
407
|
-
"src": "569:9:
|
|
407
|
+
"src": "569:9:103"
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
"kind": "number",
|
|
411
411
|
"nodeType": "YulLiteral",
|
|
412
|
-
"src": "580:2:
|
|
412
|
+
"src": "580:2:103",
|
|
413
413
|
"type": "",
|
|
414
414
|
"value": "64"
|
|
415
415
|
}
|
|
@@ -417,16 +417,16 @@
|
|
|
417
417
|
"functionName": {
|
|
418
418
|
"name": "add",
|
|
419
419
|
"nodeType": "YulIdentifier",
|
|
420
|
-
"src": "565:3:
|
|
420
|
+
"src": "565:3:103"
|
|
421
421
|
},
|
|
422
422
|
"nodeType": "YulFunctionCall",
|
|
423
|
-
"src": "565:18:
|
|
423
|
+
"src": "565:18:103"
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
"hexValue": "5555505350726f78793a207a65726f2061646472657373",
|
|
427
427
|
"kind": "string",
|
|
428
428
|
"nodeType": "YulLiteral",
|
|
429
|
-
"src": "585:25:
|
|
429
|
+
"src": "585:25:103",
|
|
430
430
|
"type": "",
|
|
431
431
|
"value": "UUPSProxy: zero address"
|
|
432
432
|
}
|
|
@@ -434,28 +434,28 @@
|
|
|
434
434
|
"functionName": {
|
|
435
435
|
"name": "mstore",
|
|
436
436
|
"nodeType": "YulIdentifier",
|
|
437
|
-
"src": "558:6:
|
|
437
|
+
"src": "558:6:103"
|
|
438
438
|
},
|
|
439
439
|
"nodeType": "YulFunctionCall",
|
|
440
|
-
"src": "558:53:
|
|
440
|
+
"src": "558:53:103"
|
|
441
441
|
},
|
|
442
442
|
"nodeType": "YulExpressionStatement",
|
|
443
|
-
"src": "558:53:
|
|
443
|
+
"src": "558:53:103"
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
"nodeType": "YulAssignment",
|
|
447
|
-
"src": "620:26:
|
|
447
|
+
"src": "620:26:103",
|
|
448
448
|
"value": {
|
|
449
449
|
"arguments": [
|
|
450
450
|
{
|
|
451
451
|
"name": "headStart",
|
|
452
452
|
"nodeType": "YulIdentifier",
|
|
453
|
-
"src": "632:9:
|
|
453
|
+
"src": "632:9:103"
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
"kind": "number",
|
|
457
457
|
"nodeType": "YulLiteral",
|
|
458
|
-
"src": "643:2:
|
|
458
|
+
"src": "643:2:103",
|
|
459
459
|
"type": "",
|
|
460
460
|
"value": "96"
|
|
461
461
|
}
|
|
@@ -463,16 +463,16 @@
|
|
|
463
463
|
"functionName": {
|
|
464
464
|
"name": "add",
|
|
465
465
|
"nodeType": "YulIdentifier",
|
|
466
|
-
"src": "628:3:
|
|
466
|
+
"src": "628:3:103"
|
|
467
467
|
},
|
|
468
468
|
"nodeType": "YulFunctionCall",
|
|
469
|
-
"src": "628:18:
|
|
469
|
+
"src": "628:18:103"
|
|
470
470
|
},
|
|
471
471
|
"variableNames": [
|
|
472
472
|
{
|
|
473
473
|
"name": "tail",
|
|
474
474
|
"nodeType": "YulIdentifier",
|
|
475
|
-
"src": "620:4:
|
|
475
|
+
"src": "620:4:103"
|
|
476
476
|
}
|
|
477
477
|
]
|
|
478
478
|
}
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
{
|
|
485
485
|
"name": "headStart",
|
|
486
486
|
"nodeType": "YulTypedName",
|
|
487
|
-
"src": "456:9:
|
|
487
|
+
"src": "456:9:103",
|
|
488
488
|
"type": ""
|
|
489
489
|
}
|
|
490
490
|
],
|
|
@@ -492,16 +492,16 @@
|
|
|
492
492
|
{
|
|
493
493
|
"name": "tail",
|
|
494
494
|
"nodeType": "YulTypedName",
|
|
495
|
-
"src": "470:4:
|
|
495
|
+
"src": "470:4:103",
|
|
496
496
|
"type": ""
|
|
497
497
|
}
|
|
498
498
|
],
|
|
499
|
-
"src": "305:347:
|
|
499
|
+
"src": "305:347:103"
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
502
|
"body": {
|
|
503
503
|
"nodeType": "YulBlock",
|
|
504
|
-
"src": "831:180:
|
|
504
|
+
"src": "831:180:103",
|
|
505
505
|
"statements": [
|
|
506
506
|
{
|
|
507
507
|
"expression": {
|
|
@@ -509,12 +509,12 @@
|
|
|
509
509
|
{
|
|
510
510
|
"name": "headStart",
|
|
511
511
|
"nodeType": "YulIdentifier",
|
|
512
|
-
"src": "848:9:
|
|
512
|
+
"src": "848:9:103"
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
"kind": "number",
|
|
516
516
|
"nodeType": "YulLiteral",
|
|
517
|
-
"src": "859:2:
|
|
517
|
+
"src": "859:2:103",
|
|
518
518
|
"type": "",
|
|
519
519
|
"value": "32"
|
|
520
520
|
}
|
|
@@ -522,13 +522,13 @@
|
|
|
522
522
|
"functionName": {
|
|
523
523
|
"name": "mstore",
|
|
524
524
|
"nodeType": "YulIdentifier",
|
|
525
|
-
"src": "841:6:
|
|
525
|
+
"src": "841:6:103"
|
|
526
526
|
},
|
|
527
527
|
"nodeType": "YulFunctionCall",
|
|
528
|
-
"src": "841:21:
|
|
528
|
+
"src": "841:21:103"
|
|
529
529
|
},
|
|
530
530
|
"nodeType": "YulExpressionStatement",
|
|
531
|
-
"src": "841:21:
|
|
531
|
+
"src": "841:21:103"
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
534
|
"expression": {
|
|
@@ -538,12 +538,12 @@
|
|
|
538
538
|
{
|
|
539
539
|
"name": "headStart",
|
|
540
540
|
"nodeType": "YulIdentifier",
|
|
541
|
-
"src": "882:9:
|
|
541
|
+
"src": "882:9:103"
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
544
|
"kind": "number",
|
|
545
545
|
"nodeType": "YulLiteral",
|
|
546
|
-
"src": "893:2:
|
|
546
|
+
"src": "893:2:103",
|
|
547
547
|
"type": "",
|
|
548
548
|
"value": "32"
|
|
549
549
|
}
|
|
@@ -551,15 +551,15 @@
|
|
|
551
551
|
"functionName": {
|
|
552
552
|
"name": "add",
|
|
553
553
|
"nodeType": "YulIdentifier",
|
|
554
|
-
"src": "878:3:
|
|
554
|
+
"src": "878:3:103"
|
|
555
555
|
},
|
|
556
556
|
"nodeType": "YulFunctionCall",
|
|
557
|
-
"src": "878:18:
|
|
557
|
+
"src": "878:18:103"
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
560
|
"kind": "number",
|
|
561
561
|
"nodeType": "YulLiteral",
|
|
562
|
-
"src": "898:2:
|
|
562
|
+
"src": "898:2:103",
|
|
563
563
|
"type": "",
|
|
564
564
|
"value": "30"
|
|
565
565
|
}
|
|
@@ -567,13 +567,13 @@
|
|
|
567
567
|
"functionName": {
|
|
568
568
|
"name": "mstore",
|
|
569
569
|
"nodeType": "YulIdentifier",
|
|
570
|
-
"src": "871:6:
|
|
570
|
+
"src": "871:6:103"
|
|
571
571
|
},
|
|
572
572
|
"nodeType": "YulFunctionCall",
|
|
573
|
-
"src": "871:30:
|
|
573
|
+
"src": "871:30:103"
|
|
574
574
|
},
|
|
575
575
|
"nodeType": "YulExpressionStatement",
|
|
576
|
-
"src": "871:30:
|
|
576
|
+
"src": "871:30:103"
|
|
577
577
|
},
|
|
578
578
|
{
|
|
579
579
|
"expression": {
|
|
@@ -583,12 +583,12 @@
|
|
|
583
583
|
{
|
|
584
584
|
"name": "headStart",
|
|
585
585
|
"nodeType": "YulIdentifier",
|
|
586
|
-
"src": "921:9:
|
|
586
|
+
"src": "921:9:103"
|
|
587
587
|
},
|
|
588
588
|
{
|
|
589
589
|
"kind": "number",
|
|
590
590
|
"nodeType": "YulLiteral",
|
|
591
|
-
"src": "932:2:
|
|
591
|
+
"src": "932:2:103",
|
|
592
592
|
"type": "",
|
|
593
593
|
"value": "64"
|
|
594
594
|
}
|
|
@@ -596,16 +596,16 @@
|
|
|
596
596
|
"functionName": {
|
|
597
597
|
"name": "add",
|
|
598
598
|
"nodeType": "YulIdentifier",
|
|
599
|
-
"src": "917:3:
|
|
599
|
+
"src": "917:3:103"
|
|
600
600
|
},
|
|
601
601
|
"nodeType": "YulFunctionCall",
|
|
602
|
-
"src": "917:18:
|
|
602
|
+
"src": "917:18:103"
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
605
|
"hexValue": "5555505350726f78793a20616c726561647920696e697469616c697a6564",
|
|
606
606
|
"kind": "string",
|
|
607
607
|
"nodeType": "YulLiteral",
|
|
608
|
-
"src": "937:32:
|
|
608
|
+
"src": "937:32:103",
|
|
609
609
|
"type": "",
|
|
610
610
|
"value": "UUPSProxy: already initialized"
|
|
611
611
|
}
|
|
@@ -613,28 +613,28 @@
|
|
|
613
613
|
"functionName": {
|
|
614
614
|
"name": "mstore",
|
|
615
615
|
"nodeType": "YulIdentifier",
|
|
616
|
-
"src": "910:6:
|
|
616
|
+
"src": "910:6:103"
|
|
617
617
|
},
|
|
618
618
|
"nodeType": "YulFunctionCall",
|
|
619
|
-
"src": "910:60:
|
|
619
|
+
"src": "910:60:103"
|
|
620
620
|
},
|
|
621
621
|
"nodeType": "YulExpressionStatement",
|
|
622
|
-
"src": "910:60:
|
|
622
|
+
"src": "910:60:103"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
625
|
"nodeType": "YulAssignment",
|
|
626
|
-
"src": "979:26:
|
|
626
|
+
"src": "979:26:103",
|
|
627
627
|
"value": {
|
|
628
628
|
"arguments": [
|
|
629
629
|
{
|
|
630
630
|
"name": "headStart",
|
|
631
631
|
"nodeType": "YulIdentifier",
|
|
632
|
-
"src": "991:9:
|
|
632
|
+
"src": "991:9:103"
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"kind": "number",
|
|
636
636
|
"nodeType": "YulLiteral",
|
|
637
|
-
"src": "1002:2:
|
|
637
|
+
"src": "1002:2:103",
|
|
638
638
|
"type": "",
|
|
639
639
|
"value": "96"
|
|
640
640
|
}
|
|
@@ -642,16 +642,16 @@
|
|
|
642
642
|
"functionName": {
|
|
643
643
|
"name": "add",
|
|
644
644
|
"nodeType": "YulIdentifier",
|
|
645
|
-
"src": "987:3:
|
|
645
|
+
"src": "987:3:103"
|
|
646
646
|
},
|
|
647
647
|
"nodeType": "YulFunctionCall",
|
|
648
|
-
"src": "987:18:
|
|
648
|
+
"src": "987:18:103"
|
|
649
649
|
},
|
|
650
650
|
"variableNames": [
|
|
651
651
|
{
|
|
652
652
|
"name": "tail",
|
|
653
653
|
"nodeType": "YulIdentifier",
|
|
654
|
-
"src": "979:4:
|
|
654
|
+
"src": "979:4:103"
|
|
655
655
|
}
|
|
656
656
|
]
|
|
657
657
|
}
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
{
|
|
664
664
|
"name": "headStart",
|
|
665
665
|
"nodeType": "YulTypedName",
|
|
666
|
-
"src": "808:9:
|
|
666
|
+
"src": "808:9:103",
|
|
667
667
|
"type": ""
|
|
668
668
|
}
|
|
669
669
|
],
|
|
@@ -671,22 +671,22 @@
|
|
|
671
671
|
{
|
|
672
672
|
"name": "tail",
|
|
673
673
|
"nodeType": "YulTypedName",
|
|
674
|
-
"src": "822:4:
|
|
674
|
+
"src": "822:4:103",
|
|
675
675
|
"type": ""
|
|
676
676
|
}
|
|
677
677
|
],
|
|
678
|
-
"src": "657:354:
|
|
678
|
+
"src": "657:354:103"
|
|
679
679
|
}
|
|
680
680
|
]
|
|
681
681
|
},
|
|
682
682
|
"contents": "{\n { }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n value0 := value\n }\n function abi_encode_tuple_t_stringliteral_ddef727975921b7952b7e20fd4290233907fcf50863b08b5223d979ede27321e__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 23)\n mstore(add(headStart, 64), \"UUPSProxy: zero address\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_b83493ae559d613bdaa11f876d4e817b661ed75187e4a486b85abafea5a50e6c__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 30)\n mstore(add(headStart, 64), \"UUPSProxy: already initialized\")\n tail := add(headStart, 96)\n }\n}",
|
|
683
|
-
"id":
|
|
683
|
+
"id": 103,
|
|
684
684
|
"language": "Yul",
|
|
685
685
|
"name": "#utility.yul"
|
|
686
686
|
}
|
|
687
687
|
],
|
|
688
688
|
"sourceMap": "655:716:91:-:0;;;;;;;;;;;;;;;;;;;",
|
|
689
|
-
"deployedSourceMap": "655:716:91:-:0;;;;;;;;;;;;;;;;;;;;;;;2898:11:5;:9;:11::i;:::-;655:716:91;;2675:11:5;:9;:11::i;897:285:91:-;;;;;;;;;;-1:-1:-1;897:285:91;;;;;:::i;:::-;;:::i;2322:110:5:-;2397:28;2407:17;:15;:17::i;:::-;2397:9;:28::i;:::-;2322:110::o;897:285:91:-;-1:-1:-1;;;;;973:28:91;;965:64;;;;-1:-1:-1;;;965:64:91;;507:2:
|
|
689
|
+
"deployedSourceMap": "655:716:91:-:0;;;;;;;;;;;;;;;;;;;;;;;2898:11:5;:9;:11::i;:::-;655:716:91;;2675:11:5;:9;:11::i;897:285:91:-;;;;;;;;;;-1:-1:-1;897:285:91;;;;;:::i;:::-;;:::i;2322:110:5:-;2397:28;2407:17;:15;:17::i;:::-;2397:9;:28::i;:::-;2322:110::o;897:285:91:-;-1:-1:-1;;;;;973:28:91;;965:64;;;;-1:-1:-1;;;965:64:91;;507:2:103;965:64:91;;;489:21:103;546:2;526:18;;;519:30;585:25;565:18;;;558:53;628:18;;965:64:91;;;;;;;;;1085:1;1047:26;751:20:92;745:27;;618:170;1047:26:91;-1:-1:-1;;;;;1047:40:91;;1039:83;;;;-1:-1:-1;;;1039:83:91;;859:2:103;1039:83:91;;;841:21:103;898:2;878:18;;;871:30;937:32;917:18;;;910:60;987:18;;1039:83:91;657:354:103;1039:83:91;1132:43;1160:14;988:20:92;964:87;839:228;1132:43:91;897:285;:::o;1238:130::-;1305:7;1335:26;751:20:92;745:27;;618:170;1335:26:91;1328:33;;1238:130;:::o;948:895:5:-;1286:14;1283:1;1280;1267:34;1500:1;1497;1481:14;1478:1;1462:14;1455:5;1442:60;1576:16;1573:1;1570;1555:38;1614:6;1681:66;;;;1796:16;1793:1;1786:27;1681:66;1716:16;1713:1;1706:27;14:286:103;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:103;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:103:o",
|
|
690
690
|
"source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.16;\n\nimport { UUPSUtils } from \"./UUPSUtils.sol\";\nimport { Proxy } from \"@openzeppelin/contracts/proxy/Proxy.sol\";\n\n\n/**\n * @title UUPS (Universal Upgradeable Proxy Standard) Proxy\n *\n * NOTE:\n * - Compliant with [Universal Upgradeable Proxy Standard](https://eips.ethereum.org/EIPS/eip-1822)\n * - Compiiant with [Standard Proxy Storage Slots](https://eips.ethereum.org/EIPS/eip-1967)\n * - Implements delegation of calls to other contracts, with proper forwarding of\n * return values and bubbling of failures.\n * - It defines a fallback function that delegates all calls to the implementation.\n */\ncontract UUPSProxy is Proxy {\n\n /**\n * @dev Proxy initialization function.\n * This should only be called once and it is permission-less.\n * @param initialAddress Initial logic contract code address to be used.\n */\n function initializeProxy(address initialAddress) external {\n require(initialAddress != address(0), \"UUPSProxy: zero address\");\n require(UUPSUtils.implementation() == address(0), \"UUPSProxy: already initialized\");\n UUPSUtils.setImplementation(initialAddress);\n }\n\n /// @dev Proxy._implementation implementation\n function _implementation() internal virtual override view returns (address)\n {\n return UUPSUtils.implementation();\n }\n\n}\n",
|
|
691
691
|
"sourcePath": "/home/runner/work/protocol-monorepo/protocol-monorepo/packages/ethereum-contracts/contracts/upgradability/UUPSProxy.sol",
|
|
692
692
|
"ast": {
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
},
|
|
1435
1435
|
"networks": {},
|
|
1436
1436
|
"schemaVersion": "3.4.9",
|
|
1437
|
-
"updatedAt": "2022-11-
|
|
1437
|
+
"updatedAt": "2022-11-14T15:01:24.231Z",
|
|
1438
1438
|
"devdoc": {
|
|
1439
1439
|
"kind": "dev",
|
|
1440
1440
|
"methods": {
|