@epicentral/sos-sdk 0.6.0-alpha → 0.6.1-alpha
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/README.md +9 -0
- package/index.ts +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,6 +115,15 @@ Borrow/repay for writers: use `buildOptionMintTransactionWithDerivation` (with v
|
|
|
115
115
|
| `getCreateAssociatedTokenIdempotentInstructionWithAddress` | Creates ATA if missing (idempotent). |
|
|
116
116
|
| `NATIVE_MINT` | WSOL mint address. |
|
|
117
117
|
|
|
118
|
+
### Oracle / Switchboard
|
|
119
|
+
|
|
120
|
+
| Function | Description |
|
|
121
|
+
|----------|-------------|
|
|
122
|
+
| `resolveSwitchboardFeedFromMarketData` | Resolves Switchboard feed address from market data account. |
|
|
123
|
+
| `buildSwitchboardPullFeedUpdate` | Builds Switchboard pull-feed update instructions for prepending to trade transactions. |
|
|
124
|
+
|
|
125
|
+
See [Frontend Switchboard Integration](../../docs/FRONTEND_SWITCHBOARD_INTEGRATION.md) for full setup and usage.
|
|
126
|
+
|
|
118
127
|
## Multi-Collateral Settlement
|
|
119
128
|
|
|
120
129
|
The SDK supports universal multi-collateral settlement, allowing writers to use ANY supported asset as collateral for options (not just the underlying). This enables:
|
package/index.ts
CHANGED
|
@@ -30,7 +30,12 @@ export * from "./short/preflight";
|
|
|
30
30
|
|
|
31
31
|
export * from "./omlp/builders";
|
|
32
32
|
export * from "./omlp/service";
|
|
33
|
-
export
|
|
33
|
+
export {
|
|
34
|
+
resolveSwitchboardFeedFromMarketData,
|
|
35
|
+
buildSwitchboardPullFeedUpdate,
|
|
36
|
+
type SwitchboardPullFeedLike,
|
|
37
|
+
type BuildSwitchboardPullFeedUpdateParams,
|
|
38
|
+
} from "./oracle/switchboard";
|
|
34
39
|
|
|
35
40
|
export {
|
|
36
41
|
getWrapSOLInstructions,
|
package/package.json
CHANGED