@cartesi/devnet 2.0.0-alpha.0 → 2.0.0-alpha.10

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 (85) hide show
  1. package/anvil_state.json +1 -0
  2. package/deployments/anvil.json +1 -0
  3. package/deployments/arbitrum.json +1 -0
  4. package/deployments/arbitrumSepolia.json +1 -0
  5. package/deployments/base.json +1 -0
  6. package/deployments/baseSepolia.json +1 -0
  7. package/deployments/mainnet.json +1 -0
  8. package/deployments/optimism.json +1 -0
  9. package/deployments/optimismSepolia.json +1 -0
  10. package/deployments/sepolia.json +1 -0
  11. package/package.json +32 -42
  12. package/LICENSE +0 -202
  13. package/build/anvil_state.json +0 -1
  14. package/deployments/localhost/.chainId +0 -1
  15. package/deployments/localhost/ApplicationFactory.json +0 -227
  16. package/deployments/localhost/AuthorityFactory.json +0 -188
  17. package/deployments/localhost/ERC1155BatchPortal.json +0 -133
  18. package/deployments/localhost/ERC1155SinglePortal.json +0 -132
  19. package/deployments/localhost/ERC20Portal.json +0 -132
  20. package/deployments/localhost/ERC721Portal.json +0 -126
  21. package/deployments/localhost/EtherPortal.json +0 -121
  22. package/deployments/localhost/InputBox.json +0 -213
  23. package/deployments/localhost/QuorumFactory.json +0 -188
  24. package/deployments/localhost/SafeERC20Transfer.json +0 -118
  25. package/deployments/localhost/SelfHostedApplicationFactory.json +0 -227
  26. package/deployments/localhost/TestMultiToken.json +0 -829
  27. package/deployments/localhost/TestNFT.json +0 -891
  28. package/deployments/localhost/TestToken.json +0 -1079
  29. package/dist/deploy/01_token.js +0 -15
  30. package/dist/deploy/02_nft.js +0 -15
  31. package/dist/deploy/03_multitoken.js +0 -15
  32. package/dist/deploy/04_4337.js +0 -342
  33. package/dist/src/aa/constants.d.ts +0 -31
  34. package/dist/src/aa/constants.d.ts.map +0 -1
  35. package/dist/src/aa/constants.js +0 -65
  36. package/dist/src/tasks/deploy-anvil.d.ts +0 -6
  37. package/dist/src/tasks/deploy-anvil.d.ts.map +0 -1
  38. package/dist/src/tasks/deploy-anvil.js +0 -40
  39. package/export/abi/localhost.json +0 -2837
  40. package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +0 -128
  41. package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +0 -137
  42. package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +0 -32
  43. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +0 -133
  44. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +0 -1251
  45. package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +0 -60
  46. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +0 -401
  47. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +0 -84
  48. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +0 -190
  49. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +0 -165
  50. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +0 -197
  51. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +0 -553
  52. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +0 -362
  53. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +0 -156
  54. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +0 -385
  55. package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
  56. package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
  57. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
  58. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
  59. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
  60. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
  61. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
  62. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
  63. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
  64. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
  65. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
  66. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
  67. package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -38
  68. package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
  69. package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
  70. package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
  71. package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
  72. package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -40
  73. package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -62
  74. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
  75. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
  76. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
  77. package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
  78. package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
  79. package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -65
  80. package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -173
  81. package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -36
  82. package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
  83. package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
  84. package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
  85. package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
