@superfluid-finance/ethereum-contracts 1.2.2-dev.6a8632e.0 → 1.2.2-dev.a4c583c.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 +1 -1
- package/build/contracts/AccessControlEnumerable.json +1 -1
- package/build/contracts/Address.json +1 -1
- package/build/contracts/AgreementBase.json +18 -18
- package/build/contracts/AgreementLibrary.json +450 -243
- package/build/contracts/BaseRelayRecipient.json +112 -112
- package/build/contracts/BatchLiquidator.json +178 -178
- package/build/contracts/BatchOperation.json +1138 -1138
- package/build/contracts/CFAv1Library.json +2531 -2531
- package/build/contracts/CallUtils.json +478 -478
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +1521 -1521
- package/build/contracts/ConstantFlowAgreementV1.json +19318 -18338
- package/build/contracts/Context.json +1 -1
- package/build/contracts/ContextDefinitions.json +1138 -1138
- package/build/contracts/Create2.json +1 -1
- package/build/contracts/CustomSuperTokenBase.json +31 -31
- package/build/contracts/ERC165.json +1 -1
- package/build/contracts/ERC1820Implementer.json +1 -1
- package/build/contracts/ERC20.json +1 -1
- package/build/contracts/ERC20Burnable.json +1 -1
- package/build/contracts/ERC20Pausable.json +1 -1
- package/build/contracts/ERC20PresetMinterPauser.json +1 -1
- package/build/contracts/ERC20WithTokenInfo.json +36 -36
- package/build/contracts/ERC721.json +1 -1
- package/build/contracts/ERC777Helper.json +660 -660
- package/build/contracts/ERC777RecipientDrainingGas.json +855 -855
- package/build/contracts/ERC777RecipientReverting.json +855 -855
- package/build/contracts/EnumerableSet.json +1 -1
- package/build/contracts/ExclusiveInflowTestApp.json +1521 -1521
- package/build/contracts/FixedSizeData.json +405 -405
- package/build/contracts/FlowExchangeTestApp.json +1522 -1522
- package/build/contracts/FlowOperatorDefinitions.json +1138 -1138
- package/build/contracts/FullUpgradableSuperTokenProxy.json +113 -113
- package/build/contracts/IAccessControl.json +1 -1
- package/build/contracts/IAccessControlEnumerable.json +1 -1
- package/build/contracts/IConstantFlowAgreementV1.json +1036 -1036
- package/build/contracts/IDAv1Library.json +4183 -4183
- 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/IERC721.json +1 -1
- package/build/contracts/IERC721Metadata.json +1 -1
- package/build/contracts/IERC721Receiver.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 +1182 -1182
- package/build/contracts/IMaticBridgedNativeSuperToken.json +110 -110
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +110 -110
- package/build/contracts/IMultiSigWallet.json +45 -45
- package/build/contracts/IPureSuperToken.json +69 -69
- package/build/contracts/IPureSuperTokenCustom.json +69 -69
- package/build/contracts/IRelayRecipient.json +49 -49
- package/build/contracts/IResolver.json +73 -73
- package/build/contracts/ISETH.json +79 -79
- package/build/contracts/ISETHCustom.json +79 -79
- package/build/contracts/ISuperAgreement.json +88 -88
- package/build/contracts/ISuperApp.json +351 -351
- package/build/contracts/ISuperToken.json +1008 -1008
- package/build/contracts/ISuperTokenFactory.json +280 -280
- package/build/contracts/ISuperfluid.json +1466 -1466
- package/build/contracts/ISuperfluidGovernance.json +404 -404
- package/build/contracts/ISuperfluidToken.json +774 -774
- package/build/contracts/ITOGAv1.json +1431 -1431
- package/build/contracts/ITOGAv2.json +1431 -1431
- package/build/contracts/Initializable.json +1 -1
- package/build/contracts/InstantDistributionAgreementV1.json +9343 -9343
- package/build/contracts/Int96SafeMath.json +504 -504
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +228 -228
- package/build/contracts/NonClosableOutflowTestApp.json +1522 -1522
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/Pausable.json +1 -1
- package/build/contracts/Proxy.json +1 -1
- package/build/contracts/PureSuperToken.json +106 -106
- package/build/contracts/Resolver.json +98 -98
- package/build/contracts/SETHProxy.json +224 -224
- 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 +1521 -1521
- package/build/contracts/SlotsBitmapLibrary.json +794 -794
- package/build/contracts/Strings.json +1 -1
- package/build/contracts/SuperAppBase.json +394 -394
- package/build/contracts/SuperAppDefinitions.json +1138 -1138
- package/build/contracts/SuperToken.json +2351 -2351
- package/build/contracts/SuperTokenFactory.json +731 -731
- package/build/contracts/SuperTokenFactoryBase.json +721 -721
- package/build/contracts/SuperTokenFactoryHelper.json +724 -724
- package/build/contracts/SuperUpgrader.json +437 -437
- package/build/contracts/Superfluid.json +4936 -4936
- package/build/contracts/SuperfluidFrameworkDeployer.json +535 -535
- package/build/contracts/SuperfluidGovernanceBase.json +3535 -3535
- package/build/contracts/SuperfluidGovernanceConfigs.json +1138 -1138
- package/build/contracts/SuperfluidGovernanceII.json +230 -230
- package/build/contracts/SuperfluidGovernanceIIProxy.json +211 -211
- package/build/contracts/SuperfluidLoader.json +207 -207
- package/build/contracts/SuperfluidToken.json +1345 -1345
- package/build/contracts/TOGA.json +1448 -1448
- package/build/contracts/TestGovernance.json +247 -247
- package/build/contracts/TestToken.json +94 -94
- package/build/contracts/TokenCustodian.json +214 -214
- package/build/contracts/TokenInfo.json +58 -58
- package/build/contracts/UInt128SafeMath.json +97 -97
- package/build/contracts/UUPSProxiable.json +132 -132
- package/build/contracts/UUPSProxy.json +81 -81
- package/build/contracts/UUPSUtils.json +37 -37
- package/build/contracts-sizes.txt +1 -2
- package/contracts/agreements/AgreementLibrary.sol +1 -0
- package/contracts/agreements/ConstantFlowAgreementV1.sol +71 -35
- package/contracts/agreements/InstantDistributionAgreementV1.sol +3 -2
- package/contracts/{agreements → libs}/SlotsBitmapLibrary.sol +1 -3
- package/package.json +2 -1
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"absolutePath": "project:/contracts/libs/UInt128SafeMath.sol",
|
|
16
16
|
"exportedSymbols": {
|
|
17
17
|
"UInt128SafeMath": [
|
|
18
|
-
|
|
18
|
+
20734
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
-
"id":
|
|
21
|
+
"id": 20735,
|
|
22
22
|
"license": "AGPLv3",
|
|
23
23
|
"nodeType": "SourceUnit",
|
|
24
24
|
"nodes": [
|
|
25
25
|
{
|
|
26
|
-
"id":
|
|
26
|
+
"id": 20672,
|
|
27
27
|
"literals": [
|
|
28
28
|
"solidity",
|
|
29
29
|
"0.8",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"contractDependencies": [],
|
|
40
40
|
"contractKind": "library",
|
|
41
41
|
"documentation": {
|
|
42
|
-
"id":
|
|
42
|
+
"id": 20673,
|
|
43
43
|
"nodeType": "StructuredDocumentation",
|
|
44
44
|
"src": "61:570:68",
|
|
45
45
|
"text": " @dev Wrappers over Solidity's arithmetic operations with added overflow\n checks.\n Arithmetic operations in Solidity wrap on overflow. This can easily result\n in bugs, because programmers usually assume that an overflow raises an\n error, which is the standard behavior in high level programming languages.\n `UInt128SafeMath` restores this intuition by reverting the transaction when an\n operation overflows.\n Using this library instead of the unchecked operations eliminates an entire\n class of bugs, so it's recommended to use it always."
|
|
46
46
|
},
|
|
47
47
|
"fullyImplemented": true,
|
|
48
|
-
"id":
|
|
48
|
+
"id": 20734,
|
|
49
49
|
"linearizedBaseContracts": [
|
|
50
|
-
|
|
50
|
+
20734
|
|
51
51
|
],
|
|
52
52
|
"name": "UInt128SafeMath",
|
|
53
53
|
"nameLocation": "640:15:68",
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
"nodes": [
|
|
56
56
|
{
|
|
57
57
|
"body": {
|
|
58
|
-
"id":
|
|
58
|
+
"id": 20704,
|
|
59
59
|
"nodeType": "Block",
|
|
60
60
|
"src": "986:139:68",
|
|
61
61
|
"statements": [
|
|
62
62
|
{
|
|
63
63
|
"assignments": [
|
|
64
|
-
|
|
64
|
+
20686
|
|
65
65
|
],
|
|
66
66
|
"declarations": [
|
|
67
67
|
{
|
|
68
68
|
"constant": false,
|
|
69
|
-
"id":
|
|
69
|
+
"id": 20686,
|
|
70
70
|
"mutability": "mutable",
|
|
71
71
|
"name": "c",
|
|
72
72
|
"nameLocation": "1004:1:68",
|
|
73
73
|
"nodeType": "VariableDeclaration",
|
|
74
|
-
"scope":
|
|
74
|
+
"scope": 20704,
|
|
75
75
|
"src": "996:9:68",
|
|
76
76
|
"stateVariable": false,
|
|
77
77
|
"storageLocation": "default",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typeString": "uint128"
|
|
81
81
|
},
|
|
82
82
|
"typeName": {
|
|
83
|
-
"id":
|
|
83
|
+
"id": 20685,
|
|
84
84
|
"name": "uint128",
|
|
85
85
|
"nodeType": "ElementaryTypeName",
|
|
86
86
|
"src": "996:7:68",
|
|
@@ -92,28 +92,28 @@
|
|
|
92
92
|
"visibility": "internal"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
|
-
"id":
|
|
95
|
+
"id": 20687,
|
|
96
96
|
"nodeType": "VariableDeclarationStatement",
|
|
97
97
|
"src": "996:9:68"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
"id":
|
|
100
|
+
"id": 20694,
|
|
101
101
|
"nodeType": "UncheckedBlock",
|
|
102
102
|
"src": "1016:44:68",
|
|
103
103
|
"statements": [
|
|
104
104
|
{
|
|
105
105
|
"expression": {
|
|
106
|
-
"id":
|
|
106
|
+
"id": 20692,
|
|
107
107
|
"isConstant": false,
|
|
108
108
|
"isLValue": false,
|
|
109
109
|
"isPure": false,
|
|
110
110
|
"lValueRequested": false,
|
|
111
111
|
"leftHandSide": {
|
|
112
|
-
"id":
|
|
112
|
+
"id": 20688,
|
|
113
113
|
"name": "c",
|
|
114
114
|
"nodeType": "Identifier",
|
|
115
115
|
"overloadedDeclarations": [],
|
|
116
|
-
"referencedDeclaration":
|
|
116
|
+
"referencedDeclaration": 20686,
|
|
117
117
|
"src": "1040:1:68",
|
|
118
118
|
"typeDescriptions": {
|
|
119
119
|
"typeIdentifier": "t_uint128",
|
|
@@ -127,17 +127,17 @@
|
|
|
127
127
|
"typeIdentifier": "t_uint128",
|
|
128
128
|
"typeString": "uint128"
|
|
129
129
|
},
|
|
130
|
-
"id":
|
|
130
|
+
"id": 20691,
|
|
131
131
|
"isConstant": false,
|
|
132
132
|
"isLValue": false,
|
|
133
133
|
"isPure": false,
|
|
134
134
|
"lValueRequested": false,
|
|
135
135
|
"leftExpression": {
|
|
136
|
-
"id":
|
|
136
|
+
"id": 20689,
|
|
137
137
|
"name": "a",
|
|
138
138
|
"nodeType": "Identifier",
|
|
139
139
|
"overloadedDeclarations": [],
|
|
140
|
-
"referencedDeclaration":
|
|
140
|
+
"referencedDeclaration": 20676,
|
|
141
141
|
"src": "1044:1:68",
|
|
142
142
|
"typeDescriptions": {
|
|
143
143
|
"typeIdentifier": "t_uint128",
|
|
@@ -147,11 +147,11 @@
|
|
|
147
147
|
"nodeType": "BinaryOperation",
|
|
148
148
|
"operator": "+",
|
|
149
149
|
"rightExpression": {
|
|
150
|
-
"id":
|
|
150
|
+
"id": 20690,
|
|
151
151
|
"name": "b",
|
|
152
152
|
"nodeType": "Identifier",
|
|
153
153
|
"overloadedDeclarations": [],
|
|
154
|
-
"referencedDeclaration":
|
|
154
|
+
"referencedDeclaration": 20678,
|
|
155
155
|
"src": "1048:1:68",
|
|
156
156
|
"typeDescriptions": {
|
|
157
157
|
"typeIdentifier": "t_uint128",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"typeString": "uint128"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
-
"id":
|
|
173
|
+
"id": 20693,
|
|
174
174
|
"nodeType": "ExpressionStatement",
|
|
175
175
|
"src": "1040:9:68"
|
|
176
176
|
}
|
|
@@ -184,17 +184,17 @@
|
|
|
184
184
|
"typeIdentifier": "t_uint128",
|
|
185
185
|
"typeString": "uint128"
|
|
186
186
|
},
|
|
187
|
-
"id":
|
|
187
|
+
"id": 20698,
|
|
188
188
|
"isConstant": false,
|
|
189
189
|
"isLValue": false,
|
|
190
190
|
"isPure": false,
|
|
191
191
|
"lValueRequested": false,
|
|
192
192
|
"leftExpression": {
|
|
193
|
-
"id":
|
|
193
|
+
"id": 20696,
|
|
194
194
|
"name": "c",
|
|
195
195
|
"nodeType": "Identifier",
|
|
196
196
|
"overloadedDeclarations": [],
|
|
197
|
-
"referencedDeclaration":
|
|
197
|
+
"referencedDeclaration": 20686,
|
|
198
198
|
"src": "1078:1:68",
|
|
199
199
|
"typeDescriptions": {
|
|
200
200
|
"typeIdentifier": "t_uint128",
|
|
@@ -204,11 +204,11 @@
|
|
|
204
204
|
"nodeType": "BinaryOperation",
|
|
205
205
|
"operator": ">=",
|
|
206
206
|
"rightExpression": {
|
|
207
|
-
"id":
|
|
207
|
+
"id": 20697,
|
|
208
208
|
"name": "a",
|
|
209
209
|
"nodeType": "Identifier",
|
|
210
210
|
"overloadedDeclarations": [],
|
|
211
|
-
"referencedDeclaration":
|
|
211
|
+
"referencedDeclaration": 20676,
|
|
212
212
|
"src": "1083:1:68",
|
|
213
213
|
"typeDescriptions": {
|
|
214
214
|
"typeIdentifier": "t_uint128",
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
|
-
"id":
|
|
225
|
+
"id": 20699,
|
|
226
226
|
"name": "errorMessage",
|
|
227
227
|
"nodeType": "Identifier",
|
|
228
228
|
"overloadedDeclarations": [],
|
|
229
|
-
"referencedDeclaration":
|
|
229
|
+
"referencedDeclaration": 20680,
|
|
230
230
|
"src": "1086:12:68",
|
|
231
231
|
"typeDescriptions": {
|
|
232
232
|
"typeIdentifier": "t_string_memory_ptr",
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"typeString": "string memory"
|
|
246
246
|
}
|
|
247
247
|
],
|
|
248
|
-
"id":
|
|
248
|
+
"id": 20695,
|
|
249
249
|
"name": "require",
|
|
250
250
|
"nodeType": "Identifier",
|
|
251
251
|
"overloadedDeclarations": [
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"typeString": "function (bool,string memory) pure"
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
|
-
"id":
|
|
262
|
+
"id": 20700,
|
|
263
263
|
"isConstant": false,
|
|
264
264
|
"isLValue": false,
|
|
265
265
|
"isPure": false,
|
|
@@ -274,37 +274,37 @@
|
|
|
274
274
|
"typeString": "tuple()"
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
|
-
"id":
|
|
277
|
+
"id": 20701,
|
|
278
278
|
"nodeType": "ExpressionStatement",
|
|
279
279
|
"src": "1070:29:68"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
"expression": {
|
|
283
|
-
"id":
|
|
283
|
+
"id": 20702,
|
|
284
284
|
"name": "c",
|
|
285
285
|
"nodeType": "Identifier",
|
|
286
286
|
"overloadedDeclarations": [],
|
|
287
|
-
"referencedDeclaration":
|
|
287
|
+
"referencedDeclaration": 20686,
|
|
288
288
|
"src": "1117:1:68",
|
|
289
289
|
"typeDescriptions": {
|
|
290
290
|
"typeIdentifier": "t_uint128",
|
|
291
291
|
"typeString": "uint128"
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
-
"functionReturnParameters":
|
|
295
|
-
"id":
|
|
294
|
+
"functionReturnParameters": 20684,
|
|
295
|
+
"id": 20703,
|
|
296
296
|
"nodeType": "Return",
|
|
297
297
|
"src": "1110:8:68"
|
|
298
298
|
}
|
|
299
299
|
]
|
|
300
300
|
},
|
|
301
301
|
"documentation": {
|
|
302
|
-
"id":
|
|
302
|
+
"id": 20674,
|
|
303
303
|
"nodeType": "StructuredDocumentation",
|
|
304
304
|
"src": "662:224:68",
|
|
305
305
|
"text": " @dev Returns the addition of two unsigned integers, reverting on\n overflow.\n Counterpart to Solidity's `+` operator.\n Requirements:\n - Addition cannot overflow."
|
|
306
306
|
},
|
|
307
|
-
"id":
|
|
307
|
+
"id": 20705,
|
|
308
308
|
"implemented": true,
|
|
309
309
|
"kind": "function",
|
|
310
310
|
"modifiers": [],
|
|
@@ -312,17 +312,17 @@
|
|
|
312
312
|
"nameLocation": "900:3:68",
|
|
313
313
|
"nodeType": "FunctionDefinition",
|
|
314
314
|
"parameters": {
|
|
315
|
-
"id":
|
|
315
|
+
"id": 20681,
|
|
316
316
|
"nodeType": "ParameterList",
|
|
317
317
|
"parameters": [
|
|
318
318
|
{
|
|
319
319
|
"constant": false,
|
|
320
|
-
"id":
|
|
320
|
+
"id": 20676,
|
|
321
321
|
"mutability": "mutable",
|
|
322
322
|
"name": "a",
|
|
323
323
|
"nameLocation": "912:1:68",
|
|
324
324
|
"nodeType": "VariableDeclaration",
|
|
325
|
-
"scope":
|
|
325
|
+
"scope": 20705,
|
|
326
326
|
"src": "904:9:68",
|
|
327
327
|
"stateVariable": false,
|
|
328
328
|
"storageLocation": "default",
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"typeString": "uint128"
|
|
332
332
|
},
|
|
333
333
|
"typeName": {
|
|
334
|
-
"id":
|
|
334
|
+
"id": 20675,
|
|
335
335
|
"name": "uint128",
|
|
336
336
|
"nodeType": "ElementaryTypeName",
|
|
337
337
|
"src": "904:7:68",
|
|
@@ -344,12 +344,12 @@
|
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"constant": false,
|
|
347
|
-
"id":
|
|
347
|
+
"id": 20678,
|
|
348
348
|
"mutability": "mutable",
|
|
349
349
|
"name": "b",
|
|
350
350
|
"nameLocation": "923:1:68",
|
|
351
351
|
"nodeType": "VariableDeclaration",
|
|
352
|
-
"scope":
|
|
352
|
+
"scope": 20705,
|
|
353
353
|
"src": "915:9:68",
|
|
354
354
|
"stateVariable": false,
|
|
355
355
|
"storageLocation": "default",
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"typeString": "uint128"
|
|
359
359
|
},
|
|
360
360
|
"typeName": {
|
|
361
|
-
"id":
|
|
361
|
+
"id": 20677,
|
|
362
362
|
"name": "uint128",
|
|
363
363
|
"nodeType": "ElementaryTypeName",
|
|
364
364
|
"src": "915:7:68",
|
|
@@ -371,12 +371,12 @@
|
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
"constant": false,
|
|
374
|
-
"id":
|
|
374
|
+
"id": 20680,
|
|
375
375
|
"mutability": "mutable",
|
|
376
376
|
"name": "errorMessage",
|
|
377
377
|
"nameLocation": "940:12:68",
|
|
378
378
|
"nodeType": "VariableDeclaration",
|
|
379
|
-
"scope":
|
|
379
|
+
"scope": 20705,
|
|
380
380
|
"src": "926:26:68",
|
|
381
381
|
"stateVariable": false,
|
|
382
382
|
"storageLocation": "memory",
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
"typeString": "string"
|
|
386
386
|
},
|
|
387
387
|
"typeName": {
|
|
388
|
-
"id":
|
|
388
|
+
"id": 20679,
|
|
389
389
|
"name": "string",
|
|
390
390
|
"nodeType": "ElementaryTypeName",
|
|
391
391
|
"src": "926:6:68",
|
|
@@ -400,17 +400,17 @@
|
|
|
400
400
|
"src": "903:50:68"
|
|
401
401
|
},
|
|
402
402
|
"returnParameters": {
|
|
403
|
-
"id":
|
|
403
|
+
"id": 20684,
|
|
404
404
|
"nodeType": "ParameterList",
|
|
405
405
|
"parameters": [
|
|
406
406
|
{
|
|
407
407
|
"constant": false,
|
|
408
|
-
"id":
|
|
408
|
+
"id": 20683,
|
|
409
409
|
"mutability": "mutable",
|
|
410
410
|
"name": "",
|
|
411
411
|
"nameLocation": "-1:-1:-1",
|
|
412
412
|
"nodeType": "VariableDeclaration",
|
|
413
|
-
"scope":
|
|
413
|
+
"scope": 20705,
|
|
414
414
|
"src": "977:7:68",
|
|
415
415
|
"stateVariable": false,
|
|
416
416
|
"storageLocation": "default",
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
"typeString": "uint128"
|
|
420
420
|
},
|
|
421
421
|
"typeName": {
|
|
422
|
-
"id":
|
|
422
|
+
"id": 20682,
|
|
423
423
|
"name": "uint128",
|
|
424
424
|
"nodeType": "ElementaryTypeName",
|
|
425
425
|
"src": "977:7:68",
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
],
|
|
434
434
|
"src": "976:9:68"
|
|
435
435
|
},
|
|
436
|
-
"scope":
|
|
436
|
+
"scope": 20734,
|
|
437
437
|
"src": "891:234:68",
|
|
438
438
|
"stateMutability": "pure",
|
|
439
439
|
"virtual": false,
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
"body": {
|
|
444
|
-
"id":
|
|
444
|
+
"id": 20732,
|
|
445
445
|
"nodeType": "Block",
|
|
446
446
|
"src": "1511:92:68",
|
|
447
447
|
"statements": [
|
|
@@ -453,17 +453,17 @@
|
|
|
453
453
|
"typeIdentifier": "t_uint128",
|
|
454
454
|
"typeString": "uint128"
|
|
455
455
|
},
|
|
456
|
-
"id":
|
|
456
|
+
"id": 20720,
|
|
457
457
|
"isConstant": false,
|
|
458
458
|
"isLValue": false,
|
|
459
459
|
"isPure": false,
|
|
460
460
|
"lValueRequested": false,
|
|
461
461
|
"leftExpression": {
|
|
462
|
-
"id":
|
|
462
|
+
"id": 20718,
|
|
463
463
|
"name": "b",
|
|
464
464
|
"nodeType": "Identifier",
|
|
465
465
|
"overloadedDeclarations": [],
|
|
466
|
-
"referencedDeclaration":
|
|
466
|
+
"referencedDeclaration": 20710,
|
|
467
467
|
"src": "1529:1:68",
|
|
468
468
|
"typeDescriptions": {
|
|
469
469
|
"typeIdentifier": "t_uint128",
|
|
@@ -473,11 +473,11 @@
|
|
|
473
473
|
"nodeType": "BinaryOperation",
|
|
474
474
|
"operator": "<=",
|
|
475
475
|
"rightExpression": {
|
|
476
|
-
"id":
|
|
476
|
+
"id": 20719,
|
|
477
477
|
"name": "a",
|
|
478
478
|
"nodeType": "Identifier",
|
|
479
479
|
"overloadedDeclarations": [],
|
|
480
|
-
"referencedDeclaration":
|
|
480
|
+
"referencedDeclaration": 20708,
|
|
481
481
|
"src": "1534:1:68",
|
|
482
482
|
"typeDescriptions": {
|
|
483
483
|
"typeIdentifier": "t_uint128",
|
|
@@ -491,11 +491,11 @@
|
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
|
-
"id":
|
|
494
|
+
"id": 20721,
|
|
495
495
|
"name": "errorMessage",
|
|
496
496
|
"nodeType": "Identifier",
|
|
497
497
|
"overloadedDeclarations": [],
|
|
498
|
-
"referencedDeclaration":
|
|
498
|
+
"referencedDeclaration": 20712,
|
|
499
499
|
"src": "1537:12:68",
|
|
500
500
|
"typeDescriptions": {
|
|
501
501
|
"typeIdentifier": "t_string_memory_ptr",
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"typeString": "string memory"
|
|
515
515
|
}
|
|
516
516
|
],
|
|
517
|
-
"id":
|
|
517
|
+
"id": 20717,
|
|
518
518
|
"name": "require",
|
|
519
519
|
"nodeType": "Identifier",
|
|
520
520
|
"overloadedDeclarations": [
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
"typeString": "function (bool,string memory) pure"
|
|
529
529
|
}
|
|
530
530
|
},
|
|
531
|
-
"id":
|
|
531
|
+
"id": 20722,
|
|
532
532
|
"isConstant": false,
|
|
533
533
|
"isLValue": false,
|
|
534
534
|
"isPure": false,
|
|
@@ -543,23 +543,23 @@
|
|
|
543
543
|
"typeString": "tuple()"
|
|
544
544
|
}
|
|
545
545
|
},
|
|
546
|
-
"id":
|
|
546
|
+
"id": 20723,
|
|
547
547
|
"nodeType": "ExpressionStatement",
|
|
548
548
|
"src": "1521:29:68"
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
"assignments": [
|
|
552
|
-
|
|
552
|
+
20725
|
|
553
553
|
],
|
|
554
554
|
"declarations": [
|
|
555
555
|
{
|
|
556
556
|
"constant": false,
|
|
557
|
-
"id":
|
|
557
|
+
"id": 20725,
|
|
558
558
|
"mutability": "mutable",
|
|
559
559
|
"name": "c",
|
|
560
560
|
"nameLocation": "1568:1:68",
|
|
561
561
|
"nodeType": "VariableDeclaration",
|
|
562
|
-
"scope":
|
|
562
|
+
"scope": 20732,
|
|
563
563
|
"src": "1560:9:68",
|
|
564
564
|
"stateVariable": false,
|
|
565
565
|
"storageLocation": "default",
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
"typeString": "uint128"
|
|
569
569
|
},
|
|
570
570
|
"typeName": {
|
|
571
|
-
"id":
|
|
571
|
+
"id": 20724,
|
|
572
572
|
"name": "uint128",
|
|
573
573
|
"nodeType": "ElementaryTypeName",
|
|
574
574
|
"src": "1560:7:68",
|
|
@@ -580,23 +580,23 @@
|
|
|
580
580
|
"visibility": "internal"
|
|
581
581
|
}
|
|
582
582
|
],
|
|
583
|
-
"id":
|
|
583
|
+
"id": 20729,
|
|
584
584
|
"initialValue": {
|
|
585
585
|
"commonType": {
|
|
586
586
|
"typeIdentifier": "t_uint128",
|
|
587
587
|
"typeString": "uint128"
|
|
588
588
|
},
|
|
589
|
-
"id":
|
|
589
|
+
"id": 20728,
|
|
590
590
|
"isConstant": false,
|
|
591
591
|
"isLValue": false,
|
|
592
592
|
"isPure": false,
|
|
593
593
|
"lValueRequested": false,
|
|
594
594
|
"leftExpression": {
|
|
595
|
-
"id":
|
|
595
|
+
"id": 20726,
|
|
596
596
|
"name": "a",
|
|
597
597
|
"nodeType": "Identifier",
|
|
598
598
|
"overloadedDeclarations": [],
|
|
599
|
-
"referencedDeclaration":
|
|
599
|
+
"referencedDeclaration": 20708,
|
|
600
600
|
"src": "1572:1:68",
|
|
601
601
|
"typeDescriptions": {
|
|
602
602
|
"typeIdentifier": "t_uint128",
|
|
@@ -606,11 +606,11 @@
|
|
|
606
606
|
"nodeType": "BinaryOperation",
|
|
607
607
|
"operator": "-",
|
|
608
608
|
"rightExpression": {
|
|
609
|
-
"id":
|
|
609
|
+
"id": 20727,
|
|
610
610
|
"name": "b",
|
|
611
611
|
"nodeType": "Identifier",
|
|
612
612
|
"overloadedDeclarations": [],
|
|
613
|
-
"referencedDeclaration":
|
|
613
|
+
"referencedDeclaration": 20710,
|
|
614
614
|
"src": "1576:1:68",
|
|
615
615
|
"typeDescriptions": {
|
|
616
616
|
"typeIdentifier": "t_uint128",
|
|
@@ -628,31 +628,31 @@
|
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
"expression": {
|
|
631
|
-
"id":
|
|
631
|
+
"id": 20730,
|
|
632
632
|
"name": "c",
|
|
633
633
|
"nodeType": "Identifier",
|
|
634
634
|
"overloadedDeclarations": [],
|
|
635
|
-
"referencedDeclaration":
|
|
635
|
+
"referencedDeclaration": 20725,
|
|
636
636
|
"src": "1595:1:68",
|
|
637
637
|
"typeDescriptions": {
|
|
638
638
|
"typeIdentifier": "t_uint128",
|
|
639
639
|
"typeString": "uint128"
|
|
640
640
|
}
|
|
641
641
|
},
|
|
642
|
-
"functionReturnParameters":
|
|
643
|
-
"id":
|
|
642
|
+
"functionReturnParameters": 20716,
|
|
643
|
+
"id": 20731,
|
|
644
644
|
"nodeType": "Return",
|
|
645
645
|
"src": "1588:8:68"
|
|
646
646
|
}
|
|
647
647
|
]
|
|
648
648
|
},
|
|
649
649
|
"documentation": {
|
|
650
|
-
"id":
|
|
650
|
+
"id": 20706,
|
|
651
651
|
"nodeType": "StructuredDocumentation",
|
|
652
652
|
"src": "1131:280:68",
|
|
653
653
|
"text": " @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n overflow (when the result is negative).\n Counterpart to Solidity's `-` operator.\n Requirements:\n - Subtraction cannot overflow."
|
|
654
654
|
},
|
|
655
|
-
"id":
|
|
655
|
+
"id": 20733,
|
|
656
656
|
"implemented": true,
|
|
657
657
|
"kind": "function",
|
|
658
658
|
"modifiers": [],
|
|
@@ -660,17 +660,17 @@
|
|
|
660
660
|
"nameLocation": "1425:3:68",
|
|
661
661
|
"nodeType": "FunctionDefinition",
|
|
662
662
|
"parameters": {
|
|
663
|
-
"id":
|
|
663
|
+
"id": 20713,
|
|
664
664
|
"nodeType": "ParameterList",
|
|
665
665
|
"parameters": [
|
|
666
666
|
{
|
|
667
667
|
"constant": false,
|
|
668
|
-
"id":
|
|
668
|
+
"id": 20708,
|
|
669
669
|
"mutability": "mutable",
|
|
670
670
|
"name": "a",
|
|
671
671
|
"nameLocation": "1437:1:68",
|
|
672
672
|
"nodeType": "VariableDeclaration",
|
|
673
|
-
"scope":
|
|
673
|
+
"scope": 20733,
|
|
674
674
|
"src": "1429:9:68",
|
|
675
675
|
"stateVariable": false,
|
|
676
676
|
"storageLocation": "default",
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
"typeString": "uint128"
|
|
680
680
|
},
|
|
681
681
|
"typeName": {
|
|
682
|
-
"id":
|
|
682
|
+
"id": 20707,
|
|
683
683
|
"name": "uint128",
|
|
684
684
|
"nodeType": "ElementaryTypeName",
|
|
685
685
|
"src": "1429:7:68",
|
|
@@ -692,12 +692,12 @@
|
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
694
|
"constant": false,
|
|
695
|
-
"id":
|
|
695
|
+
"id": 20710,
|
|
696
696
|
"mutability": "mutable",
|
|
697
697
|
"name": "b",
|
|
698
698
|
"nameLocation": "1448:1:68",
|
|
699
699
|
"nodeType": "VariableDeclaration",
|
|
700
|
-
"scope":
|
|
700
|
+
"scope": 20733,
|
|
701
701
|
"src": "1440:9:68",
|
|
702
702
|
"stateVariable": false,
|
|
703
703
|
"storageLocation": "default",
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"typeString": "uint128"
|
|
707
707
|
},
|
|
708
708
|
"typeName": {
|
|
709
|
-
"id":
|
|
709
|
+
"id": 20709,
|
|
710
710
|
"name": "uint128",
|
|
711
711
|
"nodeType": "ElementaryTypeName",
|
|
712
712
|
"src": "1440:7:68",
|
|
@@ -719,12 +719,12 @@
|
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
721
|
"constant": false,
|
|
722
|
-
"id":
|
|
722
|
+
"id": 20712,
|
|
723
723
|
"mutability": "mutable",
|
|
724
724
|
"name": "errorMessage",
|
|
725
725
|
"nameLocation": "1465:12:68",
|
|
726
726
|
"nodeType": "VariableDeclaration",
|
|
727
|
-
"scope":
|
|
727
|
+
"scope": 20733,
|
|
728
728
|
"src": "1451:26:68",
|
|
729
729
|
"stateVariable": false,
|
|
730
730
|
"storageLocation": "memory",
|
|
@@ -733,7 +733,7 @@
|
|
|
733
733
|
"typeString": "string"
|
|
734
734
|
},
|
|
735
735
|
"typeName": {
|
|
736
|
-
"id":
|
|
736
|
+
"id": 20711,
|
|
737
737
|
"name": "string",
|
|
738
738
|
"nodeType": "ElementaryTypeName",
|
|
739
739
|
"src": "1451:6:68",
|
|
@@ -748,17 +748,17 @@
|
|
|
748
748
|
"src": "1428:50:68"
|
|
749
749
|
},
|
|
750
750
|
"returnParameters": {
|
|
751
|
-
"id":
|
|
751
|
+
"id": 20716,
|
|
752
752
|
"nodeType": "ParameterList",
|
|
753
753
|
"parameters": [
|
|
754
754
|
{
|
|
755
755
|
"constant": false,
|
|
756
|
-
"id":
|
|
756
|
+
"id": 20715,
|
|
757
757
|
"mutability": "mutable",
|
|
758
758
|
"name": "",
|
|
759
759
|
"nameLocation": "-1:-1:-1",
|
|
760
760
|
"nodeType": "VariableDeclaration",
|
|
761
|
-
"scope":
|
|
761
|
+
"scope": 20733,
|
|
762
762
|
"src": "1502:7:68",
|
|
763
763
|
"stateVariable": false,
|
|
764
764
|
"storageLocation": "default",
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
"typeString": "uint128"
|
|
768
768
|
},
|
|
769
769
|
"typeName": {
|
|
770
|
-
"id":
|
|
770
|
+
"id": 20714,
|
|
771
771
|
"name": "uint128",
|
|
772
772
|
"nodeType": "ElementaryTypeName",
|
|
773
773
|
"src": "1502:7:68",
|
|
@@ -781,14 +781,14 @@
|
|
|
781
781
|
],
|
|
782
782
|
"src": "1501:9:68"
|
|
783
783
|
},
|
|
784
|
-
"scope":
|
|
784
|
+
"scope": 20734,
|
|
785
785
|
"src": "1416:187:68",
|
|
786
786
|
"stateMutability": "pure",
|
|
787
787
|
"virtual": false,
|
|
788
788
|
"visibility": "internal"
|
|
789
789
|
}
|
|
790
790
|
],
|
|
791
|
-
"scope":
|
|
791
|
+
"scope": 20735,
|
|
792
792
|
"src": "632:973:68",
|
|
793
793
|
"usedErrors": []
|
|
794
794
|
}
|
|
@@ -801,7 +801,7 @@
|
|
|
801
801
|
},
|
|
802
802
|
"networks": {},
|
|
803
803
|
"schemaVersion": "3.4.7",
|
|
804
|
-
"updatedAt": "2022-05-
|
|
804
|
+
"updatedAt": "2022-05-05T13:57:31.287Z",
|
|
805
805
|
"devdoc": {
|
|
806
806
|
"details": "Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `UInt128SafeMath` restores this intuition by reverting the transaction when an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.",
|
|
807
807
|
"kind": "dev",
|