Skip to content

Instantly share code, notes, and snippets.

View brnnvs-93's full-sized avatar

Bernardo Neves brnnvs-93

View GitHub Profile
@brnnvs-93
brnnvs-93 / .deps...npm....resolution-index.json
Created May 13, 2026 21:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"Practice Classes/MiniToken.sol": {
"__sources__": {
"Practice Classes/MiniToken.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @title MiniToken — class 4 exercise\n/// @notice Implement an ERC-20 from scratch. Fill every TODO until the file\n/// compiles and behaves per the spec slide.\ncontract MiniToken {\n string public name = \"MiniToken\";\n string public symbol = \"MINI\";\n uint8 public constant decimals = 18;\n\n uint256 private _totalSupply;\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n error InsufficientBalance(address from, uint256 have, uint256 need);\n error InsufficientAllowance(address owner, address spender, uint256 have, uint256 need);\n\n constructor(uint256 i