@superfluid-finance/ethereum-contracts 1.3.2-dev.bf84335.0 → 1.3.2-dev.ccb1898.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.
Files changed (122) hide show
  1. package/build/contracts/AccessControl.json +1 -1
  2. package/build/contracts/AccessControlEnumerable.json +1 -1
  3. package/build/contracts/Address.json +1 -1
  4. package/build/contracts/AgreementBase.json +18 -18
  5. package/build/contracts/AgreementLibrary.json +1272 -1183
  6. package/build/contracts/BaseRelayRecipient.json +55 -55
  7. package/build/contracts/BatchLiquidator.json +211 -211
  8. package/build/contracts/BatchOperation.json +599 -599
  9. package/build/contracts/CFAv1Library.json +2282 -2282
  10. package/build/contracts/CallUtils.json +198 -198
  11. package/build/contracts/ClosingOnUpdateFlowTestApp.json +2472 -2472
  12. package/build/contracts/ConstantFlowAgreementV1.json +12931 -13308
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/ContextDefinitions.json +599 -599
  15. package/build/contracts/Create2.json +1 -1
  16. package/build/contracts/CustomSuperTokenBase.json +20 -20
  17. package/build/contracts/ERC165.json +1 -1
  18. package/build/contracts/ERC1820Implementer.json +1 -1
  19. package/build/contracts/ERC1820RegistryCompiled.json +22 -22
  20. package/build/contracts/ERC20.json +1 -1
  21. package/build/contracts/ERC20Burnable.json +1 -1
  22. package/build/contracts/ERC20Pausable.json +1 -1
  23. package/build/contracts/ERC20PresetMinterPauser.json +1 -1
  24. package/build/contracts/ERC20WithTokenInfo.json +23 -23
  25. package/build/contracts/ERC777Helper.json +380 -380
  26. package/build/contracts/ERC777RecipientDrainingGas.json +858 -858
  27. package/build/contracts/ERC777RecipientReverting.json +858 -858
  28. package/build/contracts/EnumerableSet.json +1 -1
  29. package/build/contracts/EventsEmitter.json +43 -43
  30. package/build/contracts/ExclusiveInflowTestApp.json +2473 -2473
  31. package/build/contracts/FixedSizeData.json +200 -200
  32. package/build/contracts/FlowExchangeTestApp.json +2473 -2473
  33. package/build/contracts/FlowOperatorDefinitions.json +599 -599
  34. package/build/contracts/FullUpgradableSuperTokenProxy.json +115 -115
  35. package/build/contracts/IAccessControl.json +1 -1
  36. package/build/contracts/IAccessControlEnumerable.json +1 -1
  37. package/build/contracts/IConstantFlowAgreementV1.json +567 -567
  38. package/build/contracts/IDAv1Library.json +2614 -2614
  39. package/build/contracts/IERC165.json +1 -1
  40. package/build/contracts/IERC1820Implementer.json +1 -1
  41. package/build/contracts/IERC1820Registry.json +1 -1
  42. package/build/contracts/IERC20.json +1 -1
  43. package/build/contracts/IERC20Metadata.json +1 -1
  44. package/build/contracts/IERC20Permit.json +1 -1
  45. package/build/contracts/IERC777.json +1 -1
  46. package/build/contracts/IERC777Recipient.json +1 -1
  47. package/build/contracts/IERC777Sender.json +1 -1
  48. package/build/contracts/IInstantDistributionAgreementV1.json +640 -640
  49. package/build/contracts/IMaticBridgedNativeSuperToken.json +63 -63
  50. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +63 -63
  51. package/build/contracts/IMultiSigWallet.json +24 -24
  52. package/build/contracts/IPureSuperToken.json +43 -43
  53. package/build/contracts/IPureSuperTokenCustom.json +43 -43
  54. package/build/contracts/IRelayRecipient.json +27 -27
  55. package/build/contracts/IResolver.json +38 -38
  56. package/build/contracts/ISETH.json +48 -48
  57. package/build/contracts/ISETHCustom.json +48 -48
  58. package/build/contracts/ISuperAgreement.json +50 -50
  59. package/build/contracts/ISuperApp.json +192 -192
  60. package/build/contracts/ISuperToken.json +524 -524
  61. package/build/contracts/ISuperTokenFactory.json +161 -161
  62. package/build/contracts/ISuperfluid.json +1145 -1178
  63. package/build/contracts/ISuperfluidGovernance.json +243 -243
  64. package/build/contracts/ISuperfluidToken.json +389 -389
  65. package/build/contracts/ITOGAv1.json +1442 -1442
  66. package/build/contracts/ITOGAv2.json +1442 -1442
  67. package/build/contracts/Initializable.json +1 -1
  68. package/build/contracts/InstantDistributionAgreementV1.json +5820 -5820
  69. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +231 -231
  70. package/build/contracts/NonClosableOutflowTestApp.json +2473 -2473
  71. package/build/contracts/Ownable.json +1 -1
  72. package/build/contracts/Pausable.json +1 -1
  73. package/build/contracts/Proxy.json +1 -1
  74. package/build/contracts/PureSuperToken.json +109 -109
  75. package/build/contracts/Resolver.json +98 -98
  76. package/build/contracts/SETHProxy.json +227 -227
  77. package/build/contracts/SafeCast.json +1 -1
  78. package/build/contracts/SafeERC20.json +1 -1
  79. package/build/contracts/SafeMath.json +1 -1
  80. package/build/contracts/SelfDeletingFlowTestApp.json +2472 -2472
  81. package/build/contracts/SlotsBitmapLibrary.json +457 -457
  82. package/build/contracts/StreamRedirector.json +748 -748
  83. package/build/contracts/Strings.json +1 -1
  84. package/build/contracts/SuperAppBase.json +240 -240
  85. package/build/contracts/SuperAppDefinitions.json +599 -599
  86. package/build/contracts/SuperToken.json +4732 -4732
  87. package/build/contracts/SuperTokenFactory.json +750 -750
  88. package/build/contracts/SuperTokenFactoryBase.json +738 -738
  89. package/build/contracts/SuperTokenFactoryHelper.json +743 -743
  90. package/build/contracts/SuperUpgrader.json +440 -440
  91. package/build/contracts/Superfluid.json +15366 -16050
  92. package/build/contracts/SuperfluidFrameworkDeployer.json +765 -765
  93. package/build/contracts/SuperfluidGovernanceBase.json +2233 -2233
  94. package/build/contracts/SuperfluidGovernanceConfigs.json +599 -599
  95. package/build/contracts/SuperfluidGovernanceII.json +149 -149
  96. package/build/contracts/SuperfluidGovernanceIIProxy.json +131 -131
  97. package/build/contracts/SuperfluidLoader.json +210 -210
  98. package/build/contracts/SuperfluidToken.json +2420 -2420
  99. package/build/contracts/TOGA.json +1461 -1461
  100. package/build/contracts/TestGovernance.json +248 -248
  101. package/build/contracts/TestToken.json +93 -93
  102. package/build/contracts/TokenCustodian.json +214 -214
  103. package/build/contracts/TokenInfo.json +32 -32
  104. package/build/contracts/UUPSProxiable.json +139 -139
  105. package/build/contracts/UUPSProxy.json +81 -81
  106. package/build/contracts/UUPSUtils.json +37 -37
  107. package/build/contracts-sizes.txt +6 -6
  108. package/contracts/agreements/AgreementLibrary.sol +39 -15
  109. package/contracts/agreements/ConstantFlowAgreementV1.sol +65 -53
  110. package/contracts/interfaces/superfluid/ISuperfluid.sol +29 -23
  111. package/contracts/mocks/AgreementMock.sol +2 -2
  112. package/contracts/mocks/CFAAppMocks.sol +1 -1
  113. package/contracts/mocks/MultiFlowTesterApp.sol +13 -12
  114. package/contracts/mocks/SuperTokenMock.sol +2 -2
  115. package/contracts/mocks/SuperfluidMock.sol +9 -9
  116. package/contracts/superfluid/Superfluid.sol +34 -38
  117. package/contracts/superfluid/SuperfluidToken.sol +14 -14
  118. package/package.json +2 -2
  119. package/scripts/deploy-mfa.ts +27 -0
  120. package/scripts/libs/getConfig.js +14 -0
  121. package/utils/README.md +18 -0
  122. package/utils/mfa-tester.html +687 -0
