Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Import Chainlink's AggregatorV3Interface for retrieving off-chain data
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
// Import OpenZeppelin's Ownable for ownership management
import "@openzeppelin/contracts/access/Ownable.sol";
// Import OpenZeppelin's ReentrancyGuard for security against reentrancy attacks
@veektrie
veektrie / gist:8f0fcf2567e0365a19be2f287e2ba536
Last active October 10, 2024 12:18
Learn how to use Hardhat for a more advanced Solidity development workflow.
https://hardhat.org/hardhat-runner/docs/getting-started#installation
https://nodejs.org/en
Installation & Setup
A. Prerequisites:
- Node.js and npm: Ensure you have [Node.js](https://nodejs.org/) (which includes npm) installed. Verify installation by running:
import React, { useEffect, useState } from 'react';
function Card({ title, text, target, linkTitle, href, rel, onClick }) {
return (
<div className="card">
<div className="card__title">{title}</div>
<div className="card__text">{text}</div>
<a className={`default-link card__link`} target={target} rel={rel} href={href} onClick={onClick}>
@veektrie
veektrie / .git...HEAD
Created June 30, 2023 08:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
ref: refs/heads/main