Skip to content

Commit e06672c

Browse files
authored
chore: update tilt for some of the recent changes (#551)
1 parent bb71a57 commit e06672c

5 files changed

Lines changed: 5 additions & 22 deletions

File tree

auction-server/src/auction/repository/models.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -292,22 +292,6 @@ impl Svm {
292292
}
293293
}
294294

295-
fn convert_bid_failed_reason(reason: &entities::BidFailedReason) -> BidStatusReason {
296-
match reason {
297-
entities::BidFailedReason::DeadlinePassed => BidStatusReason::DeadlinePassed,
298-
entities::BidFailedReason::InsufficientUserFunds => {
299-
BidStatusReason::InsufficientUserFunds
300-
}
301-
entities::BidFailedReason::InsufficientSearcherFunds => {
302-
BidStatusReason::InsufficientSearcherFunds
303-
}
304-
entities::BidFailedReason::InsufficientFundsSolTransfer => {
305-
BidStatusReason::InsufficientFundsSolTransfer
306-
}
307-
entities::BidFailedReason::Other => BidStatusReason::Other,
308-
}
309-
}
310-
311295
fn get_chain_data_entity(bid: &Bid) -> anyhow::Result<entities::BidChainDataSvm> {
312296
// The permission keys that are 64 bytes are the ones that are for submit_bid type.
313297
// These are stored in the database before adding the bid instruction type to the permission key svm.

sdk/js/src/examples/simpleSearcherSvm.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ import {
3535
} from "@kamino-finance/limo-sdk/dist/utils";
3636
import { constructSubmitBidInstruction, constructSwapBid } from "../svm";
3737

38-
const DAY_IN_SECONDS = 60 * 60 * 24;
39-
4038
export class SimpleSearcherSvm {
4139
protected client: Client;
4240
protected readonly connectionSvm: Connection;
@@ -142,7 +140,7 @@ export class SimpleSearcherSvm {
142140
getPdaAuthority(limoClient.getProgramID(), order.state.globalConfig),
143141
order.address,
144142
bidAmount,
145-
new anchor.BN(Math.round(Date.now() / 1000 + DAY_IN_SECONDS)),
143+
new anchor.BN(Math.round(Date.now() / 1000 + 15)),
146144
this.chainId,
147145
config.relayerSigner,
148146
config.feeReceiverRelayer,

sdk/js/src/examples/testingSearcherSvm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SearcherLimo extends SimpleSearcherSvm {
3232

3333
async opportunityHandler(opportunity: Opportunity): Promise<void> {
3434
if (this.withLatency) {
35-
const latency = Math.floor(Math.random() * 500);
35+
const latency = Math.floor(Math.random() * 300);
3636
console.log(`Adding latency of ${latency}ms`);
3737
await new Promise((resolve) => setTimeout(resolve, latency));
3838
}

sdk/python/express_relay/searcher/examples/simple_searcher_svm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
import random
55
import typing
6+
from datetime import datetime
67
from decimal import Decimal
78
from typing import List
89

@@ -182,7 +183,7 @@ async def generate_bid_limo(self, opp: LimoOpportunitySvm) -> OnChainBidSvm:
182183
router=router,
183184
permission_key=order["address"],
184185
bid_amount=bid_amount,
185-
deadline=DEADLINE,
186+
deadline=int(datetime.now().timestamp()) + 15,
186187
chain_id=self.chain_id,
187188
fee_receiver_relayer=(await self.get_metadata()).fee_receiver_relayer,
188189
relayer_signer=(await self.get_metadata()).relayer_signer,

sdk/python/express_relay/searcher/examples/testing_searcher_svm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(
3030

3131
async def opportunity_callback(self, opp: Opportunity):
3232
if self.with_latency:
33-
latency = 0.5 * random.random()
33+
latency = 0.3 * random.random()
3434
self.logger.info(f"Adding latency of {latency * 1000}ms")
3535
await asyncio.sleep(latency)
3636
return await super().opportunity_callback(opp)

0 commit comments

Comments
 (0)