@@ -15,15 +15,15 @@
15
15
  "absolutePath": "project:/contracts/libs/CallUtils.sol",
16
16
  "exportedSymbols": {
17
17
  "CallUtils": [
18
- 20795
18
+ 20803
19
19
  ]
20
20
  },
21
- "id": 20796,
21
+ "id": 20804,
22
22
  "license": "AGPLv3",
23
23
  "nodeType": "SourceUnit",
24
24
  "nodes": [
25
25
  {
26
- "id": 20658,
26
+ "id": 20666,
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": 20659,
42
+ "id": 20667,
43
43
  "nodeType": "StructuredDocumentation",
44
44
  "src": "60:99:60",
45
45
  "text": " @title Call utilities library that is absent from the OpenZeppelin\n @author Superfluid"
46
46
  },
47
47
  "fullyImplemented": true,
48
- "id": 20795,
48
+ "id": 20803,
49
49
  "linearizedBaseContracts": [
50
- 20795
50
+ 20803
51
51
  ],
52
52
  "name": "CallUtils",
53
53
  "nameLocation": "168:9:60",
@@ -55,7 +55,7 @@
55
55
  "nodes": [
56
56
  {
57
57
  "body": {
58
- "id": 20707,
58
+ "id": 20715,
59
59
  "nodeType": "Block",
60
60
  "src": "501:1873:60",
61
61
  "statements": [
@@ -65,25 +65,25 @@
65
65
  "typeIdentifier": "t_uint256",
66
66
  "typeString": "uint256"
67
67
  },
68
- "id": 20668,
68
+ "id": 20676,
69
69
  "isConstant": false,
70
70
  "isLValue": false,
71
71
  "isPure": false,
72
72
  "lValueRequested": false,
73
73
  "leftExpression": {
74
74
  "expression": {
75
- "id": 20665,
75
+ "id": 20673,
76
76
  "name": "returnedData",
77
77
  "nodeType": "Identifier",
78
78
  "overloadedDeclarations": [],
79
- "referencedDeclaration": 20662,
79
+ "referencedDeclaration": 20670,
80
80
  "src": "515:12:60",
81
81
  "typeDescriptions": {
82
82
  "typeIdentifier": "t_bytes_memory_ptr",
83
83
  "typeString": "bytes memory"
84
84
  }
85
85
  },
86
- "id": 20666,
86
+ "id": 20674,
87
87
  "isConstant": false,
88
88
  "isLValue": false,
89
89
  "isPure": false,
@@ -100,7 +100,7 @@
100
100
  "operator": "<",
101
101
  "rightExpression": {
102
102
  "hexValue": "34",
103
- "id": 20667,
103
+ "id": 20675,
104
104
  "isConstant": false,
105
105
  "isLValue": false,
106
106
  "isPure": true,
@@ -121,23 +121,23 @@
121
121
  }
122
122
  },
123
123
  "falseBody": {
124
- "id": 20705,
124
+ "id": 20713,
125
125
  "nodeType": "Block",
126
126
  "src": "640:1728:60",
127
127
  "statements": [
128
128
  {
129
129
  "assignments": [
130
- 20675
130
+ 20683
131
131
  ],
132
132
  "declarations": [
133
133
  {
134
134
  "constant": false,
135
- "id": 20675,
135
+ "id": 20683,
136
136
  "mutability": "mutable",
137
137
  "name": "errorSelector",
138
138
  "nameLocation": "661:13:60",
139
139
  "nodeType": "VariableDeclaration",
140
- "scope": 20705,
140
+ "scope": 20713,
141
141
  "src": "654:20:60",
142
142
  "stateVariable": false,
143
143
  "storageLocation": "default",
@@ -146,7 +146,7 @@
146
146
  "typeString": "bytes4"
147
147
  },
148
148
  "typeName": {
149
- "id": 20674,
149
+ "id": 20682,
150
150
  "name": "bytes4",
151
151
  "nodeType": "ElementaryTypeName",
152
152
  "src": "654:6:60",
@@ -158,7 +158,7 @@
158
158
  "visibility": "internal"
159
159
  }
160
160
  ],
161
- "id": 20676,
161
+ "id": 20684,
162
162
  "nodeType": "VariableDeclarationStatement",
163
163
  "src": "654:20:60"
164
164
  },
@@ -217,21 +217,21 @@
217
217
  "evmVersion": "london",
218
218
  "externalReferences": [
219
219
  {
220
- "declaration": 20675,
220
+ "declaration": 20683,
221
221
  "isOffset": false,
222
222
  "isSlot": false,
223
223
  "src": "715:13:60",
224
224
  "valueSize": 1
225
225
  },
226
226
  {
227
- "declaration": 20662,
227
+ "declaration": 20670,
228
228
  "isOffset": false,
229
229
  "isSlot": false,
230
230
  "src": "742:12:60",
231
231
  "valueSize": 1
232
232
  }
233
233
  ],
234
- "id": 20677,
234
+ "id": 20685,
235
235
  "nodeType": "InlineAssembly",
236
236
  "src": "688:88:60"
237
237
  },
@@ -241,17 +241,17 @@
241
241
  "typeIdentifier": "t_bytes4",
242
242
  "typeString": "bytes4"
243
243
  },
244
- "id": 20683,
244
+ "id": 20691,
245
245
  "isConstant": false,
246
246
  "isLValue": false,
247
247
  "isPure": false,
248
248
  "lValueRequested": false,
249
249
  "leftExpression": {
250
- "id": 20678,
250
+ "id": 20686,
251
251
  "name": "errorSelector",
252
252
  "nodeType": "Identifier",
253
253
  "overloadedDeclarations": [],
254
- "referencedDeclaration": 20675,
254
+ "referencedDeclaration": 20683,
255
255
  "src": "793:13:60",
256
256
  "typeDescriptions": {
257
257
  "typeIdentifier": "t_bytes4",
@@ -264,7 +264,7 @@
264
264
  "arguments": [
265
265
  {
266
266
  "hexValue": "30783465343837623731",
267
- "id": 20681,
267
+ "id": 20689,
268
268
  "isConstant": false,
269
269
  "isLValue": false,
270
270
  "isPure": true,
@@ -286,7 +286,7 @@
286
286
  "typeString": "int_const 1313373041"
287
287
  }
288
288
  ],
289
- "id": 20680,
289
+ "id": 20688,
290
290
  "isConstant": false,
291
291
  "isLValue": false,
292
292
  "isPure": true,
@@ -298,14 +298,14 @@
298
298
  "typeString": "type(bytes4)"
299
299
  },
300
300
  "typeName": {
301
- "id": 20679,
301
+ "id": 20687,
302
302
  "name": "bytes4",
303
303
  "nodeType": "ElementaryTypeName",
304
304
  "src": "810:6:60",
305
305
  "typeDescriptions": {}
306
306
  }
307
307
  },
308
- "id": 20682,
308
+ "id": 20690,
309
309
  "isConstant": false,
310
310
  "isLValue": false,
311
311
  "isPure": true,
@@ -327,23 +327,23 @@
327
327
  }
328
328
  },
329
329
  "falseBody": {
330
- "id": 20703,
330
+ "id": 20711,
331
331
  "nodeType": "Block",
332
332
  "src": "2060:298:60",
333
333
  "statements": [
334
334
  {
335
335
  "assignments": [
336
- 20698
336
+ 20706
337
337
  ],
338
338
  "declarations": [
339
339
  {
340
340
  "constant": false,
341
- "id": 20698,
341
+ "id": 20706,
342
342
  "mutability": "mutable",
343
343
  "name": "len",
344
344
  "nameLocation": "2218:3:60",
345
345
  "nodeType": "VariableDeclaration",
346
- "scope": 20703,
346
+ "scope": 20711,
347
347
  "src": "2213:8:60",
348
348
  "stateVariable": false,
349
349
  "storageLocation": "default",
@@ -352,7 +352,7 @@
352
352
  "typeString": "uint256"
353
353
  },
354
354
  "typeName": {
355
- "id": 20697,
355
+ "id": 20705,
356
356
  "name": "uint",
357
357
  "nodeType": "ElementaryTypeName",
358
358
  "src": "2213:4:60",
@@ -364,21 +364,21 @@
364
364
  "visibility": "internal"
365
365
  }
366
366
  ],
367
- "id": 20701,
367
+ "id": 20709,
368
368
  "initialValue": {
369
369
  "expression": {
370
- "id": 20699,
370
+ "id": 20707,
371
371
  "name": "returnedData",
372
372
  "nodeType": "Identifier",
373
373
  "overloadedDeclarations": [],
374
- "referencedDeclaration": 20662,
374
+ "referencedDeclaration": 20670,
375
375
  "src": "2224:12:60",
376
376
  "typeDescriptions": {
377
377
  "typeIdentifier": "t_bytes_memory_ptr",
378
378
  "typeString": "bytes memory"
379
379
  }
380
380
  },
381
- "id": 20700,
381
+ "id": 20708,
382
382
  "isConstant": false,
383
383
  "isLValue": false,
384
384
  "isPure": false,
@@ -447,47 +447,47 @@
447
447
  "evmVersion": "london",
448
448
  "externalReferences": [
449
449
  {
450
- "declaration": 20698,
450
+ "declaration": 20706,
451
451
  "isOffset": false,
452
452
  "isSlot": false,
453
453
  "src": "2322:3:60",
454
454
  "valueSize": 1
455
455
  },
456
456
  {
457
- "declaration": 20662,
457
+ "declaration": 20670,
458
458
  "isOffset": false,
459
459
  "isSlot": false,
460
460
  "src": "2303:12:60",
461
461
  "valueSize": 1
462
462
  }
463
463
  ],
464
- "id": 20702,
464
+ "id": 20710,
465
465
  "nodeType": "InlineAssembly",
466
466
  "src": "2261:83:60"
467
467
  }
468
468
  ]
469
469
  },
470
- "id": 20704,
470
+ "id": 20712,
471
471
  "nodeType": "IfStatement",
472
472
  "src": "789:1569:60",
473
473
  "trueBody": {
474
- "id": 20696,
474
+ "id": 20704,
475
475
  "nodeType": "Block",
476
476
  "src": "864:1190:60",
477
477
  "statements": [
478
478
  {
479
479
  "assignments": [
480
- 20685
480
+ 20693
481
481
  ],
482
482
  "declarations": [
483
483
  {
484
484
  "constant": false,
485
- "id": 20685,
485
+ "id": 20693,
486
486
  "mutability": "mutable",
487
487
  "name": "reason",
488
488
  "nameLocation": "1149:6:60",
489
489
  "nodeType": "VariableDeclaration",
490
- "scope": 20696,
490
+ "scope": 20704,
491
491
  "src": "1135:20:60",
492
492
  "stateVariable": false,
493
493
  "storageLocation": "memory",
@@ -496,7 +496,7 @@
496
496
  "typeString": "string"
497
497
  },
498
498
  "typeName": {
499
- "id": 20684,
499
+ "id": 20692,
500
500
  "name": "string",
501
501
  "nodeType": "ElementaryTypeName",
502
502
  "src": "1135:6:60",
@@ -508,10 +508,10 @@
508
508
  "visibility": "internal"
509
509
  }
510
510
  ],
511
- "id": 20687,
511
+ "id": 20695,
512
512
  "initialValue": {
513
513
  "hexValue": "43616c6c5574696c733a207461726765742070616e69636b65643a2030785f5f",
514
- "id": 20686,
514
+ "id": 20694,
515
515
  "isConstant": false,
516
516
  "isLValue": false,
517
517
  "isPure": true,
@@ -530,17 +530,17 @@
530
530
  },
531
531
  {
532
532
  "assignments": [
533
- 20689
533
+ 20697
534
534
  ],
535
535
  "declarations": [
536
536
  {
537
537
  "constant": false,
538
- "id": 20689,
538
+ "id": 20697,
539
539
  "mutability": "mutable",
540
540
  "name": "errorCode",
541
541
  "nameLocation": "1215:9:60",
542
542
  "nodeType": "VariableDeclaration",
543
- "scope": 20696,
543
+ "scope": 20704,
544
544
  "src": "1210:14:60",
545
545
  "stateVariable": false,
546
546
  "storageLocation": "default",
@@ -549,7 +549,7 @@
549
549
  "typeString": "uint256"
550
550
  },
551
551
  "typeName": {
552
- "id": 20688,
552
+ "id": 20696,
553
553
  "name": "uint",
554
554
  "nodeType": "ElementaryTypeName",
555
555
  "src": "1210:4:60",
@@ -561,7 +561,7 @@
561
561
  "visibility": "internal"
562
562
  }
563
563
  ],
564
- "id": 20690,
564
+ "id": 20698,
565
565
  "nodeType": "VariableDeclarationStatement",
566
566
  "src": "1210:14:60"
567
567
  },
@@ -917,49 +917,49 @@
917
917
  "evmVersion": "london",
918
918
  "externalReferences": [
919
919
  {
920
- "declaration": 20689,
920
+ "declaration": 20697,
921
921
  "isOffset": false,
922
922
  "isSlot": false,
923
923
  "src": "1273:9:60",
924
924
  "valueSize": 1
925
925
  },
926
926
  {
927
- "declaration": 20689,
927
+ "declaration": 20697,
928
928
  "isOffset": false,
929
929
  "isSlot": false,
930
930
  "src": "1649:9:60",
931
931
  "valueSize": 1
932
932
  },
933
933
  {
934
- "declaration": 20689,
934
+ "declaration": 20697,
935
935
  "isOffset": false,
936
936
  "isSlot": false,
937
937
  "src": "1724:9:60",
938
938
  "valueSize": 1
939
939
  },
940
940
  {
941
- "declaration": 20685,
941
+ "declaration": 20693,
942
942
  "isOffset": false,
943
943
  "isSlot": false,
944
944
  "src": "1365:6:60",
945
945
  "valueSize": 1
946
946
  },
947
947
  {
948
- "declaration": 20685,
948
+ "declaration": 20693,
949
949
  "isOffset": false,
950
950
  "isSlot": false,
951
951
  "src": "1964:6:60",
952
952
  "valueSize": 1
953
953
  },
954
954
  {
955
- "declaration": 20662,
955
+ "declaration": 20670,
956
956
  "isOffset": false,
957
957
  "isSlot": false,
958
958
  "src": "1296:12:60",
959
959
  "valueSize": 1
960
960
  }
961
961
  ],
962
- "id": 20691,
962
+ "id": 20699,
963
963
  "nodeType": "InlineAssembly",
964
964
  "src": "1242:766:60"
965
965
  },
@@ -967,11 +967,11 @@
967
967
  "expression": {
968
968
  "arguments": [
969
969
  {
970
- "id": 20693,
970
+ "id": 20701,
971
971
  "name": "reason",
972
972
  "nodeType": "Identifier",
973
973
  "overloadedDeclarations": [],
974
- "referencedDeclaration": 20685,
974
+ "referencedDeclaration": 20693,
975
975
  "src": "2032:6:60",
976
976
  "typeDescriptions": {
977
977
  "typeIdentifier": "t_string_memory_ptr",
@@ -986,7 +986,7 @@
986
986
  "typeString": "string memory"
987
987
  }
988
988
  ],
989
- "id": 20692,
989
+ "id": 20700,
990
990
  "name": "revert",
991
991
  "nodeType": "Identifier",
992
992
  "overloadedDeclarations": [
@@ -1000,7 +1000,7 @@
1000
1000
  "typeString": "function (string memory) pure"
1001
1001
  }
1002
1002
  },
1003
- "id": 20694,
1003
+ "id": 20702,
1004
1004
  "isConstant": false,
1005
1005
  "isLValue": false,
1006
1006
  "isPure": false,
@@ -1015,7 +1015,7 @@
1015
1015
  "typeString": "tuple()"
1016
1016
  }
1017
1017
  },
1018
- "id": 20695,
1018
+ "id": 20703,
1019
1019
  "nodeType": "ExpressionStatement",
1020
1020
  "src": "2025:14:60"
1021
1021
  }
@@ -1024,11 +1024,11 @@
1024
1024
  }
1025
1025
  ]
1026
1026
  },
