@t2000/sdk 0.19.21 → 0.19.23

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.
@@ -174,37 +174,6 @@ interface TransactionRecord {
174
174
  gasCost?: number;
175
175
  gasMethod?: GasMethod;
176
176
  }
177
- interface SentinelAgent {
178
- id: string;
179
- objectId: string;
180
- name: string;
181
- model: string;
182
- systemPrompt: string;
183
- attackFee: bigint;
184
- prizePool: bigint;
185
- totalAttacks: number;
186
- successfulBreaches: number;
187
- state: string;
188
- }
189
- interface SentinelVerdict {
190
- success: boolean;
191
- score: number;
192
- agentResponse: string;
193
- juryResponse: string;
194
- funResponse: string;
195
- signature: string;
196
- timestampMs: number;
197
- }
198
- interface SentinelAttackResult {
199
- attackObjectId: string;
200
- sentinelId: string;
201
- prompt: string;
202
- verdict: SentinelVerdict;
203
- requestTx: string;
204
- settleTx: string;
205
- won: boolean;
206
- feePaid: number;
207
- }
208
177
  interface InvestmentRecord {
209
178
  id: string;
210
179
  type: 'buy' | 'sell';
@@ -440,17 +409,6 @@ interface PayResult {
440
409
  };
441
410
  }
442
411
 
443
- /**
444
- * Abstract signing interface that decouples the SDK from any specific
445
- * key management strategy (Ed25519 keypair, zkLogin, multisig, …).
446
- */
447
- interface TransactionSigner {
448
- getAddress(): string;
449
- signTransaction(txBytes: Uint8Array): Promise<{
450
- signature: string;
451
- }>;
452
- }
453
-
454
412
  type AdapterCapability = 'save' | 'withdraw' | 'borrow' | 'repay' | 'swap' | 'perps';
