@silentswap/sdk 0.0.49 → 0.0.50

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.
@@ -37,3 +37,6 @@ export declare const N_RELAY_CHAIN_ID_SUI = 103665049;
37
37
  export declare const N_DEBRIDGE_CHAIN_ID_SOLANA = 7565164;
38
38
  export declare const S0X_ADDR_EVM_RELAY_LINK_DEAD = "0x000000000000000000000000000000000000dead";
39
39
  export declare const P_URL_API_RPC_SOLANA = "https://api.mainnet-beta.solana.com";
40
+ export declare const CALCULATION_DIRECTION_INPUT_TO_OUTPUT: "input-to-output";
41
+ export declare const CALCULATION_DIRECTION_OUTPUT_TO_INPUT: "output-to-input";
42
+ export type CalculationDirection = typeof CALCULATION_DIRECTION_INPUT_TO_OUTPUT | typeof CALCULATION_DIRECTION_OUTPUT_TO_INPUT;
package/dist/constants.js CHANGED
@@ -64,3 +64,6 @@ export const N_DEBRIDGE_CHAIN_ID_SOLANA = 7565164;
64
64
  export const S0X_ADDR_EVM_RELAY_LINK_DEAD = '0x000000000000000000000000000000000000dead';
65
65
  // Solana RPC endpoint (default, can be overridden via environment)
66
66
  export const P_URL_API_RPC_SOLANA = 'https://api.mainnet-beta.solana.com';
67
+ // Calculation direction constants for swap estimates
68
+ export const CALCULATION_DIRECTION_INPUT_TO_OUTPUT = 'input-to-output';
69
+ export const CALCULATION_DIRECTION_OUTPUT_TO_INPUT = 'output-to-input';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silentswap/sdk",
3
3
  "type": "module",
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "files": [