@symmetry-hq/sdk 1.0.7 → 1.0.9
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 +41 -0
- package/README.md +742 -0
- package/dist/src/constants.d.ts +3 -3
- package/dist/src/constants.js +4 -4
- package/dist/src/index.d.ts +168 -168
- package/dist/src/index.js +345 -345
- package/dist/src/instructions/automation/auction.d.ts +1 -1
- package/dist/src/instructions/automation/auction.js +4 -4
- package/dist/src/instructions/automation/claimBounty.d.ts +1 -1
- package/dist/src/instructions/automation/claimBounty.js +5 -5
- package/dist/src/instructions/automation/flashSwap.d.ts +2 -2
- package/dist/src/instructions/automation/flashSwap.js +18 -18
- package/dist/src/instructions/automation/priceUpdate.d.ts +4 -4
- package/dist/src/instructions/automation/priceUpdate.js +12 -12
- package/dist/src/instructions/automation/rebalanceIntent.d.ts +5 -5
- package/dist/src/instructions/automation/rebalanceIntent.js +20 -20
- package/dist/src/instructions/automation/rebalanceSwap.d.ts +11 -0
- package/dist/src/instructions/automation/rebalanceSwap.js +42 -0
- package/dist/src/instructions/management/addBounty.d.ts +1 -1
- package/dist/src/instructions/management/addBounty.js +3 -3
- package/dist/src/instructions/management/admin.js +2 -2
- package/dist/src/instructions/management/claimFees.d.ts +5 -5
- package/dist/src/instructions/management/claimFees.js +28 -28
- package/dist/src/instructions/management/createBasket.d.ts +6 -6
- package/dist/src/instructions/management/createBasket.js +27 -27
- package/dist/src/instructions/management/edit.d.ts +10 -10
- package/dist/src/instructions/management/edit.js +39 -39
- package/dist/src/instructions/management/luts.d.ts +7 -7
- package/dist/src/instructions/management/luts.js +22 -22
- package/dist/src/instructions/pda.d.ts +9 -9
- package/dist/src/instructions/pda.js +32 -32
- package/dist/src/instructions/user/deposit.d.ts +6 -6
- package/dist/src/instructions/user/deposit.js +25 -25
- package/dist/src/instructions/user/withdraw.d.ts +1 -1
- package/dist/src/instructions/user/withdraw.js +5 -5
- package/dist/src/jup.d.ts +8 -8
- package/dist/src/jup.js +3 -3
- package/dist/src/keeperMonitor.d.ts +4 -4
- package/dist/src/keeperMonitor.js +33 -33
- package/dist/src/layouts/basket.d.ts +18 -18
- package/dist/src/layouts/basket.js +13 -13
- package/dist/src/layouts/config.d.ts +11 -11
- package/dist/src/layouts/config.js +16 -16
- package/dist/src/layouts/intents/intent.d.ts +5 -5
- package/dist/src/layouts/intents/intent.js +1 -1
- package/dist/src/layouts/intents/rebalanceIntent.d.ts +10 -10
- package/dist/src/layouts/intents/rebalanceIntent.js +10 -10
- package/dist/src/states/basket.d.ts +11 -11
- package/dist/src/states/basket.js +207 -207
- package/dist/src/states/config.js +2 -2
- package/dist/src/states/intents/intent.d.ts +1 -1
- package/dist/src/states/intents/intent.js +7 -7
- package/dist/src/states/intents/rebalanceIntent.d.ts +9 -9
- package/dist/src/states/intents/rebalanceIntent.js +123 -123
- package/dist/src/states/oracles/pythOracle.d.ts +2 -2
- package/dist/src/states/oracles/pythOracle.js +5 -5
- package/dist/src/states/withdrawBasketFees.d.ts +7 -7
- package/dist/src/states/withdrawBasketFees.js +63 -63
- package/dist/src/txUtils.d.ts +2 -2
- package/dist/test.js +60 -60
- package/package.json +4 -4
- package/src/constants.ts +3 -3
- package/src/index.ts +392 -391
- package/src/instructions/automation/auction.ts +6 -6
- package/src/instructions/automation/claimBounty.ts +7 -7
- package/src/instructions/automation/flashSwap.ts +21 -21
- package/src/instructions/automation/priceUpdate.ts +18 -18
- package/src/instructions/automation/rebalanceIntent.ts +29 -29
- package/src/instructions/management/addBounty.ts +5 -5
- package/src/instructions/management/admin.ts +3 -3
- package/src/instructions/management/claimFees.ts +33 -33
- package/src/instructions/management/createBasket.ts +28 -28
- package/src/instructions/management/edit.ts +46 -46
- package/src/instructions/management/luts.ts +25 -25
- package/src/instructions/pda.ts +28 -28
- package/src/instructions/user/deposit.ts +31 -31
- package/src/instructions/user/withdraw.ts +7 -7
- package/src/jup.ts +11 -11
- package/src/keeperMonitor.ts +36 -36
- package/src/layouts/basket.ts +32 -32
- package/src/layouts/config.ts +20 -20
- package/src/layouts/intents/intent.ts +6 -6
- package/src/layouts/intents/rebalanceIntent.ts +22 -22
- package/src/states/basket.ts +220 -220
- package/src/states/config.ts +2 -2
- package/src/states/intents/intent.ts +9 -9
- package/src/states/intents/rebalanceIntent.ts +128 -128
- package/src/states/oracles/pythOracle.ts +6 -6
- package/src/states/withdrawBasketFees.ts +72 -72
- package/src/txUtils.ts +2 -2
- package/test.ts +61 -61
- package/dist/src/keeperRebalaneHandler.d.ts +0 -32
- package/dist/src/keeperRebalaneHandler.js +0 -278
package/LICENSE
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Licensor: Symmetry Protocol
|
|
4
|
+
Licensed Work: @symmetry-hq/sdk
|
|
5
|
+
Change Date: None
|
|
6
|
+
Change License: None
|
|
7
|
+
|
|
8
|
+
Additional Use Grant
|
|
9
|
+
|
|
10
|
+
You may use the Licensed Work in production, including for commercial purposes,
|
|
11
|
+
to build applications, services, and products that integrate with the Symmetry
|
|
12
|
+
Protocol.
|
|
13
|
+
|
|
14
|
+
You may NOT use the Licensed Work to create a competing SDK, library, or
|
|
15
|
+
protocol infrastructure that replicates or substitutes the functionality of the
|
|
16
|
+
Licensed Work or the Symmetry Protocol.
|
|
17
|
+
|
|
18
|
+
Terms
|
|
19
|
+
|
|
20
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
21
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
22
|
+
Licensor may make an Additional Use Grant, above, permitting limited production
|
|
23
|
+
use.
|
|
24
|
+
|
|
25
|
+
Except for the Additional Use Grant and the right of non-production use, all
|
|
26
|
+
rights in the Licensed Work remain exclusively with the Licensor.
|
|
27
|
+
|
|
28
|
+
If the Licensor specifies a Change Date, the Licensed Work will be made
|
|
29
|
+
available under the Change License on the Change Date. No Change Date has been
|
|
30
|
+
specified for this Licensed Work.
|
|
31
|
+
|
|
32
|
+
Notice
|
|
33
|
+
|
|
34
|
+
Business Source License 1.1 is not an Open Source license. However, the
|
|
35
|
+
Licensed Work may eventually be made available under an Open Source License, as
|
|
36
|
+
stated in this License.
|
|
37
|
+
|
|
38
|
+
For the full text of the Business Source License 1.1, see:
|
|
39
|
+
https://mariadb.com/bsl11/
|
|
40
|
+
|
|
41
|
+
Copyright (c) 2026 Symmetry Protocol. All rights reserved.
|