import React from 'react'; import { Row, Col, Toast, Card } from 'react-bootstrap'; import { Project } from '../../../core/project'; export default function Gas({ project = { deployedProject: {}, } as any, }: { project: Project; }) { let deployments = Object.values(project.deployedProject.deployments); //filter duplicate contracts let contracts = deployments.filter( (contract, index, self) => index === self.findIndex((t) => t.contractName === contract.contractName) ); let receipts = contracts.map((deployment) => { return deployment.receipt; }); return ( <> Receipts Here are all the receipts which were used when deploying various contracts Total Gas ⭐ 16,593,303 Gas Price ⛽ 28gwei Total Cost 💰 0.082 ETH Transaction History Here's a list of all the transactions you've made with this project From Transaction {receipts.map((receipt) => { return ( {receipt.from} {receipt.hash} ); })} > ); }
Here are all the receipts which were used when deploying various contracts
⭐
16,593,303
⛽
28gwei
💰
0.082 ETH
Here's a list of all the transactions you've made with this project