- NodeJS LTS
- Ganache
- Truffle SDK
|- api // folder express server |- prisma //folder prisma model schema |- src // folder vite react project
| import { useEffect, useRef, useState } from "react"; | |
| import { compileTypescript } from "~/utils/compiler"; | |
| interface MyProps extends React.HTMLAttributes<HTMLDivElement> { | |
| code: string; | |
| } | |
| export const PageEditor = ({ code }: MyProps) => { | |
| const iframeRef = useRef<HTMLIFrameElement>(null); | |
| const [dom, setDom] = useState<string | undefined>(undefined); |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| import "./IERC20.sol"; | |
| import "../../utils/Context.sol"; | |
| /** | |
| * @dev Implementation of the {IERC20} interface. | |
| * |