This file contains 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 { useEffect, useState } from "react"; | |
import "./App.css"; | |
import { ethers } from "ethers"; | |
import data from "./assets/data.js"; | |
import FactoryABI from "./assets/abi/SimpleAccountFactory.json"; | |
import TokenABI from "./assets/abi/Token.json"; | |
import { createClient, http } from "viem"; | |
import { pimlicoPaymasterActions } from "permissionless/actions/pimlico"; | |
// NOTE : function getPaymasterAndData is used to get the paymasterAndData |
This file contains 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.0; | |
interface AggregatorV3Interface { | |
function decimals() external view returns (uint8); | |
function description() external view returns (string memory); | |
function version() external view returns (uint256); |