455
413
  /**
456
414
  * Describes a protocol for indexer event classification.
@@ -618,189 +576,9 @@ interface PerpsAdapter {
618
576
  closePosition(market: string): Promise<PerpsTradeResult>;
619
577
  }
620
578
 
621
- declare class ProtocolRegistry {
622
- private lending;
623
- private swap;
624
- registerLending(adapter: LendingAdapter): void;
625
- registerSwap(adapter: SwapAdapter): void;
626
- bestSaveRate(asset: string): Promise<{
627
- adapter: LendingAdapter;
628
- rate: LendingRates;
629
- }>;
630
- bestBorrowRate(asset: string, opts?: {
631
- requireSameAssetBorrow?: boolean;
632
- }): Promise<{
633
- adapter: LendingAdapter;
634
- rate: LendingRates;
635
- }>;
636
- bestSwapQuote(from: string, to: string, amount: number): Promise<{
637
- adapter: SwapAdapter;
638
- quote: SwapQuote;
639
- }>;
640
- bestSaveRateAcrossAssets(): Promise<{
641
- adapter: LendingAdapter;
642
- rate: LendingRates;
643
- asset: string;
644
- }>;
645
- allRatesAcrossAssets(): Promise<Array<{
646
- protocol: string;
647
- protocolId: string;
648
- asset: string;
649
- rates: LendingRates;
650
- }>>;
651
- allRates(asset: string): Promise<Array<{
652
- protocol: string;
653
- protocolId: string;
654
- rates: LendingRates;
655
- }>>;
656
- allPositions(address: string): Promise<Array<{
657
- protocol: string;
658
- protocolId: string;
659
- positions: AdapterPositions;
660
- }>>;
661
- getLending(id: string): LendingAdapter | undefined;
662
- getSwap(id: string): SwapAdapter | undefined;
663
- listLending(): LendingAdapter[];
664
- listSwap(): SwapAdapter[];
665
- }
666
-
667
- declare const descriptor$3: ProtocolDescriptor;
668
- declare class NaviAdapter implements LendingAdapter {
669
- readonly id = "navi";
670
- readonly name = "NAVI Protocol";
671
- readonly version = "1.0.0";
672
- readonly capabilities: readonly AdapterCapability[];
673
- readonly supportedAssets: readonly string[];
674
- readonly supportsSameAssetBorrow = true;
675
- private client;
676
- init(client: SuiJsonRpcClient): Promise<void>;
677
- initSync(client: SuiJsonRpcClient): void;
678
- getRates(asset: string): Promise<LendingRates>;
679
- getPositions(address: string): Promise<AdapterPositions>;
680
- getHealth(address: string): Promise<HealthInfo>;
681
- buildSaveTx(address: string, amount: number, asset: string, options?: {
682
- collectFee?: boolean;
683
- sponsored?: boolean;
684
- }): Promise<AdapterTxResult>;
685
- buildWithdrawTx(address: string, amount: number, asset: string, options?: {
686
- sponsored?: boolean;
687
- }): Promise<AdapterTxResult & {
688
- effectiveAmount: number;
689
- }>;
690
- buildBorrowTx(address: string, amount: number, asset: string, options?: {
691
- collectFee?: boolean;
692
- sponsored?: boolean;
693
- }): Promise<AdapterTxResult>;
694
- buildRepayTx(address: string, amount: number, asset: string, options?: {
695
- sponsored?: boolean;
696
- skipOracle?: boolean;
697
- }): Promise<AdapterTxResult>;
698
- maxWithdraw(address: string, _asset: string): Promise<MaxWithdrawResult>;
699
- maxBorrow(address: string, _asset: string): Promise<MaxBorrowResult>;
700
- addWithdrawToTx(tx: Transaction, address: string, amount: number, asset: string): Promise<{
701
- coin: TransactionObjectArgument;
702
- effectiveAmount: number;
703
- }>;
704
- addSaveToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string, options?: {
705
- collectFee?: boolean;
706
- }): Promise<void>;
707
- addRepayToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string): Promise<void>;
708
- getPendingRewards(address: string): Promise<PendingReward[]>;
709
- addClaimRewardsToTx(tx: Transaction, address: string): Promise<PendingReward[]>;
710
- }
711
-
712
- declare const descriptor$2: ProtocolDescriptor;
713
- declare class CetusAdapter implements SwapAdapter {
714
- readonly id = "cetus";
715
- readonly name = "Cetus";
716
- readonly version = "1.0.0";
717
- readonly capabilities: readonly AdapterCapability[];
718
- private client;
719
- init(client: SuiJsonRpcClient): Promise<void>;
720
- initSync(client: SuiJsonRpcClient): void;
721
- getQuote(from: string, to: string, amount: number): Promise<SwapQuote>;
722
- buildSwapTx(address: string, from: string, to: string, amount: number, maxSlippageBps?: number): Promise<AdapterTxResult & {
723
- estimatedOut: number;
724
- toDecimals: number;
725
- }>;
726
- getSupportedPairs(): Array<{
727
- from: string;
728
- to: string;
729
- }>;
730
- getPoolPrice(): Promise<number>;
731
- addSwapToTx(tx: Transaction, address: string, inputCoin: TransactionObjectArgument, from: string, to: string, amount: number, maxSlippageBps?: number): Promise<{
732
- outputCoin: TransactionObjectArgument;
733
- estimatedOut: number;
734
- toDecimals: number;
735
- }>;
736
- }
737
-
738
- declare const descriptor$1: ProtocolDescriptor;
739
- declare class SuilendAdapter implements LendingAdapter {
740
- readonly id = "suilend";
741
- readonly name = "Suilend";
742
- readonly version = "3.0.0";
743
- readonly capabilities: readonly AdapterCapability[];
744
- readonly supportedAssets: readonly string[];
745
- readonly supportsSameAssetBorrow = false;
746
- private client;
747
- private sdkClient;
748
- init(client: SuiJsonRpcClient): Promise<void>;
749
- initSync(client: SuiJsonRpcClient): void;
750
- private getSdkClient;
751
- private resolveSymbol;
752
- getRates(asset: string): Promise<LendingRates>;
753
- getPositions(address: string): Promise<AdapterPositions>;
754
- getHealth(address: string): Promise<HealthInfo>;
755
- buildSaveTx(address: string, amount: number, asset: string, options?: {
756
- collectFee?: boolean;
757
- }): Promise<AdapterTxResult>;
758
- buildWithdrawTx(address: string, amount: number, asset: string): Promise<AdapterTxResult & {
759
- effectiveAmount: number;
760
- }>;
761
- addWithdrawToTx(tx: Transaction, address: string, amount: number, asset: string): Promise<{
762
- coin: TransactionObjectArgument;
763
- effectiveAmount: number;
764
- }>;
765
- addSaveToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string, options?: {
766
- collectFee?: boolean;
767
- }): Promise<void>;
768
- buildBorrowTx(address: string, amount: number, asset: string, options?: {
769
- collectFee?: boolean;
770
- }): Promise<AdapterTxResult>;
771
- buildRepayTx(address: string, amount: number, asset: string): Promise<AdapterTxResult>;
772
- addRepayToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string): Promise<void>;
773
- private resolveWithdrawCTokens;
774
- maxWithdraw(address: string, _asset: string): Promise<{
775
- maxAmount: number;
776
- healthFactorAfter: number;
777
- currentHF: number;
778
- }>;
779
- maxBorrow(address: string, _asset: string): Promise<{
780
- maxAmount: number;
781
- healthFactorAfter: number;
782
- currentHF: number;
783
- }>;
784
- private fetchAllCoins;
785
- getPendingRewards(address: string): Promise<PendingReward[]>;
786
- addClaimRewardsToTx(tx: Transaction, address: string): Promise<PendingReward[]>;
787
- }
788
-
789
- declare const descriptor: ProtocolDescriptor;
790
- declare function listSentinels(): Promise<SentinelAgent[]>;
791
- declare function getSentinelInfo(client: SuiJsonRpcClient, sentinelObjectId: string): Promise<SentinelAgent>;
792
- declare function requestAttack(client: SuiJsonRpcClient, signer: TransactionSigner, sentinelObjectId: string, feeMist: bigint): Promise<{
793
- attackObjectId: string;
794
- digest: string;
795
- }>;
796
- declare function submitPrompt(agentId: string, attackObjectId: string, prompt: string): Promise<SentinelVerdict>;
797
- declare function settleAttack(client: SuiJsonRpcClient, signer: TransactionSigner, sentinelObjectId: string, attackObjectId: string, prompt: string, verdict: SentinelVerdict): Promise<{
798
- digest: string;
799
- success: boolean;
800
- }>;
801
- declare function attack(client: SuiJsonRpcClient, signer: TransactionSigner, sentinelId: string, prompt: string, feeMist?: bigint): Promise<SentinelAttackResult>;
802
-
803
- /** All registered protocol descriptors — used by the indexer for event classification */
579
+ declare const naviDescriptor: ProtocolDescriptor;
580
+ declare const suilendDescriptor: ProtocolDescriptor;
581
+ declare const cetusDescriptor: ProtocolDescriptor;
804
582
  declare const allDescriptors: ProtocolDescriptor[];
