UNPKG

@cowprotocol/cow-sdk

Version:

<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>

109 lines (108 loc) 3.58 kB
{ "name": "@cowprotocol/cow-sdk", "version": "5.10.3", "license": "(MIT OR Apache-2.0)", "files": [ "/dist" ], "source": "src/index.ts", "main": "./dist/index.js", "module": "./dist/index.module.js", "exports": { "require": "./dist/index.js", "default": "./dist/index.js" }, "types": "dist/index.d.ts", "scripts": { "prebuild": "rm -rf dist && yarn run codegen", "build": "microbundle -f modern,esm,cjs", "start": "microbundle -f modern,esm,cjs watch", "copy-md-files": "npx cpx \"**/*.md\" dist", "postbuild": "cp package.json dist && yarn copy-md-files && yarn run trading:generateSchemas", "lint": "eslint src", "format": "prettier --write \"src/**/*.+(ts|json)\"", "test": "jest", "test:coverage": "jest --coverage --json --outputFile=jest.results.json && cat ./coverage/lcov.info | coveralls", "test:coverage:html": "jest --silent=false --coverage --coverageReporters html", "codegen": "npm run swagger:codegen && npm run typechain:codegen", "prepare": "npm run build", "prepublishOnly": "npm test && npm run lint", "graphql:codegen": "graphql-codegen --config graphql-codegen.yml", "swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.291.0/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false", "typechain:codegen": "typechain --target ethers-v5 --out-dir ./src/common/generated './abi/*.json'", "trading:generateSchemas": "ts-node scripts/generateTradingSchemas.ts" }, "dependencies": { "@cowprotocol/app-data": "^2.4.0", "@cowprotocol/contracts": "^1.6.0", "@ethersproject/abstract-signer": "^5.7.0", "@openzeppelin/merkle-tree": "^1.0.5", "cross-fetch": "^3.1.5", "exponential-backoff": "^3.1.1", "graphql": "^16.3.0", "graphql-request": "^4.3.0", "limiter": "^3.0.0" }, "peerDependencies": { "ethers": "^5.7.2" }, "devDependencies": { "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/plugin-proposal-private-methods": "^7.18.6", "@babel/preset-env": "^7.20.2", "@babel/preset-typescript": "^7.18.6", "@graphql-codegen/cli": "3.0.0", "@graphql-codegen/typescript": "3.0.0", "@graphql-codegen/typescript-operations": "^3.0.0", "@typechain/ethers-v5": "^11.0.0", "@types/jest": "^29.4.0", "@types/node": "^22.9.0", "@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/parser": "^5.51.0", "babel-plugin-inline-import": "^3.0.0", "coveralls": "^3.1.1", "cpx": "^1.5.0", "eslint": "^8.33.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-unused-imports": "^3.0.0", "ethers": "^5.7.2", "jest": "^29.6.4", "jest-fetch-mock": "^3.0.3", "microbundle": "^0.15.1", "openapi-typescript-codegen": "^0.23.0", "prettier": "^2.5.1", "ts-json-schema-generator": "^2.3.0", "ts-mockito": "^2.6.1", "tsc-watch": "^6.0.0", "typechain": "^8.2.0", "typescript": "^4.9.5" }, "jest": { "automock": false, "resetMocks": false, "setupFiles": [ "./setupTests.js" ], "collectCoverageFrom": [ "src/**/*.{ts,tsx}" ], "coveragePathIgnorePatterns": [ "src/composable/generated" ], "moduleDirectories": [ "node_modules" ], "modulePaths": [ "<rootDir>/" ] }, "keywords": [ "cow", "cow-protocol", "sdk", "crypto", "typescript", "subgraph" ] }