Skip to content

Commit 6fbfcb8

Browse files
committed
ft_watcher: update settle auction complete test case
Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
1 parent edf5885 commit 6fbfcb8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

watcher/src/watchers/__tests__/FastTransferSolanaWatcher.test.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ test.skip('should parse executeFastOrderCctp', async () => {
151151
});
152152
});
153153

154-
test.skip('should parse settleAuctionComplete', async () => {
154+
test('should parse settleAuctionComplete', async () => {
155155
const watcher = new FastTransferSolanaWatcher('Testnet', true);
156156
const txHash =
157-
'59LKdrZ4cdHq9hnyZttxP1ZkbYGNNbMpUFM8A68UCtk8qE9y4eUkMm9bkxbwj7WM6i29YxfJ3pb19EUYC2SXCVmp';
157+
'5L2tBfpE35gHBTRmqet4UUGoUJrwYZe6LVCLomVkEDU1TBXNbWW2Xs8pPT5Zz2JQgX2vS8pE4bxmyDEZxL9fBVbs';
158158
const tx = await watcher.getConnection().getTransaction(txHash, {
159159
maxSupportedTransactionVersion: 0,
160160
});
@@ -163,20 +163,20 @@ test.skip('should parse settleAuctionComplete', async () => {
163163
throw new Error('Unable to get transaction');
164164
}
165165

166-
const ix = tx.transaction.message.compiledInstructions[3];
166+
const ix = tx.transaction.message.compiledInstructions[1];
167167

168-
const info = await watcher.parseSettleAuctionComplete(tx, ix, 3);
168+
const info = await watcher.parseSettleAuctionComplete(tx, ix, 1);
169169
expect(info).toEqual({
170170
id: {
171-
auction_pubkey: 'FS4EAzWA2WuMKyGBy2C7EBvHL9W63NDX9JR4CPveAiDK',
171+
auction_pubkey: 'CpDnbzqqnWv2ww6FNgxxnWADFnHG1sEM537GMTBiq7rf',
172172
},
173173
info: {
174-
repayment: 10000000n,
175-
settle_payer: '9FPvGxE1cNVTrDgHhSdYi2i12HFiepeqNM9Q1kEXgiX2',
176-
settle_slot: 298315989n,
177-
settle_time: new Date('2024-05-12T06:15:56.000Z'),
174+
repayment: 1000000n,
175+
settle_payer: '6H68dreG5qZHUVjBwf4kCGQYmW3hULedbezwzPasTr68',
176+
settle_slot: 302130744n,
177+
settle_time: new Date('2024-05-29T08:09:11.000Z'),
178178
settle_tx_hash:
179-
'59LKdrZ4cdHq9hnyZttxP1ZkbYGNNbMpUFM8A68UCtk8qE9y4eUkMm9bkxbwj7WM6i29YxfJ3pb19EUYC2SXCVmp',
179+
'5L2tBfpE35gHBTRmqet4UUGoUJrwYZe6LVCLomVkEDU1TBXNbWW2Xs8pPT5Zz2JQgX2vS8pE4bxmyDEZxL9fBVbs',
180180
status: 'settled',
181181
},
182182
});

0 commit comments

Comments
 (0)