Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bancor/carbon-sdk

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bancor/carbon-sdk - npm Package Compare versions

Comparing version 0.0.92-DEV to 0.0.93-DEV

dist/_virtual/_commonjsHelpers/index.js

6

dist/chain-cache/index.js

@@ -1,5 +0,1 @@

export { C as ChainCache, a as ChainSync, b as initSyncedCache } from '../shared/index2.js';
import 'events';
import '../shared/serializers.js';
import '../shared/numerics.js';
import '../shared/logger.js';
import{ChainCache as a}from"./ChainCache/index.js";import{ChainSync as n}from"./ChainSync/index.js";const t=(t,e)=>{let r;e&&(r=a.fromSerialized(e)),r||(r=new a);const i=new n(t,r);return r.setCacheMissHandler(i.syncPairData.bind(i)),{cache:r,startDataSync:i.startDataSync.bind(i)}};export{a as ChainCache,n as ChainSync,t as initSyncedCache};

@@ -1,3 +0,1 @@

export { C as ContractsApi } from '../shared/index.js';
import '../shared/numerics.js';
import '../shared/logger.js';
export{ContractsApi}from"./ContractsApi/index.js";

@@ -12,5 +12,5 @@ import { BigNumberish } from '../utils/numerics';

}
export declare const multicall: (calls: MultiCall[], multicallContract: Multicall, blockHeight?: number) => Promise<(never[] | import("@ethersproject/abi").Result)[] | undefined>;
export declare const multicall: (calls: MultiCall[], multicallContract: Multicall, blockHeight?: number) => Promise<(import("@ethersproject/abi").Result | never[])[] | undefined>;
export declare const isETHAddress: (address: string) => boolean;
export declare const buildTradeOverrides: (sourceToken: string, tradeActions: TradeAction[], byTarget: boolean, maxInput: BigNumberish, overrides?: PayableOverrides) => PayableOverrides;
//# sourceMappingURL=utils.d.ts.map

@@ -1,12 +0,1 @@

export { i as contractsApi } from './shared/index.js';
export { i as chainCache } from './shared/index2.js';
export { i as tradeMatcher } from './shared/index3.js';
export { i as utils } from './shared/index4.js';
export { i as strategyManagement } from './shared/index5.js';
export { M as MatchType } from './shared/match.js';
import './shared/numerics.js';
import './shared/logger.js';
import 'events';
import './shared/serializers.js';
import './shared/decimals.js';
import './shared/encoders.js';
import*as r from"./contracts-api/index.js";export{r as contractsApi};import*as t from"./chain-cache/index.js";export{t as chainCache};import*as e from"./trade-matcher/index.js";export{e as tradeMatcher};import*as o from"./utils/index.js";export{o as utils};import*as m from"./strategy-management/index.js";export{m as strategyManagement};export{MatchType}from"./common/types/index.js";

@@ -1,7 +0,1 @@

export { M as MarginalPriceOptions, P as PPM_RESOLUTION, T as Toolkit, j as addFee, c as buildStrategyObject, o as calculateOverlappingBuyBudget, l as calculateOverlappingPriceRanges, m as calculateOverlappingSellBudget, f as createFromBuyOrder, g as createFromSellOrder, h as createOrders, d as decodeStrategy, e as encodeStrategy, k as enforcePriceRange, a as isMarginalPriceValue, b as normalizeInvertedRate, n as normalizeRate, p as parseStrategy, s as subtractFee } from '../shared/index5.js';
import '../shared/numerics.js';
import '../shared/match.js';
import '../shared/encoders.js';
import '../shared/decimals.js';
import '../shared/logger.js';
import '../shared/serializers.js';
export{MarginalPriceOptions,Toolkit,isMarginalPriceValue}from"./Toolkit/index.js";export{PPM_RESOLUTION,addFee,buildStrategyObject,calculateOverlappingBuyBudget,calculateOverlappingPriceRanges,calculateOverlappingSellBudget,createFromBuyOrder,createFromSellOrder,createOrders,decodeStrategy,encodeStrategy,enforcePriceRange,normalizeInvertedRate,normalizeRate,parseStrategy,subtractFee}from"./utils/index.js";

