Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial/fixfrombranch #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable

import type { Address } from "viem";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
import "@nomicfoundation/hardhat-viem/types";

export interface Panic$Type {
"_format": "hh-sol-artifact-1",
"contractName": "Panic",
"sourceName": "@openzeppelin/contracts/utils/Panic.sol",
"abi": [],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122077124401dfaf97cd08e586bc2b3443f93be8e32f34d83a0070dc4d71d29e014964736f6c63430008180033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122077124401dfaf97cd08e586bc2b3443f93be8e32f34d83a0070dc4d71d29e014964736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}

declare module "@nomicfoundation/hardhat-viem/types" {
export function deployContract(
contractName: "Panic",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<Panic$Type["abi"]>>;
export function deployContract(
contractName: "@openzeppelin/contracts/utils/Panic.sol:Panic",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<Panic$Type["abi"]>>;

export function sendDeploymentTransaction(
contractName: "Panic",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<Panic$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function sendDeploymentTransaction(
contractName: "@openzeppelin/contracts/utils/Panic.sol:Panic",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<Panic$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;

export function getContractAt(
contractName: "Panic",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<Panic$Type["abi"]>>;
export function getContractAt(
contractName: "@openzeppelin/contracts/utils/Panic.sol:Panic",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<Panic$Type["abi"]>>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/df995dcf35f1d99d0181dc481df7e95b.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "Panic",
"sourceName": "@openzeppelin/contracts/utils/Panic.sol",
"abi": [],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122077124401dfaf97cd08e586bc2b3443f93be8e32f34d83a0070dc4d71d29e014964736f6c63430008180033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122077124401dfaf97cd08e586bc2b3443f93be8e32f34d83a0070dc4d71d29e014964736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable

import "hardhat/types/artifacts";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";

import { Panic$Type } from "./Panic";

declare module "hardhat/types/artifacts" {
interface ArtifactsMap {
["Panic"]: Panic$Type;
["@openzeppelin/contracts/utils/Panic.sol:Panic"]: Panic$Type;
}

interface ContractTypesMap {
["Panic"]: GetContractReturnType<Panic$Type["abi"]>;
["@openzeppelin/contracts/utils/Panic.sol:Panic"]: GetContractReturnType<Panic$Type["abi"]>;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable

import type { Address } from "viem";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
import "@nomicfoundation/hardhat-viem/types";

export interface Math$Type {
"_format": "hh-sol-artifact-1",
"contractName": "Math",
"sourceName": "@openzeppelin/contracts/utils/math/Math.sol",
"abi": [],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209447c755a57d06eb19fc470a2d00143ace45b32da9169a4acb81046a565251de64736f6c63430008180033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209447c755a57d06eb19fc470a2d00143ace45b32da9169a4acb81046a565251de64736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}

declare module "@nomicfoundation/hardhat-viem/types" {
export function deployContract(
contractName: "Math",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<Math$Type["abi"]>>;
export function deployContract(
contractName: "@openzeppelin/contracts/utils/math/Math.sol:Math",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<Math$Type["abi"]>>;

export function sendDeploymentTransaction(
contractName: "Math",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<Math$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function sendDeploymentTransaction(
contractName: "@openzeppelin/contracts/utils/math/Math.sol:Math",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<Math$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;

export function getContractAt(
contractName: "Math",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<Math$Type["abi"]>>;
export function getContractAt(
contractName: "@openzeppelin/contracts/utils/math/Math.sol:Math",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<Math$Type["abi"]>>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/df995dcf35f1d99d0181dc481df7e95b.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "Math",
"sourceName": "@openzeppelin/contracts/utils/math/Math.sol",
"abi": [],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209447c755a57d06eb19fc470a2d00143ace45b32da9169a4acb81046a565251de64736f6c63430008180033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209447c755a57d06eb19fc470a2d00143ace45b32da9169a4acb81046a565251de64736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable

import "hardhat/types/artifacts";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";

import { Math$Type } from "./Math";

declare module "hardhat/types/artifacts" {
interface ArtifactsMap {
["Math"]: Math$Type;
["@openzeppelin/contracts/utils/math/Math.sol:Math"]: Math$Type;
}

interface ContractTypesMap {
["Math"]: GetContractReturnType<Math$Type["abi"]>;
["@openzeppelin/contracts/utils/math/Math.sol:Math"]: GetContractReturnType<Math$Type["abi"]>;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable

import type { Address } from "viem";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
import "@nomicfoundation/hardhat-viem/types";

export interface SafeCast$Type {
"_format": "hh-sol-artifact-1",
"contractName": "SafeCast",
"sourceName": "@openzeppelin/contracts/utils/math/SafeCast.sol",
"abi": [
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "int256",
"name": "value",
"type": "int256"
}
],
"name": "SafeCastOverflowedIntDowncast",
"type": "error"
},
{
"inputs": [
{
"internalType": "int256",
"name": "value",
"type": "int256"
}
],
"name": "SafeCastOverflowedIntToUint",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintDowncast",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintToInt",
"type": "error"
}
],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b5f566bcc33798f030e57f140ce005b7099829e7434ae2c81bd24cfd7eb2b16a64736f6c63430008180033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b5f566bcc33798f030e57f140ce005b7099829e7434ae2c81bd24cfd7eb2b16a64736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}

declare module "@nomicfoundation/hardhat-viem/types" {
export function deployContract(
contractName: "SafeCast",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<SafeCast$Type["abi"]>>;
export function deployContract(
contractName: "@openzeppelin/contracts/utils/math/SafeCast.sol:SafeCast",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<SafeCast$Type["abi"]>>;

export function sendDeploymentTransaction(
contractName: "SafeCast",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<SafeCast$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function sendDeploymentTransaction(
contractName: "@openzeppelin/contracts/utils/math/SafeCast.sol:SafeCast",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<SafeCast$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;

export function getContractAt(
contractName: "SafeCast",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<SafeCast$Type["abi"]>>;
export function getContractAt(
contractName: "@openzeppelin/contracts/utils/math/SafeCast.sol:SafeCast",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<SafeCast$Type["abi"]>>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/df995dcf35f1d99d0181dc481df7e95b.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "SafeCast",
"sourceName": "@openzeppelin/contracts/utils/math/SafeCast.sol",
"abi": [
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "int256",
"name": "value",
"type": "int256"
}
],
"name": "SafeCastOverflowedIntDowncast",
"type": "error"
},
{
"inputs": [
{
"internalType": "int256",
"name": "value",
"type": "int256"
}
],
"name": "SafeCastOverflowedIntToUint",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintDowncast",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintToInt",
"type": "error"
}
],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b5f566bcc33798f030e57f140ce005b7099829e7434ae2c81bd24cfd7eb2b16a64736f6c63430008180033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b5f566bcc33798f030e57f140ce005b7099829e7434ae2c81bd24cfd7eb2b16a64736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading