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

feat(packages): add viem #453

Closed
wants to merge 4 commits into from
Closed
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
3 changes: 1 addition & 2 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"test": "yarn prepare && hardhat test"
},
"peerDependencies": {
"ethers": "^6.12.0",
"evm-maths": "^6.0.0"
"ethers": "^6.12.0"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
Expand Down
1 change: 1 addition & 0 deletions packages/viem/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALCHEMY_KEY=
7 changes: 7 additions & 0 deletions packages/viem/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# hardhat
contracts/
artifacts/
cache_hardhat/
dist/
lib/
foundry.toml
1 change: 1 addition & 0 deletions packages/viem/contracts
11 changes: 11 additions & 0 deletions packages/viem/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import "evm-maths";
import "hardhat-gas-reporter";
import "hardhat-tracer";
import "solidity-coverage";

import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ethers";

import config from "../../hardhat.config";

export default config;
1 change: 1 addition & 0 deletions packages/viem/lib
55 changes: 55 additions & 0 deletions packages/viem/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "@morpho-org/bundlers-sdk-viem",
"description": "Morpho Blue Bundlers SDK (viem-based)",
"license": "GPL-2.0-or-later",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/morpho-labs/morpho-blue-bundlers.git"
},
"author": {
"name": "Morpho Labs",
"email": "[email protected]",
"url": "https://github.com/morpho-labs"
},
"bugs": {
"url": "https://github.com/morpho-labs/morpho-blue-bundlers/issues"
},
"homepage": "https://github.com/morpho-labs/morpho-blue-bundlers#readme",
"scripts": {
"prepublish": "yarn build",
"prepare": "ln -sfn ../../src/ ./contracts && ln -sfn ../../lib/ ./lib",
"typecheck": "tsc --noEmit",
"build": "yarn prepare && hardhat compile --force && tsc --build ./tsconfig.build.json",
"test": "yarn prepare && hardhat test"
},
"peerDependencies": {
"viem": "^2.0.0"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
"@nomicfoundation/hardhat-network-helpers": "^1.0.9",
"@types/chai": "^4.3.8",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.6",
"chai": "^4.3.10",
"dotenv": "^16.3.1",
"ethers": "^6.13.2",
"evm-maths": "^7.0.0",
"hardhat": "^2.18.1",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-tracer": "^2.6.0",
"solidity-coverage": "^0.8.5",
"solmate": "6.2.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.2.2",
"viem": "^2.21.15"
},
"publishConfig": {
"main": "dist/index.js",
"access": "public"
}
}
Loading
Loading