forge inspect contractName methods
pandoc 2024-09-05-tswap-audit.md -o report.pdf --from markdown --template=eisvogel --listings
forge inspect contractName methods
pandoc 2024-09-05-tswap-audit.md -o report.pdf --from markdown --template=eisvogel --listings
| import { ethers } from 'ethers'; | |
| import { LogDescription } from 'ethers/lib/utils'; | |
| import { abi } from './abis/Token'; | |
| // Connect to a locally run ethereum node (e.g. run `anvil` for testing) | |
| const RPC_URL = 'http://127.0.0.1:8545'; | |
| // Connect to 3rd party provider | |
| // import 'dotenv/config' | |
| // const RPC_URL = process.env.RPC_URL_SEPOLIA; |
| // SPDX-License-Identifier: MIT | |
| pragma solidity >=0.6.0; | |
| /// @title Base64 | |
| /// @author Brecht Devos - <brecht@loopring.org> | |
| /// @notice Provides functions for encoding/decoding base64 | |
| library Base64 { | |
| string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | |
| bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" |
| // SPDX-License-Identifier: UNLICENSED | |
| // Source: https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/StringUtils.sol | |
| pragma solidity >=0.8.4; | |
| library StringUtils { | |
| /** | |
| * @dev Returns the length of a given string | |
| * |
| { | |
| "tasks": [ | |
| { | |
| "name": "Task Name", | |
| "day": "Day & Date", | |
| "reminder": false, | |
| "id": 1 | |
| } | |
| ] | |
| } |