1027
- "id": 20706,
1027
+ "id": 20714,
1028
1028
  "nodeType": "IfStatement",
1029
1029
  "src": "511:1857:60",
1030
1030
  "trueBody": {
1031
- "id": 20673,
1031
+ "id": 20681,
1032
1032
  "nodeType": "Block",
1033
1033
  "src": "540:94:60",
1034
1034
  "statements": [
@@ -1037,7 +1037,7 @@
1037
1037
  "arguments": [
1038
1038
  {
1039
1039
  "hexValue": "43616c6c5574696c733a20746172676574207265766572742829",
1040
- "id": 20670,
1040
+ "id": 20678,
1041
1041
  "isConstant": false,
1042
1042
  "isLValue": false,
1043
1043
  "isPure": true,
@@ -1059,7 +1059,7 @@
1059
1059
  "typeString": "literal_string \"CallUtils: target revert()\""
1060
1060
  }
1061
1061
  ],
1062
- "id": 20669,
1062
+ "id": 20677,
1063
1063
  "name": "revert",
1064
1064
  "nodeType": "Identifier",
1065
1065
  "overloadedDeclarations": [
@@ -1073,7 +1073,7 @@
1073
1073
  "typeString": "function (string memory) pure"
1074
1074
  }
1075
1075
  },
1076
- "id": 20671,
1076
+ "id": 20679,
1077
1077
  "isConstant": false,
1078
1078
  "isLValue": false,
1079
1079
  "isPure": false,
@@ -1088,7 +1088,7 @@
1088
1088
  "typeString": "tuple()"
1089
1089
  }
