forked from foundry-rs/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cheatcodes.json
8675 lines (8675 loc) · 266 KB
/
cheatcodes.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"errors": [
{
"name": "CheatcodeError",
"description": "Error thrown by cheatcodes.",
"declaration": "error CheatcodeError(string message);"
}
],
"events": [],
"enums": [
{
"name": "CallerMode",
"description": "A modification applied to either `msg.sender` or `tx.origin`. Returned by `readCallers`.",
"variants": [
{
"name": "None",
"description": "No caller modification is currently active."
},
{
"name": "Broadcast",
"description": "A one time broadcast triggered by a `vm.broadcast()` call is currently active."
},
{
"name": "RecurrentBroadcast",
"description": "A recurrent broadcast triggered by a `vm.startBroadcast()` call is currently active."
},
{
"name": "Prank",
"description": "A one time prank triggered by a `vm.prank()` call is currently active."
},
{
"name": "RecurrentPrank",
"description": "A recurrent prank triggered by a `vm.startPrank()` call is currently active."
}
]
},
{
"name": "AccountAccessKind",
"description": "The kind of account access that occurred.",
"variants": [
{
"name": "Call",
"description": "The account was called."
},
{
"name": "DelegateCall",
"description": "The account was called via delegatecall."
},
{
"name": "CallCode",
"description": "The account was called via callcode."
},
{
"name": "StaticCall",
"description": "The account was called via staticcall."
},
{
"name": "Create",
"description": "The account was created."
},
{
"name": "SelfDestruct",
"description": "The account was selfdestructed."
},
{
"name": "Resume",
"description": "Synthetic access indicating the current context has resumed after a previous sub-context (AccountAccess)."
},
{
"name": "Balance",
"description": "The account's balance was read."
},
{
"name": "Extcodesize",
"description": "The account's codesize was read."
},
{
"name": "Extcodehash",
"description": "The account's codehash was read."
},
{
"name": "Extcodecopy",
"description": "The account's code was copied."
}
]
},
{
"name": "ForgeContext",
"description": "Forge execution contexts.",
"variants": [
{
"name": "TestGroup",
"description": "Test group execution context (test, coverage or snapshot)."
},
{
"name": "Test",
"description": "`forge test` execution context."
},
{
"name": "Coverage",
"description": "`forge coverage` execution context."
},
{
"name": "Snapshot",
"description": "`forge snapshot` execution context."
},
{
"name": "ScriptGroup",
"description": "Script group execution context (dry run, broadcast or resume)."
},
{
"name": "ScriptDryRun",
"description": "`forge script` execution context."
},
{
"name": "ScriptBroadcast",
"description": "`forge script --broadcast` execution context."
},
{
"name": "ScriptResume",
"description": "`forge script --resume` execution context."
},
{
"name": "Unknown",
"description": "Unknown `forge` execution context."
}
]
}
],
"structs": [
{
"name": "Log",
"description": "An Ethereum log. Returned by `getRecordedLogs`.",
"fields": [
{
"name": "topics",
"ty": "bytes32[]",
"description": "The topics of the log, including the signature, if any."
},
{
"name": "data",
"ty": "bytes",
"description": "The raw data of the log."
},
{
"name": "emitter",
"ty": "address",
"description": "The address of the log's emitter."
}
]
},
{
"name": "Rpc",
"description": "An RPC URL and its alias. Returned by `rpcUrlStructs`.",
"fields": [
{
"name": "key",
"ty": "string",
"description": "The alias of the RPC URL."
},
{
"name": "url",
"ty": "string",
"description": "The RPC URL."
}
]
},
{
"name": "EthGetLogs",
"description": "An RPC log object. Returned by `eth_getLogs`.",
"fields": [
{
"name": "emitter",
"ty": "address",
"description": "The address of the log's emitter."
},
{
"name": "topics",
"ty": "bytes32[]",
"description": "The topics of the log, including the signature, if any."
},
{
"name": "data",
"ty": "bytes",
"description": "The raw data of the log."
},
{
"name": "blockHash",
"ty": "bytes32",
"description": "The block hash."
},
{
"name": "blockNumber",
"ty": "uint64",
"description": "The block number."
},
{
"name": "transactionHash",
"ty": "bytes32",
"description": "The transaction hash."
},
{
"name": "transactionIndex",
"ty": "uint64",
"description": "The transaction index in the block."
},
{
"name": "logIndex",
"ty": "uint256",
"description": "The log index."
},
{
"name": "removed",
"ty": "bool",
"description": "Whether the log was removed."
}
]
},
{
"name": "DirEntry",
"description": "A single entry in a directory listing. Returned by `readDir`.",
"fields": [
{
"name": "errorMessage",
"ty": "string",
"description": "The error message, if any."
},
{
"name": "path",
"ty": "string",
"description": "The path of the entry."
},
{
"name": "depth",
"ty": "uint64",
"description": "The depth of the entry."
},
{
"name": "isDir",
"ty": "bool",
"description": "Whether the entry is a directory."
},
{
"name": "isSymlink",
"ty": "bool",
"description": "Whether the entry is a symlink."
}
]
},
{
"name": "FsMetadata",
"description": "Metadata information about a file.\n This structure is returned from the `fsMetadata` function and represents known\n metadata about a file such as its permissions, size, modification\n times, etc.",
"fields": [
{
"name": "isDir",
"ty": "bool",
"description": "True if this metadata is for a directory."
},
{
"name": "isSymlink",
"ty": "bool",
"description": "True if this metadata is for a symlink."
},
{
"name": "length",
"ty": "uint256",
"description": "The size of the file, in bytes, this metadata is for."
},
{
"name": "readOnly",
"ty": "bool",
"description": "True if this metadata is for a readonly (unwritable) file."
},
{
"name": "modified",
"ty": "uint256",
"description": "The last modification time listed in this metadata."
},
{
"name": "accessed",
"ty": "uint256",
"description": "The last access time of this metadata."
},
{
"name": "created",
"ty": "uint256",
"description": "The creation time listed in this metadata."
}
]
},
{
"name": "Wallet",
"description": "A wallet with a public and private key.",
"fields": [
{
"name": "addr",
"ty": "address",
"description": "The wallet's address."
},
{
"name": "publicKeyX",
"ty": "uint256",
"description": "The wallet's public key `X`."
},
{
"name": "publicKeyY",
"ty": "uint256",
"description": "The wallet's public key `Y`."
},
{
"name": "privateKey",
"ty": "uint256",
"description": "The wallet's private key."
}
]
},
{
"name": "FfiResult",
"description": "The result of a `tryFfi` call.",
"fields": [
{
"name": "exitCode",
"ty": "int32",
"description": "The exit code of the call."
},
{
"name": "stdout",
"ty": "bytes",
"description": "The optionally hex-decoded `stdout` data."
},
{
"name": "stderr",
"ty": "bytes",
"description": "The `stderr` data."
}
]
},
{
"name": "ChainInfo",
"description": "Information on the chain and fork.",
"fields": [
{
"name": "forkId",
"ty": "uint256",
"description": "The fork identifier. Set to zero if no fork is active."
},
{
"name": "chainId",
"ty": "uint256",
"description": "The chain ID of the current fork."
}
]
},
{
"name": "AccountAccess",
"description": "The result of a `stopAndReturnStateDiff` call.",
"fields": [
{
"name": "chainInfo",
"ty": "ChainInfo",
"description": "The chain and fork the access occurred."
},
{
"name": "kind",
"ty": "AccountAccessKind",
"description": "The kind of account access that determines what the account is.\n If kind is Call, DelegateCall, StaticCall or CallCode, then the account is the callee.\n If kind is Create, then the account is the newly created account.\n If kind is SelfDestruct, then the account is the selfdestruct recipient.\n If kind is a Resume, then account represents a account context that has resumed."
},
{
"name": "account",
"ty": "address",
"description": "The account that was accessed.\n It's either the account created, callee or a selfdestruct recipient for CREATE, CALL or SELFDESTRUCT."
},
{
"name": "accessor",
"ty": "address",
"description": "What accessed the account."
},
{
"name": "initialized",
"ty": "bool",
"description": "If the account was initialized or empty prior to the access.\n An account is considered initialized if it has code, a\n non-zero nonce, or a non-zero balance."
},
{
"name": "oldBalance",
"ty": "uint256",
"description": "The previous balance of the accessed account."
},
{
"name": "newBalance",
"ty": "uint256",
"description": "The potential new balance of the accessed account.\n That is, all balance changes are recorded here, even if reverts occurred."
},
{
"name": "deployedCode",
"ty": "bytes",
"description": "Code of the account deployed by CREATE."
},
{
"name": "value",
"ty": "uint256",
"description": "Value passed along with the account access"
},
{
"name": "data",
"ty": "bytes",
"description": "Input data provided to the CREATE or CALL"
},
{
"name": "reverted",
"ty": "bool",
"description": "If this access reverted in either the current or parent context."
},
{
"name": "storageAccesses",
"ty": "StorageAccess[]",
"description": "An ordered list of storage accesses made during an account access operation."
},
{
"name": "depth",
"ty": "uint64",
"description": "Call depth traversed during the recording of state differences"
}
]
},
{
"name": "StorageAccess",
"description": "The storage accessed during an `AccountAccess`.",
"fields": [
{
"name": "account",
"ty": "address",
"description": "The account whose storage was accessed."
},
{
"name": "slot",
"ty": "bytes32",
"description": "The slot that was accessed."
},
{
"name": "isWrite",
"ty": "bool",
"description": "If the access was a write."
},
{
"name": "previousValue",
"ty": "bytes32",
"description": "The previous value of the slot."
},
{
"name": "newValue",
"ty": "bytes32",
"description": "The new value of the slot."
},
{
"name": "reverted",
"ty": "bool",
"description": "If the access was reverted."
}
]
},
{
"name": "Gas",
"description": "Gas used. Returned by `lastCallGas`.",
"fields": [
{
"name": "gasLimit",
"ty": "uint64",
"description": "The gas limit of the call."
},
{
"name": "gasTotalUsed",
"ty": "uint64",
"description": "The total gas used."
},
{
"name": "gasMemoryUsed",
"ty": "uint64",
"description": "DEPRECATED: The amount of gas used for memory expansion. Ref: <https://github.com/foundry-rs/foundry/pull/7934#pullrequestreview-2069236939>"
},
{
"name": "gasRefunded",
"ty": "int64",
"description": "The amount of gas refunded."
},
{
"name": "gasRemaining",
"ty": "uint64",
"description": "The amount of gas remaining."
}
]
}
],
"cheatcodes": [
{
"func": {
"id": "_expectCheatcodeRevert_0",
"description": "Expects an error on next cheatcode call with any revert data.",
"declaration": "function _expectCheatcodeRevert() external;",
"visibility": "external",
"mutability": "",
"signature": "_expectCheatcodeRevert()",
"selector": "0x79a4f48a",
"selectorBytes": [
121,
164,
244,
138
]
},
"group": "testing",
"status": "internal",
"safety": "unsafe"
},
{
"func": {
"id": "_expectCheatcodeRevert_1",
"description": "Expects an error on next cheatcode call that starts with the revert data.",
"declaration": "function _expectCheatcodeRevert(bytes4 revertData) external;",
"visibility": "external",
"mutability": "",
"signature": "_expectCheatcodeRevert(bytes4)",
"selector": "0x884cb0ae",
"selectorBytes": [
136,
76,
176,
174
]
},
"group": "testing",
"status": "internal",
"safety": "unsafe"
},
{
"func": {
"id": "_expectCheatcodeRevert_2",
"description": "Expects an error on next cheatcode call that exactly matches the revert data.",
"declaration": "function _expectCheatcodeRevert(bytes calldata revertData) external;",
"visibility": "external",
"mutability": "",
"signature": "_expectCheatcodeRevert(bytes)",
"selector": "0x7843b44d",
"selectorBytes": [
120,
67,
180,
77
]
},
"group": "testing",
"status": "internal",
"safety": "unsafe"
},
{
"func": {
"id": "accesses",
"description": "Gets all accessed reads and write slot from a `vm.record` session, for a given address.",
"declaration": "function accesses(address target) external returns (bytes32[] memory readSlots, bytes32[] memory writeSlots);",
"visibility": "external",
"mutability": "",
"signature": "accesses(address)",
"selector": "0x65bc9481",
"selectorBytes": [
101,
188,
148,
129
]
},
"group": "evm",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "activeFork",
"description": "Returns the identifier of the currently active fork. Reverts if no fork is currently active.",
"declaration": "function activeFork() external view returns (uint256 forkId);",
"visibility": "external",
"mutability": "view",
"signature": "activeFork()",
"selector": "0x2f103f22",
"selectorBytes": [
47,
16,
63,
34
]
},
"group": "evm",
"status": "stable",
"safety": "unsafe"
},
{
"func": {
"id": "addr",
"description": "Gets the address for a given private key.",
"declaration": "function addr(uint256 privateKey) external pure returns (address keyAddr);",
"visibility": "external",
"mutability": "pure",
"signature": "addr(uint256)",
"selector": "0xffa18649",
"selectorBytes": [
255,
161,
134,
73
]
},
"group": "evm",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "allowCheatcodes",
"description": "In forking mode, explicitly grant the given address cheatcode access.",
"declaration": "function allowCheatcodes(address account) external;",
"visibility": "external",
"mutability": "",
"signature": "allowCheatcodes(address)",
"selector": "0xea060291",
"selectorBytes": [
234,
6,
2,
145
]
},
"group": "evm",
"status": "stable",
"safety": "unsafe"
},
{
"func": {
"id": "assertApproxEqAbsDecimal_0",
"description": "Compares two `uint256` values. Expects difference to be less than or equal to `maxDelta`.\nFormats values with decimals in failure message.",
"declaration": "function assertApproxEqAbsDecimal(uint256 left, uint256 right, uint256 maxDelta, uint256 decimals) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbsDecimal(uint256,uint256,uint256,uint256)",
"selector": "0x045c55ce",
"selectorBytes": [
4,
92,
85,
206
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbsDecimal_1",
"description": "Compares two `uint256` values. Expects difference to be less than or equal to `maxDelta`.\nFormats values with decimals in failure message. Includes error message into revert string on failure.",
"declaration": "function assertApproxEqAbsDecimal(uint256 left, uint256 right, uint256 maxDelta, uint256 decimals, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbsDecimal(uint256,uint256,uint256,uint256,string)",
"selector": "0x60429eb2",
"selectorBytes": [
96,
66,
158,
178
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbsDecimal_2",
"description": "Compares two `int256` values. Expects difference to be less than or equal to `maxDelta`.\nFormats values with decimals in failure message.",
"declaration": "function assertApproxEqAbsDecimal(int256 left, int256 right, uint256 maxDelta, uint256 decimals) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbsDecimal(int256,int256,uint256,uint256)",
"selector": "0x3d5bc8bc",
"selectorBytes": [
61,
91,
200,
188
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbsDecimal_3",
"description": "Compares two `int256` values. Expects difference to be less than or equal to `maxDelta`.\nFormats values with decimals in failure message. Includes error message into revert string on failure.",
"declaration": "function assertApproxEqAbsDecimal(int256 left, int256 right, uint256 maxDelta, uint256 decimals, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbsDecimal(int256,int256,uint256,uint256,string)",
"selector": "0x6a5066d4",
"selectorBytes": [
106,
80,
102,
212
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbs_0",
"description": "Compares two `uint256` values. Expects difference to be less than or equal to `maxDelta`.",
"declaration": "function assertApproxEqAbs(uint256 left, uint256 right, uint256 maxDelta) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbs(uint256,uint256,uint256)",
"selector": "0x16d207c6",
"selectorBytes": [
22,
210,
7,
198
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbs_1",
"description": "Compares two `uint256` values. Expects difference to be less than or equal to `maxDelta`.\nIncludes error message into revert string on failure.",
"declaration": "function assertApproxEqAbs(uint256 left, uint256 right, uint256 maxDelta, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbs(uint256,uint256,uint256,string)",
"selector": "0xf710b062",
"selectorBytes": [
247,
16,
176,
98
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbs_2",
"description": "Compares two `int256` values. Expects difference to be less than or equal to `maxDelta`.",
"declaration": "function assertApproxEqAbs(int256 left, int256 right, uint256 maxDelta) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbs(int256,int256,uint256)",
"selector": "0x240f839d",
"selectorBytes": [
36,
15,
131,
157
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqAbs_3",
"description": "Compares two `int256` values. Expects difference to be less than or equal to `maxDelta`.\nIncludes error message into revert string on failure.",
"declaration": "function assertApproxEqAbs(int256 left, int256 right, uint256 maxDelta, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqAbs(int256,int256,uint256,string)",
"selector": "0x8289e621",
"selectorBytes": [
130,
137,
230,
33
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRelDecimal_0",
"description": "Compares two `uint256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%\nFormats values with decimals in failure message.",
"declaration": "function assertApproxEqRelDecimal(uint256 left, uint256 right, uint256 maxPercentDelta, uint256 decimals) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRelDecimal(uint256,uint256,uint256,uint256)",
"selector": "0x21ed2977",
"selectorBytes": [
33,
237,
41,
119
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRelDecimal_1",
"description": "Compares two `uint256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%\nFormats values with decimals in failure message. Includes error message into revert string on failure.",
"declaration": "function assertApproxEqRelDecimal(uint256 left, uint256 right, uint256 maxPercentDelta, uint256 decimals, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRelDecimal(uint256,uint256,uint256,uint256,string)",
"selector": "0x82d6c8fd",
"selectorBytes": [
130,
214,
200,
253
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRelDecimal_2",
"description": "Compares two `int256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%\nFormats values with decimals in failure message.",
"declaration": "function assertApproxEqRelDecimal(int256 left, int256 right, uint256 maxPercentDelta, uint256 decimals) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRelDecimal(int256,int256,uint256,uint256)",
"selector": "0xabbf21cc",
"selectorBytes": [
171,
191,
33,
204
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRelDecimal_3",
"description": "Compares two `int256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%\nFormats values with decimals in failure message. Includes error message into revert string on failure.",
"declaration": "function assertApproxEqRelDecimal(int256 left, int256 right, uint256 maxPercentDelta, uint256 decimals, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRelDecimal(int256,int256,uint256,uint256,string)",
"selector": "0xfccc11c4",
"selectorBytes": [
252,
204,
17,
196
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRel_0",
"description": "Compares two `uint256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%",
"declaration": "function assertApproxEqRel(uint256 left, uint256 right, uint256 maxPercentDelta) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRel(uint256,uint256,uint256)",
"selector": "0x8cf25ef4",
"selectorBytes": [
140,
242,
94,
244
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRel_1",
"description": "Compares two `uint256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%\nIncludes error message into revert string on failure.",
"declaration": "function assertApproxEqRel(uint256 left, uint256 right, uint256 maxPercentDelta, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRel(uint256,uint256,uint256,string)",
"selector": "0x1ecb7d33",
"selectorBytes": [
30,
203,
125,
51
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRel_2",
"description": "Compares two `int256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%",
"declaration": "function assertApproxEqRel(int256 left, int256 right, uint256 maxPercentDelta) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRel(int256,int256,uint256)",
"selector": "0xfea2d14f",
"selectorBytes": [
254,
162,
209,
79
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertApproxEqRel_3",
"description": "Compares two `int256` values. Expects relative difference in percents to be less than or equal to `maxPercentDelta`.\n`maxPercentDelta` is an 18 decimal fixed point number, where 1e18 == 100%\nIncludes error message into revert string on failure.",
"declaration": "function assertApproxEqRel(int256 left, int256 right, uint256 maxPercentDelta, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertApproxEqRel(int256,int256,uint256,string)",
"selector": "0xef277d72",
"selectorBytes": [
239,
39,
125,
114
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertEqDecimal_0",
"description": "Asserts that two `uint256` values are equal, formatting them with decimals in failure message.",
"declaration": "function assertEqDecimal(uint256 left, uint256 right, uint256 decimals) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertEqDecimal(uint256,uint256,uint256)",
"selector": "0x27af7d9c",
"selectorBytes": [
39,
175,
125,
156
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertEqDecimal_1",
"description": "Asserts that two `uint256` values are equal, formatting them with decimals in failure message.\nIncludes error message into revert string on failure.",
"declaration": "function assertEqDecimal(uint256 left, uint256 right, uint256 decimals, string calldata error) external pure;",
"visibility": "external",
"mutability": "pure",
"signature": "assertEqDecimal(uint256,uint256,uint256,string)",
"selector": "0xd0cbbdef",
"selectorBytes": [
208,
203,
189,
239
]
},
"group": "testing",
"status": "stable",
"safety": "safe"
},
{
"func": {
"id": "assertEqDecimal_2",
"description": "Asserts that two `int256` values are equal, formatting them with decimals in failure message.",
"declaration": "function assertEqDecimal(int256 left, int256 right, uint256 decimals) external pure;",
"visibility": "external",
"mutability": "pure",