hermes-v2-sdk
Version:
⚒️ An SDK for building applications on top of Hermes V2
36 lines (35 loc) • 1.26 kB
TypeScript
export declare const FACTORY_ADDRESS = "0x1F98431c8aD98523631AE4a59f267346ea31F984";
export declare const BALANCER_VAULT_ADDRESS = "0xBA12222222228d8Ba445958a75a0704d566BF2C8";
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
export declare const MAX_RANGE: number;
export declare const TICK_INCREMENT = 1.0001;
export declare const YEAR = 31536000;
export declare const POOL_INIT_CODE_HASH = "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54";
/**
* Represents the fee amount in bips for the Pools.
* @param LOWEST - The lowest fee amount in bips. 100 bips = 0.01%.
* @param LOW - The low fee amount in bips. 500 bips = 0.05%.
* @param MEDIUM - The medium fee amount in bips. 3000 bips = 0.3%.
* @param HIGH - The high fee amount in bips. 10000 bips = 1%.
*/
export declare enum FeeAmount {
LOWEST = 100,
LOW = 500,
MEDIUM = 3000,
HIGH = 10000
}
/**
* The default factory tick spacings by fee amount.
*/
export declare const TICK_SPACINGS: {
[amount in FeeAmount]: number;
};
export declare enum TradeType {
EXACT_INPUT = 0,
EXACT_OUTPUT = 1
}
export declare enum Rounding {
ROUND_DOWN = 0,
ROUND_HALF_UP = 1,
ROUND_UP = 2
}