805
583
 
806
- export { type PerpsPosition as $, type AutoInvestSchedule as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type SentinelAttackResult as G, type HealthFactorResult as H, type InvestmentRecord as I, type GasMethod as J, type AdapterCapability as K, type LendingAdapter as L, type MaxWithdrawResult as M, type AdapterPositions as N, type AdapterTxResult as O, type PayOptions as P, type AssetRates as Q, type RepayResult as R, type StrategyDefinition as S, type TransactionSigner as T, CetusAdapter as U, type GasReserve as V, type WithdrawResult as W, type HealthInfo as X, type InvestRebalanceMove as Y, NaviAdapter as Z, type PerpsAdapter as _, type AutoInvestStatus as a, type PerpsPositionsResult as a0, type PerpsTradeResult as a1, type PositionEntry as a2, type PositionSide as a3, type ProtocolDescriptor as a4, ProtocolRegistry as a5, type RebalanceStep as a6, type SentinelVerdict as a7, SuilendAdapter as a8, type SwapQuote as a9, allDescriptors as aa, descriptor$2 as ab, getSentinelInfo as ac, listSentinels as ad, descriptor$3 as ae, requestAttack as af, attack as ag, descriptor as ah, settleAttack as ai, submitPrompt as aj, descriptor$1 as ak, type T2000Options as b, type PayResult as c, type SendResult as d, type TransactionRecord as e, type SwapAdapter as f, type SaveResult as g, type BorrowResult as h, type MaxBorrowResult as i, type SwapResult as j, type InvestResult as k, type InvestEarnResult as l, type InvestRebalanceResult as m, type PendingReward$1 as n, type StrategyBuyResult as o, type StrategySellResult as p, type StrategyRebalanceResult as q, type StrategyStatusResult as r, type AutoInvestRunResult as s, type PortfolioResult as t, type InvestmentPosition as u, type PositionsResult as v, type RatesResult as w, type LendingRates as x, type RebalanceResult as y, type SentinelAgent as z };
584
+ export { type ProtocolDescriptor as $, type AutoInvestSchedule as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type GasMethod as G, type HealthFactorResult as H, type InvestmentRecord as I, type AdapterTxResult as J, type AssetRates as K, type LendingAdapter as L, type MaxWithdrawResult as M, type GasReserve as N, type HealthInfo as O, type PayOptions as P, type InvestRebalanceMove as Q, type RepayResult as R, type StrategyDefinition as S, type T2000Options as T, type PerpsAdapter as U, type PerpsPosition as V, type WithdrawResult as W, type PerpsPositionsResult as X, type PerpsTradeResult as Y, type PositionEntry as Z, type PositionSide as _, type AutoInvestStatus as a, type RebalanceStep as a0, type SwapQuote as a1, allDescriptors as a2, cetusDescriptor as a3, naviDescriptor as a4, suilendDescriptor as a5, type PendingReward as a6, type PayResult as b, type SendResult as c, type TransactionRecord as d, type SwapAdapter as e, type SaveResult as f, type BorrowResult as g, type MaxBorrowResult as h, type SwapResult as i, type InvestResult as j, type InvestEarnResult as k, type InvestRebalanceResult as l, type PendingReward$1 as m, type StrategyBuyResult as n, type StrategySellResult as o, type StrategyRebalanceResult as p, type StrategyStatusResult as q, type AutoInvestRunResult as r, type PortfolioResult as s, type InvestmentPosition as t, type PositionsResult as u, type RatesResult as v, type LendingRates as w, type RebalanceResult as x, type AdapterCapability as y, type AdapterPositions as z };
@@ -174,37 +174,6 @@ interface TransactionRecord {
174
174
  gasCost?: number;
175
175
  gasMethod?: GasMethod;
176
176
  }
