@drift-labs/sdk 2.98.0-beta.7 → 2.98.0-beta.8

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.98.0-beta.7
1
+ 2.98.0-beta.8
@@ -44,7 +44,7 @@ export type EventMap = {
44
44
  SwiftOrderRecord: Event<SwiftOrderRecord>;
45
45
  };
46
46
  export type EventType = keyof EventMap;
47
- export type DriftEvent = Event<DepositRecord> | Event<FundingPaymentRecord> | Event<LiquidationRecord> | Event<FundingRateRecord> | Event<OrderRecord> | Event<OrderActionRecord> | Event<SettlePnlRecord> | Event<NewUserRecord> | Event<LPRecord> | Event<InsuranceFundRecord> | Event<SpotInterestRecord> | Event<InsuranceFundStakeRecord> | Event<CurveRecord> | Event<SwapRecord> | Event<SpotMarketVaultDepositRecord>;
47
+ export type DriftEvent = Event<DepositRecord> | Event<FundingPaymentRecord> | Event<LiquidationRecord> | Event<FundingRateRecord> | Event<OrderRecord> | Event<OrderActionRecord> | Event<SettlePnlRecord> | Event<NewUserRecord> | Event<LPRecord> | Event<InsuranceFundRecord> | Event<SpotInterestRecord> | Event<InsuranceFundStakeRecord> | Event<CurveRecord> | Event<SwapRecord> | Event<SpotMarketVaultDepositRecord> | Event<SwiftOrderRecord>;
48
48
  export interface EventSubscriberEvents {
49
49
  newEvent: (event: WrappedEvent<EventType>) => void;
50
50
  }
@@ -643,6 +643,7 @@ export type SettlePnlRecord = {
643
643
  explanation: SettlePnlExplanation;
644
644
  };
645
645
  export type SwiftOrderRecord = {
646
+ ts: BN;
646
647
  user: PublicKey;
647
648
  hash: string;
648
649
  matchingOrderParams: OrderParams;
@@ -44,7 +44,7 @@ export type EventMap = {
44
44
  SwiftOrderRecord: Event<SwiftOrderRecord>;
45
45
  };
46
46
  export type EventType = keyof EventMap;
47
- export type DriftEvent = Event<DepositRecord> | Event<FundingPaymentRecord> | Event<LiquidationRecord> | Event<FundingRateRecord> | Event<OrderRecord> | Event<OrderActionRecord> | Event<SettlePnlRecord> | Event<NewUserRecord> | Event<LPRecord> | Event<InsuranceFundRecord> | Event<SpotInterestRecord> | Event<InsuranceFundStakeRecord> | Event<CurveRecord> | Event<SwapRecord> | Event<SpotMarketVaultDepositRecord>;
47
+ export type DriftEvent = Event<DepositRecord> | Event<FundingPaymentRecord> | Event<LiquidationRecord> | Event<FundingRateRecord> | Event<OrderRecord> | Event<OrderActionRecord> | Event<SettlePnlRecord> | Event<NewUserRecord> | Event<LPRecord> | Event<InsuranceFundRecord> | Event<SpotInterestRecord> | Event<InsuranceFundStakeRecord> | Event<CurveRecord> | Event<SwapRecord> | Event<SpotMarketVaultDepositRecord> | Event<SwiftOrderRecord>;
48
48
  export interface EventSubscriberEvents {
49
49
  newEvent: (event: WrappedEvent<EventType>) => void;
50
50
  }
@@ -643,6 +643,7 @@ export type SettlePnlRecord = {
643
643
  explanation: SettlePnlExplanation;
644
644
  };
645
645
  export type SwiftOrderRecord = {
646
+ ts: BN;
646
647
  user: PublicKey;
647
648
  hash: string;
648
649
  matchingOrderParams: OrderParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.98.0-beta.7",
3
+ "version": "2.98.0-beta.8",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -114,7 +114,8 @@ export type DriftEvent =
114
114
  | Event<InsuranceFundStakeRecord>
115
115
  | Event<CurveRecord>
116
116
  | Event<SwapRecord>
117
- | Event<SpotMarketVaultDepositRecord>;
117
+ | Event<SpotMarketVaultDepositRecord>
118
+ | Event<SwiftOrderRecord>;
118
119
 
119
120
  export interface EventSubscriberEvents {
120
121
  newEvent: (event: WrappedEvent<EventType>) => void;
package/src/types.ts CHANGED
@@ -542,6 +542,7 @@ export type SettlePnlRecord = {
542
542
  };
543
543
 
544
544
  export type SwiftOrderRecord = {
545
+ ts: BN;
545
546
  user: PublicKey;
546
547
  hash: string;
547
548
  matchingOrderParams: OrderParams;