Skip to content

Commit

Permalink
updated viem tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Sep 17, 2023
1 parent b3e396a commit 34e61d2
Show file tree
Hide file tree
Showing 34 changed files with 2,051 additions and 28 deletions.
14 changes: 14 additions & 0 deletions packages/viem/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// require("@nomiclabs/hardhat-ethers");
// require("hardhat-jest-plugin");

/** @type import('hardhat/config').HardhatUserConfig */
const config = {
solidity: "0.8.17",
paths: {
sources: "./src/__tests__/contracts/source",
artifacts: "./src/__tests__/contracts/artifacts",
cache: "./.cache",
},
};

module.exports = config;
5 changes: 3 additions & 2 deletions packages/viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"build": "tsc",
"clean": "rimraf ./dist ./.cache",
"test": "jest",
"typecheck": "tsc -p tsconfig.typecheck.json"
"typecheck": "tsc -p tsconfig.typecheck.json",
"compile:contracts": "hardhat compile"
},
"peerDependencies": {
"viem": "^1.5.0"
Expand All @@ -51,7 +52,7 @@
"devDependencies": {
"@types/jest": "^29.5.3",
"jest": "^29.3.1",
"viem": "^1.5.3"
"viem": "^1.10.0"
},
"engines": {
"node": ">=18.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/9c377c0b2036f6cd13d275d46f465b2f.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "Ownable",
"sourceName": "@openzeppelin/contracts/access/Ownable.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/9c377c0b2036f6cd13d275d46f465b2f.json"
}
Loading

0 comments on commit 34e61d2

Please sign in to comment.