@drift-labs/sdk 2.138.0-beta.7 → 2.138.0-beta.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/VERSION +1 -1
- package/lib/browser/events/types.d.ts +5 -2
- package/lib/browser/events/types.js +3 -0
- package/lib/browser/idl/drift.json +269 -1
- package/lib/browser/types.d.ts +59 -0
- package/lib/node/events/types.d.ts +5 -2
- package/lib/node/events/types.d.ts.map +1 -1
- package/lib/node/events/types.js +3 -0
- package/lib/node/idl/drift.json +269 -1
- package/lib/node/types.d.ts +59 -0
- package/lib/node/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/events/types.ts +13 -1
- package/src/idl/drift.json +269 -1
- package/src/types.ts +62 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.138.0-beta.
|
|
1
|
+
2.138.0-beta.9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Commitment, PublicKey, TransactionSignature } from '@solana/web3.js';
|
|
3
|
-
import { DepositRecord, FundingPaymentRecord, FundingRateRecord, LiquidationRecord, NewUserRecord, OrderActionRecord, OrderRecord, SettlePnlRecord, LPRecord, InsuranceFundRecord, SpotInterestRecord, InsuranceFundStakeRecord, CurveRecord, SwapRecord, SpotMarketVaultDepositRecord, SignedMsgOrderRecord, DeleteUserRecord, FuelSweepRecord, FuelSeasonRecord, InsuranceFundSwapRecord, TransferProtocolIfSharesToRevenuePoolRecord } from '../types';
|
|
3
|
+
import { DepositRecord, FundingPaymentRecord, FundingRateRecord, LiquidationRecord, NewUserRecord, OrderActionRecord, OrderRecord, SettlePnlRecord, LPRecord, InsuranceFundRecord, SpotInterestRecord, InsuranceFundStakeRecord, CurveRecord, SwapRecord, SpotMarketVaultDepositRecord, SignedMsgOrderRecord, DeleteUserRecord, FuelSweepRecord, FuelSeasonRecord, InsuranceFundSwapRecord, TransferProtocolIfSharesToRevenuePoolRecord, LPMintRedeemRecord, LPSettleRecord, LPSwapRecord } from '../types';
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
export type EventSubscriptionOptions = {
|
|
6
6
|
address?: PublicKey;
|
|
@@ -47,9 +47,12 @@ export type EventMap = {
|
|
|
47
47
|
FuelSeasonRecord: Event<FuelSeasonRecord>;
|
|
48
48
|
InsuranceFundSwapRecord: Event<InsuranceFundSwapRecord>;
|
|
49
49
|
TransferProtocolIfSharesToRevenuePoolRecord: Event<TransferProtocolIfSharesToRevenuePoolRecord>;
|
|
50
|
+
LPMintRedeemRecord: Event<LPMintRedeemRecord>;
|
|
51
|
+
LPSettleRecord: Event<LPSettleRecord>;
|
|
52
|
+
LPSwapRecord: Event<LPSwapRecord>;
|
|
50
53
|
};
|
|
51
54
|
export type EventType = keyof EventMap;
|
|
52
|
-
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<SignedMsgOrderRecord> | Event<DeleteUserRecord> | Event<FuelSweepRecord> | Event<FuelSeasonRecord> | Event<InsuranceFundSwapRecord> | Event<TransferProtocolIfSharesToRevenuePoolRecord>;
|
|
55
|
+
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<SignedMsgOrderRecord> | Event<DeleteUserRecord> | Event<FuelSweepRecord> | Event<FuelSeasonRecord> | Event<InsuranceFundSwapRecord> | Event<TransferProtocolIfSharesToRevenuePoolRecord> | Event<LPSettleRecord> | Event<LPSwapRecord> | Event<LPMintRedeemRecord>;
|
|
53
56
|
export interface EventSubscriberEvents {
|
|
54
57
|
newEvent: (event: WrappedEvent<EventType>) => void;
|
|
55
58
|
}
|
|
@@ -24,6 +24,9 @@ exports.DefaultEventSubscriptionOptions = {
|
|
|
24
24
|
'FuelSeasonRecord',
|
|
25
25
|
'InsuranceFundSwapRecord',
|
|
26
26
|
'TransferProtocolIfSharesToRevenuePoolRecord',
|
|
27
|
+
'LPMintRedeemRecord',
|
|
28
|
+
'LPSettleRecord',
|
|
29
|
+
'LPSwapRecord',
|
|
27
30
|
],
|
|
28
31
|
maxEventsPerType: 4096,
|
|
29
32
|
orderBy: 'blockchain',
|
|
@@ -14386,6 +14386,271 @@
|
|
|
14386
14386
|
"index": false
|
|
14387
14387
|
}
|
|
14388
14388
|
]
|
|
14389
|
+
},
|
|
14390
|
+
{
|
|
14391
|
+
"name": "LPSettleRecord",
|
|
14392
|
+
"fields": [
|
|
14393
|
+
{
|
|
14394
|
+
"name": "recordId",
|
|
14395
|
+
"type": "u64",
|
|
14396
|
+
"index": false
|
|
14397
|
+
},
|
|
14398
|
+
{
|
|
14399
|
+
"name": "lastTs",
|
|
14400
|
+
"type": "i64",
|
|
14401
|
+
"index": false
|
|
14402
|
+
},
|
|
14403
|
+
{
|
|
14404
|
+
"name": "lastSlot",
|
|
14405
|
+
"type": "u64",
|
|
14406
|
+
"index": false
|
|
14407
|
+
},
|
|
14408
|
+
{
|
|
14409
|
+
"name": "ts",
|
|
14410
|
+
"type": "i64",
|
|
14411
|
+
"index": false
|
|
14412
|
+
},
|
|
14413
|
+
{
|
|
14414
|
+
"name": "slot",
|
|
14415
|
+
"type": "u64",
|
|
14416
|
+
"index": false
|
|
14417
|
+
},
|
|
14418
|
+
{
|
|
14419
|
+
"name": "perpMarketIndex",
|
|
14420
|
+
"type": "u16",
|
|
14421
|
+
"index": false
|
|
14422
|
+
},
|
|
14423
|
+
{
|
|
14424
|
+
"name": "settleToLpAmount",
|
|
14425
|
+
"type": "i64",
|
|
14426
|
+
"index": false
|
|
14427
|
+
},
|
|
14428
|
+
{
|
|
14429
|
+
"name": "perpAmmPnlDelta",
|
|
14430
|
+
"type": "i64",
|
|
14431
|
+
"index": false
|
|
14432
|
+
},
|
|
14433
|
+
{
|
|
14434
|
+
"name": "perpAmmExFeeDelta",
|
|
14435
|
+
"type": "i64",
|
|
14436
|
+
"index": false
|
|
14437
|
+
},
|
|
14438
|
+
{
|
|
14439
|
+
"name": "lpAum",
|
|
14440
|
+
"type": "u128",
|
|
14441
|
+
"index": false
|
|
14442
|
+
},
|
|
14443
|
+
{
|
|
14444
|
+
"name": "lpPrice",
|
|
14445
|
+
"type": "u128",
|
|
14446
|
+
"index": false
|
|
14447
|
+
}
|
|
14448
|
+
]
|
|
14449
|
+
},
|
|
14450
|
+
{
|
|
14451
|
+
"name": "LPSwapRecord",
|
|
14452
|
+
"fields": [
|
|
14453
|
+
{
|
|
14454
|
+
"name": "ts",
|
|
14455
|
+
"type": "i64",
|
|
14456
|
+
"index": false
|
|
14457
|
+
},
|
|
14458
|
+
{
|
|
14459
|
+
"name": "slot",
|
|
14460
|
+
"type": "u64",
|
|
14461
|
+
"index": false
|
|
14462
|
+
},
|
|
14463
|
+
{
|
|
14464
|
+
"name": "authority",
|
|
14465
|
+
"type": "publicKey",
|
|
14466
|
+
"index": false
|
|
14467
|
+
},
|
|
14468
|
+
{
|
|
14469
|
+
"name": "outAmount",
|
|
14470
|
+
"type": "u128",
|
|
14471
|
+
"index": false
|
|
14472
|
+
},
|
|
14473
|
+
{
|
|
14474
|
+
"name": "inAmount",
|
|
14475
|
+
"type": "u128",
|
|
14476
|
+
"index": false
|
|
14477
|
+
},
|
|
14478
|
+
{
|
|
14479
|
+
"name": "outFee",
|
|
14480
|
+
"type": "i128",
|
|
14481
|
+
"index": false
|
|
14482
|
+
},
|
|
14483
|
+
{
|
|
14484
|
+
"name": "inFee",
|
|
14485
|
+
"type": "i128",
|
|
14486
|
+
"index": false
|
|
14487
|
+
},
|
|
14488
|
+
{
|
|
14489
|
+
"name": "outSpotMarketIndex",
|
|
14490
|
+
"type": "u16",
|
|
14491
|
+
"index": false
|
|
14492
|
+
},
|
|
14493
|
+
{
|
|
14494
|
+
"name": "inSpotMarketIndex",
|
|
14495
|
+
"type": "u16",
|
|
14496
|
+
"index": false
|
|
14497
|
+
},
|
|
14498
|
+
{
|
|
14499
|
+
"name": "outConstituentIndex",
|
|
14500
|
+
"type": "u16",
|
|
14501
|
+
"index": false
|
|
14502
|
+
},
|
|
14503
|
+
{
|
|
14504
|
+
"name": "inConstituentIndex",
|
|
14505
|
+
"type": "u16",
|
|
14506
|
+
"index": false
|
|
14507
|
+
},
|
|
14508
|
+
{
|
|
14509
|
+
"name": "outOraclePrice",
|
|
14510
|
+
"type": "i64",
|
|
14511
|
+
"index": false
|
|
14512
|
+
},
|
|
14513
|
+
{
|
|
14514
|
+
"name": "inOraclePrice",
|
|
14515
|
+
"type": "i64",
|
|
14516
|
+
"index": false
|
|
14517
|
+
},
|
|
14518
|
+
{
|
|
14519
|
+
"name": "lastAum",
|
|
14520
|
+
"type": "u128",
|
|
14521
|
+
"index": false
|
|
14522
|
+
},
|
|
14523
|
+
{
|
|
14524
|
+
"name": "lastAumSlot",
|
|
14525
|
+
"type": "u64",
|
|
14526
|
+
"index": false
|
|
14527
|
+
},
|
|
14528
|
+
{
|
|
14529
|
+
"name": "inMarketCurrentWeight",
|
|
14530
|
+
"type": "i64",
|
|
14531
|
+
"index": false
|
|
14532
|
+
},
|
|
14533
|
+
{
|
|
14534
|
+
"name": "outMarketCurrentWeight",
|
|
14535
|
+
"type": "i64",
|
|
14536
|
+
"index": false
|
|
14537
|
+
},
|
|
14538
|
+
{
|
|
14539
|
+
"name": "inMarketTargetWeight",
|
|
14540
|
+
"type": "i64",
|
|
14541
|
+
"index": false
|
|
14542
|
+
},
|
|
14543
|
+
{
|
|
14544
|
+
"name": "outMarketTargetWeight",
|
|
14545
|
+
"type": "i64",
|
|
14546
|
+
"index": false
|
|
14547
|
+
},
|
|
14548
|
+
{
|
|
14549
|
+
"name": "inSwapId",
|
|
14550
|
+
"type": "u64",
|
|
14551
|
+
"index": false
|
|
14552
|
+
},
|
|
14553
|
+
{
|
|
14554
|
+
"name": "outSwapId",
|
|
14555
|
+
"type": "u64",
|
|
14556
|
+
"index": false
|
|
14557
|
+
}
|
|
14558
|
+
]
|
|
14559
|
+
},
|
|
14560
|
+
{
|
|
14561
|
+
"name": "LPMintRedeemRecord",
|
|
14562
|
+
"fields": [
|
|
14563
|
+
{
|
|
14564
|
+
"name": "ts",
|
|
14565
|
+
"type": "i64",
|
|
14566
|
+
"index": false
|
|
14567
|
+
},
|
|
14568
|
+
{
|
|
14569
|
+
"name": "slot",
|
|
14570
|
+
"type": "u64",
|
|
14571
|
+
"index": false
|
|
14572
|
+
},
|
|
14573
|
+
{
|
|
14574
|
+
"name": "authority",
|
|
14575
|
+
"type": "publicKey",
|
|
14576
|
+
"index": false
|
|
14577
|
+
},
|
|
14578
|
+
{
|
|
14579
|
+
"name": "description",
|
|
14580
|
+
"type": "u8",
|
|
14581
|
+
"index": false
|
|
14582
|
+
},
|
|
14583
|
+
{
|
|
14584
|
+
"name": "amount",
|
|
14585
|
+
"type": "u128",
|
|
14586
|
+
"index": false
|
|
14587
|
+
},
|
|
14588
|
+
{
|
|
14589
|
+
"name": "fee",
|
|
14590
|
+
"type": "i128",
|
|
14591
|
+
"index": false
|
|
14592
|
+
},
|
|
14593
|
+
{
|
|
14594
|
+
"name": "spotMarketIndex",
|
|
14595
|
+
"type": "u16",
|
|
14596
|
+
"index": false
|
|
14597
|
+
},
|
|
14598
|
+
{
|
|
14599
|
+
"name": "constituentIndex",
|
|
14600
|
+
"type": "u16",
|
|
14601
|
+
"index": false
|
|
14602
|
+
},
|
|
14603
|
+
{
|
|
14604
|
+
"name": "oraclePrice",
|
|
14605
|
+
"type": "i64",
|
|
14606
|
+
"index": false
|
|
14607
|
+
},
|
|
14608
|
+
{
|
|
14609
|
+
"name": "mint",
|
|
14610
|
+
"type": "publicKey",
|
|
14611
|
+
"index": false
|
|
14612
|
+
},
|
|
14613
|
+
{
|
|
14614
|
+
"name": "lpAmount",
|
|
14615
|
+
"type": "u64",
|
|
14616
|
+
"index": false
|
|
14617
|
+
},
|
|
14618
|
+
{
|
|
14619
|
+
"name": "lpFee",
|
|
14620
|
+
"type": "i64",
|
|
14621
|
+
"index": false
|
|
14622
|
+
},
|
|
14623
|
+
{
|
|
14624
|
+
"name": "lpPrice",
|
|
14625
|
+
"type": "u128",
|
|
14626
|
+
"index": false
|
|
14627
|
+
},
|
|
14628
|
+
{
|
|
14629
|
+
"name": "mintRedeemId",
|
|
14630
|
+
"type": "u64",
|
|
14631
|
+
"index": false
|
|
14632
|
+
},
|
|
14633
|
+
{
|
|
14634
|
+
"name": "lastAum",
|
|
14635
|
+
"type": "u128",
|
|
14636
|
+
"index": false
|
|
14637
|
+
},
|
|
14638
|
+
{
|
|
14639
|
+
"name": "lastAumSlot",
|
|
14640
|
+
"type": "u64",
|
|
14641
|
+
"index": false
|
|
14642
|
+
},
|
|
14643
|
+
{
|
|
14644
|
+
"name": "inMarketCurrentWeight",
|
|
14645
|
+
"type": "i64",
|
|
14646
|
+
"index": false
|
|
14647
|
+
},
|
|
14648
|
+
{
|
|
14649
|
+
"name": "inMarketTargetWeight",
|
|
14650
|
+
"type": "i64",
|
|
14651
|
+
"index": false
|
|
14652
|
+
}
|
|
14653
|
+
]
|
|
14389
14654
|
}
|
|
14390
14655
|
],
|
|
14391
14656
|
"errors": [
|
|
@@ -15974,5 +16239,8 @@
|
|
|
15974
16239
|
"name": "InvalidIfRebalanceSwap",
|
|
15975
16240
|
"msg": "Invalid If Rebalance Swap"
|
|
15976
16241
|
}
|
|
15977
|
-
]
|
|
16242
|
+
],
|
|
16243
|
+
"metadata": {
|
|
16244
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
|
|
16245
|
+
}
|
|
15978
16246
|
}
|
package/lib/browser/types.d.ts
CHANGED
|
@@ -840,6 +840,65 @@ export type TransferProtocolIfSharesToRevenuePoolRecord = {
|
|
|
840
840
|
protocolSharesAfter: BN;
|
|
841
841
|
transferAmount: BN;
|
|
842
842
|
};
|
|
843
|
+
export type LPSwapRecord = {
|
|
844
|
+
ts: BN;
|
|
845
|
+
slot: BN;
|
|
846
|
+
authority: PublicKey;
|
|
847
|
+
outAmount: BN;
|
|
848
|
+
inAmount: BN;
|
|
849
|
+
outFee: BN;
|
|
850
|
+
inFee: BN;
|
|
851
|
+
outSpotMarketIndex: number;
|
|
852
|
+
inSpotMarketIndex: number;
|
|
853
|
+
outConstituentIndex: number;
|
|
854
|
+
inConstituentIndex: number;
|
|
855
|
+
outOraclePrice: BN;
|
|
856
|
+
inOraclePrice: BN;
|
|
857
|
+
outMint: PublicKey;
|
|
858
|
+
inMint: PublicKey;
|
|
859
|
+
lastAum: BN;
|
|
860
|
+
lastAumSlot: BN;
|
|
861
|
+
inMarketCurrentWeight: BN;
|
|
862
|
+
outMarketCurrentWeight: BN;
|
|
863
|
+
inMarketTargetWeight: BN;
|
|
864
|
+
outMarketTargetWeight: BN;
|
|
865
|
+
inSwapId: BN;
|
|
866
|
+
outSwapId: BN;
|
|
867
|
+
};
|
|
868
|
+
export type LPMintRedeemRecord = {
|
|
869
|
+
ts: BN;
|
|
870
|
+
slot: BN;
|
|
871
|
+
authority: PublicKey;
|
|
872
|
+
description: number;
|
|
873
|
+
amount: BN;
|
|
874
|
+
fee: BN;
|
|
875
|
+
spotMarketIndex: number;
|
|
876
|
+
constituentIndex: number;
|
|
877
|
+
oraclePrice: BN;
|
|
878
|
+
mint: PublicKey;
|
|
879
|
+
lpMint: PublicKey;
|
|
880
|
+
lpAmount: BN;
|
|
881
|
+
lpFee: BN;
|
|
882
|
+
lpPrice: BN;
|
|
883
|
+
mintRedeemId: BN;
|
|
884
|
+
lastAum: BN;
|
|
885
|
+
lastAumSlot: BN;
|
|
886
|
+
inMarketCurrentWeight: BN;
|
|
887
|
+
inMarketTargetWeight: BN;
|
|
888
|
+
};
|
|
889
|
+
export type LPSettleRecord = {
|
|
890
|
+
recordId: BN;
|
|
891
|
+
lastTs: BN;
|
|
892
|
+
lastSlot: BN;
|
|
893
|
+
ts: BN;
|
|
894
|
+
slot: BN;
|
|
895
|
+
perpMarketIndex: number;
|
|
896
|
+
settleToLpAmount: BN;
|
|
897
|
+
perpAmmPnlDelta: BN;
|
|
898
|
+
perpAmmExFeeDelta: BN;
|
|
899
|
+
lpAum: BN;
|
|
900
|
+
lpPrice: BN;
|
|
901
|
+
};
|
|
843
902
|
export type StateAccount = {
|
|
844
903
|
admin: PublicKey;
|
|
845
904
|
exchangeStatus: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Commitment, PublicKey, TransactionSignature } from '@solana/web3.js';
|
|
3
|
-
import { DepositRecord, FundingPaymentRecord, FundingRateRecord, LiquidationRecord, NewUserRecord, OrderActionRecord, OrderRecord, SettlePnlRecord, LPRecord, InsuranceFundRecord, SpotInterestRecord, InsuranceFundStakeRecord, CurveRecord, SwapRecord, SpotMarketVaultDepositRecord, SignedMsgOrderRecord, DeleteUserRecord, FuelSweepRecord, FuelSeasonRecord, InsuranceFundSwapRecord, TransferProtocolIfSharesToRevenuePoolRecord } from '../types';
|
|
3
|
+
import { DepositRecord, FundingPaymentRecord, FundingRateRecord, LiquidationRecord, NewUserRecord, OrderActionRecord, OrderRecord, SettlePnlRecord, LPRecord, InsuranceFundRecord, SpotInterestRecord, InsuranceFundStakeRecord, CurveRecord, SwapRecord, SpotMarketVaultDepositRecord, SignedMsgOrderRecord, DeleteUserRecord, FuelSweepRecord, FuelSeasonRecord, InsuranceFundSwapRecord, TransferProtocolIfSharesToRevenuePoolRecord, LPMintRedeemRecord, LPSettleRecord, LPSwapRecord } from '../types';
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
export type EventSubscriptionOptions = {
|
|
6
6
|
address?: PublicKey;
|
|
@@ -47,9 +47,12 @@ export type EventMap = {
|
|
|
47
47
|
FuelSeasonRecord: Event<FuelSeasonRecord>;
|
|
48
48
|
InsuranceFundSwapRecord: Event<InsuranceFundSwapRecord>;
|
|
49
49
|
TransferProtocolIfSharesToRevenuePoolRecord: Event<TransferProtocolIfSharesToRevenuePoolRecord>;
|
|
50
|
+
LPMintRedeemRecord: Event<LPMintRedeemRecord>;
|
|
51
|
+
LPSettleRecord: Event<LPSettleRecord>;
|
|
52
|
+
LPSwapRecord: Event<LPSwapRecord>;
|
|
50
53
|
};
|
|
51
54
|
export type EventType = keyof EventMap;
|
|
52
|
-
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<SignedMsgOrderRecord> | Event<DeleteUserRecord> | Event<FuelSweepRecord> | Event<FuelSeasonRecord> | Event<InsuranceFundSwapRecord> | Event<TransferProtocolIfSharesToRevenuePoolRecord>;
|
|
55
|
+
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<SignedMsgOrderRecord> | Event<DeleteUserRecord> | Event<FuelSweepRecord> | Event<FuelSeasonRecord> | Event<InsuranceFundSwapRecord> | Event<TransferProtocolIfSharesToRevenuePoolRecord> | Event<LPSettleRecord> | Event<LPSwapRecord> | Event<LPMintRedeemRecord>;
|
|
53
56
|
export interface EventSubscriberEvents {
|
|
54
57
|
newEvent: (event: WrappedEvent<EventType>) => void;
|
|
55
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/events/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EACN,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,WAAW,EACX,UAAU,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,2CAA2C,EAC3C,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,MAAM,wBAAwB,GAAG;IACtC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,QAAQ,CAAC,EAAE,+BAA+B,CAAC;IAC3C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAGtC,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/events/types.ts"],"names":[],"mappings":";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1B,wBAAwB,GACxB,6BAA6B,CAAC"}
|
package/lib/node/events/types.js
CHANGED
|
@@ -24,6 +24,9 @@ exports.DefaultEventSubscriptionOptions = {
|
|
|
24
24
|
'FuelSeasonRecord',
|
|
25
25
|
'InsuranceFundSwapRecord',
|
|
26
26
|
'TransferProtocolIfSharesToRevenuePoolRecord',
|
|
27
|
+
'LPMintRedeemRecord',
|
|
28
|
+
'LPSettleRecord',
|
|
29
|
+
'LPSwapRecord',
|
|
27
30
|
],
|
|
28
31
|
maxEventsPerType: 4096,
|
|
29
32
|
orderBy: 'blockchain',
|