hardhat: {
chainId: 31337,
forking: {
url: 'http://jsonrpc.dasomoli.org:8545',
blockNumber: 74924548,
enabled: true,
},
gasPrice: 800000000000,
hardfork: 'grayGlacier',
chains: {
31337: {
hardforkHistory: {
petersburg: 0,
grayGlacier: 25980000,
},
},
},
},
[태그:] example
[Docker] ts-node Dockerfile example
FROM node:12
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install -g ts-node typescript
COPY . .
CMD [ "ts-node", "main.ts" ]