@gvnrdao/dh-sdk 0.0.248 → 0.0.251
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/dist/contracts/typechain-contracts/common.d.ts +50 -0
- package/dist/contracts/typechain-contracts/factories/src/psm/SimplePSMV2__factory.d.ts +1458 -0
- package/dist/contracts/typechain-contracts/src/psm/SimplePSMV2.d.ts +863 -0
- package/dist/graphs/diamond-hands.d.ts +9 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2606 -440
- package/dist/index.mjs +2606 -440
- package/dist/modules/diamond-hands-sdk.d.ts +21 -0
- package/dist/types/event-types.d.ts +23 -271
- package/dist/types/protocol-event-types.d.ts +81 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ProtocolEventsFilter, ProtocolEventsResult } from "../types/protocol-event-types";
|
|
1
2
|
import type { LoanData } from "../interfaces";
|
|
2
3
|
import type { GraphPositionWithBorrowerDTO } from "../types/graph-dtos";
|
|
3
4
|
import type { LoanEvents, LoanEventsFilter } from "../types/event-types";
|
|
@@ -246,5 +247,13 @@ export declare class DiamondHandsGraph {
|
|
|
246
247
|
* @returns Complete event history for the position
|
|
247
248
|
*/
|
|
248
249
|
getLoanEvents(positionId: string, filter?: LoanEventsFilter): Promise<LoanEvents>;
|
|
250
|
+
/**
|
|
251
|
+
* Retrieve events across the full protocol, optionally narrowed to a position.
|
|
252
|
+
* Returns a merged, sorted discriminated-union timeline suitable for explorers.
|
|
253
|
+
*
|
|
254
|
+
* Protocol-global admin events (circuit breaker, term fees, etc.) are included
|
|
255
|
+
* by default; pass `kinds` to restrict.
|
|
256
|
+
*/
|
|
257
|
+
getAllEvents(filter?: ProtocolEventsFilter): Promise<ProtocolEventsResult>;
|
|
249
258
|
}
|
|
250
259
|
export type DiamondHandsGraphClient = DiamondHandsGraph;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export type { LoanQueryConfig, LoanQueryFilters, PaginationParams, } from './mod
|
|
|
31
31
|
export { BitcoinOperations, createBitcoinOperations, } from './modules/bitcoin/bitcoin-operations.module';
|
|
32
32
|
export type { BitcoinOperationsConfig, BitcoinNetwork, EnrichedBitcoinBalance, } from './modules/bitcoin/bitcoin-operations.module';
|
|
33
33
|
export { MockTokenManager, createMockTokenManager, } from './modules/mock/mock-token-manager.module';
|
|
34
|
+
export type { SupportedStablecoinData } from './graphs/diamond-hands';
|
|
34
35
|
export type { MockTokenManagerConfig, MockTokenTransactionResult, } from './modules/mock/mock-token-manager.module';
|
|
35
36
|
export { validateSDKConfig, validateServiceModeConfig, validateStandaloneModeConfig, isServiceModeConfig, isStandaloneModeConfig, } from './interfaces/chunks/config.i';
|
|
36
37
|
export { DEFAULT_LIT_NETWORK, VALID_LIT_NETWORKS, SDK_DEFAULTS, } from './constants/chunks/sdk-config';
|
|
@@ -41,8 +42,9 @@ export type { DiamondHandsSDKConfig, SDKMode, ContractAddresses, BitcoinProvider
|
|
|
41
42
|
export type { PKPData, PKPCreationRequest, PKPCreationResult, PKPValidationResult, } from './interfaces/chunks/pkp-integration.i';
|
|
42
43
|
export type { AuthorizationRequest, AuthorizationResult, BTCDepositRequest, BTCDepositResult, } from './interfaces/chunks/requests.i';
|
|
43
44
|
export { LoanStatus } from './types/loanStatus';
|
|
44
|
-
export type { LoanEvents, LoanEventsFilter, PaymentEvent, StatusUpdateEvent, LiquidationEvent, UCDMintEvent,
|
|
45
|
+
export type { LoanEvents, LoanEventsFilter, PositionCreatedEvent, PaymentEvent, StatusUpdateEvent, LiquidationEvent, UCDMintEvent, WithdrawalEvent, RenewalEvent, OperationFailureEvent, MintRequestEvent, BurnRequestEvent, CollateralContractEvent, } from './types/event-types';
|
|
45
46
|
export { PaymentType, PositionStatus, isValidPositionStatus, isValidPaymentType, numericToPositionStatus, EventHelpers, } from './types/event-types';
|
|
47
|
+
export type { ProtocolEvent, ProtocolEventsFilter, ProtocolEventsResult, } from './types/protocol-event-types';
|
|
46
48
|
export { fetchProtocolPauseStatus, assertProtocolNotPaused, } from './protocol/protocol-pause';
|
|
47
49
|
export type { ProtocolPauseStatus, ProtocolPauseKey, } from './protocol/protocol-pause';
|
|
48
50
|
export { SDKError, ErrorCategory, ErrorSeverity } from './utils/error-handler';
|