├── README.md ├── index.js ├── package-lock.json └── package.json /README.md: -------------------------------------------------------------------------------- 1 | # ERC20 代币铸造步骤 2 | 3 | 以下是在 Node.js 环境下部署和铸造 ERC20 代币的步骤: 4 | 5 | 1. **安装 Node.js 环境** 6 | 访问 [Node.js 官网](https://nodejs.org/en) 并下载安装适合你操作系统的 Node.js 版本。 7 | 8 | 2. **克隆仓库** 9 | 打开命令行工具并执行以下命令以克隆仓库: 10 | git clone https://github.com/zfy666ci/ierc20_mint.git 11 | 3. **安装依赖** 12 | 进入克隆的仓库目录,然后运行以下命令安装必要的依赖: 13 | cd ierc20_mint 14 | npm install 15 | 4. **配置并运行脚本** 16 | 打开 `index.js` 文件,并设置你的 `address`、`private`、`gas`、代币的 `名称` 和 `数量`。 17 | 完成配置后,在命令行中运行以下命令来执行脚本: 18 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const ethers = require('ethers'); 2 | const address = '' 3 | const privateKey = '' 4 | 5 | //这里修改tick和gas price 还有数量 6 | const amt = '1000' 7 | const tick = 'ierc-m4' 8 | const gas = '60' 9 | 10 | 11 | const provider = new ethers.providers.JsonRpcProvider('https://rpc.ankr.com/eth'); 12 | const wallet = new ethers.Wallet(privateKey); 13 | const walletWithProvider = wallet.connect(provider); 14 | async function main() { 15 | let nonce = await provider.getTransactionCount(address); 16 | 17 | let result = await run(nonce, address) 18 | while (result == false) { 19 | result = await run(nonce, address) 20 | } 21 | console.log(`执行完毕`) 22 | 23 | } 24 | 25 | function generateRandomDigits(length) { 26 | let result = ''; 27 | for (let i = 0; i < length; i++) { 28 | result += Math.floor(Math.random() * 10); 29 | } 30 | return result; 31 | } 32 | 33 | async function run(nonce,address) { 34 | let time = Math.round(new Date().getTime() / 1000) + generateRandomDigits(5) 35 | const dataString = `data:application/json,{"p":"ierc-20","op":"mint","tick":"${tick}","amt":"${amt}","nonce":"${time}"}`; 36 | const dataHex = Buffer.from(dataString, "utf8").toString("hex"); 37 | const tx = { 38 | from: address, 39 | gasLimit: 28000, 40 | chainId: 1, 41 | type: 2, 42 | maxPriorityFeePerGas: ethers.utils.parseUnits(gas, 'gwei'), 43 | maxFeePerGas: ethers.utils.parseUnits(gas, 'gwei'), 44 | to: `0x0000000000000000000000000000000000000000`, 45 | data: "0x" + dataHex, 46 | nonce: nonce, 47 | }; 48 | 49 | const signedTx = await walletWithProvider.signTransaction(tx); 50 | const parsedTx = ethers.utils.parseTransaction(signedTx); 51 | console.log(parsedTx.hash) 52 | if (parsedTx.hash.substring(0, 6) == '0x0000') { 53 | console.log('\x1b[32m', nonce+"---->https://etherscan.io/tx/"+parsedTx.hash, '\x1b[0m'); 54 | try { 55 | const txResponse = await walletWithProvider.sendTransaction(tx); 56 | console.log('\x1b[32m', txResponse.hash, '\x1b[0m'); 57 | } catch (error) { 58 | } 59 | 60 | return true 61 | } else { 62 | return false 63 | } 64 | 65 | 66 | } 67 | main() -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ierc20", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "ierc20", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "ethers": "^5.7.2" 13 | } 14 | }, 15 | "node_modules/@ethersproject/abi": { 16 | "version": "5.7.0", 17 | "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", 18 | "integrity": "sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==", 19 | "funding": [ 20 | { 21 | "type": "individual", 22 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 23 | }, 24 | { 25 | "type": "individual", 26 | "url": "https://www.buymeacoffee.com/ricmoo" 27 | } 28 | ], 29 | "dependencies": { 30 | "@ethersproject/address": "^5.7.0", 31 | "@ethersproject/bignumber": "^5.7.0", 32 | "@ethersproject/bytes": "^5.7.0", 33 | "@ethersproject/constants": "^5.7.0", 34 | "@ethersproject/hash": "^5.7.0", 35 | "@ethersproject/keccak256": "^5.7.0", 36 | "@ethersproject/logger": "^5.7.0", 37 | "@ethersproject/properties": "^5.7.0", 38 | "@ethersproject/strings": "^5.7.0" 39 | } 40 | }, 41 | "node_modules/@ethersproject/abstract-provider": { 42 | "version": "5.7.0", 43 | "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz", 44 | "integrity": "sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==", 45 | "funding": [ 46 | { 47 | "type": "individual", 48 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 49 | }, 50 | { 51 | "type": "individual", 52 | "url": "https://www.buymeacoffee.com/ricmoo" 53 | } 54 | ], 55 | "dependencies": { 56 | "@ethersproject/bignumber": "^5.7.0", 57 | "@ethersproject/bytes": "^5.7.0", 58 | "@ethersproject/logger": "^5.7.0", 59 | "@ethersproject/networks": "^5.7.0", 60 | "@ethersproject/properties": "^5.7.0", 61 | "@ethersproject/transactions": "^5.7.0", 62 | "@ethersproject/web": "^5.7.0" 63 | } 64 | }, 65 | "node_modules/@ethersproject/abstract-signer": { 66 | "version": "5.7.0", 67 | "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz", 68 | "integrity": "sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==", 69 | "funding": [ 70 | { 71 | "type": "individual", 72 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 73 | }, 74 | { 75 | "type": "individual", 76 | "url": "https://www.buymeacoffee.com/ricmoo" 77 | } 78 | ], 79 | "dependencies": { 80 | "@ethersproject/abstract-provider": "^5.7.0", 81 | "@ethersproject/bignumber": "^5.7.0", 82 | "@ethersproject/bytes": "^5.7.0", 83 | "@ethersproject/logger": "^5.7.0", 84 | "@ethersproject/properties": "^5.7.0" 85 | } 86 | }, 87 | "node_modules/@ethersproject/address": { 88 | "version": "5.7.0", 89 | "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", 90 | "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", 91 | "funding": [ 92 | { 93 | "type": "individual", 94 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 95 | }, 96 | { 97 | "type": "individual", 98 | "url": "https://www.buymeacoffee.com/ricmoo" 99 | } 100 | ], 101 | "dependencies": { 102 | "@ethersproject/bignumber": "^5.7.0", 103 | "@ethersproject/bytes": "^5.7.0", 104 | "@ethersproject/keccak256": "^5.7.0", 105 | "@ethersproject/logger": "^5.7.0", 106 | "@ethersproject/rlp": "^5.7.0" 107 | } 108 | }, 109 | "node_modules/@ethersproject/base64": { 110 | "version": "5.7.0", 111 | "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz", 112 | "integrity": "sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==", 113 | "funding": [ 114 | { 115 | "type": "individual", 116 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 117 | }, 118 | { 119 | "type": "individual", 120 | "url": "https://www.buymeacoffee.com/ricmoo" 121 | } 122 | ], 123 | "dependencies": { 124 | "@ethersproject/bytes": "^5.7.0" 125 | } 126 | }, 127 | "node_modules/@ethersproject/basex": { 128 | "version": "5.7.0", 129 | "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz", 130 | "integrity": "sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==", 131 | "funding": [ 132 | { 133 | "type": "individual", 134 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 135 | }, 136 | { 137 | "type": "individual", 138 | "url": "https://www.buymeacoffee.com/ricmoo" 139 | } 140 | ], 141 | "dependencies": { 142 | "@ethersproject/bytes": "^5.7.0", 143 | "@ethersproject/properties": "^5.7.0" 144 | } 145 | }, 146 | "node_modules/@ethersproject/bignumber": { 147 | "version": "5.7.0", 148 | "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", 149 | "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", 150 | "funding": [ 151 | { 152 | "type": "individual", 153 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 154 | }, 155 | { 156 | "type": "individual", 157 | "url": "https://www.buymeacoffee.com/ricmoo" 158 | } 159 | ], 160 | "dependencies": { 161 | "@ethersproject/bytes": "^5.7.0", 162 | "@ethersproject/logger": "^5.7.0", 163 | "bn.js": "^5.2.1" 164 | } 165 | }, 166 | "node_modules/@ethersproject/bytes": { 167 | "version": "5.7.0", 168 | "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", 169 | "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", 170 | "funding": [ 171 | { 172 | "type": "individual", 173 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 174 | }, 175 | { 176 | "type": "individual", 177 | "url": "https://www.buymeacoffee.com/ricmoo" 178 | } 179 | ], 180 | "dependencies": { 181 | "@ethersproject/logger": "^5.7.0" 182 | } 183 | }, 184 | "node_modules/@ethersproject/constants": { 185 | "version": "5.7.0", 186 | "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz", 187 | "integrity": "sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==", 188 | "funding": [ 189 | { 190 | "type": "individual", 191 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 192 | }, 193 | { 194 | "type": "individual", 195 | "url": "https://www.buymeacoffee.com/ricmoo" 196 | } 197 | ], 198 | "dependencies": { 199 | "@ethersproject/bignumber": "^5.7.0" 200 | } 201 | }, 202 | "node_modules/@ethersproject/contracts": { 203 | "version": "5.7.0", 204 | "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz", 205 | "integrity": "sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==", 206 | "funding": [ 207 | { 208 | "type": "individual", 209 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 210 | }, 211 | { 212 | "type": "individual", 213 | "url": "https://www.buymeacoffee.com/ricmoo" 214 | } 215 | ], 216 | "dependencies": { 217 | "@ethersproject/abi": "^5.7.0", 218 | "@ethersproject/abstract-provider": "^5.7.0", 219 | "@ethersproject/abstract-signer": "^5.7.0", 220 | "@ethersproject/address": "^5.7.0", 221 | "@ethersproject/bignumber": "^5.7.0", 222 | "@ethersproject/bytes": "^5.7.0", 223 | "@ethersproject/constants": "^5.7.0", 224 | "@ethersproject/logger": "^5.7.0", 225 | "@ethersproject/properties": "^5.7.0", 226 | "@ethersproject/transactions": "^5.7.0" 227 | } 228 | }, 229 | "node_modules/@ethersproject/hash": { 230 | "version": "5.7.0", 231 | "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz", 232 | "integrity": "sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==", 233 | "funding": [ 234 | { 235 | "type": "individual", 236 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 237 | }, 238 | { 239 | "type": "individual", 240 | "url": "https://www.buymeacoffee.com/ricmoo" 241 | } 242 | ], 243 | "dependencies": { 244 | "@ethersproject/abstract-signer": "^5.7.0", 245 | "@ethersproject/address": "^5.7.0", 246 | "@ethersproject/base64": "^5.7.0", 247 | "@ethersproject/bignumber": "^5.7.0", 248 | "@ethersproject/bytes": "^5.7.0", 249 | "@ethersproject/keccak256": "^5.7.0", 250 | "@ethersproject/logger": "^5.7.0", 251 | "@ethersproject/properties": "^5.7.0", 252 | "@ethersproject/strings": "^5.7.0" 253 | } 254 | }, 255 | "node_modules/@ethersproject/hdnode": { 256 | "version": "5.7.0", 257 | "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz", 258 | "integrity": "sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==", 259 | "funding": [ 260 | { 261 | "type": "individual", 262 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 263 | }, 264 | { 265 | "type": "individual", 266 | "url": "https://www.buymeacoffee.com/ricmoo" 267 | } 268 | ], 269 | "dependencies": { 270 | "@ethersproject/abstract-signer": "^5.7.0", 271 | "@ethersproject/basex": "^5.7.0", 272 | "@ethersproject/bignumber": "^5.7.0", 273 | "@ethersproject/bytes": "^5.7.0", 274 | "@ethersproject/logger": "^5.7.0", 275 | "@ethersproject/pbkdf2": "^5.7.0", 276 | "@ethersproject/properties": "^5.7.0", 277 | "@ethersproject/sha2": "^5.7.0", 278 | "@ethersproject/signing-key": "^5.7.0", 279 | "@ethersproject/strings": "^5.7.0", 280 | "@ethersproject/transactions": "^5.7.0", 281 | "@ethersproject/wordlists": "^5.7.0" 282 | } 283 | }, 284 | "node_modules/@ethersproject/json-wallets": { 285 | "version": "5.7.0", 286 | "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz", 287 | "integrity": "sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==", 288 | "funding": [ 289 | { 290 | "type": "individual", 291 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 292 | }, 293 | { 294 | "type": "individual", 295 | "url": "https://www.buymeacoffee.com/ricmoo" 296 | } 297 | ], 298 | "dependencies": { 299 | "@ethersproject/abstract-signer": "^5.7.0", 300 | "@ethersproject/address": "^5.7.0", 301 | "@ethersproject/bytes": "^5.7.0", 302 | "@ethersproject/hdnode": "^5.7.0", 303 | "@ethersproject/keccak256": "^5.7.0", 304 | "@ethersproject/logger": "^5.7.0", 305 | "@ethersproject/pbkdf2": "^5.7.0", 306 | "@ethersproject/properties": "^5.7.0", 307 | "@ethersproject/random": "^5.7.0", 308 | "@ethersproject/strings": "^5.7.0", 309 | "@ethersproject/transactions": "^5.7.0", 310 | "aes-js": "3.0.0", 311 | "scrypt-js": "3.0.1" 312 | } 313 | }, 314 | "node_modules/@ethersproject/keccak256": { 315 | "version": "5.7.0", 316 | "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", 317 | "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", 318 | "funding": [ 319 | { 320 | "type": "individual", 321 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 322 | }, 323 | { 324 | "type": "individual", 325 | "url": "https://www.buymeacoffee.com/ricmoo" 326 | } 327 | ], 328 | "dependencies": { 329 | "@ethersproject/bytes": "^5.7.0", 330 | "js-sha3": "0.8.0" 331 | } 332 | }, 333 | "node_modules/@ethersproject/logger": { 334 | "version": "5.7.0", 335 | "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", 336 | "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==", 337 | "funding": [ 338 | { 339 | "type": "individual", 340 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 341 | }, 342 | { 343 | "type": "individual", 344 | "url": "https://www.buymeacoffee.com/ricmoo" 345 | } 346 | ] 347 | }, 348 | "node_modules/@ethersproject/networks": { 349 | "version": "5.7.1", 350 | "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz", 351 | "integrity": "sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==", 352 | "funding": [ 353 | { 354 | "type": "individual", 355 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 356 | }, 357 | { 358 | "type": "individual", 359 | "url": "https://www.buymeacoffee.com/ricmoo" 360 | } 361 | ], 362 | "dependencies": { 363 | "@ethersproject/logger": "^5.7.0" 364 | } 365 | }, 366 | "node_modules/@ethersproject/pbkdf2": { 367 | "version": "5.7.0", 368 | "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz", 369 | "integrity": "sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==", 370 | "funding": [ 371 | { 372 | "type": "individual", 373 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 374 | }, 375 | { 376 | "type": "individual", 377 | "url": "https://www.buymeacoffee.com/ricmoo" 378 | } 379 | ], 380 | "dependencies": { 381 | "@ethersproject/bytes": "^5.7.0", 382 | "@ethersproject/sha2": "^5.7.0" 383 | } 384 | }, 385 | "node_modules/@ethersproject/properties": { 386 | "version": "5.7.0", 387 | "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz", 388 | "integrity": "sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw==", 389 | "funding": [ 390 | { 391 | "type": "individual", 392 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 393 | }, 394 | { 395 | "type": "individual", 396 | "url": "https://www.buymeacoffee.com/ricmoo" 397 | } 398 | ], 399 | "dependencies": { 400 | "@ethersproject/logger": "^5.7.0" 401 | } 402 | }, 403 | "node_modules/@ethersproject/providers": { 404 | "version": "5.7.2", 405 | "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz", 406 | "integrity": "sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==", 407 | "funding": [ 408 | { 409 | "type": "individual", 410 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 411 | }, 412 | { 413 | "type": "individual", 414 | "url": "https://www.buymeacoffee.com/ricmoo" 415 | } 416 | ], 417 | "dependencies": { 418 | "@ethersproject/abstract-provider": "^5.7.0", 419 | "@ethersproject/abstract-signer": "^5.7.0", 420 | "@ethersproject/address": "^5.7.0", 421 | "@ethersproject/base64": "^5.7.0", 422 | "@ethersproject/basex": "^5.7.0", 423 | "@ethersproject/bignumber": "^5.7.0", 424 | "@ethersproject/bytes": "^5.7.0", 425 | "@ethersproject/constants": "^5.7.0", 426 | "@ethersproject/hash": "^5.7.0", 427 | "@ethersproject/logger": "^5.7.0", 428 | "@ethersproject/networks": "^5.7.0", 429 | "@ethersproject/properties": "^5.7.0", 430 | "@ethersproject/random": "^5.7.0", 431 | "@ethersproject/rlp": "^5.7.0", 432 | "@ethersproject/sha2": "^5.7.0", 433 | "@ethersproject/strings": "^5.7.0", 434 | "@ethersproject/transactions": "^5.7.0", 435 | "@ethersproject/web": "^5.7.0", 436 | "bech32": "1.1.4", 437 | "ws": "7.4.6" 438 | } 439 | }, 440 | "node_modules/@ethersproject/random": { 441 | "version": "5.7.0", 442 | "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz", 443 | "integrity": "sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ==", 444 | "funding": [ 445 | { 446 | "type": "individual", 447 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 448 | }, 449 | { 450 | "type": "individual", 451 | "url": "https://www.buymeacoffee.com/ricmoo" 452 | } 453 | ], 454 | "dependencies": { 455 | "@ethersproject/bytes": "^5.7.0", 456 | "@ethersproject/logger": "^5.7.0" 457 | } 458 | }, 459 | "node_modules/@ethersproject/rlp": { 460 | "version": "5.7.0", 461 | "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz", 462 | "integrity": "sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==", 463 | "funding": [ 464 | { 465 | "type": "individual", 466 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 467 | }, 468 | { 469 | "type": "individual", 470 | "url": "https://www.buymeacoffee.com/ricmoo" 471 | } 472 | ], 473 | "dependencies": { 474 | "@ethersproject/bytes": "^5.7.0", 475 | "@ethersproject/logger": "^5.7.0" 476 | } 477 | }, 478 | "node_modules/@ethersproject/sha2": { 479 | "version": "5.7.0", 480 | "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.7.0.tgz", 481 | "integrity": "sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==", 482 | "funding": [ 483 | { 484 | "type": "individual", 485 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 486 | }, 487 | { 488 | "type": "individual", 489 | "url": "https://www.buymeacoffee.com/ricmoo" 490 | } 491 | ], 492 | "dependencies": { 493 | "@ethersproject/bytes": "^5.7.0", 494 | "@ethersproject/logger": "^5.7.0", 495 | "hash.js": "1.1.7" 496 | } 497 | }, 498 | "node_modules/@ethersproject/signing-key": { 499 | "version": "5.7.0", 500 | "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz", 501 | "integrity": "sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q==", 502 | "funding": [ 503 | { 504 | "type": "individual", 505 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 506 | }, 507 | { 508 | "type": "individual", 509 | "url": "https://www.buymeacoffee.com/ricmoo" 510 | } 511 | ], 512 | "dependencies": { 513 | "@ethersproject/bytes": "^5.7.0", 514 | "@ethersproject/logger": "^5.7.0", 515 | "@ethersproject/properties": "^5.7.0", 516 | "bn.js": "^5.2.1", 517 | "elliptic": "6.5.4", 518 | "hash.js": "1.1.7" 519 | } 520 | }, 521 | "node_modules/@ethersproject/solidity": { 522 | "version": "5.7.0", 523 | "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.7.0.tgz", 524 | "integrity": "sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==", 525 | "funding": [ 526 | { 527 | "type": "individual", 528 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 529 | }, 530 | { 531 | "type": "individual", 532 | "url": "https://www.buymeacoffee.com/ricmoo" 533 | } 534 | ], 535 | "dependencies": { 536 | "@ethersproject/bignumber": "^5.7.0", 537 | "@ethersproject/bytes": "^5.7.0", 538 | "@ethersproject/keccak256": "^5.7.0", 539 | "@ethersproject/logger": "^5.7.0", 540 | "@ethersproject/sha2": "^5.7.0", 541 | "@ethersproject/strings": "^5.7.0" 542 | } 543 | }, 544 | "node_modules/@ethersproject/strings": { 545 | "version": "5.7.0", 546 | "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz", 547 | "integrity": "sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg==", 548 | "funding": [ 549 | { 550 | "type": "individual", 551 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 552 | }, 553 | { 554 | "type": "individual", 555 | "url": "https://www.buymeacoffee.com/ricmoo" 556 | } 557 | ], 558 | "dependencies": { 559 | "@ethersproject/bytes": "^5.7.0", 560 | "@ethersproject/constants": "^5.7.0", 561 | "@ethersproject/logger": "^5.7.0" 562 | } 563 | }, 564 | "node_modules/@ethersproject/transactions": { 565 | "version": "5.7.0", 566 | "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz", 567 | "integrity": "sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ==", 568 | "funding": [ 569 | { 570 | "type": "individual", 571 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 572 | }, 573 | { 574 | "type": "individual", 575 | "url": "https://www.buymeacoffee.com/ricmoo" 576 | } 577 | ], 578 | "dependencies": { 579 | "@ethersproject/address": "^5.7.0", 580 | "@ethersproject/bignumber": "^5.7.0", 581 | "@ethersproject/bytes": "^5.7.0", 582 | "@ethersproject/constants": "^5.7.0", 583 | "@ethersproject/keccak256": "^5.7.0", 584 | "@ethersproject/logger": "^5.7.0", 585 | "@ethersproject/properties": "^5.7.0", 586 | "@ethersproject/rlp": "^5.7.0", 587 | "@ethersproject/signing-key": "^5.7.0" 588 | } 589 | }, 590 | "node_modules/@ethersproject/units": { 591 | "version": "5.7.0", 592 | "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.7.0.tgz", 593 | "integrity": "sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==", 594 | "funding": [ 595 | { 596 | "type": "individual", 597 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 598 | }, 599 | { 600 | "type": "individual", 601 | "url": "https://www.buymeacoffee.com/ricmoo" 602 | } 603 | ], 604 | "dependencies": { 605 | "@ethersproject/bignumber": "^5.7.0", 606 | "@ethersproject/constants": "^5.7.0", 607 | "@ethersproject/logger": "^5.7.0" 608 | } 609 | }, 610 | "node_modules/@ethersproject/wallet": { 611 | "version": "5.7.0", 612 | "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.7.0.tgz", 613 | "integrity": "sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA==", 614 | "funding": [ 615 | { 616 | "type": "individual", 617 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 618 | }, 619 | { 620 | "type": "individual", 621 | "url": "https://www.buymeacoffee.com/ricmoo" 622 | } 623 | ], 624 | "dependencies": { 625 | "@ethersproject/abstract-provider": "^5.7.0", 626 | "@ethersproject/abstract-signer": "^5.7.0", 627 | "@ethersproject/address": "^5.7.0", 628 | "@ethersproject/bignumber": "^5.7.0", 629 | "@ethersproject/bytes": "^5.7.0", 630 | "@ethersproject/hash": "^5.7.0", 631 | "@ethersproject/hdnode": "^5.7.0", 632 | "@ethersproject/json-wallets": "^5.7.0", 633 | "@ethersproject/keccak256": "^5.7.0", 634 | "@ethersproject/logger": "^5.7.0", 635 | "@ethersproject/properties": "^5.7.0", 636 | "@ethersproject/random": "^5.7.0", 637 | "@ethersproject/signing-key": "^5.7.0", 638 | "@ethersproject/transactions": "^5.7.0", 639 | "@ethersproject/wordlists": "^5.7.0" 640 | } 641 | }, 642 | "node_modules/@ethersproject/web": { 643 | "version": "5.7.1", 644 | "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz", 645 | "integrity": "sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w==", 646 | "funding": [ 647 | { 648 | "type": "individual", 649 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 650 | }, 651 | { 652 | "type": "individual", 653 | "url": "https://www.buymeacoffee.com/ricmoo" 654 | } 655 | ], 656 | "dependencies": { 657 | "@ethersproject/base64": "^5.7.0", 658 | "@ethersproject/bytes": "^5.7.0", 659 | "@ethersproject/logger": "^5.7.0", 660 | "@ethersproject/properties": "^5.7.0", 661 | "@ethersproject/strings": "^5.7.0" 662 | } 663 | }, 664 | "node_modules/@ethersproject/wordlists": { 665 | "version": "5.7.0", 666 | "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz", 667 | "integrity": "sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA==", 668 | "funding": [ 669 | { 670 | "type": "individual", 671 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 672 | }, 673 | { 674 | "type": "individual", 675 | "url": "https://www.buymeacoffee.com/ricmoo" 676 | } 677 | ], 678 | "dependencies": { 679 | "@ethersproject/bytes": "^5.7.0", 680 | "@ethersproject/hash": "^5.7.0", 681 | "@ethersproject/logger": "^5.7.0", 682 | "@ethersproject/properties": "^5.7.0", 683 | "@ethersproject/strings": "^5.7.0" 684 | } 685 | }, 686 | "node_modules/aes-js": { 687 | "version": "3.0.0", 688 | "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", 689 | "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" 690 | }, 691 | "node_modules/bech32": { 692 | "version": "1.1.4", 693 | "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", 694 | "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" 695 | }, 696 | "node_modules/bn.js": { 697 | "version": "5.2.1", 698 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", 699 | "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" 700 | }, 701 | "node_modules/brorand": { 702 | "version": "1.1.0", 703 | "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", 704 | "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" 705 | }, 706 | "node_modules/elliptic": { 707 | "version": "6.5.4", 708 | "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", 709 | "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", 710 | "dependencies": { 711 | "bn.js": "^4.11.9", 712 | "brorand": "^1.1.0", 713 | "hash.js": "^1.0.0", 714 | "hmac-drbg": "^1.0.1", 715 | "inherits": "^2.0.4", 716 | "minimalistic-assert": "^1.0.1", 717 | "minimalistic-crypto-utils": "^1.0.1" 718 | } 719 | }, 720 | "node_modules/elliptic/node_modules/bn.js": { 721 | "version": "4.12.0", 722 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 723 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" 724 | }, 725 | "node_modules/ethers": { 726 | "version": "5.7.2", 727 | "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", 728 | "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", 729 | "funding": [ 730 | { 731 | "type": "individual", 732 | "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" 733 | }, 734 | { 735 | "type": "individual", 736 | "url": "https://www.buymeacoffee.com/ricmoo" 737 | } 738 | ], 739 | "dependencies": { 740 | "@ethersproject/abi": "5.7.0", 741 | "@ethersproject/abstract-provider": "5.7.0", 742 | "@ethersproject/abstract-signer": "5.7.0", 743 | "@ethersproject/address": "5.7.0", 744 | "@ethersproject/base64": "5.7.0", 745 | "@ethersproject/basex": "5.7.0", 746 | "@ethersproject/bignumber": "5.7.0", 747 | "@ethersproject/bytes": "5.7.0", 748 | "@ethersproject/constants": "5.7.0", 749 | "@ethersproject/contracts": "5.7.0", 750 | "@ethersproject/hash": "5.7.0", 751 | "@ethersproject/hdnode": "5.7.0", 752 | "@ethersproject/json-wallets": "5.7.0", 753 | "@ethersproject/keccak256": "5.7.0", 754 | "@ethersproject/logger": "5.7.0", 755 | "@ethersproject/networks": "5.7.1", 756 | "@ethersproject/pbkdf2": "5.7.0", 757 | "@ethersproject/properties": "5.7.0", 758 | "@ethersproject/providers": "5.7.2", 759 | "@ethersproject/random": "5.7.0", 760 | "@ethersproject/rlp": "5.7.0", 761 | "@ethersproject/sha2": "5.7.0", 762 | "@ethersproject/signing-key": "5.7.0", 763 | "@ethersproject/solidity": "5.7.0", 764 | "@ethersproject/strings": "5.7.0", 765 | "@ethersproject/transactions": "5.7.0", 766 | "@ethersproject/units": "5.7.0", 767 | "@ethersproject/wallet": "5.7.0", 768 | "@ethersproject/web": "5.7.1", 769 | "@ethersproject/wordlists": "5.7.0" 770 | } 771 | }, 772 | "node_modules/hash.js": { 773 | "version": "1.1.7", 774 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", 775 | "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", 776 | "dependencies": { 777 | "inherits": "^2.0.3", 778 | "minimalistic-assert": "^1.0.1" 779 | } 780 | }, 781 | "node_modules/hmac-drbg": { 782 | "version": "1.0.1", 783 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", 784 | "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", 785 | "dependencies": { 786 | "hash.js": "^1.0.3", 787 | "minimalistic-assert": "^1.0.0", 788 | "minimalistic-crypto-utils": "^1.0.1" 789 | } 790 | }, 791 | "node_modules/inherits": { 792 | "version": "2.0.4", 793 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 794 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 795 | }, 796 | "node_modules/js-sha3": { 797 | "version": "0.8.0", 798 | "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", 799 | "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" 800 | }, 801 | "node_modules/minimalistic-assert": { 802 | "version": "1.0.1", 803 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 804 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" 805 | }, 806 | "node_modules/minimalistic-crypto-utils": { 807 | "version": "1.0.1", 808 | "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", 809 | "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" 810 | }, 811 | "node_modules/scrypt-js": { 812 | "version": "3.0.1", 813 | "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", 814 | "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==" 815 | }, 816 | "node_modules/ws": { 817 | "version": "7.4.6", 818 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", 819 | "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", 820 | "engines": { 821 | "node": ">=8.3.0" 822 | }, 823 | "peerDependencies": { 824 | "bufferutil": "^4.0.1", 825 | "utf-8-validate": "^5.0.2" 826 | }, 827 | "peerDependenciesMeta": { 828 | "bufferutil": { 829 | "optional": true 830 | }, 831 | "utf-8-validate": { 832 | "optional": true 833 | } 834 | } 835 | } 836 | } 837 | } 838 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ierc20", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "ethers": "^5.7.2" 14 | } 15 | } 16 | --------------------------------------------------------------------------------