177
- interface SentinelAgent {
178
- id: string;
179
- objectId: string;
180
- name: string;
181
- model: string;
182
- systemPrompt: string;
183
- attackFee: bigint;
184
- prizePool: bigint;
185
- totalAttacks: number;
186
- successfulBreaches: number;
187
- state: string;
188
- }
189
- interface SentinelVerdict {
190
- success: boolean;
191
- score: number;
192
- agentResponse: string;
193
- juryResponse: string;
194
- funResponse: string;
195
- signature: string;
196
- timestampMs: number;
197
- }
198
- interface SentinelAttackResult {
199
- attackObjectId: string;
200
- sentinelId: string;
201
- prompt: string;
202
- verdict: SentinelVerdict;
203
- requestTx: string;
204
- settleTx: string;
205
- won: boolean;
206
- feePaid: number;
207
- }
208
177
  interface InvestmentRecord {
209
178
  id: string;
210
179
  type: 'buy' | 'sell';
@@ -440,17 +409,6 @@ interface PayResult {
440
409
  };
441
410
  }
442
411
 
443
- /**
444
- * Abstract signing interface that decouples the SDK from any specific
445
- * key management strategy (Ed25519 keypair, zkLogin, multisig, …).
446
- */
447
- interface TransactionSigner {
448
- getAddress(): string;
449
- signTransaction(txBytes: Uint8Array): Promise<{
450
- signature: string;
451
- }>;
452
- }
453
-
454
412
  type AdapterCapability = 'save' | 'withdraw' | 'borrow' | 'repay' | 'swap' | 'perps';
