Skip to content

Commit 1abb0e6

Browse files
fix: remove unused event test helpers
1 parent 70cf433 commit 1abb0e6

1 file changed

Lines changed: 0 additions & 49 deletions

File tree

backend/tests/soroban-event-worker.test.ts

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -67,55 +67,6 @@ const mockContractAddr = () => ({ address: { type: 'scAddressTypeContract', cont
6767
const mockMapEntry = (keyName: string, val: any) => ({ key: mockSym(keyName), val } as any);
6868
const mockMapValue = (entries: any[]) => ({ map: entries } as any);
6969

70-
/** Build a valid admin_transferred event (processes without throwing). */
71-
function makeAdminTransferredEvent(
72-
id: string,
73-
ledger: number,
74-
txHash: string,
75-
): rpc.Api.EventResponse {
76-
return {
77-
id,
78-
type: 'contract',
79-
ledger,
80-
ledgerClosedAt: '2024-01-01T00:00:00Z',
81-
txHash,
82-
transactionIndex: 0,
83-
operationIndex: 0,
84-
inSuccessfulContractCall: true,
85-
topic: [mockSym('admin_transferred')],
86-
value: {
87-
type: 'scvMap',
88-
map: [
89-
mockMapEntry('previous_admin', mockAccountAddr()),
90-
mockMapEntry('new_admin', mockAccountAddr()),
91-
] as any,
92-
} as any,
93-
};
94-
}
95-
96-
/** Build a malformed fee_config_updated event (missing body fields → throws). */
97-
function makeMalformedEvent(
98-
id: string,
99-
ledger: number,
100-
txHash: string,
101-
): rpc.Api.EventResponse {
102-
return {
103-
id,
104-
type: 'contract',
105-
ledger,
106-
ledgerClosedAt: '2024-01-01T00:00:00Z',
107-
txHash,
108-
transactionIndex: 0,
109-
operationIndex: 0,
110-
inSuccessfulContractCall: true,
111-
topic: [mockSym('fee_config_updated')],
112-
value: {
113-
type: 'scvMap',
114-
map: [] as any,
115-
} as any,
116-
};
117-
}
118-
11970
// Standard stream fields map used across most tests
12071
const streamFields = (overrides?: { withdrawn_amount?: string; isActive?: boolean; is_active_value?: boolean }) => [
12172
mockMapEntry('sender', mockAccountAddr()),

0 commit comments

Comments
 (0)