Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,22 @@ task2.md
task3.md
task4.md
somzilla.md

# Test snapshot directories (all naming variants)
**/__snapshots__/
*.snap
*.snapshot
*.snapshot.json
testsnapshot/
testSnapshot/
test-snapshot/
test-snapshots/
snapshots/

# Vitest / Jest cache
.vitest-cache/
.jest-cache/

# Lock files (keep package-lock.json but ignore others)
yarn.lock
pnpm-lock.yaml
12 changes: 12 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
scValToNative,
xdr,
Keypair,
StrKey,
} from "@stellar/stellar-sdk";
import { TypedEventEmitter } from "./events/TypedEventEmitter.js";
import type { Signer } from "./signing/signer.js";
Expand Down Expand Up @@ -746,6 +747,17 @@ export class StellarSplitClient extends TypedEventEmitter<SplitClientEventMap> {
private _activePreset: NetworkPreset | null = null;
private readonly _managedHorizonStreams = new Set<{ stop(): void }>();
private readonly _stateMachine: InvoiceStateMachine;

// ---------------------------------------------------------------------------
// Issue #874: SDK Logger
// ---------------------------------------------------------------------------
private _logger: SdkLogger | null = null;

// ---------------------------------------------------------------------------
// Issue #876: Protocol Stats Cache
// ---------------------------------------------------------------------------
/** Cached protocol stats entry per contract address. */
private _protocolStatsCache: Map<string, { data: ProtocolStats; fetchedAt: number }> = new Map();
/**
* OpenTelemetry handle. Stays {@link noopOtelHandle} (zero overhead, no
* span objects created) unless `config.otel.enabled` is true, in which
Expand Down
Loading
Loading