455
413
  /**
456
414
  * Describes a protocol for indexer event classification.
@@ -618,189 +576,9 @@ interface PerpsAdapter {
618
576
  closePosition(market: string): Promise<PerpsTradeResult>;
619
577
  }
620
578
 
621
- declare class ProtocolRegistry {
622
- private lending;
623
- private swap;
624
- registerLending(adapter: LendingAdapter): void;
625
- registerSwap(adapter: SwapAdapter): void;
626
- bestSaveRate(asset: string): Promise<{
627
- adapter: LendingAdapter;
628
- rate: LendingRates;
629
- }>;
630
- bestBorrowRate(asset: string, opts?: {
631
- requireSameAssetBorrow?: boolean;
632
- }): Promise<{
633
- adapter: LendingAdapter;
634
- rate: LendingRates;
635
- }>;
636
- bestSwapQuote(from: string, to: string, amount: number): Promise<{
637
- adapter: SwapAdapter;
638
- quote: SwapQuote;
639
- }>;
640
- bestSaveRateAcrossAssets(): Promise<{
641
- adapter: LendingAdapter;
642
- rate: LendingRates;
643
- asset: string;
644
- }>;
645
- allRatesAcrossAssets(): Promise<Array<{
646
- protocol: string;
647
- protocolId: string;
648
- asset: string;
649
- rates: LendingRates;
650
- }>>;
651
- allRates(asset: string): Promise<Array<{
652
- protocol: string;
653
- protocolId: string;
654
- rates: LendingRates;
655
- }>>;
656
- allPositions(address: string): Promise<Array<{
657
- protocol: string;
658
- protocolId: string;
659
- positions: AdapterPositions;
660
- }>>;
661
- getLending(id: string): LendingAdapter | undefined;
662
- getSwap(id: string): SwapAdapter | undefined;
663
- listLending(): LendingAdapter[];
664
- listSwap(): SwapAdapter[];
665
- }
666
-
667
- declare const descriptor$3: ProtocolDescriptor;
668
- declare class NaviAdapter implements LendingAdapter {
669
- readonly id = "navi";
670
- readonly name = "NAVI Protocol";
671
- readonly version = "1.0.0";
672
- readonly capabilities: readonly AdapterCapability[];
673
- readonly supportedAssets: readonly string[];
674
- readonly supportsSameAssetBorrow = true;
675
- private client;
676
- init(client: SuiJsonRpcClient): Promise<void>;
677
- initSync(client: SuiJsonRpcClient): void;
678
- getRates(asset: string): Promise<LendingRates>;
679
- getPositions(address: string): Promise<AdapterPositions>;
680
- getHealth(address: string): Promise<HealthInfo>;
681
- buildSaveTx(address: string, amount: number, asset: string, options?: {
682
- collectFee?: boolean;
683
- sponsored?: boolean;
684
- }): Promise<AdapterTxResult>;
685
- buildWithdrawTx(address: string, amount: number, asset: string, options?: {
686
- sponsored?: boolean;
687
- }): Promise<AdapterTxResult & {
688
- effectiveAmount: number;
689
- }>;
690
- buildBorrowTx(address: string, amount: number, asset: string, options?: {
691
- collectFee?: boolean;
692
- sponsored?: boolean;
693
- }): Promise<AdapterTxResult>;
694
- buildRepayTx(address: string, amount: number, asset: string, options?: {
695
- sponsored?: boolean;
696
- skipOracle?: boolean;
697
- }): Promise<AdapterTxResult>;
698
- maxWithdraw(address: string, _asset: string): Promise<MaxWithdrawResult>;
699
- maxBorrow(address: string, _asset: string): Promise<MaxBorrowResult>;
700
- addWithdrawToTx(tx: Transaction, address: string, amount: number, asset: string): Promise<{
701
- coin: TransactionObjectArgument;
702
- effectiveAmount: number;
703
- }>;
704
- addSaveToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string, options?: {
705
- collectFee?: boolean;
706
- }): Promise<void>;
707
- addRepayToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string): Promise<void>;
708
- getPendingRewards(address: string): Promise<PendingReward[]>;
709
- addClaimRewardsToTx(tx: Transaction, address: string): Promise<PendingReward[]>;
710
- }
711
-
712
- declare const descriptor$2: ProtocolDescriptor;
713
- declare class CetusAdapter implements SwapAdapter {
714
- readonly id = "cetus";
715
- readonly name = "Cetus";
716
- readonly version = "1.0.0";
717
- readonly capabilities: readonly AdapterCapability[];
718
- private client;
719
- init(client: SuiJsonRpcClient): Promise<void>;
720
- initSync(client: SuiJsonRpcClient): void;
721
- getQuote(from: string, to: string, amount: number): Promise<SwapQuote>;
722
- buildSwapTx(address: string, from: string, to: string, amount: number, maxSlippageBps?: number): Promise<AdapterTxResult & {
723
- estimatedOut: number;
724
- toDecimals: number;
725
- }>;
726
- getSupportedPairs(): Array<{
727
- from: string;
728
- to: string;
729
- }>;
730
- getPoolPrice(): Promise<number>;
731
- addSwapToTx(tx: Transaction, address: string, inputCoin: TransactionObjectArgument, from: string, to: string, amount: number, maxSlippageBps?: number): Promise<{
732
- outputCoin: TransactionObjectArgument;
733
- estimatedOut: number;
734
- toDecimals: number;
735
- }>;
736
- }
737
-
738
- declare const descriptor$1: ProtocolDescriptor;
739
- declare class SuilendAdapter implements LendingAdapter {
740
- readonly id = "suilend";
741
- readonly name = "Suilend";
742
- readonly version = "3.0.0";
743
- readonly capabilities: readonly AdapterCapability[];
744
- readonly supportedAssets: readonly string[];
745
- readonly supportsSameAssetBorrow = false;
746
- private client;
747
- private sdkClient;
748
- init(client: SuiJsonRpcClient): Promise<void>;
749
- initSync(client: SuiJsonRpcClient): void;
750
- private getSdkClient;
751
- private resolveSymbol;
752
- getRates(asset: string): Promise<LendingRates>;
753
- getPositions(address: string): Promise<AdapterPositions>;
754
- getHealth(address: string): Promise<HealthInfo>;
755
- buildSaveTx(address: string, amount: number, asset: string, options?: {
756
- collectFee?: boolean;
757
- }): Promise<AdapterTxResult>;
758
- buildWithdrawTx(address: string, amount: number, asset: string): Promise<AdapterTxResult & {
759
- effectiveAmount: number;
760
- }>;
761
- addWithdrawToTx(tx: Transaction, address: string, amount: number, asset: string): Promise<{
762
- coin: TransactionObjectArgument;
763
- effectiveAmount: number;
764
- }>;
765
- addSaveToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string, options?: {
766
- collectFee?: boolean;
767
- }): Promise<void>;
768
- buildBorrowTx(address: string, amount: number, asset: string, options?: {
769
- collectFee?: boolean;
770
- }): Promise<AdapterTxResult>;
771
- buildRepayTx(address: string, amount: number, asset: string): Promise<AdapterTxResult>;
772
- addRepayToTx(tx: Transaction, address: string, coin: TransactionObjectArgument, asset: string): Promise<void>;
773
- private resolveWithdrawCTokens;
774
- maxWithdraw(address: string, _asset: string): Promise<{
775
- maxAmount: number;
776
- healthFactorAfter: number;
777
- currentHF: number;
778
- }>;
779
- maxBorrow(address: string, _asset: string): Promise<{
780
- maxAmount: number;
781
- healthFactorAfter: number;
782
- currentHF: number;
783
- }>;
784
- private fetchAllCoins;
785
- getPendingRewards(address: string): Promise<PendingReward[]>;
786
- addClaimRewardsToTx(tx: Transaction, address: string): Promise<PendingReward[]>;
787
- }
788
-
789
- declare const descriptor: ProtocolDescriptor;
790
- declare function listSentinels(): Promise<SentinelAgent[]>;
791
- declare function getSentinelInfo(client: SuiJsonRpcClient, sentinelObjectId: string): Promise<SentinelAgent>;
792
- declare function requestAttack(client: SuiJsonRpcClient, signer: TransactionSigner, sentinelObjectId: string, feeMist: bigint): Promise<{
793
- attackObjectId: string;
794
- digest: string;
795
- }>;
796
- declare function submitPrompt(agentId: string, attackObjectId: string, prompt: string): Promise<SentinelVerdict>;
797
- declare function settleAttack(client: SuiJsonRpcClient, signer: TransactionSigner, sentinelObjectId: string, attackObjectId: string, prompt: string, verdict: SentinelVerdict): Promise<{
798
- digest: string;
799
- success: boolean;
800
- }>;
801
- declare function attack(client: SuiJsonRpcClient, signer: TransactionSigner, sentinelId: string, prompt: string, feeMist?: bigint): Promise<SentinelAttackResult>;
802
-
803
- /** All registered protocol descriptors — used by the indexer for event classification */
579
+ declare const naviDescriptor: ProtocolDescriptor;
580
+ declare const suilendDescriptor: ProtocolDescriptor;
581
+ declare const cetusDescriptor: ProtocolDescriptor;
804
582
  declare const allDescriptors: ProtocolDescriptor[];