1090
1090
  },
1091
- "id": 20672,
1091
+ "id": 20680,
1092
1092
  "nodeType": "ExpressionStatement",
1093
1093
  "src": "587:36:60"
1094
1094
  }
@@ -1098,12 +1098,12 @@
1098
1098
  ]
1099
1099
  },
1100
1100
  "documentation": {
1101
- "id": 20660,
1101
+ "id": 20668,
1102
1102
  "nodeType": "StructuredDocumentation",
1103
1103
  "src": "185:238:60",
1104
1104
  "text": "@dev Bubble up the revert from the returnedData (supports Panic, Error & Custom Errors)\n @notice This is needed in order to provide some human-readable revert message from a call\n @param returnedData Response of the call"
1105
1105
  },
1106
- "id": 20708,
1106
+ "id": 20716,
1107
1107
  "implemented": true,
1108
1108
  "kind": "function",
1109
1109
  "modifiers": [],
@@ -1111,17 +1111,17 @@
1111
1111
  "nameLocation": "437:22:60",
1112
1112
  "nodeType": "FunctionDefinition",
1113
1113
  "parameters": {
1114
- "id": 20663,
1114
+ "id": 20671,
1115
1115
  "nodeType": "ParameterList",
1116
1116
  "parameters": [
1117
1117
  {
1118
1118
  "constant": false,
1119
- "id": 20662,
1119
+ "id": 20670,
1120
1120
  "mutability": "mutable",
1121
1121
  "name": "returnedData",
1122
1122
  "nameLocation": "473:12:60",
1123
1123
  "nodeType": "VariableDeclaration",
1124
- "scope": 20708,
1124
+ "scope": 20716,
1125
1125
  "src": "460:25:60",
1126
1126
  "stateVariable": false,
1127
1127
  "storageLocation": "memory",
@@ -1130,7 +1130,7 @@
1130
1130
  "typeString": "bytes"
1131
1131
  },
1132
1132
  "typeName": {
1133
- "id": 20661,
1133
+ "id": 20669,
1134
1134
  "name": "bytes",
1135
1135
  "nodeType": "ElementaryTypeName",
1136
1136
  "src": "460:5:60",
@@ -1145,12 +1145,12 @@
1145
1145
  "src": "459:27:60"
1146
1146
  },
1147
1147
  "returnParameters": {
1148
- "id": 20664,
1148
+ "id": 20672,
1149
1149
  "nodeType": "ParameterList",
1150
1150
  "parameters": [],
1151
1151
  "src": "501:0:60"
1152
1152
  },
1153
- "scope": 20795,
1153
+ "scope": 20803,
1154
1154
  "src": "428:1946:60",
1155
1155
  "stateMutability": "pure",
1156
1156
  "virtual": false,
@@ -1158,7 +1158,7 @@
1158
1158
  },
1159
1159
  {
1160
1160
  "body": {
1161
- "id": 20725,
1161
+ "id": 20733,
1162
1162
  "nodeType": "Block",
1163
1163
  "src": "2699:213:60",
1164
1164
  "statements": [
@@ -1170,25 +1170,25 @@
1170
1170
  "typeIdentifier": "t_uint256",
1171
1171
  "typeString": "uint256"
1172
1172
  },
1173
- "id": 20720,
1173
+ "id": 20728,
1174
1174
  "isConstant": false,
1175
1175
  "isLValue": false,
1176
1176
  "isPure": false,
1177
1177
  "lValueRequested": false,
1178
1178
  "leftExpression": {
1179
1179
  "expression": {
1180
- "id": 20717,
1180
+ "id": 20725,
1181
1181
  "name": "callData",
1182
1182
  "nodeType": "Identifier",
1183
1183
  "overloadedDeclarations": [],
1184
- "referencedDeclaration": 20711,
1184
+ "referencedDeclaration": 20719,
1185
1185
  "src": "2717:8:60",
1186
1186
  "typeDescriptions": {
1187
1187
  "typeIdentifier": "t_bytes_memory_ptr",
1188
1188
  "typeString": "bytes memory"
1189
1189
  }
1190
1190
  },
1191
- "id": 20718,
1191
+ "id": 20726,
1192
1192
  "isConstant": false,
1193
1193
  "isLValue": false,
1194
1194
  "isPure": false,
@@ -1205,7 +1205,7 @@
1205
1205
  "operator": ">=",
1206
1206
  "rightExpression": {
1207
1207
  "hexValue": "34",
1208
- "id": 20719,
1208
+ "id": 20727,
1209
1209
  "isConstant": false,
1210
1210
  "isLValue": false,
1211
1211
  "isPure": true,
@@ -1227,7 +1227,7 @@
1227
1227
  },
1228
1228
  {
1229
1229
  "hexValue": "43616c6c5574696c733a20696e76616c69642063616c6c44617461",
1230
- "id": 20721,
1230
+ "id": 20729,
1231
1231
  "isConstant": false,
1232
1232
  "isLValue": false,
1233
1233
  "isPure": true,
@@ -1253,7 +1253,7 @@
1253
1253
  "typeString": "literal_string \"CallUtils: invalid callData\""
1254
1254
  }
1255
1255
  ],
1256
- "id": 20716,
1256
+ "id": 20724,
1257
1257
  "name": "require",
1258
1258
  "nodeType": "Identifier",
1259
1259
  "overloadedDeclarations": [
@@ -1267,7 +1267,7 @@
1267
1267
  "typeString": "function (bool,string memory) pure"
1268
1268
  }
1269
1269
  },
1270
- "id": 20722,
1270
+ "id": 20730,
1271
1271
  "isConstant": false,
1272
1272
  "isLValue": false,
1273
1273
  "isPure": false,
@@ -1282,7 +1282,7 @@
1282
1282
  "typeString": "tuple()"
1283
1283
  }
1284
1284
  },
1285
- "id": 20723,
1285
+ "id": 20731,
1286
1286
  "nodeType": "ExpressionStatement",
1287
1287
  "src": "2709:60:60"
1288
1288
  },
@@ -1341,33 +1341,33 @@
1341
1341
  "evmVersion": "london",
