Skip to content

Commit 2f07512

Browse files
committed
solana: fix idl and sdk
1 parent 8e451aa commit 2f07512

File tree

3 files changed

+3
-50
lines changed

3 files changed

+3
-50
lines changed

solana/ts/src/idl/json/matching_engine.json

-16
Original file line numberDiff line numberDiff line change
@@ -1649,22 +1649,6 @@
16491649
},
16501650
{
16511651
"name": "auction_config"
1652-
},
1653-
{
1654-
"name": "best_offer_token",
1655-
"docs": [
1656-
"Best offer token account, whose owner will be the beneficiary of the reserved fast fill",
1657-
"sequence account when it is closed.",
1658-
"",
1659-
"in the auction account."
1660-
]
1661-
},
1662-
{
1663-
"name": "executor",
1664-
"docs": [
1665-
"of the reserved fast fill sequence account when it is closed. Otherwise, this account must",
1666-
"equal the best offer token account's owner."
1667-
]
16681652
}
16691653
],
16701654
"args": []

solana/ts/src/idl/ts/matching_engine.ts

-16
Original file line numberDiff line numberDiff line change
@@ -1655,22 +1655,6 @@ export type MatchingEngine = {
16551655
},
16561656
{
16571657
"name": "auctionConfig"
1658-
},
1659-
{
1660-
"name": "bestOfferToken",
1661-
"docs": [
1662-
"Best offer token account, whose owner will be the beneficiary of the reserved fast fill",
1663-
"sequence account when it is closed.",
1664-
"",
1665-
"in the auction account."
1666-
]
1667-
},
1668-
{
1669-
"name": "executor",
1670-
"docs": [
1671-
"of the reserved fast fill sequence account when it is closed. Otherwise, this account must",
1672-
"equal the best offer token account's owner."
1673-
]
16741658
}
16751659
],
16761660
"args": []

solana/ts/src/matchingEngine/index.ts

+3-18
Original file line numberDiff line numberDiff line change
@@ -2139,8 +2139,6 @@ export class MatchingEngineProgram {
21392139
reservedSequence?: PublicKey;
21402140
auction?: PublicKey;
21412141
auctionConfig?: PublicKey;
2142-
bestOfferToken?: PublicKey;
2143-
executor?: PublicKey;
21442142
},
21452143
opts: ReserveFastFillSequenceCompositeOpts = {},
21462144
): Promise<TransactionInstruction> {
@@ -2166,34 +2164,21 @@ export class MatchingEngineProgram {
21662164
opts,
21672165
);
21682166

2169-
let { auctionConfig, bestOfferToken, executor } = accounts;
2167+
let { auctionConfig } = accounts;
21702168

2171-
if (bestOfferToken === undefined || auctionConfig === undefined) {
2169+
if (auctionConfig === undefined) {
21722170
const { info } = await this.fetchAuction({ address: reserveSequence.auction });
21732171
if (info === null) {
21742172
throw new Error("no auction info found");
21752173
}
2176-
auctionConfig ??= this.auctionConfigAddress(info.configId);
2177-
bestOfferToken ??= info.bestOfferToken;
2178-
}
2179-
2180-
if (executor === undefined) {
2181-
const token = await splToken
2182-
.getAccount(this.program.provider.connection, bestOfferToken)
2183-
.catch((_) => null);
2184-
if (token === null) {
2185-
throw new Error("Executor must be provided because best offer token is not found");
2186-
}
2187-
executor = token.owner;
2174+
auctionConfig = this.auctionConfigAddress(info.configId);
21882175
}
21892176

21902177
return this.program.methods
21912178
.reserveFastFillSequenceActiveAuction()
21922179
.accounts({
21932180
reserveSequence,
21942181
auctionConfig,
2195-
bestOfferToken,
2196-
executor,
21972182
})
21982183
.instruction();
21992184
}

0 commit comments

Comments
 (0)