@morpho-org/midnight-sdk
Version:
Viem-based package for Morpho Midnight that exports protocol utilities, fetch helpers, and Midnight API utilities under a dedicated API subpath.
65 lines (64 loc) • 1.97 kB
JSON
{
"name": "@morpho-org/midnight-sdk",
"description": "Viem-based package for Morpho Midnight that exports protocol utilities, fetch helpers, and Midnight API utilities under a dedicated API subpath.",
"version": "2.10.0",
"author": "Morpho Association <contact@morpho.org>",
"repository": {
"type": "git",
"url": "github:morpho-org/sdks"
},
"homepage": "https://github.com/morpho-org/sdks",
"bugs": {
"url": "https://github.com/morpho-org/sdks/issues",
"email": "contact@morpho.org"
},
"license": "MIT",
"type": "module",
"main": "./lib/cjs/index.js",
"exports": {
".": {
"types": "./lib/esm/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
},
"./api": {
"types": "./lib/esm/api/index.d.ts",
"import": "./lib/esm/api/index.js",
"require": "./lib/cjs/api/index.js"
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"api": [
"lib/esm/api/index.d.ts"
]
}
},
"sideEffects": false,
"files": [
"lib",
"MIGRATION-v1-to-v2.md"
],
"scripts": {
"prepublish": "bun run build",
"compile": "node ../../scripts/compile-solidity.ts midnight-sdk",
"build": "tsc --noEmit && bun run build:cjs && bun run build:esm",
"build:cjs": "tsc --build tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.build.esm.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
"test": "vitest --root ../.. --project midnight-sdk --project midnight-sdk-fork"
},
"peerDependencies": {
"@morpho-org/morpho-ts": "^2.8.0 || ^3.0.0 || ^4.0.0",
"viem": "^2.0.0"
},
"devDependencies": {
"@morpho-org/morpho-ts": "^4.5.1",
"@morpho-org/test": "^2.15.0",
"fast-check": "^4.9.0",
"typescript": "7.0.2",
"viem": "^2.55.10",
"vitest": "^4.1.12"
},
"types": "./lib/esm/index.d.ts"
}