@@ -1,695 +0,0 @@
1
- {
2
- "contractName": "ERC20Permit",
3
- "sourceName": "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol",
4
- "abi": [
5
- {
6
- "inputs": [],
7
- "name": "ECDSAInvalidSignature",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "uint256",
14
- "name": "length",
15
- "type": "uint256"
16
- }
17
- ],
18
- "name": "ECDSAInvalidSignatureLength",
19
- "type": "error"
20
- },
21
- {
22
- "inputs": [
23
- {
24
- "internalType": "bytes32",
25
- "name": "s",
26
- "type": "bytes32"
27
- }
28
- ],
29
- "name": "ECDSAInvalidSignatureS",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "address",
36
- "name": "spender",
37
- "type": "address"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "allowance",
42
- "type": "uint256"
43
- },
44
- {
45
- "internalType": "uint256",
46
- "name": "needed",
47
- "type": "uint256"
48
- }
49
- ],
50
- "name": "ERC20InsufficientAllowance",
51
- "type": "error"
52
- },
53
- {
54
- "inputs": [
55
- {
56
- "internalType": "address",
57
- "name": "sender",
58
- "type": "address"
59
- },
60
- {
61
- "internalType": "uint256",
62
- "name": "balance",
63
- "type": "uint256"
64
- },
65
- {
66
- "internalType": "uint256",
67
- "name": "needed",
68
- "type": "uint256"
69
- }
70
- ],
71
- "name": "ERC20InsufficientBalance",
72
- "type": "error"
73
- },
74
- {
75
- "inputs": [
76
- {
77
- "internalType": "address",
78
- "name": "approver",
79
- "type": "address"
80
- }
81
- ],
82
- "name": "ERC20InvalidApprover",
83
- "type": "error"
84
- },
85
- {
86
- "inputs": [
87
- {
88
- "internalType": "address",
89
- "name": "receiver",
90
- "type": "address"
91
- }
92
- ],
93
- "name": "ERC20InvalidReceiver",
94
- "type": "error"
95
- },
96
- {
97
- "inputs": [
98
- {
99
- "internalType": "address",
100
- "name": "sender",
101
- "type": "address"
102
- }
103
- ],
104
- "name": "ERC20InvalidSender",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [
109
- {
110
- "internalType": "address",
111
- "name": "spender",
112
- "type": "address"
113
- }
114
- ],
115
- "name": "ERC20InvalidSpender",
116
- "type": "error"
117
- },
118
- {
119
- "inputs": [
120
- {
121
- "internalType": "uint256",
122
- "name": "deadline",
123
- "type": "uint256"
124
- }
125
- ],
126
- "name": "ERC2612ExpiredSignature",
127
- "type": "error"
128
- },
129
- {
130
- "inputs": [
131
- {
132
- "internalType": "address",
133
- "name": "signer",
134
- "type": "address"
135
- },
136
- {
137
- "internalType": "address",
138
- "name": "owner",
139
- "type": "address"
140
- }
141
- ],
142
- "name": "ERC2612InvalidSigner",
143
- "type": "error"
144
- },
145
- {
146
- "inputs": [
147
- {
148
- "internalType": "address",
149
- "name": "account",
150
- "type": "address"
151
- },
152
- {
153
- "internalType": "uint256",
154
- "name": "currentNonce",
155
- "type": "uint256"
156
- }
157
- ],
158
- "name": "InvalidAccountNonce",
159
- "type": "error"
160
- },
161
- {
162
- "inputs": [],
163
- "name": "InvalidShortString",
164
- "type": "error"
165
- },
166
- {
167
- "inputs": [
168
- {
169
- "internalType": "string",
170
- "name": "str",
171
- "type": "string"
172
- }
173
- ],
174
- "name": "StringTooLong",
175
- "type": "error"
176
- },
177
- {
178
- "anonymous": false,
179
- "inputs": [
180
- {
181
- "indexed": true,
182
- "internalType": "address",
183
- "name": "owner",
184
- "type": "address"
185
- },
186
- {
187
- "indexed": true,
188
- "internalType": "address",
189
- "name": "spender",
190
- "type": "address"
191
- },
192
- {
193
- "indexed": false,
194
- "internalType": "uint256",
195
- "name": "value",
196
- "type": "uint256"
197
- }
198
- ],
199
- "name": "Approval",
200
- "type": "event"
201
- },
202
- {
203
- "anonymous": false,
204
- "inputs": [],
205
- "name": "EIP712DomainChanged",
206
- "type": "event"
207
- },
208
- {
209
- "anonymous": false,
210
- "inputs": [
211
- {
212
- "indexed": true,
213
- "internalType": "address",
214
- "name": "from",
215
- "type": "address"
216
- },
217
- {
218
- "indexed": true,
219
- "internalType": "address",
220
- "name": "to",
221
- "type": "address"
222
- },
223
- {
224
- "indexed": false,
225
- "internalType": "uint256",
226
- "name": "value",
227
- "type": "uint256"
228
- }
229
- ],
230
- "name": "Transfer",
231
- "type": "event"
232
- },
233
- {
234
- "inputs": [],
235
- "name": "DOMAIN_SEPARATOR",
236
- "outputs": [
237
- {
238
- "internalType": "bytes32",
239
- "name": "",
240
- "type": "bytes32"
241
- }
242
- ],
243
- "stateMutability": "view",
244
- "type": "function"
245
- },
246
- {
247
- "inputs": [
248
- {
249
- "internalType": "address",
250
- "name": "owner",
251
- "type": "address"
252
- },
253
- {
254
- "internalType": "address",
255
- "name": "spender",
256
- "type": "address"
257
- }
258
- ],
259
- "name": "allowance",
260
- "outputs": [
261
- {
262
- "internalType": "uint256",
263
- "name": "",
264
- "type": "uint256"
265
- }
266
- ],
267
- "stateMutability": "view",
268
- "type": "function"
269
- },
270
- {
271
- "inputs": [
272
- {
273
- "internalType": "address",
274
- "name": "spender",
275
- "type": "address"
276
- },
277
- {
278
- "internalType": "uint256",
279
- "name": "value",
280
- "type": "uint256"
281
- }
282
- ],
283
- "name": "approve",
284
- "outputs": [
285
- {
286
- "internalType": "bool",
287
- "name": "",
288
- "type": "bool"
289
- }
290
- ],
291
- "stateMutability": "nonpayable",
292
- "type": "function"
293
- },
294
- {
295
- "inputs": [
296
- {
297
- "internalType": "address",
298
- "name": "account",
299
- "type": "address"
300
- }
301
- ],
302
- "name": "balanceOf",
303
- "outputs": [
304
- {
305
- "internalType": "uint256",
306
- "name": "",
307
- "type": "uint256"
308
- }
309
- ],
310
- "stateMutability": "view",
311
- "type": "function"
312
- },
313
- {
314
- "inputs": [],
315
- "name": "decimals",
316
- "outputs": [
317
- {
318
- "internalType": "uint8",
319
- "name": "",
320
- "type": "uint8"
321
- }
322
- ],
323
- "stateMutability": "view",
324
- "type": "function"
325
- },
326
- {
327
- "inputs": [],
328
- "name": "eip712Domain",
329
- "outputs": [
330
- {
331
- "internalType": "bytes1",
332
- "name": "fields",
333
- "type": "bytes1"
334
- },
335
- {
336
- "internalType": "string",
337
- "name": "name",
338
- "type": "string"
339
- },
340
- {
341
- "internalType": "string",
342
- "name": "version",
343
- "type": "string"
344
- },
345
- {
346
- "internalType": "uint256",
347
- "name": "chainId",
348
- "type": "uint256"
349
- },
350
- {
351
- "internalType": "address",
352
- "name": "verifyingContract",
353
- "type": "address"
354
- },
355
- {
356
- "internalType": "bytes32",
357
- "name": "salt",
358
- "type": "bytes32"
359
- },
360
- {
361
- "internalType": "uint256[]",
362
- "name": "extensions",
363
- "type": "uint256[]"
364
- }
365
- ],
366
- "stateMutability": "view",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [],
371
- "name": "name",
372
- "outputs": [
373
- {
374
- "internalType": "string",
375
- "name": "",
376
- "type": "string"
377
- }
378
- ],
379
- "stateMutability": "view",
380
- "type": "function"
381
- },
382
- {
383
- "inputs": [
384
- {
385
- "internalType": "address",
386
- "name": "owner",
387
- "type": "address"
388
- }
389
- ],
390
- "name": "nonces",
391
- "outputs": [
392
- {
393
- "internalType": "uint256",
394
- "name": "",
395
- "type": "uint256"
396
- }
397
- ],
398
- "stateMutability": "view",
399
- "type": "function"
400
- },
401
- {
402
- "inputs": [
403
- {
404
- "internalType": "address",
405
- "name": "owner",
406
- "type": "address"
407
- },
408
- {
409
- "internalType": "address",
410
- "name": "spender",
411
- "type": "address"
412
- },
413
- {
414
- "internalType": "uint256",
415
- "name": "value",
416
- "type": "uint256"
417
- },
418
- {
419
- "internalType": "uint256",
420
- "name": "deadline",
421
- "type": "uint256"
422
- },
423
- {
424
- "internalType": "uint8",
425
- "name": "v",
426
- "type": "uint8"
427
- },
428
- {
429
- "internalType": "bytes32",
430
- "name": "r",
431
- "type": "bytes32"
432
- },
433
- {
434
- "internalType": "bytes32",
435
- "name": "s",
436
- "type": "bytes32"
437
- }
438
- ],
439
- "name": "permit",
440
- "outputs": [],
441
- "stateMutability": "nonpayable",
442
- "type": "function"
443
- },
444
- {
445
- "inputs": [],
446
- "name": "symbol",
447
- "outputs": [
448
- {
449
- "internalType": "string",
450
- "name": "",
451
- "type": "string"
452
- }
453
- ],
454
- "stateMutability": "view",
455
- "type": "function"
456
- },
457
- {
458
- "inputs": [],
459
- "name": "totalSupply",
460
- "outputs": [
461
- {
462
- "internalType": "uint256",
463
- "name": "",
464
- "type": "uint256"
465
- }
466
- ],
467
- "stateMutability": "view",
468
- "type": "function"
469
- },
470
- {
471
- "inputs": [
472
- {
473
- "internalType": "address",
474
- "name": "to",
475
- "type": "address"
476
- },
477
- {
478
- "internalType": "uint256",
479
- "name": "value",
480
- "type": "uint256"
481
- }
482
- ],
483
- "name": "transfer",
484
- "outputs": [
485
- {
486
- "internalType": "bool",
487
- "name": "",
488
- "type": "bool"
489
- }
490
- ],
491
- "stateMutability": "nonpayable",
492
- "type": "function"
493
- },
494
- {
495
- "inputs": [
496
- {
497
- "internalType": "address",
498
- "name": "from",
499
- "type": "address"
500
- },
501
- {
502
- "internalType": "address",
503
- "name": "to",
504
- "type": "address"
505
- },
506
- {
507
- "internalType": "uint256",
508
- "name": "value",
509
- "type": "uint256"
510
- }
511
- ],
512
- "name": "transferFrom",
513
- "outputs": [
514
- {
515
- "internalType": "bool",
516
- "name": "",
517
- "type": "bool"
518
- }
519
- ],
520
- "stateMutability": "nonpayable",
521
- "type": "function"
522
- }
523
- ],
524
- "bytecode": "0x",
525
- "deployedBytecode": "0x",
526
- "linkReferences": {},
527
- "deployedLinkReferences": {},
528
- "devdoc": {
529
- "details": "Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all.",
530
- "errors": {
531
- "ECDSAInvalidSignature()": [
532
- {
533
- "details": "The signature derives the `address(0)`."
534
- }
535
- ],
536
- "ECDSAInvalidSignatureLength(uint256)": [
537
- {
538
- "details": "The signature has an invalid length."
539
- }
540
- ],
541
- "ECDSAInvalidSignatureS(bytes32)": [
542
- {
543
- "details": "The signature has an S value that is in the upper half order."
544
- }
545
- ],
546
- "ERC20InsufficientAllowance(address,uint256,uint256)": [
547
- {
548
- "details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.",
549
- "params": {
550
- "allowance": "Amount of tokens a `spender` is allowed to operate with.",
551
- "needed": "Minimum amount required to perform a transfer.",
552
- "spender": "Address that may be allowed to operate on tokens without being their owner."
553
- }
554
- }
555
- ],
556
- "ERC20InsufficientBalance(address,uint256,uint256)": [
557
- {
558
- "details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.",
559
- "params": {
560
- "balance": "Current balance for the interacting account.",
561
- "needed": "Minimum amount required to perform a transfer.",
562
- "sender": "Address whose tokens are being transferred."
563
- }
564
- }
565
- ],
566
- "ERC20InvalidApprover(address)": [
567
- {
568
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
569
- "params": {
570
- "approver": "Address initiating an approval operation."
571
- }
572
- }
573
- ],
574
- "ERC20InvalidReceiver(address)": [
575
- {
576
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
577
- "params": {
578
- "receiver": "Address to which tokens are being transferred."
579
- }
580
- }
581
- ],
582
- "ERC20InvalidSender(address)": [
583
- {
584
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
585
- "params": {
586
- "sender": "Address whose tokens are being transferred."
587
- }
588
- }
589
- ],
590
- "ERC20InvalidSpender(address)": [
591
- {
592
- "details": "Indicates a failure with the `spender` to be approved. Used in approvals.",
593
- "params": {
594
- "spender": "Address that may be allowed to operate on tokens without being their owner."
595
- }
596
- }
597
- ],
598
- "ERC2612ExpiredSignature(uint256)": [
599
- {
600
- "details": "Permit deadline has expired."
601
- }
602
- ],
603
- "ERC2612InvalidSigner(address,address)": [
604
- {
605
- "details": "Mismatched signature."
606
- }
607
- ],
608
- "InvalidAccountNonce(address,uint256)": [
609
- {
610
- "details": "The nonce used for an `account` is not the expected current nonce."
611
- }
612
- ]
613
- },
614
- "events": {
615
- "Approval(address,address,uint256)": {
616
- "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
617
- },
618
- "EIP712DomainChanged()": {
619
- "details": "MAY be emitted to signal that the domain could have changed."
620
- },
621
- "Transfer(address,address,uint256)": {
622
- "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
623
- }
624
- },
625
- "kind": "dev",
626
- "methods": {
627
- "DOMAIN_SEPARATOR()": {
628
- "details": "Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."
629
- },
630
- "allowance(address,address)": {
631
- "details": "See {IERC20-allowance}."
632
- },
633
- "approve(address,uint256)": {
634
- "details": "See {IERC20-approve}. NOTE: If `value` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address."
635
- },
636
- "balanceOf(address)": {
637
- "details": "See {IERC20-balanceOf}."
638
- },
639
- "constructor": {
640
- "details": "Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`. It's a good idea to use the same `name` that is defined as the ERC20 token name."
641
- },
642
- "decimals()": {
643
- "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."
644
- },
645
- "eip712Domain()": {
646
- "details": "See {IERC-5267}."
647
- },
648
- "name()": {
649
- "details": "Returns the name of the token."
650
- },
651
- "nonces(address)": {
652
- "details": "Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times."
653
- },
654
- "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {
655
- "details": "Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. CAUTION: See Security Considerations above."
656
- },
657
- "symbol()": {
658
- "details": "Returns the symbol of the token, usually a shorter version of the name."
659
- },
660
- "totalSupply()": {
661
- "details": "See {IERC20-totalSupply}."
662
- },
663
- "transfer(address,uint256)": {
664
- "details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`."
665
- },
666
- "transferFrom(address,address,uint256)": {
667
- "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `value`. - the caller must have allowance for ``from``'s tokens of at least `value`."
668
- }
669
- },
670
- "version": 1
671
- },
672
- "userdoc": {
673
- "kind": "user",
674
- "methods": {},
675
- "version": 1
676
- },
677
- "evm": {
678
- "gasEstimates": null,
679
- "methodIdentifiers": {
680
- "DOMAIN_SEPARATOR()": "3644e515",
681
- "allowance(address,address)": "dd62ed3e",
682
- "approve(address,uint256)": "095ea7b3",
683
- "balanceOf(address)": "70a08231",
684
- "decimals()": "313ce567",
685
- "eip712Domain()": "84b0196e",
686
- "name()": "06fdde03",
687
- "nonces(address)": "7ecebe00",
688
- "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
689
- "symbol()": "95d89b41",
690
- "totalSupply()": "18160ddd",
691
- "transfer(address,uint256)": "a9059cbb",
692
- "transferFrom(address,address,uint256)": "23b872dd"
693
- }
694
- }
695
- }