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 18, 2023
1 parent 397b6b5 commit e3604aa
Show file tree
Hide file tree
Showing 36 changed files with 2,024 additions and 48 deletions.
2 changes: 1 addition & 1 deletion examples/with-viem-and-passkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3",
"viem": "^1.5.3"
"viem": "^1.10.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"dotenv": "^16.0.3",
"fetch": "^1.1.0",
"typescript": "5.1",
"viem": "^1.5.3"
"viem": "^1.10.0"
}
}
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 e3604aa

Please sign in to comment.