Skip to content

Commit 1e2ba9d

Browse files
committed
update contract and .deps
1 parent 54c941d commit 1e2ba9d

18 files changed

+81620
-57430
lines changed

.deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol

+33-8
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
3232
* these events, as it isn't required by the specification.
3333
*/
3434
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
35-
mapping(address account => uint256) private _balances;
35+
mapping(address => uint256) private _balances;
3636

37-
mapping(address account => mapping(address spender => uint256)) private _allowances;
37+
mapping(address => mapping(address => uint256)) private _allowances;
3838

3939
uint256 private _totalSupply;
4040

@@ -151,7 +151,11 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
151151
* - the caller must have allowance for ``from``'s tokens of at least
152152
* `value`.
153153
*/
154-
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
154+
function transferFrom(
155+
address from,
156+
address to,
157+
uint256 value
158+
) public virtual returns (bool) {
155159
address spender = _msgSender();
156160
_spendAllowance(from, spender, value);
157161
_transfer(from, to, value);
@@ -168,7 +172,11 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
168172
*
169173
* NOTE: This function is not virtual, {_update} should be overridden instead.
170174
*/
171-
function _transfer(address from, address to, uint256 value) internal {
175+
function _transfer(
176+
address from,
177+
address to,
178+
uint256 value
179+
) internal {
172180
if (from == address(0)) {
173181
revert ERC20InvalidSender(address(0));
174182
}
@@ -185,7 +193,11 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
185193
*
186194
* Emits a {Transfer} event.
187195
*/
188-
function _update(address from, address to, uint256 value) internal virtual {
196+
function _update(
197+
address from,
198+
address to,
199+
uint256 value
200+
) internal virtual {
189201
if (from == address(0)) {
190202
// Overflow check required: The rest of the code assumes that totalSupply never overflows
191203
_totalSupply += value;
@@ -260,7 +272,11 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
260272
*
261273
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
262274
*/
263-
function _approve(address owner, address spender, uint256 value) internal {
275+
function _approve(
276+
address owner,
277+
address spender,
278+
uint256 value
279+
) internal {
264280
_approve(owner, spender, value, true);
265281
}
266282

@@ -281,7 +297,12 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
281297
*
282298
* Requirements are the same as {_approve}.
283299
*/
284-
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
300+
function _approve(
301+
address owner,
302+
address spender,
303+
uint256 value,
304+
bool emitEvent
305+
) internal virtual {
285306
if (owner == address(0)) {
286307
revert ERC20InvalidApprover(address(0));
287308
}
@@ -302,7 +323,11 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
302323
*
303324
* Does not emit an {Approval} event.
304325
*/
305-
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
326+
function _spendAllowance(
327+
address owner,
328+
address spender,
329+
uint256 value
330+
) internal virtual {
306331
uint256 currentAllowance = allowance(owner, spender);
307332
if (currentAllowance != type(uint256).max) {
308333
if (currentAllowance < value) {

.deps/npm/@openzeppelin/contracts/token/ERC20/artifacts/ERC20_metadata.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,11 @@
444444
]
445445
},
446446
".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol": {
447-
"keccak256": "0xc3e1fa9d1987f8d349dfb4d6fe93bf2ca014b52ba335cfac30bfe71e357e6f80",
447+
"keccak256": "0x25f171f3ce41d53a1186c9280e29a312524b79fe7dd6660c5d5f0473544a7799",
448448
"license": "MIT",
449449
"urls": [
450-
"bzz-raw://c5703ccdeb7b1d685e375ed719117e9edf2ab4bc544f24f23b0d50ec82257229",
451-
"dweb:/ipfs/QmTdwkbQq7owpCiyuzE7eh5LrD2ddrBCZ5WHVsWPi1RrTS"
450+
"bzz-raw://efb6fc13f2961ad71c6b263e48582124b0c7430038ddf58b76fbebf2d19804a3",
451+
"dweb:/ipfs/QmQoYLHBFcVbYNiLYsbdSQYuS76vsR986hTdhy8EhfX1SX"
452452
]
453453
},
454454
".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol": {
+564-564
Large diffs are not rendered by default.

.prettierrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"files": "*.sol",
55
"options": {
6-
"printWidth": 60,
6+
"printWidth": 1000,
77
"tabWidth": 4,
88
"useTabs": false,
99
"singleQuote": false,

.states/vm-cancun/state.json

+404-4
Large diffs are not rendered by default.

contracts/JVCToken.sol

-17
This file was deleted.

contracts/artifacts/Bank.json

+4,806-3,411
Large diffs are not rendered by default.

contracts/artifacts/Bank_metadata.json

+19-6
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,19 @@
223223
"stateMutability": "view",
224224
"type": "function"
225225
},
226+
{
227+
"inputs": [
228+
{
229+
"internalType": "uint256",
230+
"name": "amount",
231+
"type": "uint256"
232+
}
233+
],
234+
"name": "mintToken",
235+
"outputs": [],
236+
"stateMutability": "nonpayable",
237+
"type": "function"
238+
},
226239
{
227240
"inputs": [],
228241
"name": "owner",
@@ -434,19 +447,19 @@
434447
]
435448
},
436449
"contracts/JVCToken.sol": {
437-
"keccak256": "0xc14901455fdcb8f56ed1f7b72745a283353ee84cb139a6470601ae9be1414ed4",
450+
"keccak256": "0x6de2e4bdc736aa04ad5637b19f7e0617fd366083802eec3dd6f27bc686ed5e04",
438451
"license": "MIT",
439452
"urls": [
440-
"bzz-raw://50c31466fea10d0e7eaa6322ad2a1cf432384a7073d2b77bc48c964ad324fb6f",
441-
"dweb:/ipfs/QmVRfEKjgt1tkDPmcmoRsc7e73kawmQ6PcSLqaUBSEQ8pW"
453+
"bzz-raw://f4d7cc5b1766c08f5df33d00f653ffc92b4c7f8851ca55e72d32fdb6eb4b672d",
454+
"dweb:/ipfs/Qme6KVURy4F6tR5qTunMe26aiVDkzM2ZbgvRhPckenTVdC"
442455
]
443456
},
444457
"contracts/bank.sol": {
445-
"keccak256": "0xa49534ba040195be150c860e22f47ca9d2fc1560ad63b68e6ce713db32e528c4",
458+
"keccak256": "0x533a74d3d9cbd846d3a67ec432205681bf8694877f5fb22429c6baf2ebea57c2",
446459
"license": "MIT",
447460
"urls": [
448-
"bzz-raw://cb33a5bcedacc526fc88131993656be7bbd0caea04ed3f103d853867c1f951d9",
449-
"dweb:/ipfs/QmY2epcMMSbx5ru1YEYdn2ZbFVmsLLWDqpv3phJUzFJ5f8"
461+
"bzz-raw://b079f96aa7d19db04e2f077747e0bd96e4ec35754736b45be919a99bc6fadb3d",
462+
"dweb:/ipfs/QmeLJ4BhMUFKhYjn7bWMfErMiSoychxvZTnqZzFgMP7aSW"
450463
]
451464
}
452465
},

0 commit comments

Comments
 (0)