@theliem/xmarket-sdk 4.0.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +188 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +188 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -492,7 +492,6 @@ var MarketClient = class {
|
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
494
|
* Build createQuestionAdmin transaction (whitelist/admin path — status = Approved immediately).
|
|
495
|
-
* V2: no hookProgram param, uses TOKEN_PROGRAM_ID for YES/NO mints.
|
|
496
495
|
* @param creator - Whitelisted creator (must be in whitelist or be admin/owner)
|
|
497
496
|
* @param payer - Fee payer (pays rent; can differ from creator)
|
|
498
497
|
*/
|
|
@@ -729,7 +728,6 @@ var MarketClient = class {
|
|
|
729
728
|
}
|
|
730
729
|
/**
|
|
731
730
|
* Whitelist-only: approve presale → creates question + CTF condition + market_oracle in one tx.
|
|
732
|
-
* V2: no hookProgram param — removes Token-2022 hook from CPI call.
|
|
733
731
|
*
|
|
734
732
|
* @param presalePda the presale account
|
|
735
733
|
* @param contentHash 32-byte hash for question content
|
|
@@ -940,7 +938,7 @@ var CtfClient = class {
|
|
|
940
938
|
* so that wallet can later sign reportPayouts.
|
|
941
939
|
* payer covers rent for condition + mints.
|
|
942
940
|
*/
|
|
943
|
-
async prepareCondition(questionId, oracle, collateralMint, authorizedClob, payer = this.walletPubkey, signers = []) {
|
|
941
|
+
async prepareCondition(questionId, oracle, collateralMint, authorizedClob, authorizedResolver = oracle, payer = this.walletPubkey, signers = []) {
|
|
944
942
|
const [conditionPda] = PDA.condition(oracle, questionId, this.programIds);
|
|
945
943
|
const [yesMint] = PDA.yesMint(conditionPda, this.programIds);
|
|
946
944
|
const [noMint] = PDA.noMint(conditionPda, this.programIds);
|
|
@@ -948,7 +946,8 @@ var CtfClient = class {
|
|
|
948
946
|
const [collateralVault] = PDA.collateralVault(collateralMint, this.programIds);
|
|
949
947
|
const sig = await this.program.methods.prepareCondition(
|
|
950
948
|
Array.from(questionId),
|
|
951
|
-
authorizedClob
|
|
949
|
+
authorizedClob,
|
|
950
|
+
authorizedResolver
|
|
952
951
|
).accounts({
|
|
953
952
|
oracle,
|
|
954
953
|
condition: conditionPda,
|
|
@@ -1199,8 +1198,8 @@ var CtfClient = class {
|
|
|
1199
1198
|
collateralVault: acc.collateralVault,
|
|
1200
1199
|
yesMint: acc.yesMint,
|
|
1201
1200
|
noMint: acc.noMint,
|
|
1202
|
-
hookProgram: acc.hookProgram,
|
|
1203
1201
|
authorizedClob: acc.authorizedClob,
|
|
1202
|
+
authorizedResolver: acc.authorizedResolver,
|
|
1204
1203
|
isResolved: acc.isResolved,
|
|
1205
1204
|
resolvedAt: acc.resolvedAt?.toNumber() ?? 0,
|
|
1206
1205
|
bump: acc.bump
|
|
@@ -2271,6 +2270,54 @@ ${logs.join("\n")}`);
|
|
|
2271
2270
|
const sig = await this.sendMatchTx([matchIx], lookupTable, operatorWallet);
|
|
2272
2271
|
return { signature: sig };
|
|
2273
2272
|
}
|
|
2273
|
+
/**
|
|
2274
|
+
* Build ixs for a mixed batch: some makers COMPLEMENTARY (same tokenId as taker),
|
|
2275
|
+
* others MINT/MERGE (opposite tokenId). Packs all into a single ix array so the
|
|
2276
|
+
* caller can send them in one atomic tx.
|
|
2277
|
+
*
|
|
2278
|
+
* Supported taker configurations:
|
|
2279
|
+
* YES BUY + YES SELL makers + NO BUY makers → COMP ixs + MINT ix
|
|
2280
|
+
* YES SELL + YES BUY makers + NO SELL makers → COMP ixs + MERGE ix
|
|
2281
|
+
*/
|
|
2282
|
+
async _buildMixedMatchIxs(taker, complementaryMakers, mintMergeMakers, collateralMint, feeRecipient, operator, opts) {
|
|
2283
|
+
const t = taker.order;
|
|
2284
|
+
const SIDE_BUY = 0;
|
|
2285
|
+
const SIDE_SELL = 1;
|
|
2286
|
+
const useTakerPrice = t.side === SIDE_BUY;
|
|
2287
|
+
const compIxs = await this.buildMatchComplementaryIxs(
|
|
2288
|
+
taker,
|
|
2289
|
+
complementaryMakers,
|
|
2290
|
+
collateralMint,
|
|
2291
|
+
feeRecipient,
|
|
2292
|
+
operator,
|
|
2293
|
+
opts,
|
|
2294
|
+
useTakerPrice
|
|
2295
|
+
);
|
|
2296
|
+
const allBuy = t.side === SIDE_BUY && mintMergeMakers.every((m) => m.order.side === SIDE_BUY);
|
|
2297
|
+
const allSell = t.side === SIDE_SELL && mintMergeMakers.every((m) => m.order.side === SIDE_SELL);
|
|
2298
|
+
if (!allBuy && !allSell) {
|
|
2299
|
+
throw new InvalidParamError("MINT/MERGE makers in mixed batch must all share taker side");
|
|
2300
|
+
}
|
|
2301
|
+
const condition = t.condition;
|
|
2302
|
+
const clobConfig = this.configPda();
|
|
2303
|
+
const [yesMint] = PDA.yesMint(condition, this.programIds);
|
|
2304
|
+
const [noMint] = PDA.noMint(condition, this.programIds);
|
|
2305
|
+
const clobYesAta = getAssociatedTokenAddressSync(yesMint, clobConfig, true, TOKEN_PROGRAM_ID);
|
|
2306
|
+
const clobNoAta = getAssociatedTokenAddressSync(noMint, clobConfig, true, TOKEN_PROGRAM_ID);
|
|
2307
|
+
await this._ensureClobOutcomeAtas(yesMint, noMint, clobConfig, clobYesAta, clobNoAta);
|
|
2308
|
+
let mmIxs;
|
|
2309
|
+
if (t.tokenId === 1) {
|
|
2310
|
+
const ix = allBuy ? await this._buildMintIx(taker, mintMergeMakers, collateralMint, operator, this.walletPubkey) : await this._buildMergeIx(taker, mintMergeMakers, collateralMint, operator, this.walletPubkey, opts);
|
|
2311
|
+
mmIxs = [ix];
|
|
2312
|
+
} else {
|
|
2313
|
+
mmIxs = [];
|
|
2314
|
+
for (const yesMaker of mintMergeMakers) {
|
|
2315
|
+
const ix = allBuy ? await this._buildMintIx(yesMaker, [taker], collateralMint, operator, this.walletPubkey) : await this._buildMergeIx(yesMaker, [taker], collateralMint, operator, this.walletPubkey, opts);
|
|
2316
|
+
mmIxs.push(ix);
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
return [...compIxs, ...mmIxs];
|
|
2320
|
+
}
|
|
2274
2321
|
/**
|
|
2275
2322
|
* Auto-detect match type and execute 2-phase:
|
|
2276
2323
|
* Phase 1 — register all orders (taker + makers) on-chain in parallel.
|
|
@@ -2299,9 +2346,28 @@ ${logs.join("\n")}`);
|
|
|
2299
2346
|
makers
|
|
2300
2347
|
);
|
|
2301
2348
|
const t = taker.order;
|
|
2302
|
-
const m0 = makers[0].order;
|
|
2303
2349
|
const SIDE_BUY = 0;
|
|
2304
2350
|
const SIDE_SELL = 1;
|
|
2351
|
+
const complementaryMakers = makers.filter((m) => m.order.tokenId === t.tokenId);
|
|
2352
|
+
const mintMergeMakers = makers.filter((m) => m.order.tokenId !== t.tokenId);
|
|
2353
|
+
if (complementaryMakers.length > 0 && mintMergeMakers.length > 0) {
|
|
2354
|
+
await Promise.all([
|
|
2355
|
+
this.registerOrderIfNeeded(taker),
|
|
2356
|
+
...makers.map((m) => this.registerOrderIfNeeded(m))
|
|
2357
|
+
]);
|
|
2358
|
+
const ixs = await this._buildMixedMatchIxs(
|
|
2359
|
+
taker,
|
|
2360
|
+
complementaryMakers,
|
|
2361
|
+
mintMergeMakers,
|
|
2362
|
+
collateralMint,
|
|
2363
|
+
feeRecipient,
|
|
2364
|
+
operatorWallet.publicKey,
|
|
2365
|
+
opts
|
|
2366
|
+
);
|
|
2367
|
+
const sig = await this.sendMatchTx(ixs, alt, operatorWallet);
|
|
2368
|
+
return { signature: sig };
|
|
2369
|
+
}
|
|
2370
|
+
const m0 = makers[0].order;
|
|
2305
2371
|
if (t.tokenId === m0.tokenId) {
|
|
2306
2372
|
let buySignedOrder, sellCandidates;
|
|
2307
2373
|
if (t.side === SIDE_BUY && makers.every((m) => m.order.side === SIDE_SELL)) {
|
|
@@ -2402,9 +2468,34 @@ ${logs.join("\n")}`);
|
|
|
2402
2468
|
const feeRecipient = cfg.feeRecipient;
|
|
2403
2469
|
const alt = await this.ensureAlt(taker.order.condition, collateralMint, taker, makers);
|
|
2404
2470
|
const t = taker.order;
|
|
2405
|
-
const m0 = makers[0].order;
|
|
2406
2471
|
const SIDE_BUY = 0;
|
|
2407
2472
|
const SIDE_SELL = 1;
|
|
2473
|
+
const complementaryMakers = makers.filter((m) => m.order.tokenId === t.tokenId);
|
|
2474
|
+
const mintMergeMakers = makers.filter((m) => m.order.tokenId !== t.tokenId);
|
|
2475
|
+
if (complementaryMakers.length > 0 && mintMergeMakers.length > 0) {
|
|
2476
|
+
await Promise.all([
|
|
2477
|
+
this.registerOrderIfNeeded(taker),
|
|
2478
|
+
...makers.map((m) => this.registerOrderIfNeeded(m))
|
|
2479
|
+
]);
|
|
2480
|
+
const oracleVaultInitIx2 = await this.buildInitOracleVaultIfNeeded(
|
|
2481
|
+
t.condition,
|
|
2482
|
+
collateralMint,
|
|
2483
|
+
t.fee,
|
|
2484
|
+
payer
|
|
2485
|
+
);
|
|
2486
|
+
const preIxs2 = oracleVaultInitIx2 ? [oracleVaultInitIx2] : [];
|
|
2487
|
+
const ixs2 = await this._buildMixedMatchIxs(
|
|
2488
|
+
taker,
|
|
2489
|
+
complementaryMakers,
|
|
2490
|
+
mintMergeMakers,
|
|
2491
|
+
collateralMint,
|
|
2492
|
+
feeRecipient,
|
|
2493
|
+
operator,
|
|
2494
|
+
opts
|
|
2495
|
+
);
|
|
2496
|
+
return this._buildUnsignedVtx([...preIxs2, ...ixs2], alt, payer);
|
|
2497
|
+
}
|
|
2498
|
+
const m0 = makers[0].order;
|
|
2408
2499
|
const oracleVaultInitIx = await this.buildInitOracleVaultIfNeeded(
|
|
2409
2500
|
t.condition,
|
|
2410
2501
|
collateralMint,
|
|
@@ -3774,7 +3865,7 @@ var DisputeClient = class {
|
|
|
3774
3865
|
|
|
3775
3866
|
// src/idls/oracle.json
|
|
3776
3867
|
var oracle_default = {
|
|
3777
|
-
address: "
|
|
3868
|
+
address: "8uNiLDZnarxyFyoCi1bE1qkBMsLs2Tpyohtdzdvjkg8j",
|
|
3778
3869
|
metadata: {
|
|
3779
3870
|
name: "oracle_v2",
|
|
3780
3871
|
version: "0.1.0",
|
|
@@ -4499,7 +4590,7 @@ var oracle_default = {
|
|
|
4499
4590
|
|
|
4500
4591
|
// src/idls/question_market.json
|
|
4501
4592
|
var question_market_default = {
|
|
4502
|
-
address: "
|
|
4593
|
+
address: "FkpHo3zb5h2nNS5n6tWAvDwXPTXR2qqVLjDmEkMayott",
|
|
4503
4594
|
metadata: {
|
|
4504
4595
|
name: "question_market_v2",
|
|
4505
4596
|
version: "0.1.0",
|
|
@@ -4833,19 +4924,19 @@ var question_market_default = {
|
|
|
4833
4924
|
},
|
|
4834
4925
|
{
|
|
4835
4926
|
name: "fee_management_program",
|
|
4836
|
-
address: "
|
|
4927
|
+
address: "8S6hxqbDc8kgHf4uUzq2t15PeY36QSCYEpBVvM4Fhrkm"
|
|
4837
4928
|
},
|
|
4838
4929
|
{
|
|
4839
4930
|
name: "presale_program",
|
|
4840
|
-
address: "
|
|
4931
|
+
address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
|
|
4841
4932
|
},
|
|
4842
4933
|
{
|
|
4843
4934
|
name: "market_oracle_program",
|
|
4844
|
-
address: "
|
|
4935
|
+
address: "Agt6beCbghi4jV9A8v9geRP5dnt2wDkJBVgy9oM33zit"
|
|
4845
4936
|
},
|
|
4846
4937
|
{
|
|
4847
4938
|
name: "admin_program",
|
|
4848
|
-
address: "
|
|
4939
|
+
address: "2HsyCdr59W5ndeboaE9JAmhEQ46m5Gm2ZWBfYEs1tC1i"
|
|
4849
4940
|
},
|
|
4850
4941
|
{
|
|
4851
4942
|
name: "token_program",
|
|
@@ -5107,11 +5198,11 @@ var question_market_default = {
|
|
|
5107
5198
|
},
|
|
5108
5199
|
{
|
|
5109
5200
|
name: "presale_program",
|
|
5110
|
-
address: "
|
|
5201
|
+
address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
|
|
5111
5202
|
},
|
|
5112
5203
|
{
|
|
5113
5204
|
name: "admin_program",
|
|
5114
|
-
address: "
|
|
5205
|
+
address: "2HsyCdr59W5ndeboaE9JAmhEQ46m5Gm2ZWBfYEs1tC1i"
|
|
5115
5206
|
},
|
|
5116
5207
|
{
|
|
5117
5208
|
name: "token_program",
|
|
@@ -5193,7 +5284,7 @@ var question_market_default = {
|
|
|
5193
5284
|
},
|
|
5194
5285
|
{
|
|
5195
5286
|
name: "market_oracle_program",
|
|
5196
|
-
address: "
|
|
5287
|
+
address: "Agt6beCbghi4jV9A8v9geRP5dnt2wDkJBVgy9oM33zit"
|
|
5197
5288
|
}
|
|
5198
5289
|
],
|
|
5199
5290
|
args: []
|
|
@@ -5421,7 +5512,7 @@ var question_market_default = {
|
|
|
5421
5512
|
},
|
|
5422
5513
|
{
|
|
5423
5514
|
name: "presale_program",
|
|
5424
|
-
address: "
|
|
5515
|
+
address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
|
|
5425
5516
|
},
|
|
5426
5517
|
{
|
|
5427
5518
|
name: "token_program",
|
|
@@ -5557,7 +5648,7 @@ var question_market_default = {
|
|
|
5557
5648
|
},
|
|
5558
5649
|
{
|
|
5559
5650
|
name: "fee_management_program",
|
|
5560
|
-
address: "
|
|
5651
|
+
address: "8S6hxqbDc8kgHf4uUzq2t15PeY36QSCYEpBVvM4Fhrkm"
|
|
5561
5652
|
},
|
|
5562
5653
|
{
|
|
5563
5654
|
name: "token_program",
|
|
@@ -5750,7 +5841,7 @@ var question_market_default = {
|
|
|
5750
5841
|
},
|
|
5751
5842
|
{
|
|
5752
5843
|
name: "presale_program",
|
|
5753
|
-
address: "
|
|
5844
|
+
address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
|
|
5754
5845
|
}
|
|
5755
5846
|
],
|
|
5756
5847
|
args: []
|
|
@@ -5970,7 +6061,8 @@ var question_market_default = {
|
|
|
5970
6061
|
{
|
|
5971
6062
|
name: "condition",
|
|
5972
6063
|
docs: [
|
|
5973
|
-
"The Condition account in CTF (will be updated via CPI)"
|
|
6064
|
+
"The Condition account in CTF (will be updated via CPI).",
|
|
6065
|
+
"Must match question.condition \u2014 prevents cross-market resolution."
|
|
5974
6066
|
],
|
|
5975
6067
|
writable: true
|
|
5976
6068
|
},
|
|
@@ -7358,7 +7450,7 @@ var question_market_default = {
|
|
|
7358
7450
|
|
|
7359
7451
|
// src/idls/conditional_tokens.json
|
|
7360
7452
|
var conditional_tokens_default = {
|
|
7361
|
-
address: "
|
|
7453
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT",
|
|
7362
7454
|
metadata: {
|
|
7363
7455
|
name: "conditional_tokens_v2",
|
|
7364
7456
|
version: "0.1.0",
|
|
@@ -7779,6 +7871,10 @@ var conditional_tokens_default = {
|
|
|
7779
7871
|
{
|
|
7780
7872
|
name: "authorized_clob",
|
|
7781
7873
|
type: "pubkey"
|
|
7874
|
+
},
|
|
7875
|
+
{
|
|
7876
|
+
name: "authorized_resolver",
|
|
7877
|
+
type: "pubkey"
|
|
7782
7878
|
}
|
|
7783
7879
|
]
|
|
7784
7880
|
},
|
|
@@ -7908,9 +8004,6 @@ var conditional_tokens_default = {
|
|
|
7908
8004
|
},
|
|
7909
8005
|
{
|
|
7910
8006
|
name: "collateral_vault",
|
|
7911
|
-
docs: [
|
|
7912
|
-
"Use canonical bump derivation (no bump = vault.bump) so corrupt bump doesn't block us"
|
|
7913
|
-
],
|
|
7914
8007
|
writable: true,
|
|
7915
8008
|
pda: {
|
|
7916
8009
|
seeds: [
|
|
@@ -7944,9 +8037,6 @@ var conditional_tokens_default = {
|
|
|
7944
8037
|
},
|
|
7945
8038
|
{
|
|
7946
8039
|
name: "vault_token_account",
|
|
7947
|
-
docs: [
|
|
7948
|
-
"Existing vault token account \u2014 just update the reference"
|
|
7949
|
-
],
|
|
7950
8040
|
writable: true,
|
|
7951
8041
|
pda: {
|
|
7952
8042
|
seeds: [
|
|
@@ -8624,6 +8714,14 @@ var conditional_tokens_default = {
|
|
|
8624
8714
|
],
|
|
8625
8715
|
type: "u8"
|
|
8626
8716
|
},
|
|
8717
|
+
{
|
|
8718
|
+
name: "admin",
|
|
8719
|
+
docs: [
|
|
8720
|
+
"Admin pubkey \u2014 only this address can call reinitialize_vault.",
|
|
8721
|
+
"Set at initialize_vault time. If Pubkey::default(), first caller sets it (bootstrap)."
|
|
8722
|
+
],
|
|
8723
|
+
type: "pubkey"
|
|
8724
|
+
},
|
|
8627
8725
|
{
|
|
8628
8726
|
name: "_reserved",
|
|
8629
8727
|
docs: [
|
|
@@ -8632,7 +8730,7 @@ var conditional_tokens_default = {
|
|
|
8632
8730
|
type: {
|
|
8633
8731
|
array: [
|
|
8634
8732
|
"u8",
|
|
8635
|
-
|
|
8733
|
+
32
|
|
8636
8734
|
]
|
|
8637
8735
|
}
|
|
8638
8736
|
}
|
|
@@ -8710,12 +8808,20 @@ var conditional_tokens_default = {
|
|
|
8710
8808
|
name: "bump",
|
|
8711
8809
|
type: "u8"
|
|
8712
8810
|
},
|
|
8811
|
+
{
|
|
8812
|
+
name: "authorized_resolver",
|
|
8813
|
+
docs: [
|
|
8814
|
+
"QuestionMarket config PDA authorized to call set_payout.",
|
|
8815
|
+
"Uses first 32 bytes of old _reserved \u2014 existing accounts read as Pubkey::default()."
|
|
8816
|
+
],
|
|
8817
|
+
type: "pubkey"
|
|
8818
|
+
},
|
|
8713
8819
|
{
|
|
8714
8820
|
name: "_reserved",
|
|
8715
8821
|
type: {
|
|
8716
8822
|
array: [
|
|
8717
8823
|
"u8",
|
|
8718
|
-
|
|
8824
|
+
32
|
|
8719
8825
|
]
|
|
8720
8826
|
}
|
|
8721
8827
|
}
|
|
@@ -9061,7 +9167,7 @@ var conditional_tokens_default = {
|
|
|
9061
9167
|
|
|
9062
9168
|
// src/idls/clob_exchange.json
|
|
9063
9169
|
var clob_exchange_default = {
|
|
9064
|
-
address: "
|
|
9170
|
+
address: "AFT8SM1Vv8g8AQTf81LoE5oLteUTyhWzWTLj7SKZjkY1",
|
|
9065
9171
|
metadata: {
|
|
9066
9172
|
name: "clob_exchange_v2",
|
|
9067
9173
|
version: "0.1.0",
|
|
@@ -9254,7 +9360,7 @@ var clob_exchange_default = {
|
|
|
9254
9360
|
},
|
|
9255
9361
|
{
|
|
9256
9362
|
name: "conditional_tokens_program",
|
|
9257
|
-
address: "
|
|
9363
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
|
|
9258
9364
|
},
|
|
9259
9365
|
{
|
|
9260
9366
|
name: "token_program",
|
|
@@ -9405,7 +9511,7 @@ var clob_exchange_default = {
|
|
|
9405
9511
|
},
|
|
9406
9512
|
{
|
|
9407
9513
|
name: "conditional_tokens_program",
|
|
9408
|
-
address: "
|
|
9514
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
|
|
9409
9515
|
},
|
|
9410
9516
|
{
|
|
9411
9517
|
name: "token_program",
|
|
@@ -9552,7 +9658,7 @@ var clob_exchange_default = {
|
|
|
9552
9658
|
},
|
|
9553
9659
|
{
|
|
9554
9660
|
name: "conditional_tokens_program",
|
|
9555
|
-
address: "
|
|
9661
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
|
|
9556
9662
|
},
|
|
9557
9663
|
{
|
|
9558
9664
|
name: "token_program",
|
|
@@ -9915,7 +10021,7 @@ var clob_exchange_default = {
|
|
|
9915
10021
|
},
|
|
9916
10022
|
{
|
|
9917
10023
|
name: "conditional_tokens_program",
|
|
9918
|
-
address: "
|
|
10024
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
|
|
9919
10025
|
},
|
|
9920
10026
|
{
|
|
9921
10027
|
name: "token_program",
|
|
@@ -10187,7 +10293,7 @@ var clob_exchange_default = {
|
|
|
10187
10293
|
},
|
|
10188
10294
|
{
|
|
10189
10295
|
name: "conditional_tokens_program",
|
|
10190
|
-
address: "
|
|
10296
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
|
|
10191
10297
|
},
|
|
10192
10298
|
{
|
|
10193
10299
|
name: "collateral_token_program",
|
|
@@ -10463,7 +10569,7 @@ var clob_exchange_default = {
|
|
|
10463
10569
|
},
|
|
10464
10570
|
{
|
|
10465
10571
|
name: "conditional_tokens_program",
|
|
10466
|
-
address: "
|
|
10572
|
+
address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
|
|
10467
10573
|
},
|
|
10468
10574
|
{
|
|
10469
10575
|
name: "collateral_token_program",
|
|
@@ -11203,6 +11309,14 @@ var clob_exchange_default = {
|
|
|
11203
11309
|
],
|
|
11204
11310
|
type: "u8"
|
|
11205
11311
|
},
|
|
11312
|
+
{
|
|
11313
|
+
name: "admin",
|
|
11314
|
+
docs: [
|
|
11315
|
+
"Admin pubkey \u2014 only this address can call reinitialize_vault.",
|
|
11316
|
+
"Set at initialize_vault time. If Pubkey::default(), first caller sets it (bootstrap)."
|
|
11317
|
+
],
|
|
11318
|
+
type: "pubkey"
|
|
11319
|
+
},
|
|
11206
11320
|
{
|
|
11207
11321
|
name: "_reserved",
|
|
11208
11322
|
docs: [
|
|
@@ -11211,7 +11325,7 @@ var clob_exchange_default = {
|
|
|
11211
11325
|
type: {
|
|
11212
11326
|
array: [
|
|
11213
11327
|
"u8",
|
|
11214
|
-
|
|
11328
|
+
32
|
|
11215
11329
|
]
|
|
11216
11330
|
}
|
|
11217
11331
|
}
|
|
@@ -11360,12 +11474,20 @@ var clob_exchange_default = {
|
|
|
11360
11474
|
name: "bump",
|
|
11361
11475
|
type: "u8"
|
|
11362
11476
|
},
|
|
11477
|
+
{
|
|
11478
|
+
name: "authorized_resolver",
|
|
11479
|
+
docs: [
|
|
11480
|
+
"QuestionMarket config PDA authorized to call set_payout.",
|
|
11481
|
+
"Uses first 32 bytes of old _reserved \u2014 existing accounts read as Pubkey::default()."
|
|
11482
|
+
],
|
|
11483
|
+
type: "pubkey"
|
|
11484
|
+
},
|
|
11363
11485
|
{
|
|
11364
11486
|
name: "_reserved",
|
|
11365
11487
|
type: {
|
|
11366
11488
|
array: [
|
|
11367
11489
|
"u8",
|
|
11368
|
-
|
|
11490
|
+
32
|
|
11369
11491
|
]
|
|
11370
11492
|
}
|
|
11371
11493
|
}
|
|
@@ -11571,7 +11693,7 @@ var clob_exchange_default = {
|
|
|
11571
11693
|
|
|
11572
11694
|
// src/idls/fee_management.json
|
|
11573
11695
|
var fee_management_default = {
|
|
11574
|
-
address: "
|
|
11696
|
+
address: "8S6hxqbDc8kgHf4uUzq2t15PeY36QSCYEpBVvM4Fhrkm",
|
|
11575
11697
|
metadata: {
|
|
11576
11698
|
name: "fee_management",
|
|
11577
11699
|
version: "0.1.0",
|
|
@@ -13041,7 +13163,7 @@ var fee_management_default = {
|
|
|
13041
13163
|
|
|
13042
13164
|
// src/idls/presale.json
|
|
13043
13165
|
var presale_default = {
|
|
13044
|
-
address: "
|
|
13166
|
+
address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C",
|
|
13045
13167
|
metadata: {
|
|
13046
13168
|
name: "presale",
|
|
13047
13169
|
version: "0.1.0",
|
|
@@ -14708,7 +14830,7 @@ var presale_default = {
|
|
|
14708
14830
|
|
|
14709
14831
|
// src/idls/market_oracle.json
|
|
14710
14832
|
var market_oracle_default = {
|
|
14711
|
-
address: "
|
|
14833
|
+
address: "Agt6beCbghi4jV9A8v9geRP5dnt2wDkJBVgy9oM33zit",
|
|
14712
14834
|
metadata: {
|
|
14713
14835
|
name: "market_oracle",
|
|
14714
14836
|
version: "0.1.0",
|
|
@@ -15409,7 +15531,7 @@ var market_oracle_default = {
|
|
|
15409
15531
|
|
|
15410
15532
|
// src/idls/admin_contract.json
|
|
15411
15533
|
var admin_contract_default = {
|
|
15412
|
-
address: "
|
|
15534
|
+
address: "2HsyCdr59W5ndeboaE9JAmhEQ46m5Gm2ZWBfYEs1tC1i",
|
|
15413
15535
|
metadata: {
|
|
15414
15536
|
name: "admin_contract",
|
|
15415
15537
|
version: "0.1.0",
|
|
@@ -16260,11 +16382,29 @@ var admin_contract_default = {
|
|
|
16260
16382
|
accounts: [
|
|
16261
16383
|
{
|
|
16262
16384
|
name: "AdminConfig",
|
|
16263
|
-
discriminator: [
|
|
16385
|
+
discriminator: [
|
|
16386
|
+
156,
|
|
16387
|
+
10,
|
|
16388
|
+
79,
|
|
16389
|
+
161,
|
|
16390
|
+
71,
|
|
16391
|
+
9,
|
|
16392
|
+
62,
|
|
16393
|
+
77
|
|
16394
|
+
]
|
|
16264
16395
|
},
|
|
16265
16396
|
{
|
|
16266
16397
|
name: "ClaimRecord",
|
|
16267
|
-
discriminator: [
|
|
16398
|
+
discriminator: [
|
|
16399
|
+
57,
|
|
16400
|
+
229,
|
|
16401
|
+
0,
|
|
16402
|
+
9,
|
|
16403
|
+
65,
|
|
16404
|
+
62,
|
|
16405
|
+
96,
|
|
16406
|
+
7
|
|
16407
|
+
]
|
|
16268
16408
|
}
|
|
16269
16409
|
],
|
|
16270
16410
|
types: [
|
|
@@ -16355,9 +16495,9 @@ var admin_contract_default = {
|
|
|
16355
16495
|
|
|
16356
16496
|
// src/idls/referral.json
|
|
16357
16497
|
var referral_default = {
|
|
16358
|
-
address: "
|
|
16498
|
+
address: "9kyNMtUEFR6hDeZHUTbRKH3t1EJisfSvWQKKUev7ujoC",
|
|
16359
16499
|
metadata: {
|
|
16360
|
-
name: "
|
|
16500
|
+
name: "referral_v2",
|
|
16361
16501
|
version: "0.1.0",
|
|
16362
16502
|
spec: "0.1.0",
|
|
16363
16503
|
description: "Referral program for XMarket \u2014 whitelist-gated batch USDS distribution"
|
|
@@ -16846,9 +16986,9 @@ var referral_default = {
|
|
|
16846
16986
|
|
|
16847
16987
|
// src/idls/dispute.json
|
|
16848
16988
|
var dispute_default = {
|
|
16849
|
-
address: "
|
|
16989
|
+
address: "8gqHPY1WtGFGmYNbrGrPVoct1kqPL6cCaUtJ17EHSsFp",
|
|
16850
16990
|
metadata: {
|
|
16851
|
-
name: "
|
|
16991
|
+
name: "dispute_v2",
|
|
16852
16992
|
version: "0.1.0",
|
|
16853
16993
|
spec: "0.1.0",
|
|
16854
16994
|
description: "Dispute program for XMarket \u2014 raise/resolve/claim disputes on prediction markets"
|