-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(README): add tests README and LICENSE
- Loading branch information
Showing
22 changed files
with
264 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Morpho Labs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,15 @@ | |
"version": "0.0.0", | ||
"description": "Collection of SDKs to interact with Morpho", | ||
"repository": "[email protected]:morpho-org/sdks.git", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"private": true, | ||
"engines": { | ||
"node": ">=22" | ||
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"workspaces": ["packages/*"], | ||
"scripts": { | ||
"postinstall": "husky && yarn lint --write package.json packages/**/package.json", | ||
"lint": "biome check", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "@morpho-org/blue-api-sdk", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"codegen": "graphql-codegen --config codegen.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "@morpho-org/blue-sdk-ethers", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "tsc --build tsconfig.build.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "@morpho-org/blue-sdk-viem", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"main": "src/index.ts", | ||
"type": "module", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"compile": "hardhat compile", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "@morpho-org/blue-sdk-wagmi", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "tsc --build tsconfig.build.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "@morpho-org/blue-sdk", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "tsc --build tsconfig.build.json", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@morpho-org/bundler-sdk-viem", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
{ | ||
"name": "@morpho-org/liquidation-sdk-viem", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib", | ||
"examples" | ||
], | ||
"files": ["lib", "examples"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"compile": "hardhat compile", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "@morpho-org/morpho-test", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "@morpho-org/morpho-ts", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "tsc --build tsconfig.build.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "@morpho-org/simulation-sdk-wagmi", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "tsc --build tsconfig.build.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "@morpho-org/simulation-sdk", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "tsc --build tsconfig.build.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# @morpho-org/test-ethers | ||
|
||
<a href="https://www.npmjs.com/package/@morpho-org/test-ethers"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/@morpho-org/test-ethers?colorA=21262d&colorB=21262d&style=flat"> | ||
<img src="https://img.shields.io/npm/v/@morpho-org/test-ethers?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Version"> | ||
</picture> | ||
</a> | ||
<a href="https://github.com/wevm/@morpho-org/test-ethers/blob/main/LICENSE"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/l/@morpho-org/test-ethers?colorA=21262d&colorB=21262d&style=flat"> | ||
<img src="https://img.shields.io/npm/l/@morpho-org/test-ethers?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="MIT License"> | ||
</picture> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@morpho-org/test-ethers"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/dm/@morpho-org/test-ethers?colorA=21262d&colorB=21262d&style=flat"> | ||
<img src="https://img.shields.io/npm/dm/@morpho-org/test-ethers?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Downloads per month"> | ||
</picture> | ||
</a> | ||
|
||
Ethers-based extension of [`@morpho-org/test-viem`](../test-viem/) that injects a test Ethers wallet as a test fixture alongside viem's anvil client. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install @morpho-org/test-ethers | ||
``` | ||
|
||
```bash | ||
yarn add @morpho-org/test-ethers | ||
``` | ||
|
||
## Getting Started | ||
|
||
Export an extended vitest `test`: | ||
|
||
```typescript | ||
import { createEthersTest } from "@morpho-org/test-ethers"; | ||
import { mainnet } from "viem/chains"; | ||
|
||
export const test = createEthersTest(mainnet, { | ||
forkUrl: process.env.MAINNET_RPC_URL, | ||
forkBlockNumber: 19_530_000, | ||
}); | ||
``` | ||
|
||
See more on its internal usage for [ethers-based E2E tests here](../blue-sdk-ethers/test/e2e/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "@morpho-org/test-ethers", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# @morpho-org/test-viem | ||
|
||
<a href="https://www.npmjs.com/package/@morpho-org/test-viem"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/@morpho-org/test-viem?colorA=21262d&colorB=21262d&style=flat"> | ||
<img src="https://img.shields.io/npm/v/@morpho-org/test-viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Version"> | ||
</picture> | ||
</a> | ||
<a href="https://github.com/wevm/@morpho-org/test-viem/blob/main/LICENSE"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/l/@morpho-org/test-viem?colorA=21262d&colorB=21262d&style=flat"> | ||
<img src="https://img.shields.io/npm/l/@morpho-org/test-viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="MIT License"> | ||
</picture> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@morpho-org/test-viem"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/dm/@morpho-org/test-viem?colorA=21262d&colorB=21262d&style=flat"> | ||
<img src="https://img.shields.io/npm/dm/@morpho-org/test-viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Downloads per month"> | ||
</picture> | ||
</a> | ||
|
||
Viem & vitest-based package that defines utilities to spawn independent, concurrent anvil forks for each test, injecting the corresponding viem client as a test fixture. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install @morpho-org/test-viem | ||
``` | ||
|
||
```bash | ||
yarn add @morpho-org/test-viem | ||
``` | ||
|
||
## Getting Started | ||
|
||
Export an extended vitest `test`: | ||
|
||
```typescript | ||
import { createViemTest } from "@morpho-org/test-viem"; | ||
import { mainnet } from "viem/chains"; | ||
|
||
export const test = createViemTest(mainnet, { | ||
forkUrl: process.env.MAINNET_RPC_URL, | ||
forkBlockNumber: 19_530_000, | ||
}); | ||
``` | ||
|
||
See more on its internal usage for [viem-based tests here](../blue-sdk-viem/test/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "@morpho-org/test-viem", | ||
"version": "2.0.0-alpha.10", | ||
"author": "Morpho Association <[email protected]>", | ||
"author": "Morpho Labs <[email protected]>", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"files": ["lib"], | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
|
Oops, something went wrong.