This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
/** | |
* @title RaffleToken | |
* @notice Test token for raffle betting with USDT-style 6 decimals | |
* @dev Includes public faucet for easy user onboarding | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HardhatUserConfig } from "hardhat/config"; | |
import "@nomicfoundation/hardhat-toolbox"; | |
import * as dotenv from "dotenv"; | |
dotenv.config(); | |
const config: HardhatUserConfig = { | |
solidity: { | |
version: "0.8.20", | |
settings: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ethers } from "hardhat"; | |
async function main() { | |
const [deployer] = await ethers.getSigners(); | |
console.log("Deploying RaffleToken with account:", deployer.address); | |
const balance = await ethers.provider.getBalance(deployer.address); | |
console.log("Account balance:", ethers.formatEther(balance), "ETH"); | |
console.log("\n📍 Deploying RaffleToken..."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_carousel_slider/carousel_slider.dart'; | |
import 'package:url_launcher/url_launcher.dart'; | |
import '../payments/recurring_subscription.dart'; | |
import '../payments/subscription_screen.dart'; | |
import '../utilities/navigation_mixin.dart'; | |
class CarouselItemModel { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cod": 200, | |
"message": "SUCCESS", | |
"found": [ | |
{ | |
"date_generale": { | |
"cui": 26235108, | |
"data": "2023-01-05", | |
"denumire": "CORPORATE CREATIVE SOLUTIONS S.R.L.", | |
"adresa": "JUD. TIMIŞ, MUN. TIMIŞOARA, STR. GHEORGHE DOJA, NR.30, AP.1 CAM.2", |