@epicentral/sos-sdk 0.15.0-beta → 0.15.2-beta
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/index.ts +19 -1
- package/package.json +1 -1
- package/shared/option-program-parser.ts +6 -0
package/index.ts
CHANGED
|
@@ -12,7 +12,25 @@ export {
|
|
|
12
12
|
export { parseOptionProgramInstruction } from "./shared/option-program-parser";
|
|
13
13
|
|
|
14
14
|
export * from "./accounts/pdas";
|
|
15
|
-
export
|
|
15
|
+
export {
|
|
16
|
+
accountExists,
|
|
17
|
+
decodeCollateralVaultFromCollateralPoolRawData,
|
|
18
|
+
decodeOptionPoolTradePubkeysFromRawData,
|
|
19
|
+
fetchAccountData,
|
|
20
|
+
fetchBuyerPosition,
|
|
21
|
+
fetchBuyerSettlementClaim,
|
|
22
|
+
fetchCollateralPool,
|
|
23
|
+
fetchLenderPosition,
|
|
24
|
+
fetchMakerSettlementClaim,
|
|
25
|
+
fetchManyAccounts,
|
|
26
|
+
fetchMarketDataAccount,
|
|
27
|
+
fetchOptionAccount,
|
|
28
|
+
fetchOptionAccounts,
|
|
29
|
+
fetchOptionPool,
|
|
30
|
+
fetchPoolLoan,
|
|
31
|
+
fetchVault,
|
|
32
|
+
fetchWriterPosition,
|
|
33
|
+
} from "./accounts/fetchers";
|
|
16
34
|
export * from "./accounts/list";
|
|
17
35
|
export * from "./accounts/resolve-option";
|
|
18
36
|
|
package/package.json
CHANGED
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
parseUnwindWriterUnsoldInstruction,
|
|
52
52
|
parseUpdateImpliedVolatilityInstruction,
|
|
53
53
|
parseUpdateMarketDataInstruction,
|
|
54
|
+
parseUpdateMarketDataSwitchboardFeedInstruction,
|
|
54
55
|
parseWithdrawFromPositionInstruction,
|
|
55
56
|
parseWriteToPoolInstruction,
|
|
56
57
|
} from "../generated/instructions";
|
|
@@ -311,6 +312,11 @@ export function parseOptionProgramInstruction<
|
|
|
311
312
|
parseUpdateMarketDataInstruction(instruction),
|
|
312
313
|
instructionType,
|
|
313
314
|
);
|
|
315
|
+
case OptionProgramInstruction.UpdateMarketDataSwitchboardFeed:
|
|
316
|
+
return withInstructionType(
|
|
317
|
+
parseUpdateMarketDataSwitchboardFeedInstruction(instruction),
|
|
318
|
+
instructionType,
|
|
319
|
+
);
|
|
314
320
|
case OptionProgramInstruction.WithdrawFromPosition:
|
|
315
321
|
return withInstructionType(
|
|
316
322
|
parseWithdrawFromPositionInstruction(instruction),
|