@meteora-ag/dynamic-bonding-curve-sdk 1.5.12 → 1.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -5887,7 +5887,7 @@ type BaseFee = Omit<BaseFeeConfig, 'padding0'>;
|
|
|
5887
5887
|
type TokenConfig = {
|
|
5888
5888
|
tokenType: TokenType;
|
|
5889
5889
|
tokenBaseDecimal: TokenDecimal;
|
|
5890
|
-
tokenQuoteDecimal:
|
|
5890
|
+
tokenQuoteDecimal: number;
|
|
5891
5891
|
tokenAuthorityOption: TokenAuthorityOption;
|
|
5892
5892
|
totalTokenSupply: number;
|
|
5893
5893
|
leftover: number;
|
|
@@ -6925,7 +6925,7 @@ declare function getTotalTokenSupply(swapBaseAmount: BN$1, migrationBaseThreshol
|
|
|
6925
6925
|
* @param tokenQuoteDecimal - The quote token decimal
|
|
6926
6926
|
* @returns The initial price
|
|
6927
6927
|
*/
|
|
6928
|
-
declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal:
|
|
6928
|
+
declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: number): Decimal;
|
|
6929
6929
|
/**
|
|
6930
6930
|
* Get the sqrt price from the price
|
|
6931
6931
|
* @param price - The price
|
|
@@ -6940,7 +6940,7 @@ declare const getSqrtPriceFromPrice: (price: string, tokenADecimal: number, toke
|
|
|
6940
6940
|
* @param prices - The prices
|
|
6941
6941
|
* @returns The sqrt prices
|
|
6942
6942
|
*/
|
|
6943
|
-
declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal:
|
|
6943
|
+
declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: number) => BN$1[];
|
|
6944
6944
|
/**
|
|
6945
6945
|
* Get the sqrt price from the market cap
|
|
6946
6946
|
* @param marketCap - The market cap
|
|
@@ -7127,7 +7127,7 @@ declare function calculateFeeSchedulerEndingBaseFeeBps(cliffFeeNumerator: number
|
|
|
7127
7127
|
* @param activationType - The activation type
|
|
7128
7128
|
* @returns The rate limiter parameters
|
|
7129
7129
|
*/
|
|
7130
|
-
declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: number, referenceAmount: number, maxLimiterDuration: number, tokenQuoteDecimal:
|
|
7130
|
+
declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: number, referenceAmount: number, maxLimiterDuration: number, tokenQuoteDecimal: number, activationType: ActivationType): BaseFee;
|
|
7131
7131
|
/**
|
|
7132
7132
|
* Get the dynamic fee parameters (20% of base fee)
|
|
7133
7133
|
* @param baseFeeBps - The base fee in basis points
|
package/dist/index.d.ts
CHANGED
|
@@ -5887,7 +5887,7 @@ type BaseFee = Omit<BaseFeeConfig, 'padding0'>;
|
|
|
5887
5887
|
type TokenConfig = {
|
|
5888
5888
|
tokenType: TokenType;
|
|
5889
5889
|
tokenBaseDecimal: TokenDecimal;
|
|
5890
|
-
tokenQuoteDecimal:
|
|
5890
|
+
tokenQuoteDecimal: number;
|
|
5891
5891
|
tokenAuthorityOption: TokenAuthorityOption;
|
|
5892
5892
|
totalTokenSupply: number;
|
|
5893
5893
|
leftover: number;
|
|
@@ -6925,7 +6925,7 @@ declare function getTotalTokenSupply(swapBaseAmount: BN$1, migrationBaseThreshol
|
|
|
6925
6925
|
* @param tokenQuoteDecimal - The quote token decimal
|
|
6926
6926
|
* @returns The initial price
|
|
6927
6927
|
*/
|
|
6928
|
-
declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal:
|
|
6928
|
+
declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: number): Decimal;
|
|
6929
6929
|
/**
|
|
6930
6930
|
* Get the sqrt price from the price
|
|
6931
6931
|
* @param price - The price
|
|
@@ -6940,7 +6940,7 @@ declare const getSqrtPriceFromPrice: (price: string, tokenADecimal: number, toke
|
|
|
6940
6940
|
* @param prices - The prices
|
|
6941
6941
|
* @returns The sqrt prices
|
|
6942
6942
|
*/
|
|
6943
|
-
declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal:
|
|
6943
|
+
declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: number) => BN$1[];
|
|
6944
6944
|
/**
|
|
6945
6945
|
* Get the sqrt price from the market cap
|
|
6946
6946
|
* @param marketCap - The market cap
|
|
@@ -7127,7 +7127,7 @@ declare function calculateFeeSchedulerEndingBaseFeeBps(cliffFeeNumerator: number
|
|
|
7127
7127
|
* @param activationType - The activation type
|
|
7128
7128
|
* @returns The rate limiter parameters
|
|
7129
7129
|
*/
|
|
7130
|
-
declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: number, referenceAmount: number, maxLimiterDuration: number, tokenQuoteDecimal:
|
|
7130
|
+
declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: number, referenceAmount: number, maxLimiterDuration: number, tokenQuoteDecimal: number, activationType: ActivationType): BaseFee;
|
|
7131
7131
|
/**
|
|
7132
7132
|
* Get the dynamic fee parameters (20% of base fee)
|
|
7133
7133
|
* @param baseFeeBps - The base fee in basis points
|