Skip to content

Commit

Permalink
feat(packages): add viem
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Sep 27, 2024
1 parent e65fa4b commit 61b11b8
Show file tree
Hide file tree
Showing 15 changed files with 1,306 additions and 7 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true
}
9 changes: 2 additions & 7 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@morpho-org/bundlers-sdk-ethers",
"description": "Morpho Blue Bundlers SDK",
"description": "Morpho Blue Bundlers SDK (ethers-based)",
"license": "GPL-2.0-or-later",
"version": "1.2.0",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/morpho-labs/morpho-blue-bundlers.git"
Expand All @@ -16,11 +16,6 @@
"url": "https://github.com/morpho-labs/morpho-blue-bundlers/issues"
},
"homepage": "https://github.com/morpho-labs/morpho-blue-bundlers#readme",
"private": true,
"packageManager": "[email protected]",
"workspaces": [
"packages/*"
],
"scripts": {
"prepublish": "yarn build",
"prepare": "ln -sfn ../../src/ ./contracts && ln -sfn ../../lib/ ./lib",
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
16 changes: 16 additions & 0 deletions packages/viem/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import "evm-maths";
import "hardhat-gas-reporter";
import "hardhat-tracer";
import "solidity-coverage";

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

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

config.typechain = {
outDir: "src/types/",
};

export default config;
1 change: 1 addition & 0 deletions packages/viem/lib
58 changes: 58 additions & 0 deletions packages/viem/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"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": {
"evm-maths": "^6.0.0",
"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",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.8",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.6",
"chai": "^4.3.10",
"dotenv": "^16.3.1",
"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",
"typechain": "^8.3.2",
"typescript": "^5.2.2",
"viem": "^2.21.15"
},
"publishConfig": {
"main": "dist/index.js",
"access": "public"
}
}
Loading

0 comments on commit 61b11b8

Please sign in to comment.