Skip to content

Commit

Permalink
fix(package): update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Sep 27, 2024
1 parent e133bc3 commit de2f962
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@ node_modules/
/cache_hardhat
/artifacts

# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

*.log
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

![bundler-3](https://github.com/morpho-org/morpho-blue-bundlers/assets/74971347/827630e1-7abc-4f9d-a494-fe3fa7aa7053)

Each Bundler is a domain-specific abstract layer of contract that implements some functions that can be bundled in a single call by EOAs to a single contract. They all inherit from [`BaseBundler`](./contracts/BaseBundler.sol) that enables bundling multiple function calls into a single `multicall(bytes[] calldata data)` call to the end bundler contract. Each chain-specific bundler is available under their chain-specific folder (e.g. [`ethereum`](./contracts/ethereum/)).
Each Bundler is a domain-specific abstract layer of contract that implements some functions that can be bundled in a single call by EOAs to a single contract. They all inherit from [`BaseBundler`](./src/BaseBundler.sol) that enables bundling multiple function calls into a single `multicall(bytes[] calldata data)` call to the end bundler contract. Each chain-specific bundler is available under their chain-specific folder (e.g. [`ethereum`](./src/ethereum/)).

Some chain-specific domains are also scoped to the chain-specific folder, because they are not expected to be used on any other chain (e.g. DAI and its specific `permit` function is only available on Ethereum - see [`EthereumPermitBundler`](./contracts/ethereum/EthereumPermitBundler.sol)).
Some chain-specific domains are also scoped to the chain-specific folder, because they are not expected to be used on any other chain (e.g. DAI and its specific `permit` function is only available on Ethereum - see [`EthereumPermitBundler`](./src/ethereum/EthereumPermitBundler.sol)).

User-end bundlers are provided in each chain-specific folder, instantiating all the intermediary domain-specific bundlers and associated parameters (such as chain-specific protocol addresses, e.g. [`EthereumBundlerV2`](./contracts/ethereum/EthereumBundlerV2.sol)).
User-end bundlers are provided in each chain-specific folder, instantiating all the intermediary domain-specific bundlers and associated parameters (such as chain-specific protocol addresses, e.g. [`EthereumBundlerV2`](./src/ethereum/EthereumBundlerV2.sol)).

## Deployments

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"scripts": {
"prepare": "husky && forge install",
"build": "FOUNDRY_PROFILE=build forge build",
"typecheck": "tsc --noEmit",
"test": "FOUNDRY_PROFILE=test forge test",
"test:local": "FOUNDRY_MATCH_CONTRACT=LocalTest yarn test",
"test:fork": "FOUNDRY_MATCH_CONTRACT=ForkTest yarn test",
Expand All @@ -45,7 +44,7 @@
"@lerna-lite/publish": "3.8.0",
"@lerna-lite/version": "^3.7.1",
"@types/node": "^20.8.6",
"husky": "^8.0.3",
"husky": "^9.1.6",
"lint-staged": "^14.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ethers";
import "@typechain/hardhat";

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

config.typechain = {
outDir: "src/types/",
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"baseUrl": "."
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ __metadata:
"@lerna-lite/publish": "npm:3.8.0"
"@lerna-lite/version": "npm:^3.7.1"
"@types/node": "npm:^20.8.6"
husky: "npm:^8.0.3"
husky: "npm:^9.1.6"
lint-staged: "npm:^14.0.1"
ts-node: "npm:^10.9.1"
typescript: "npm:^5.2.2"
Expand Down Expand Up @@ -5616,12 +5616,12 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^8.0.3":
version: 8.0.3
resolution: "husky@npm:8.0.3"
"husky@npm:^9.1.6":
version: 9.1.6
resolution: "husky@npm:9.1.6"
bin:
husky: lib/bin.js
checksum: 10c0/6722591771c657b91a1abb082e07f6547eca79144d678e586828ae806499d90dce2a6aee08b66183fd8b085f19d20e0990a2ad396961746b4c8bd5bdb619d668
husky: bin.js
checksum: 10c0/705673db4a247c1febd9c5df5f6a3519106cf0335845027bb50a15fba9b1f542cb2610932ede96fd08008f6d9f49db0f15560509861808b0031cdc0e7c798bac
languageName: node
linkType: hard

Expand Down

0 comments on commit de2f962

Please sign in to comment.