805
583
 
806
- export { type PerpsPosition as $, type AutoInvestSchedule as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type SentinelAttackResult as G, type HealthFactorResult as H, type InvestmentRecord as I, type GasMethod as J, type AdapterCapability as K, type LendingAdapter as L, type MaxWithdrawResult as M, type AdapterPositions as N, type AdapterTxResult as O, type PayOptions as P, type AssetRates as Q, type RepayResult as R, type StrategyDefinition as S, type TransactionSigner as T, CetusAdapter as U, type GasReserve as V, type WithdrawResult as W, type HealthInfo as X, type InvestRebalanceMove as Y, NaviAdapter as Z, type PerpsAdapter as _, type AutoInvestStatus as a, type PerpsPositionsResult as a0, type PerpsTradeResult as a1, type PositionEntry as a2, type PositionSide as a3, type ProtocolDescriptor as a4, ProtocolRegistry as a5, type RebalanceStep as a6, type SentinelVerdict as a7, SuilendAdapter as a8, type SwapQuote as a9, allDescriptors as aa, descriptor$2 as ab, getSentinelInfo as ac, listSentinels as ad, descriptor$3 as ae, requestAttack as af, attack as ag, descriptor as ah, settleAttack as ai, submitPrompt as aj, descriptor$1 as ak, type T2000Options as b, type PayResult as c, type SendResult as d, type TransactionRecord as e, type SwapAdapter as f, type SaveResult as g, type BorrowResult as h, type MaxBorrowResult as i, type SwapResult as j, type InvestResult as k, type InvestEarnResult as l, type InvestRebalanceResult as m, type PendingReward$1 as n, type StrategyBuyResult as o, type StrategySellResult as p, type StrategyRebalanceResult as q, type StrategyStatusResult as r, type AutoInvestRunResult as s, type PortfolioResult as t, type InvestmentPosition as u, type PositionsResult as v, type RatesResult as w, type LendingRates as x, type RebalanceResult as y, type SentinelAgent as z };
584
+ export { type ProtocolDescriptor as $, type AutoInvestSchedule as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type GasMethod as G, type HealthFactorResult as H, type InvestmentRecord as I, type AdapterTxResult as J, type AssetRates as K, type LendingAdapter as L, type MaxWithdrawResult as M, type GasReserve as N, type HealthInfo as O, type PayOptions as P, type InvestRebalanceMove as Q, type RepayResult as R, type StrategyDefinition as S, type T2000Options as T, type PerpsAdapter as U, type PerpsPosition as V, type WithdrawResult as W, type PerpsPositionsResult as X, type PerpsTradeResult as Y, type PositionEntry as Z, type PositionSide as _, type AutoInvestStatus as a, type RebalanceStep as a0, type SwapQuote as a1, allDescriptors as a2, cetusDescriptor as a3, naviDescriptor as a4, suilendDescriptor as a5, type PendingReward as a6, type PayResult as b, type SendResult as c, type TransactionRecord as d, type SwapAdapter as e, type SaveResult as f, type BorrowResult as g, type MaxBorrowResult as h, type SwapResult as i, type InvestResult as j, type InvestEarnResult as k, type InvestRebalanceResult as l, type PendingReward$1 as m, type StrategyBuyResult as n, type StrategySellResult as o, type StrategyRebalanceResult as p, type StrategyStatusResult as q, type AutoInvestRunResult as r, type PortfolioResult as s, type InvestmentPosition as t, type PositionsResult as u, type RatesResult as v, type LendingRates as w, type RebalanceResult as x, type AdapterCapability as y, type AdapterPositions as z };