UNPKG

@bancor/carbon-sdk

Version:

The SDK is a READ-ONLY tool, intended to facilitate working with Carbon contracts. It's a convenient wrapper around our matching algorithm, allowing programs and users get a ready to use transaction data that will allow them to manage strategies and fulfi

132 lines (131 loc) 3.64 kB
{ "name": "@bancor/carbon-sdk", "type": "module", "source": "src/index.ts", "version": "0.0.124-DEV", "description": "The SDK is a READ-ONLY tool, intended to facilitate working with Carbon contracts. It's a convenient wrapper around our matching algorithm, allowing programs and users get a ready to use transaction data that will allow them to manage strategies and fulfill trades", "main": "dist/index.cjs", "module": "dist/index.js", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./contracts-api": { "import": "./dist/contracts-api/index.js", "require": "./dist/contracts-api/index.cjs" }, "./chain-cache": { "import": "./dist/chain-cache/index.js", "require": "./dist/chain-cache/index.cjs" }, "./trade-matcher": { "import": "./dist/trade-matcher/index.js", "require": "./dist/trade-matcher/index.cjs" }, "./utils": { "import": "./dist/utils/index.js", "require": "./dist/utils/index.cjs" }, "./strategy-management": { "import": "./dist/strategy-management/index.js", "require": "./dist/strategy-management/index.cjs" }, "./adapters": { "import": "./dist/adapters/index.js", "require": "./dist/adapters/index.cjs" } }, "files": [ "dist" ], "engines": { "node": ">=18" }, "typesVersions": { "*": { "contracts-api": [ "dist/contracts-api" ], "chain-cache": [ "dist/chain-cache" ], "trade-matcher": [ "dist/trade-matcher" ], "utils": [ "dist/utils" ], "strategy-management": [ "dist/strategy-management" ], "adapters": [ "dist/adapters" ] } }, "types": "dist/index.d.ts", "scripts": { "clean": "rm -rf dist && rm -rf src/abis/types", "compile-abis": "typechain --target ethers-v5 --out-dir 'src/abis/types' 'src/abis/**/*.json'", "prebuild": "yarn clean && yarn compile-abis", "build": "yarn lint && rollup -c", "test": "yarn lint && mocha", "lint": "eslint src --ext .ts" }, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "git+https://github.com/bancorprotocol/carbon-sdk.git" }, "keywords": [ "defi", "crypto", "bancor", "carbon", "sdk", "trade", "order", "strategy" ], "author": "Doron Zavelevsky <doron@bancor.network>", "license": "MIT", "bugs": { "url": "https://github.com/bancorprotocol/carbon-sdk/issues" }, "homepage": "https://github.com/bancorprotocol/carbon-sdk#readme", "devDependencies": { "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-typescript": "^12.1.2", "@typechain/ethers-v5": "^11.1.2", "@types/chai": "^5.2.2", "@types/mocha": "^10.0.10", "@types/node": "^22.13.10", "@types/sinon": "^17.0.4", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", "chai": "^5.2.0", "eslint": "^9.26.0", "mocha": "^11.1.0", "rollup": "^4.40.2", "rollup-plugin-terser": "^7.0.2", "sinon": "^19.0.2", "ts-node": "^10.9.2", "tslib": "^2.8.1", "typechain": "^8.3.2", "typescript": "^5.7.3" }, "dependencies": { "@ethersproject/abi": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", "@ethersproject/contracts": "^5.8.0", "@ethersproject/providers": "^5.7.2", "@ethersproject/units": "^5.8.0", "decimal.js": "^10.5.0", "ethers": "^5.8.0", "events": "^3.3.0" } }