@bancor/carbon-sdk
Advanced tools
Comparing version 0.0.84-DEV to 0.0.85-DEV
@@ -68,3 +68,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
"createPair(address,address)": FunctionFragment; | ||
"createStrategy(address,address,tuple[2])": FunctionFragment; | ||
"createStrategy(address,address,(uint128,uint128,uint64,uint64)[2])": FunctionFragment; | ||
"deleteStrategy(uint256)": FunctionFragment; | ||
@@ -98,3 +98,3 @@ "getRoleAdmin(bytes32)": FunctionFragment; | ||
"unpause()": FunctionFragment; | ||
"updateStrategy(uint256,tuple[2],tuple[2])": FunctionFragment; | ||
"updateStrategy(uint256,(uint128,uint128,uint64,uint64)[2],(uint128,uint128,uint64,uint64)[2])": FunctionFragment; | ||
"version()": FunctionFragment; | ||
@@ -101,0 +101,0 @@ "withdrawFees(address,uint256,address)": FunctionFragment; |
@@ -91,5 +91,7 @@ export { PayableOverrides, PopulatedTransaction } from 'ethers'; | ||
buyPriceLow: string; | ||
buyPriceMarginal: string; | ||
buyPriceHigh: string; | ||
buyBudget: string; | ||
sellPriceLow: string; | ||
sellPriceMarginal: string; | ||
sellPriceHigh: string; | ||
@@ -106,3 +108,3 @@ sellBudget: string; | ||
}[keyof T]; | ||
export type StrategyUpdate = AtLeastOneOf<Omit<Strategy, 'id' | 'encoded' | 'baseToken' | 'quoteToken'>>; | ||
export type StrategyUpdate = AtLeastOneOf<Omit<Strategy, 'id' | 'encoded' | 'baseToken' | 'quoteToken' | 'buyPriceMarginal' | 'sellPriceMarginal'>>; | ||
export type BlockMetadata = { | ||
@@ -109,0 +111,0 @@ number: number; |
@@ -101,4 +101,6 @@ import { d as Decimal, t as tenPow, f as formatUnits, p as parseUnits, B as BigNumber, m as mulDiv } from './numerics.js'; | ||
const buyPriceLow = normalizeRate(order1.lowestRate, decimals0, decimals1); | ||
const buyPriceMarginal = normalizeRate(order1.marginalRate, decimals0, decimals1); | ||
const buyPriceHigh = normalizeRate(order1.highestRate, decimals0, decimals1); | ||
const sellPriceLow = normalizeInvertedRate(order0.highestRate, decimals1, decimals0); | ||
const sellPriceMarginal = normalizeInvertedRate(order0.marginalRate, decimals1, decimals0); | ||
const sellPriceHigh = normalizeInvertedRate(order0.lowestRate, decimals1, decimals0); | ||
@@ -120,5 +122,7 @@ const sellBudget = formatUnits(order0.liquidity, decimals0); | ||
buyPriceLow, | ||
buyPriceMarginal, | ||
buyPriceHigh, | ||
buyBudget, | ||
sellPriceLow, | ||
sellPriceMarginal, | ||
sellPriceHigh, | ||
@@ -133,5 +137,7 @@ sellBudget, | ||
buyPriceLow, | ||
buyPriceMarginal, | ||
buyPriceHigh, | ||
buyBudget, | ||
sellPriceLow, | ||
sellPriceMarginal, | ||
sellPriceHigh, | ||
@@ -138,0 +144,0 @@ sellBudget, |
@@ -5,3 +5,3 @@ { | ||
"source": "src/index.ts", | ||
"version": "0.0.84-DEV", | ||
"version": "0.0.85-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", | ||
@@ -81,3 +81,3 @@ "main": "dist/index.js", | ||
"@types/sinon": "^10.0.15", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/eslint-plugin": "^6.7.4", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
@@ -87,7 +87,7 @@ "chai": "^4.3.7", | ||
"mocha": "^10.1.0", | ||
"rollup": "^3.27.0", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"sinon": "^15.0.4", | ||
"rollup": "^3.29.4", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"sinon": "^16.0.0", | ||
"ts-node": "^10.9.1", | ||
"typechain": "^8.1.1", | ||
"typechain": "^8.3.1", | ||
"typescript": "^5.1.6" | ||
@@ -94,0 +94,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1074417
24348