1342
1342
  "externalReferences": [
1343
1343
  {
1344
- "declaration": 20711,
1344
+ "declaration": 20719,
1345
1345
  "isOffset": false,
1346
1346
  "isSlot": false,
1347
1347
  "src": "2880:8:60",
1348
1348
  "valueSize": 1
1349
1349
  },
1350
1350
  {
1351
- "declaration": 20714,
1351
+ "declaration": 20722,
1352
1352
  "isOffset": false,
1353
1353
  "isSlot": false,
1354
1354
  "src": "2858:8:60",
1355
1355
  "valueSize": 1
1356
1356
  }
1357
1357
  ],
1358
- "id": 20724,
1358
+ "id": 20732,
1359
1359
  "nodeType": "InlineAssembly",
1360
1360
  "src": "2835:71:60"
1361
1361
  }
1362
1362
  ]
1363
1363
  },
1364
1364
  "documentation": {
1365
- "id": 20709,
1365
+ "id": 20717,
1366
1366
  "nodeType": "StructuredDocumentation",
1367
1367
  "src": "2380:228:60",
1368
1368
  "text": " @dev Helper method to parse data and extract the method signature (selector).\n Copied from: https://github.com/argentlabs/argent-contracts/\n blob/master/contracts/modules/common/Utils.sol#L54-L60"
1369
1369
  },
1370
- "id": 20726,
1370
+ "id": 20734,
1371
1371
  "implemented": true,
1372
1372
  "kind": "function",
1373
1373
  "modifiers": [],
@@ -1375,17 +1375,17 @@
1375
1375
  "nameLocation": "2622:13:60",
1376
1376
  "nodeType": "FunctionDefinition",
1377
1377
  "parameters": {
1378
- "id": 20712,
1378
+ "id": 20720,
1379
1379
  "nodeType": "ParameterList",
1380
1380
  "parameters": [
1381
1381
  {
1382
1382
  "constant": false,
1383
- "id": 20711,
1383
+ "id": 20719,
1384
1384
  "mutability": "mutable",
1385
1385
  "name": "callData",
1386
1386
  "nameLocation": "2649:8:60",
1387
1387
  "nodeType": "VariableDeclaration",
1388
- "scope": 20726,
1388
+ "scope": 20734,
1389
1389
  "src": "2636:21:60",
1390
1390
  "stateVariable": false,
1391
1391
  "storageLocation": "memory",
@@ -1394,7 +1394,7 @@
1394
1394
  "typeString": "bytes"
1395
1395
  },
1396
1396
  "typeName": {
1397
- "id": 20710,
1397
+ "id": 20718,
1398
1398
  "name": "bytes",
1399
1399
  "nodeType": "ElementaryTypeName",
1400
1400
  "src": "2636:5:60",
@@ -1409,17 +1409,17 @@
1409
1409
  "src": "2635:23:60"
1410
1410
  },
1411
1411
  "returnParameters": {
1412
- "id": 20715,
1412
+ "id": 20723,
1413
1413
  "nodeType": "ParameterList",
1414
1414
  "parameters": [
1415
1415
  {
1416
1416
  "constant": false,
1417
- "id": 20714,
1417
+ "id": 20722,
1418
1418
  "mutability": "mutable",
1419
1419
  "name": "selector",
1420
1420
  "nameLocation": "2689:8:60",
1421
1421
  "nodeType": "VariableDeclaration",
1422
- "scope": 20726,
1422
+ "scope": 20734,
1423
1423
  "src": "2682:15:60",
1424
1424
  "stateVariable": false,
1425
1425
  "storageLocation": "default",
@@ -1428,7 +1428,7 @@
1428
1428
  "typeString": "bytes4"
1429
1429
  },
1430
1430
  "typeName": {
1431
- "id": 20713,
1431
+ "id": 20721,
1432
1432
  "name": "bytes4",
1433
1433
  "nodeType": "ElementaryTypeName",
1434
1434
  "src": "2682:6:60",
@@ -1442,7 +1442,7 @@
1442
1442
  ],
1443
1443
  "src": "2681:17:60"
1444
1444
  },
1445
- "scope": 20795,
1445
+ "scope": 20803,
1446
1446
  "src": "2613:299:60",
1447
1447
  "stateMutability": "pure",
1448
1448
  "virtual": false,
@@ -1450,7 +1450,7 @@
1450
1450
  },
1451
1451
  {
1452
1452
  "body": {
1453
- "id": 20754,
1453
+ "id": 20762,
1454
1454
  "nodeType": "Block",
1455
1455
  "src": "3059:87:60",
1456
1456
  "statements": [
@@ -1460,7 +1460,7 @@
1460
1460
  "typeIdentifier": "t_uint256",
1461
1461
  "typeString": "uint256"
1462
1462
  },
1463
- "id": 20752,
1463
+ "id": 20760,
1464
1464
  "isConstant": false,
1465
1465
  "isLValue": false,
1466
1466
  "isPure": false,
@@ -1472,7 +1472,7 @@
1472
1472
  "typeIdentifier": "t_uint256",
1473
1473
  "typeString": "uint256"
1474
1474
  },
1475
- "id": 20749,
1475
+ "id": 20757,
1476
1476
  "isConstant": false,
1477
1477
  "isLValue": false,
1478
1478
  "isPure": false,
@@ -1484,17 +1484,17 @@
1484
1484
  "typeIdentifier": "t_uint256",
1485
1485
  "typeString": "uint256"
1486
1486
  },
1487
- "id": 20736,
1487
+ "id": 20744,
1488
1488
  "isConstant": false,
1489
1489
  "isLValue": false,
1490
1490
  "isPure": false,
1491
1491
  "lValueRequested": false,
1492
1492
  "leftExpression": {
1493
- "id": 20734,
1493
+ "id": 20742,
1494
1494
  "name": "len",
1495
1495
  "nodeType": "Identifier",
1496
1496
  "overloadedDeclarations": [],
1497
- "referencedDeclaration": 20729,
1497
+ "referencedDeclaration": 20737,
1498
1498
  "src": "3078:3:60",
1499
1499
  "typeDescriptions": {
1500
1500
  "typeIdentifier": "t_uint256",
@@ -1505,7 +1505,7 @@
1505
1505
  "operator": "/",
1506
1506
  "rightExpression": {
1507
1507
  "hexValue": "3332",
1508
- "id": 20735,
1508
+ "id": 20743,
1509
1509
  "isConstant": false,
1510
1510
  "isLValue": false,
1511
1511
  "isPure": true,
@@ -1526,7 +1526,7 @@
1526
1526
  }
1527
1527
  }
1528
1528
  ],
1529
- "id": 20737,
1529
+ "id": 20745,
1530
1530
  "isConstant": false,
1531
1531
  "isInlineArray": false,
1532
1532
  "isLValue": false,
@@ -1551,7 +1551,7 @@
1551
1551
  "typeIdentifier": "t_uint256",
1552
1552
  "typeString": "uint256"
1553
1553
  },
1554
- "id": 20743,
1554
+ "id": 20751,
1555
1555
  "isConstant": false,
1556
1556
  "isLValue": false,
1557
1557
  "isPure": false,
@@ -1563,17 +1563,17 @@
1563
1563
  "typeIdentifier": "t_uint256",
1564
1564
  "typeString": "uint256"
1565
1565
  },
1566
- "id": 20740,
1566
+ "id": 20748,
1567
1567
  "isConstant": false,
1568
1568
  "isLValue": false,
1569
1569
  "isPure": false,
1570
1570
  "lValueRequested": false,
1571
1571
  "leftExpression": {
1572
- "id": 20738,
1572
+ "id": 20746,
1573
1573
  "name": "len",
1574
1574
  "nodeType": "Identifier",
1575
1575
  "overloadedDeclarations": [],
1576
- "referencedDeclaration": 20729,
1576
+ "referencedDeclaration": 20737,
1577
1577
  "src": "3094:3:60",
1578
1578
  "typeDescriptions": {
1579
1579
  "typeIdentifier": "t_uint256",
@@ -1584,7 +1584,7 @@
1584
1584
  "operator": "&",
1585
1585
  "rightExpression": {
1586
1586
  "hexValue": "3331",
1587
- "id": 20739,
1587
+ "id": 20747,
1588
1588
  "isConstant": false,
1589
1589
  "isLValue": false,
1590
1590
  "isPure": true,
@@ -1605,7 +1605,7 @@
1605
1605
  }
1606
1606
  }
1607
1607
  ],
1608
- "id": 20741,
1608
+ "id": 20749,
1609
1609
  "isConstant": false,
1610
1610
  "isInlineArray": false,
1611
1611
  "isLValue": false,
@@ -1622,7 +1622,7 @@
1622
1622
  "operator": ">",
1623
1623
  "rightExpression": {
1624
1624
  "hexValue": "30",
1625
- "id": 20742,
1625
+ "id": 20750,
1626
1626
  "isConstant": false,
1627
1627
  "isLValue": false,
1628
1628
  "isPure": true,
@@ -1643,7 +1643,7 @@
1643
1643
  }
1644
1644
  }
1645
1645
  ],
1646
- "id": 20744,
1646
+ "id": 20752,
1647
1647
  "isConstant": false,
1648
1648
  "isInlineArray": false,
1649
1649
  "isLValue": false,
@@ -1658,7 +1658,7 @@
1658
1658
  },
1659
1659
  "falseExpression": {
1660
1660
  "hexValue": "30",
1661
- "id": 20746,
1661
+ "id": 20754,
1662
1662
  "isConstant": false,
1663
1663
  "isLValue": false,
1664
1664
  "isPure": true,
@@ -1672,7 +1672,7 @@
1672
1672
  },
1673
1673
  "value": "0"
1674
1674
  },
1675
- "id": 20747,
1675
+ "id": 20755,
1676
1676
  "isConstant": false,
1677
1677
  "isLValue": false,
1678
1678
  "isPure": false,
@@ -1681,7 +1681,7 @@
1681
1681
  "src": "3092:40:60",
1682
1682
  "trueExpression": {
1683
1683
  "hexValue": "31",
1684
- "id": 20745,
1684
+ "id": 20753,
1685
1685
  "isConstant": false,
1686
1686
  "isLValue": false,
1687
1687
  "isPure": true,
@@ -1701,7 +1701,7 @@
1701
1701
  }
1702
1702
  }
1703
1703
  ],
1704
- "id": 20748,
1704
+ "id": 20756,
1705
1705
  "isConstant": false,
1706
1706
  "isInlineArray": false,
1707
1707
  "isLValue": false,
@@ -1721,7 +1721,7 @@
1721
1721
  }
1722
1722
  }
1723
1723
  ],
1724
- "id": 20750,
1724
+ "id": 20758,
1725
1725
  "isConstant": false,
1726
1726
  "isInlineArray": false,
1727
1727
  "isLValue": false,
@@ -1738,7 +1738,7 @@
1738
1738
  "operator": "*",
1739
1739
  "rightExpression": {
1740
1740
  "hexValue": "3332",
1741
- "id": 20751,
1741
+ "id": 20759,
1742
1742
  "isConstant": false,
1743
1743
  "isLValue": false,
1744
1744
  "isPure": true,
@@ -1758,20 +1758,20 @@
1758
1758
  "typeString": "uint256"
1759
1759
  }
1760
1760
  },
1761
- "functionReturnParameters": 20733,
1762
- "id": 20753,
1761
+ "functionReturnParameters": 20741,
1762
+ "id": 20761,
1763
1763
  "nodeType": "Return",
1764
1764
  "src": "3069:70:60"
1765
1765
  }
1766
1766
  ]
1767
1767
  },
1768
1768
  "documentation": {
1769
- "id": 20727,
1769
+ "id": 20735,
1770
1770
  "nodeType": "StructuredDocumentation",
1771
1771
  "src": "2918:60:60",
1772
1772
  "text": " @dev Pad length to 32 bytes word boundary"
1773
1773
  },
1774
- "id": 20755,
1774
+ "id": 20763,
1775
1775
  "implemented": true,
1776
1776
  "kind": "function",
1777
1777
  "modifiers": [],
@@ -1779,17 +1779,17 @@
1779
1779
  "nameLocation": "2992:11:60",
1780
1780
  "nodeType": "FunctionDefinition",