@@ -1,3 +0,1 @@

export { g as getEncodedTradeSourceAmount, a as getEncodedTradeTargetAmount, m as matchBySourceAmount, b as matchByTargetAmount } from '../shared/match.js';
import '../shared/encoders.js';
import '../shared/numerics.js';
export{matchBySourceAmount,matchByTargetAmount}from"./match/index.js";export{getEncodedTradeSourceAmount,getEncodedTradeTargetAmount}from"./trade/index.js";

@@ -1,4 +0,1 @@

export { D as Decimals } from '../shared/decimals.js';
export { c as calculateCorrelatedZ, a as calculateRequiredLiquidity, d as decodeFloat, b as decodeOrder, e as decodeRate, f as encodeFloat, g as encodeOrder, h as encodeOrders, i as encodeRate } from '../shared/encoders.js';
export { e as encodedOrderBNToStr, a as encodedOrderStrToBN, b as encodedStrategyBNToStr, c as encodedStrategyStrToBN, m as matchActionBNToStr, o as ordersMapBNToStr, d as ordersMapStrToBN, r as replaceBigNumbersWithStrings, t as tradeActionStrToBN } from '../shared/serializers.js';
export { B as BigNumber, a as BigNumberMax, b as BigNumberMin, c as BnToDec, D as DecToBn, d as Decimal, O as ONE, T as TEN, f as formatUnits, m as mulDiv, p as parseUnits, t as tenPow, e as trimDecimal } from '../shared/numerics.js';
export{Decimals}from"./decimals/index.js";export{calculateCorrelatedZ,calculateRequiredLiquidity,decodeFloat,decodeOrder,decodeRate,encodeFloat,encodeOrder,encodeOrders,encodeRate}from"./encoders/index.js";export{encodedOrderBNToStr,encodedOrderStrToBN,encodedStrategyBNToStr,encodedStrategyStrToBN,matchActionBNToStr,ordersMapBNToStr,ordersMapStrToBN,replaceBigNumbersWithStrings,tradeActionStrToBN}from"./serializers/index.js";export{BigNumberMax,BigNumberMin,BnToDec,DecToBn,ONE,TEN,formatUnits,mulDiv,parseUnits,tenPow,trimDecimal}from"./numerics/index.js";export{Decimal}from"../node_modules/decimal.js/decimal/index.js";export{BigNumber}from"../node_modules/@ethersproject/bignumber/lib.esm/bignumber/index.js";

@@ -5,19 +5,37 @@ {

"source": "src/index.ts",
"version": "0.0.92-DEV",
"version": "0.0.93-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.js",
"main": "dist/index.cjs",
"module": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./contracts-api": "./dist/contracts-api/index.js",
"./chain-cache": "./dist/chain-cache/index.js",
"./trade-matcher": "./dist/trade-matcher/index.js",
"./utils": "./dist/utils/index.js",
"./strategy-management": "./dist/strategy-management/index.js"
".":{
"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"
}
},
"files": [
"dist/"
"dist"
],
"engines": {
"node": ">=20"
"node": ">=18"
},

@@ -49,3 +67,2 @@ "typesVersions": {

"build": "yarn lint && rollup -c",
"dev": "yarn lint && rollup -c -w",
"test": "yarn lint && mocha",

@@ -80,2 +97,3 @@ "lint": "eslint src --ext .ts"

"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@typechain/ethers-v5": "^11.1.1",

@@ -92,5 +110,6 @@ "@types/chai": "^4.3.10",

"rollup": "^4.5.0",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^16.0.0",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typechain": "^8.3.1",

@@ -97,0 +116,0 @@ "typescript": "^5.2.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc