@epicentral/sos-sdk 0.10.3-beta → 0.10.4-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.
@@ -11,17 +11,9 @@ import {
11
11
  fixEncoderSize,
12
12
  getBytesEncoder,
13
13
  type Address,
14
- type Instruction,
15
- type InstructionWithAccounts,
16
- type InstructionWithData,
17
- type AccountMeta,
18
14
  type ReadonlyUint8Array,
19
15
  } from "@solana/kit";
20
16
  import {
21
- parseBuyFromPoolInstruction,
22
- parseCloseLongToPoolInstruction,
23
- parseOptionMintInstruction,
24
- parseUnwindWriterUnsoldInstruction,
25
17
  type ParsedAcceptAdminInstruction,
26
18
  type ParsedAutoExerciseAllExpiredInstruction,
27
19
  type ParsedAutoExerciseExpiredInstruction,
@@ -854,41 +846,3 @@ export type ParsedOptionProgramInstruction<
854
846
  | ({
855
847
  instructionType: OptionProgramInstruction.WriteToPool;
856
848
  } & ParsedWriteToPoolInstruction<TProgram>);
857
-
858
- export function parseOptionProgramInstruction<
859
- TProgram extends string,
860
- TAccountMetas extends readonly AccountMeta[],
861
- >(
862
- instruction: Instruction<TProgram> &
863
- InstructionWithAccounts<TAccountMetas> &
864
- InstructionWithData<ReadonlyUint8Array>,
865
- ): ParsedOptionProgramInstruction<TProgram> {
866
- const instructionType = identifyOptionProgramInstruction(instruction);
867
-
868
- switch (instructionType) {
869
- case OptionProgramInstruction.BuyFromPool:
870
- return {
871
- instructionType,
872
- ...parseBuyFromPoolInstruction(instruction),
873
- } as ParsedOptionProgramInstruction<TProgram>;
874
- case OptionProgramInstruction.CloseLongToPool:
875
- return {
876
- instructionType,
877
- ...parseCloseLongToPoolInstruction(instruction),
878
- } as ParsedOptionProgramInstruction<TProgram>;
879
- case OptionProgramInstruction.OptionMint:
880
- return {
881
- instructionType,
882
- ...parseOptionMintInstruction(instruction),
883
- } as ParsedOptionProgramInstruction<TProgram>;
884
- case OptionProgramInstruction.UnwindWriterUnsold:
885
- return {
886
- instructionType,
887
- ...parseUnwindWriterUnsoldInstruction(instruction),
888
- } as ParsedOptionProgramInstruction<TProgram>;
889
- default:
890
- throw new Error(
891
- "No parser is registered for this optionProgram instruction.",
892
- );
893
- }
894
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epicentral/sos-sdk",
3
- "version": "0.10.3-beta",
3
+ "version": "0.10.4-beta",
4
4
  "private": false,
5
5
  "description": "Solana Option Standard SDK. The frontend-first SDK for Native Options Trading on Solana. Created by Epicentral Labs.",
6
6
  "type": "module",