1781
1781
  "parameters": {
1782
- "id": 20730,
1782
+ "id": 20738,
1783
1783
  "nodeType": "ParameterList",
1784
1784
  "parameters": [
1785
1785
  {
1786
1786
  "constant": false,
1787
- "id": 20729,
1787
+ "id": 20737,
1788
1788
  "mutability": "mutable",
1789
1789
  "name": "len",
1790
1790
  "nameLocation": "3012:3:60",
1791
1791
  "nodeType": "VariableDeclaration",
1792
- "scope": 20755,
1792
+ "scope": 20763,
1793
1793
  "src": "3004:11:60",
1794
1794
  "stateVariable": false,
1795
1795
  "storageLocation": "default",
@@ -1798,7 +1798,7 @@
1798
1798
  "typeString": "uint256"
1799
1799
  },
1800
1800
  "typeName": {
1801
- "id": 20728,
1801
+ "id": 20736,
1802
1802
  "name": "uint256",
1803
1803
  "nodeType": "ElementaryTypeName",
1804
1804
  "src": "3004:7:60",
@@ -1813,17 +1813,17 @@
1813
1813
  "src": "3003:13:60"
1814
1814
  },
1815
1815
  "returnParameters": {
1816
- "id": 20733,
1816
+ "id": 20741,
1817
1817
  "nodeType": "ParameterList",
1818
1818
  "parameters": [
1819
1819
  {
1820
1820
  "constant": false,
1821
- "id": 20732,
1821
+ "id": 20740,
1822
1822
  "mutability": "mutable",
1823
1823
  "name": "paddedLen",
1824
1824
  "nameLocation": "3048:9:60",
1825
1825
  "nodeType": "VariableDeclaration",
1826
- "scope": 20755,
1826
+ "scope": 20763,
1827
1827
  "src": "3040:17:60",
1828
1828
  "stateVariable": false,
1829
1829
  "storageLocation": "default",
@@ -1832,7 +1832,7 @@
1832
1832
  "typeString": "uint256"
1833
1833
  },
1834
1834
  "typeName": {
1835
- "id": 20731,
1835
+ "id": 20739,
1836
1836
  "name": "uint256",
1837
1837
  "nodeType": "ElementaryTypeName",
1838
1838
  "src": "3040:7:60",
@@ -1846,7 +1846,7 @@
1846
1846
  ],
1847
1847
  "src": "3039:19:60"
1848
1848
  },
1849
- "scope": 20795,
1849
+ "scope": 20803,
1850
1850
  "src": "2983:163:60",
1851
1851
  "stateMutability": "pure",
1852
1852
  "virtual": false,
@@ -1854,7 +1854,7 @@
1854
1854
  },
1855
1855
  {
1856
1856
  "body": {
1857
- "id": 20793,
1857
+ "id": 20801,
1858
1858
  "nodeType": "Block",
1859
1859
  "src": "3537:447:60",
1860
1860
  "statements": [
@@ -1864,25 +1864,25 @@
1864
1864
  "typeIdentifier": "t_uint256",
1865
1865
  "typeString": "uint256"
1866
1866
  },
1867
- "id": 20766,
1867
+ "id": 20774,
1868
1868
  "isConstant": false,
1869
1869
  "isLValue": false,
1870
1870
  "isPure": false,
1871
1871
  "lValueRequested": false,
1872
1872
  "leftExpression": {
1873
1873
  "expression": {
1874
- "id": 20763,
1874
+ "id": 20771,
1875
1875
  "name": "data",
1876
1876
  "nodeType": "Identifier",
1877
1877
  "overloadedDeclarations": [],
1878
- "referencedDeclaration": 20758,
1878
+ "referencedDeclaration": 20766,
1879
1879
  "src": "3551:4:60",
1880
1880
  "typeDescriptions": {
1881
1881
  "typeIdentifier": "t_bytes_memory_ptr",
1882
1882
  "typeString": "bytes memory"
1883
1883
  }
1884
1884
  },
1885
- "id": 20764,
1885
+ "id": 20772,
1886
1886
  "isConstant": false,
1887
1887
  "isLValue": false,
1888
1888
  "isPure": false,
@@ -1899,7 +1899,7 @@
1899
1899
  "operator": "<",
1900
1900
  "rightExpression": {
1901
1901
  "hexValue": "3634",
1902
- "id": 20765,
1902
+ "id": 20773,
1903
1903
  "isConstant": false,
1904
1904
  "isLValue": false,
1905
1905
  "isPure": true,
@@ -1919,13 +1919,13 @@
1919
1919
  "typeString": "bool"
1920
1920
  }
1921
1921
  },
1922
- "id": 20769,
1922
+ "id": 20777,
1923
1923
  "nodeType": "IfStatement",
1924
1924
  "src": "3547:34:60",
1925
1925
  "trueBody": {
1926
1926
  "expression": {
1927
1927
  "hexValue": "66616c7365",
1928
- "id": 20767,
1928
+ "id": 20775,
1929
1929
  "isConstant": false,
1930
1930
  "isLValue": false,
1931
1931
  "isPure": true,
@@ -1939,25 +1939,25 @@
1939
1939
  },
1940
1940
  "value": "false"
1941
1941
  },
1942
- "functionReturnParameters": 20762,
1943
- "id": 20768,
1942
+ "functionReturnParameters": 20770,
1943
+ "id": 20776,
1944
1944
  "nodeType": "Return",
1945
1945
  "src": "3569:12:60"
1946
1946
  }
1947
1947
  },
1948
1948
  {
1949
1949
  "assignments": [
1950
- 20771
1950
+ 20779
1951
1951
  ],
1952
1952
  "declarations": [
1953
1953
  {
1954
1954
  "constant": false,
1955
- "id": 20771,
1955
+ "id": 20779,
1956
1956
  "mutability": "mutable",
1957
1957
  "name": "bytesOffset",
1958
1958
  "nameLocation": "3596:11:60",
1959
1959
  "nodeType": "VariableDeclaration",
1960
- "scope": 20793,
1960
+ "scope": 20801,
1961
1961
  "src": "3591:16:60",
1962
1962
  "stateVariable": false,
1963
1963
  "storageLocation": "default",
@@ -1966,7 +1966,7 @@
1966
1966
  "typeString": "uint256"
1967
1967
  },
1968
1968
  "typeName": {
1969
- "id": 20770,
1969
+ "id": 20778,
1970
1970
  "name": "uint",
1971
1971
  "nodeType": "ElementaryTypeName",
1972
1972
  "src": "3591:4:60",
@@ -1978,23 +1978,23 @@
1978
1978
  "visibility": "internal"
1979
1979
  }
1980
1980
  ],
1981
- "id": 20772,
1981
+ "id": 20780,
1982
1982
  "nodeType": "VariableDeclarationStatement",
1983
1983
  "src": "3591:16:60"
1984
1984
  },
1985
1985
  {
1986
1986
  "assignments": [
1987
- 20774
1987
+ 20782
1988
1988
  ],
1989
1989
  "declarations": [
1990
1990
  {
1991
1991
  "constant": false,
1992
- "id": 20774,
1992
+ "id": 20782,
1993
1993
  "mutability": "mutable",
1994
1994
  "name": "bytesLen",
1995
1995
  "nameLocation": "3622:8:60",
1996
1996
  "nodeType": "VariableDeclaration",
1997
- "scope": 20793,
1997
+ "scope": 20801,
1998
1998
  "src": "3617:13:60",
1999
1999
  "stateVariable": false,
2000
2000
  "storageLocation": "default",
@@ -2003,7 +2003,7 @@
2003
2003
  "typeString": "uint256"
2004
2004
  },
2005
2005
  "typeName": {
2006
- "id": 20773,
2006
+ "id": 20781,
2007
2007
  "name": "uint",
2008
2008
  "nodeType": "ElementaryTypeName",
2009
2009
  "src": "3617:4:60",
@@ -2015,7 +2015,7 @@
2015
2015
  "visibility": "internal"
2016
2016
  }
2017
2017
  ],
2018
- "id": 20775,
2018
+ "id": 20783,
2019
2019
  "nodeType": "VariableDeclarationStatement",
2020
2020
  "src": "3617:13:60"
2021
2021
  },
@@ -2074,21 +2074,21 @@
2074
2074
  "evmVersion": "london",
2075
2075
  "externalReferences": [
2076
2076
  {
2077
- "declaration": 20771,
2077
+ "declaration": 20779,
2078
2078
  "isOffset": false,
2079
2079
  "isSlot": false,
2080
2080
  "src": "3703:11:60",
2081
2081
  "valueSize": 1
2082
2082
  },
2083
2083
  {
2084
- "declaration": 20758,
2084
+ "declaration": 20766,
2085
2085
  "isOffset": false,
2086
2086
  "isSlot": false,
2087
2087
  "src": "3728:4:60",
2088
2088
  "valueSize": 1
2089
2089
  }
2090
2090
  ],
2091
- "id": 20776,
2091
+ "id": 20784,
2092
2092
  "nodeType": "InlineAssembly",
2093
2093
  "src": "3692:48:60"
2094
2094
  },
@@ -2098,17 +2098,17 @@
2098
2098
  "typeIdentifier": "t_uint256",
2099
2099
  "typeString": "uint256"
2100
2100
  },
2101
- "id": 20779,
2101
+ "id": 20787,
2102
2102
  "isConstant": false,
2103
2103
  "isLValue": false,
2104
2104
  "isPure": false,
2105
2105
  "lValueRequested": false,
2106
2106
  "leftExpression": {
2107
- "id": 20777,
2107
+ "id": 20785,
2108
2108
  "name": "bytesOffset",
2109
2109
  "nodeType": "Identifier",
2110
2110
  "overloadedDeclarations": [],
2111
- "referencedDeclaration": 20771,
2111
+ "referencedDeclaration": 20779,
2112
2112
  "src": "3753:11:60",
2113
2113
  "typeDescriptions": {
2114
2114
  "typeIdentifier": "t_uint256",
@@ -2119,7 +2119,7 @@
2119
2119
  "operator": "!=",
2120
2120
  "rightExpression": {
2121
2121
  "hexValue": "3332",
2122
- "id": 20778,
2122
+ "id": 20786,
2123
2123
  "isConstant": false,
2124
2124
  "isLValue": false,
2125
2125
  "isPure": true,
@@ -2139,13 +2139,13 @@
2139
2139
  "typeString": "bool"
2140
2140
  }
2141
2141
  },
2142
- "id": 20782,
2142
+ "id": 20790,
2143
2143
  "nodeType": "IfStatement",
2144
2144
  "src": "3749:35:60",
2145
2145
  "trueBody": {
2146
2146
  "expression": {
2147
2147
  "hexValue": "66616c7365",
2148
- "id": 20780,
2148
+ "id": 20788,
2149
2149
  "isConstant": false,
2150
2150
  "isLValue": false,
2151
2151
  "isPure": true,
@@ -2159,8 +2159,8 @@
2159
2159
  },
2160
2160
  "value": "false"
2161
2161
  },
2162
- "functionReturnParameters": 20762,
2163
- "id": 20781,
2162
+ "functionReturnParameters": 20770,
2163
+ "id": 20789,
2164
2164
  "nodeType": "Return",
2165
2165
  "src": "3772:12:60"
2166
2166
  }
@@ -2220,21 +2220,21 @@
2220
2220
  "evmVersion": "london",
2221
2221
  "externalReferences": [
2222
2222
  {
2223
- "declaration": 20774,
2223
+ "declaration": 20782,
2224
2224
  "isOffset": false,
2225
2225
  "isSlot": false,
2226
2226
  "src": "3805:8:60",
2227
2227
  "valueSize": 1
2228
2228
  },
2229
2229
  {
2230
- "declaration": 20758,
2230
+ "declaration": 20766,
2231
2231
  "isOffset": false,
2232
2232
  "isSlot": false,
2233
2233
  "src": "3827:4:60",
2234
2234
  "valueSize": 1
2235
2235
  }
2236
2236
  ],
