elephantswapv3-sdk 0.0.1
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 +7 -0
- package/dist/constants.d.ts +18 -0
- package/dist/elephantswapv3-sdk.cjs.development.js +4147 -0
- package/dist/elephantswapv3-sdk.cjs.development.js.map +1 -0
- package/dist/elephantswapv3-sdk.cjs.production.min.js +2 -0
- package/dist/elephantswapv3-sdk.cjs.production.min.js.map +1 -0
- package/dist/elephantswapv3-sdk.esm.js +4109 -0
- package/dist/elephantswapv3-sdk.esm.js.map +1 -0
- package/dist/entities/index.d.ts +7 -0
- package/dist/entities/pool.d.ts +81 -0
- package/dist/entities/position.d.ts +131 -0
- package/dist/entities/route.d.ts +26 -0
- package/dist/entities/tick.d.ts +13 -0
- package/dist/entities/tickDataProvider.d.ts +31 -0
- package/dist/entities/tickListDataProvider.d.ts +15 -0
- package/dist/entities/trade.d.ts +220 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +8 -0
- package/dist/internalConstants.d.ts +6 -0
- package/dist/multicall.d.ts +9 -0
- package/dist/nonfungiblePositionManager.d.ts +146 -0
- package/dist/payments.d.ts +24 -0
- package/dist/quoter.d.ts +37 -0
- package/dist/selfPermit.d.ts +25 -0
- package/dist/staker.d.ts +101 -0
- package/dist/swapRouter.d.ts +51 -0
- package/dist/utils/calldata.d.ts +20 -0
- package/dist/utils/computePoolAddress.d.ts +18 -0
- package/dist/utils/encodeRouteToPath.d.ts +8 -0
- package/dist/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/utils/fullMath.d.ts +8 -0
- package/dist/utils/index.d.ts +17 -0
- package/dist/utils/isSorted.d.ts +7 -0
- package/dist/utils/liquidityMath.d.ts +8 -0
- package/dist/utils/maxLiquidityForAmounts.d.ts +14 -0
- package/dist/utils/mostSignificantBit.d.ts +2 -0
- package/dist/utils/nearestUsableTick.d.ts +6 -0
- package/dist/utils/position.d.ts +8 -0
- package/dist/utils/priceTickConversions.d.ts +15 -0
- package/dist/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/utils/swapMath.d.ts +9 -0
- package/dist/utils/tickLibrary.d.ts +14 -0
- package/dist/utils/tickList.d.ts +23 -0
- package/dist/utils/tickMath.d.ts +34 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Uniswap Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @uniswap/v3-sdk - Now at `Uniswap/sdks`
|
|
2
|
+
|
|
3
|
+
All versions after 3.11.0 of this SDK can be found in the [SDK monorepo](https://github.com/Uniswap/sdks/tree/main/sdks/v3-sdk)! Please file all future issues, PR’s, and discussions there.
|
|
4
|
+
|
|
5
|
+
### Old Issues and PR’s
|
|
6
|
+
|
|
7
|
+
If you have an issue or open PR that is still active on this SDK in this repository, please recreate it in the new repository. Some existing issues and PR’s may be automatically migrated by the Uniswap Labs team.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const FACTORY_ADDRESS = "0xe62B3e1D1F2D58Dd9F95f3CdF847acfc8177e5ea";
|
|
2
|
+
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
|
|
3
|
+
export declare const POOL_INIT_CODE_HASH = "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54";
|
|
4
|
+
/**
|
|
5
|
+
* The default factory enabled fee amounts, denominated in hundredths of bips.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum FeeAmount {
|
|
8
|
+
LOWEST = 100,
|
|
9
|
+
LOW = 500,
|
|
10
|
+
MEDIUM = 3000,
|
|
11
|
+
HIGH = 10000
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The default factory tick spacings by fee amount.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TICK_SPACINGS: {
|
|
17
|
+
[amount in FeeAmount]: number;
|
|
18
|
+
};
|