2237
- "id": 20783,
2237
+ "id": 20791,
2238
2238
  "nodeType": "InlineAssembly",
2239
2239
  "src": "3794:45:60"
2240
2240
  },
@@ -2244,25 +2244,25 @@
2244
2244
  "typeIdentifier": "t_uint256",
2245
2245
  "typeString": "uint256"
2246
2246
  },
2247
- "id": 20791,
2247
+ "id": 20799,
2248
2248
  "isConstant": false,
2249
2249
  "isLValue": false,
2250
2250
  "isPure": false,
2251
2251
  "lValueRequested": false,
2252
2252
  "leftExpression": {
2253
2253
  "expression": {
2254
- "id": 20784,
2254
+ "id": 20792,
2255
2255
  "name": "data",
2256
2256
  "nodeType": "Identifier",
2257
2257
  "overloadedDeclarations": [],
2258
- "referencedDeclaration": 20758,
2258
+ "referencedDeclaration": 20766,
2259
2259
  "src": "3936:4:60",
2260
2260
  "typeDescriptions": {
2261
2261
  "typeIdentifier": "t_bytes_memory_ptr",
2262
2262
  "typeString": "bytes memory"
2263
2263
  }
2264
2264
  },
2265
- "id": 20785,
2265
+ "id": 20793,
2266
2266
  "isConstant": false,
2267
2267
  "isLValue": false,
2268
2268
  "isPure": false,
@@ -2282,14 +2282,14 @@
2282
2282
  "typeIdentifier": "t_uint256",
2283
2283
  "typeString": "uint256"
2284
2284
  },
2285
- "id": 20790,
2285
+ "id": 20798,
2286
2286
  "isConstant": false,
2287
2287
  "isLValue": false,
2288
2288
  "isPure": false,
2289
2289
  "lValueRequested": false,
2290
2290
  "leftExpression": {
2291
2291
  "hexValue": "3634",
2292
- "id": 20786,
2292
+ "id": 20794,
2293
2293
  "isConstant": false,
2294
2294
  "isLValue": false,
2295
2295
  "isPure": true,
@@ -2308,11 +2308,11 @@
2308
2308
  "rightExpression": {
2309
2309
  "arguments": [
2310
2310
  {
2311
- "id": 20788,
2311
+ "id": 20796,
2312
2312
  "name": "bytesLen",
2313
2313
  "nodeType": "Identifier",
2314
2314
  "overloadedDeclarations": [],
2315
- "referencedDeclaration": 20774,
2315
+ "referencedDeclaration": 20782,
2316
2316
  "src": "3968:8:60",
2317
2317
  "typeDescriptions": {
2318
2318
  "typeIdentifier": "t_uint256",
@@ -2327,18 +2327,18 @@
2327
2327
  "typeString": "uint256"
2328
2328
  }
2329
2329
  ],
2330
- "id": 20787,
2330
+ "id": 20795,
2331
2331
  "name": "padLength32",
2332
2332
  "nodeType": "Identifier",
2333
2333
  "overloadedDeclarations": [],
2334
- "referencedDeclaration": 20755,
2334
+ "referencedDeclaration": 20763,
2335
2335
  "src": "3956:11:60",
2336
2336
  "typeDescriptions": {
2337
2337
  "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$",
2338
2338
  "typeString": "function (uint256) pure returns (uint256)"
2339
2339
  }
2340
2340
  },
2341
- "id": 20789,
2341
+ "id": 20797,
2342
2342
  "isConstant": false,
2343
2343
  "isLValue": false,
2344
2344
  "isPure": false,
@@ -2365,20 +2365,20 @@
2365
2365
  "typeString": "bool"
2366
2366
  }
2367
2367
  },
2368
- "functionReturnParameters": 20762,
2369
- "id": 20792,
2368
+ "functionReturnParameters": 20770,
2369
+ "id": 20800,
2370
2370
  "nodeType": "Return",
2371
2371
  "src": "3929:48:60"
2372
2372
  }
2373
2373
  ]
2374
2374
  },
2375
2375
  "documentation": {
2376
- "id": 20756,
2376
+ "id": 20764,
2377
2377
  "nodeType": "StructuredDocumentation",
2378
2378
  "src": "3152:300:60",
2379
2379
  "text": " @dev Validate if the data is encoded correctly with abi.encode(bytesData)\n Expected ABI Encode Layout:\n | word 1 | word 2 | word 3 | the rest...\n | data length | bytesData offset | bytesData length | bytesData + padLength32 zeros |"
2380
2380
  },
2381
- "id": 20794,
2381
+ "id": 20802,
2382
2382
  "implemented": true,
2383
2383
  "kind": "function",
2384
2384
  "modifiers": [],
@@ -2386,17 +2386,17 @@
2386
2386
  "nameLocation": "3466:22:60",
2387
2387
  "nodeType": "FunctionDefinition",
2388
2388
  "parameters": {
2389
- "id": 20759,
2389
+ "id": 20767,
2390
2390
  "nodeType": "ParameterList",
2391
2391
  "parameters": [
2392
2392
  {
2393
2393
  "constant": false,
2394
- "id": 20758,
2394
+ "id": 20766,
2395
2395
  "mutability": "mutable",
2396
2396
  "name": "data",
2397
2397
  "nameLocation": "3502:4:60",
2398
2398
  "nodeType": "VariableDeclaration",
2399
- "scope": 20794,
2399
+ "scope": 20802,
2400
2400
  "src": "3489:17:60",
2401
2401
  "stateVariable": false,
2402
2402
  "storageLocation": "memory",
@@ -2405,7 +2405,7 @@
2405
2405
  "typeString": "bytes"
2406
2406
  },
2407
2407
  "typeName": {
2408
- "id": 20757,
2408
+ "id": 20765,
2409
2409
  "name": "bytes",
2410
2410
  "nodeType": "ElementaryTypeName",
2411
2411
  "src": "3489:5:60",
@@ -2420,17 +2420,17 @@
2420
2420
  "src": "3488:19:60"
2421
2421
  },
2422
2422
  "returnParameters": {
2423
- "id": 20762,
2423
+ "id": 20770,
2424
2424
  "nodeType": "ParameterList",
2425
2425
  "parameters": [
2426
2426
  {
2427
2427
  "constant": false,
2428
- "id": 20761,
2428
+ "id": 20769,
2429
2429
  "mutability": "mutable",
2430
2430
  "name": "",
2431
2431
  "nameLocation": "-1:-1:-1",
2432
2432
  "nodeType": "VariableDeclaration",
2433
- "scope": 20794,
2433
+ "scope": 20802,
2434
2434
  "src": "3531:4:60",
2435
2435
  "stateVariable": false,
2436
2436
  "storageLocation": "default",
@@ -2439,7 +2439,7 @@
2439
2439
  "typeString": "bool"
2440
2440
  },
2441
2441
  "typeName": {
2442
- "id": 20760,
2442
+ "id": 20768,
2443
2443
  "name": "bool",
2444
2444
  "nodeType": "ElementaryTypeName",
2445
2445
  "src": "3531:4:60",
@@ -2453,14 +2453,14 @@
2453
2453
  ],
2454
2454
  "src": "3530:6:60"
2455
2455
  },
2456
- "scope": 20795,
2456
+ "scope": 20803,
2457
2457
  "src": "3457:527:60",
2458
2458
  "stateMutability": "pure",
2459
2459
  "virtual": false,
2460
2460
  "visibility": "internal"
2461
2461
  }
2462
2462
  ],
2463
- "scope": 20796,
2463
+ "scope": 20804,
2464
2464
  "src": "160:3827:60",
2465
2465
  "usedErrors": []
2466
2466
  }
@@ -2473,7 +2473,7 @@
2473
2473
  },
2474
2474
  "networks": {},
2475
2475
  "schemaVersion": "3.4.8",
2476
- "updatedAt": "2022-08-11T12:58:51.697Z",
2476
+ "updatedAt": "2022-08-23T08:53:53.372Z",
2477
2477
  "devdoc": {
2478
2478
  "author": "Superfluid",
2479
2479
  "kind": "dev",