@theliem/xmarket-sdk 4.0.3 → 4.1.1

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 CHANGED
@@ -65,6 +65,7 @@ interface Condition {
65
65
  yesMint: PublicKey;
66
66
  noMint: PublicKey;
67
67
  authorizedClob: PublicKey;
68
+ authorizedResolver: PublicKey;
68
69
  isResolved: boolean;
69
70
  resolvedAt: number;
70
71
  bump: number;
@@ -94,6 +95,7 @@ interface QuestionMarketConfig {
94
95
  owner: PublicKey;
95
96
  admin: PublicKey;
96
97
  oracle: PublicKey;
98
+ oracleProgram: PublicKey;
97
99
  conditionalTokensProgram: PublicKey;
98
100
  questionCount: number;
99
101
  approvedCount: number;
@@ -300,7 +302,7 @@ declare class CtfClient {
300
302
  * so that wallet can later sign reportPayouts.
301
303
  * payer covers rent for condition + mints.
302
304
  */
303
- prepareCondition(questionId: Uint8Array, oracle: PublicKey, collateralMint: PublicKey, authorizedClob: PublicKey, payer?: PublicKey, signers?: Keypair[]): Promise<{
305
+ prepareCondition(questionId: Uint8Array, oracle: PublicKey, collateralMint: PublicKey, authorizedClob: PublicKey, authorizedResolver?: PublicKey, payer?: PublicKey, signers?: Keypair[]): Promise<{
304
306
  signature: string;
305
307
  conditionPda: PublicKey;
306
308
  yesMint: PublicKey;
@@ -387,7 +389,7 @@ declare class MarketClient {
387
389
  feeConfigOwner?: PublicKey;
388
390
  constructor(program: anchor.Program, provider: anchor.AnchorProvider, programIds: ProgramIds, ownerPubkey: PublicKey);
389
391
  get walletPubkey(): PublicKey;
390
- initialize(admin: PublicKey, oracle: PublicKey, owner?: PublicKey): Promise<Transaction>;
392
+ initialize(admin: PublicKey, oracle: PublicKey, oracleProgram: PublicKey, owner?: PublicKey): Promise<Transaction>;
391
393
  /**
392
394
  * Build createQuestionAdmin transaction (whitelist/admin path — status = Approved immediately).
393
395
  * @param creator - Whitelisted creator (must be in whitelist or be admin/owner)
@@ -405,6 +407,7 @@ declare class MarketClient {
405
407
  newOracle?: PublicKey;
406
408
  isPaused?: boolean;
407
409
  newConditionalTokensProgram?: PublicKey;
410
+ newOracleProgram?: PublicKey;
408
411
  }, authority?: PublicKey, payer?: PublicKey): Promise<Transaction>;
409
412
  /** Set the admin (owner only). Replaces any existing admin. */
410
413
  addAdmin(newAdmin: PublicKey, owner?: PublicKey): Promise<Transaction>;
package/dist/index.d.ts CHANGED
@@ -65,6 +65,7 @@ interface Condition {
65
65
  yesMint: PublicKey;
66
66
  noMint: PublicKey;
67
67
  authorizedClob: PublicKey;
68
+ authorizedResolver: PublicKey;
68
69
  isResolved: boolean;
69
70
  resolvedAt: number;
70
71
  bump: number;
@@ -94,6 +95,7 @@ interface QuestionMarketConfig {
94
95
  owner: PublicKey;
95
96
  admin: PublicKey;
96
97
  oracle: PublicKey;
98
+ oracleProgram: PublicKey;
97
99
  conditionalTokensProgram: PublicKey;
98
100
  questionCount: number;
99
101
  approvedCount: number;
@@ -300,7 +302,7 @@ declare class CtfClient {
300
302
  * so that wallet can later sign reportPayouts.
301
303
  * payer covers rent for condition + mints.
302
304
  */
303
- prepareCondition(questionId: Uint8Array, oracle: PublicKey, collateralMint: PublicKey, authorizedClob: PublicKey, payer?: PublicKey, signers?: Keypair[]): Promise<{
305
+ prepareCondition(questionId: Uint8Array, oracle: PublicKey, collateralMint: PublicKey, authorizedClob: PublicKey, authorizedResolver?: PublicKey, payer?: PublicKey, signers?: Keypair[]): Promise<{
304
306
  signature: string;
305
307
  conditionPda: PublicKey;
306
308
  yesMint: PublicKey;
@@ -387,7 +389,7 @@ declare class MarketClient {
387
389
  feeConfigOwner?: PublicKey;
388
390
  constructor(program: anchor.Program, provider: anchor.AnchorProvider, programIds: ProgramIds, ownerPubkey: PublicKey);
389
391
  get walletPubkey(): PublicKey;
390
- initialize(admin: PublicKey, oracle: PublicKey, owner?: PublicKey): Promise<Transaction>;
392
+ initialize(admin: PublicKey, oracle: PublicKey, oracleProgram: PublicKey, owner?: PublicKey): Promise<Transaction>;
391
393
  /**
392
394
  * Build createQuestionAdmin transaction (whitelist/admin path — status = Approved immediately).
393
395
  * @param creator - Whitelisted creator (must be in whitelist or be admin/owner)
@@ -405,6 +407,7 @@ declare class MarketClient {
405
407
  newOracle?: PublicKey;
406
408
  isPaused?: boolean;
407
409
  newConditionalTokensProgram?: PublicKey;
410
+ newOracleProgram?: PublicKey;
408
411
  }, authority?: PublicKey, payer?: PublicKey): Promise<Transaction>;
409
412
  /** Set the admin (owner only). Replaces any existing admin. */
410
413
  addAdmin(newAdmin: PublicKey, owner?: PublicKey): Promise<Transaction>;
package/dist/index.js CHANGED
@@ -505,11 +505,12 @@ var MarketClient = class {
505
505
  return this.provider.wallet.publicKey;
506
506
  }
507
507
  // ─── Instructions (return Transaction — caller signs + sends) ───────────────
508
- async initialize(admin, oracle, owner = this.walletPubkey) {
508
+ async initialize(admin, oracle, oracleProgram, owner = this.walletPubkey) {
509
509
  return this.program.methods.initialize({
510
510
  admin,
511
511
  conditionalTokensProgram: this.programIds.conditionalTokens,
512
- oracle
512
+ oracle,
513
+ oracleProgram
513
514
  }).accounts({
514
515
  owner,
515
516
  config: this.configPda,
@@ -576,7 +577,8 @@ var MarketClient = class {
576
577
  newAdmin: params.newAdmin ?? null,
577
578
  newOracle: params.newOracle ?? null,
578
579
  isPaused: params.isPaused ?? null,
579
- newConditionalTokensProgram: params.newConditionalTokensProgram ?? null
580
+ newConditionalTokensProgram: params.newConditionalTokensProgram ?? null,
581
+ newOracleProgram: params.newOracleProgram ?? null
580
582
  }).accounts({
581
583
  authority,
582
584
  payer,
@@ -638,6 +640,7 @@ var MarketClient = class {
638
640
  owner: acc.owner,
639
641
  admin: acc.admin,
640
642
  oracle: acc.oracle,
643
+ oracleProgram: acc.oracleProgram,
641
644
  conditionalTokensProgram: acc.conditionalTokensProgram,
642
645
  questionCount: acc.questionCount.toNumber(),
643
646
  approvedCount: acc.approvedCount.toNumber(),
@@ -964,7 +967,7 @@ var CtfClient = class {
964
967
  * so that wallet can later sign reportPayouts.
965
968
  * payer covers rent for condition + mints.
966
969
  */
967
- async prepareCondition(questionId, oracle, collateralMint, authorizedClob, payer = this.walletPubkey, signers = []) {
970
+ async prepareCondition(questionId, oracle, collateralMint, authorizedClob, authorizedResolver = oracle, payer = this.walletPubkey, signers = []) {
968
971
  const [conditionPda] = PDA.condition(oracle, questionId, this.programIds);
969
972
  const [yesMint] = PDA.yesMint(conditionPda, this.programIds);
970
973
  const [noMint] = PDA.noMint(conditionPda, this.programIds);
@@ -972,7 +975,8 @@ var CtfClient = class {
972
975
  const [collateralVault] = PDA.collateralVault(collateralMint, this.programIds);
973
976
  const sig = await this.program.methods.prepareCondition(
974
977
  Array.from(questionId),
975
- authorizedClob
978
+ authorizedClob,
979
+ authorizedResolver
976
980
  ).accounts({
977
981
  oracle,
978
982
  condition: conditionPda,
@@ -1224,6 +1228,7 @@ var CtfClient = class {
1224
1228
  yesMint: acc.yesMint,
1225
1229
  noMint: acc.noMint,
1226
1230
  authorizedClob: acc.authorizedClob,
1231
+ authorizedResolver: acc.authorizedResolver,
1227
1232
  isResolved: acc.isResolved,
1228
1233
  resolvedAt: acc.resolvedAt?.toNumber() ?? 0,
1229
1234
  bump: acc.bump
@@ -3889,7 +3894,7 @@ var DisputeClient = class {
3889
3894
 
3890
3895
  // src/idls/oracle.json
3891
3896
  var oracle_default = {
3892
- address: "JE3iUvfv2DjhHnEqf2cFtzMtqn1AYQ5s32e1fzkL6KTo",
3897
+ address: "8uNiLDZnarxyFyoCi1bE1qkBMsLs2Tpyohtdzdvjkg8j",
3893
3898
  metadata: {
3894
3899
  name: "oracle_v2",
3895
3900
  version: "0.1.0",
@@ -4614,7 +4619,7 @@ var oracle_default = {
4614
4619
 
4615
4620
  // src/idls/question_market.json
4616
4621
  var question_market_default = {
4617
- address: "6aYGVgSPNgFxNB9f25UvKrzMs91cGh7urNZKdtnMUm6k",
4622
+ address: "FkpHo3zb5h2nNS5n6tWAvDwXPTXR2qqVLjDmEkMayott",
4618
4623
  metadata: {
4619
4624
  name: "question_market_v2",
4620
4625
  version: "0.1.0",
@@ -4948,19 +4953,19 @@ var question_market_default = {
4948
4953
  },
4949
4954
  {
4950
4955
  name: "fee_management_program",
4951
- address: "HZ5ec3NbwceUfyzZkwGEzDxQHpr4p4L9JV1gmcPDyXYw"
4956
+ address: "8S6hxqbDc8kgHf4uUzq2t15PeY36QSCYEpBVvM4Fhrkm"
4952
4957
  },
4953
4958
  {
4954
4959
  name: "presale_program",
4955
- address: "H9GzTEu5giM1k9HJm126Pp6C6b3iKWahbF7RJj8Jr3zJ"
4960
+ address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
4956
4961
  },
4957
4962
  {
4958
4963
  name: "market_oracle_program",
4959
- address: "4o7VyLGV79AynuTjTxDvsUfZKS11bX5SkSsk5zHKVovG"
4964
+ address: "Agt6beCbghi4jV9A8v9geRP5dnt2wDkJBVgy9oM33zit"
4960
4965
  },
4961
4966
  {
4962
4967
  name: "admin_program",
4963
- address: "3E2b2H3ZDMXjqQ1VKDz8zsVXWdRaH5Mjdd7qFB13Uejn"
4968
+ address: "2HsyCdr59W5ndeboaE9JAmhEQ46m5Gm2ZWBfYEs1tC1i"
4964
4969
  },
4965
4970
  {
4966
4971
  name: "token_program",
@@ -5222,11 +5227,11 @@ var question_market_default = {
5222
5227
  },
5223
5228
  {
5224
5229
  name: "presale_program",
5225
- address: "H9GzTEu5giM1k9HJm126Pp6C6b3iKWahbF7RJj8Jr3zJ"
5230
+ address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
5226
5231
  },
5227
5232
  {
5228
5233
  name: "admin_program",
5229
- address: "3E2b2H3ZDMXjqQ1VKDz8zsVXWdRaH5Mjdd7qFB13Uejn"
5234
+ address: "2HsyCdr59W5ndeboaE9JAmhEQ46m5Gm2ZWBfYEs1tC1i"
5230
5235
  },
5231
5236
  {
5232
5237
  name: "token_program",
@@ -5308,7 +5313,7 @@ var question_market_default = {
5308
5313
  },
5309
5314
  {
5310
5315
  name: "market_oracle_program",
5311
- address: "4o7VyLGV79AynuTjTxDvsUfZKS11bX5SkSsk5zHKVovG"
5316
+ address: "Agt6beCbghi4jV9A8v9geRP5dnt2wDkJBVgy9oM33zit"
5312
5317
  }
5313
5318
  ],
5314
5319
  args: []
@@ -5536,7 +5541,7 @@ var question_market_default = {
5536
5541
  },
5537
5542
  {
5538
5543
  name: "presale_program",
5539
- address: "H9GzTEu5giM1k9HJm126Pp6C6b3iKWahbF7RJj8Jr3zJ"
5544
+ address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
5540
5545
  },
5541
5546
  {
5542
5547
  name: "token_program",
@@ -5672,7 +5677,7 @@ var question_market_default = {
5672
5677
  },
5673
5678
  {
5674
5679
  name: "fee_management_program",
5675
- address: "HZ5ec3NbwceUfyzZkwGEzDxQHpr4p4L9JV1gmcPDyXYw"
5680
+ address: "8S6hxqbDc8kgHf4uUzq2t15PeY36QSCYEpBVvM4Fhrkm"
5676
5681
  },
5677
5682
  {
5678
5683
  name: "token_program",
@@ -5865,7 +5870,7 @@ var question_market_default = {
5865
5870
  },
5866
5871
  {
5867
5872
  name: "presale_program",
5868
- address: "H9GzTEu5giM1k9HJm126Pp6C6b3iKWahbF7RJj8Jr3zJ"
5873
+ address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C"
5869
5874
  }
5870
5875
  ],
5871
5876
  args: []
@@ -6085,7 +6090,8 @@ var question_market_default = {
6085
6090
  {
6086
6091
  name: "condition",
6087
6092
  docs: [
6088
- "The Condition account in CTF (will be updated via CPI)"
6093
+ "The Condition account in CTF (will be updated via CPI).",
6094
+ "Must match question.condition \u2014 prevents cross-market resolution."
6089
6095
  ],
6090
6096
  writable: true
6091
6097
  },
@@ -6098,7 +6104,7 @@ var question_market_default = {
6098
6104
  {
6099
6105
  name: "oracle_program",
6100
6106
  docs: [
6101
- "Oracle program (for reading QuestionResult)"
6107
+ "Oracle program (for reading QuestionResult) \u2014 must match config.oracle_program"
6102
6108
  ]
6103
6109
  },
6104
6110
  {
@@ -6721,7 +6727,14 @@ var question_market_default = {
6721
6727
  {
6722
6728
  name: "oracle",
6723
6729
  docs: [
6724
- "Oracle pubkey that will resolve conditions"
6730
+ "Oracle config PDA that will resolve conditions"
6731
+ ],
6732
+ type: "pubkey"
6733
+ },
6734
+ {
6735
+ name: "oracle_program",
6736
+ docs: [
6737
+ "Oracle program ID \u2014 used to validate oracle proofs in resolve_question"
6725
6738
  ],
6726
6739
  type: "pubkey"
6727
6740
  }
@@ -7193,7 +7206,14 @@ var question_market_default = {
7193
7206
  {
7194
7207
  name: "oracle",
7195
7208
  docs: [
7196
- "Oracle pubkey that will resolve conditions"
7209
+ "Oracle config PDA that will resolve conditions"
7210
+ ],
7211
+ type: "pubkey"
7212
+ },
7213
+ {
7214
+ name: "oracle_program",
7215
+ docs: [
7216
+ "Oracle program ID \u2014 pinned for CPI validation in resolve_question"
7197
7217
  ],
7198
7218
  type: "pubkey"
7199
7219
  },
@@ -7266,7 +7286,7 @@ var question_market_default = {
7266
7286
  type: {
7267
7287
  array: [
7268
7288
  "u8",
7269
- 440
7289
+ 408
7270
7290
  ]
7271
7291
  }
7272
7292
  }
@@ -7464,6 +7484,15 @@ var question_market_default = {
7464
7484
  type: {
7465
7485
  option: "pubkey"
7466
7486
  }
7487
+ },
7488
+ {
7489
+ name: "new_oracle_program",
7490
+ docs: [
7491
+ "New oracle program ID (optional) \u2014 used to validate oracle proofs in resolve_question"
7492
+ ],
7493
+ type: {
7494
+ option: "pubkey"
7495
+ }
7467
7496
  }
7468
7497
  ]
7469
7498
  }
@@ -7473,7 +7502,7 @@ var question_market_default = {
7473
7502
 
7474
7503
  // src/idls/conditional_tokens.json
7475
7504
  var conditional_tokens_default = {
7476
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB",
7505
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT",
7477
7506
  metadata: {
7478
7507
  name: "conditional_tokens_v2",
7479
7508
  version: "0.1.0",
@@ -7894,6 +7923,10 @@ var conditional_tokens_default = {
7894
7923
  {
7895
7924
  name: "authorized_clob",
7896
7925
  type: "pubkey"
7926
+ },
7927
+ {
7928
+ name: "authorized_resolver",
7929
+ type: "pubkey"
7897
7930
  }
7898
7931
  ]
7899
7932
  },
@@ -8023,9 +8056,6 @@ var conditional_tokens_default = {
8023
8056
  },
8024
8057
  {
8025
8058
  name: "collateral_vault",
8026
- docs: [
8027
- "Use canonical bump derivation (no bump = vault.bump) so corrupt bump doesn't block us"
8028
- ],
8029
8059
  writable: true,
8030
8060
  pda: {
8031
8061
  seeds: [
@@ -8059,9 +8089,6 @@ var conditional_tokens_default = {
8059
8089
  },
8060
8090
  {
8061
8091
  name: "vault_token_account",
8062
- docs: [
8063
- "Existing vault token account \u2014 just update the reference"
8064
- ],
8065
8092
  writable: true,
8066
8093
  pda: {
8067
8094
  seeds: [
@@ -8739,6 +8766,14 @@ var conditional_tokens_default = {
8739
8766
  ],
8740
8767
  type: "u8"
8741
8768
  },
8769
+ {
8770
+ name: "admin",
8771
+ docs: [
8772
+ "Admin pubkey \u2014 only this address can call reinitialize_vault.",
8773
+ "Set at initialize_vault time. If Pubkey::default(), first caller sets it (bootstrap)."
8774
+ ],
8775
+ type: "pubkey"
8776
+ },
8742
8777
  {
8743
8778
  name: "_reserved",
8744
8779
  docs: [
@@ -8747,7 +8782,7 @@ var conditional_tokens_default = {
8747
8782
  type: {
8748
8783
  array: [
8749
8784
  "u8",
8750
- 64
8785
+ 32
8751
8786
  ]
8752
8787
  }
8753
8788
  }
@@ -8825,12 +8860,20 @@ var conditional_tokens_default = {
8825
8860
  name: "bump",
8826
8861
  type: "u8"
8827
8862
  },
8863
+ {
8864
+ name: "authorized_resolver",
8865
+ docs: [
8866
+ "QuestionMarket config PDA authorized to call set_payout.",
8867
+ "Uses first 32 bytes of old _reserved \u2014 existing accounts read as Pubkey::default()."
8868
+ ],
8869
+ type: "pubkey"
8870
+ },
8828
8871
  {
8829
8872
  name: "_reserved",
8830
8873
  type: {
8831
8874
  array: [
8832
8875
  "u8",
8833
- 64
8876
+ 32
8834
8877
  ]
8835
8878
  }
8836
8879
  }
@@ -9176,7 +9219,7 @@ var conditional_tokens_default = {
9176
9219
 
9177
9220
  // src/idls/clob_exchange.json
9178
9221
  var clob_exchange_default = {
9179
- address: "43ubx86ZnGJ4bzD8uZY91uoUzJdK2jULwSSVk8zHjzEY",
9222
+ address: "AFT8SM1Vv8g8AQTf81LoE5oLteUTyhWzWTLj7SKZjkY1",
9180
9223
  metadata: {
9181
9224
  name: "clob_exchange_v2",
9182
9225
  version: "0.1.0",
@@ -9369,7 +9412,7 @@ var clob_exchange_default = {
9369
9412
  },
9370
9413
  {
9371
9414
  name: "conditional_tokens_program",
9372
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB"
9415
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
9373
9416
  },
9374
9417
  {
9375
9418
  name: "token_program",
@@ -9520,7 +9563,7 @@ var clob_exchange_default = {
9520
9563
  },
9521
9564
  {
9522
9565
  name: "conditional_tokens_program",
9523
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB"
9566
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
9524
9567
  },
9525
9568
  {
9526
9569
  name: "token_program",
@@ -9667,7 +9710,7 @@ var clob_exchange_default = {
9667
9710
  },
9668
9711
  {
9669
9712
  name: "conditional_tokens_program",
9670
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB"
9713
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
9671
9714
  },
9672
9715
  {
9673
9716
  name: "token_program",
@@ -10030,7 +10073,7 @@ var clob_exchange_default = {
10030
10073
  },
10031
10074
  {
10032
10075
  name: "conditional_tokens_program",
10033
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB"
10076
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
10034
10077
  },
10035
10078
  {
10036
10079
  name: "token_program",
@@ -10302,7 +10345,7 @@ var clob_exchange_default = {
10302
10345
  },
10303
10346
  {
10304
10347
  name: "conditional_tokens_program",
10305
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB"
10348
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
10306
10349
  },
10307
10350
  {
10308
10351
  name: "collateral_token_program",
@@ -10578,7 +10621,7 @@ var clob_exchange_default = {
10578
10621
  },
10579
10622
  {
10580
10623
  name: "conditional_tokens_program",
10581
- address: "3f4vBEgXo9y4Ndrn8KWnNpLLtt4VAGkmKWqXpGS1BLDB"
10624
+ address: "xpn3htSptTZECudoRA8WJmAEtiijxDseTqtawYysVNT"
10582
10625
  },
10583
10626
  {
10584
10627
  name: "collateral_token_program",
@@ -11318,6 +11361,14 @@ var clob_exchange_default = {
11318
11361
  ],
11319
11362
  type: "u8"
11320
11363
  },
11364
+ {
11365
+ name: "admin",
11366
+ docs: [
11367
+ "Admin pubkey \u2014 only this address can call reinitialize_vault.",
11368
+ "Set at initialize_vault time. If Pubkey::default(), first caller sets it (bootstrap)."
11369
+ ],
11370
+ type: "pubkey"
11371
+ },
11321
11372
  {
11322
11373
  name: "_reserved",
11323
11374
  docs: [
@@ -11326,7 +11377,7 @@ var clob_exchange_default = {
11326
11377
  type: {
11327
11378
  array: [
11328
11379
  "u8",
11329
- 64
11380
+ 32
11330
11381
  ]
11331
11382
  }
11332
11383
  }
@@ -11475,12 +11526,20 @@ var clob_exchange_default = {
11475
11526
  name: "bump",
11476
11527
  type: "u8"
11477
11528
  },
11529
+ {
11530
+ name: "authorized_resolver",
11531
+ docs: [
11532
+ "QuestionMarket config PDA authorized to call set_payout.",
11533
+ "Uses first 32 bytes of old _reserved \u2014 existing accounts read as Pubkey::default()."
11534
+ ],
11535
+ type: "pubkey"
11536
+ },
11478
11537
  {
11479
11538
  name: "_reserved",
11480
11539
  type: {
11481
11540
  array: [
11482
11541
  "u8",
11483
- 64
11542
+ 32
11484
11543
  ]
11485
11544
  }
11486
11545
  }
@@ -11686,7 +11745,7 @@ var clob_exchange_default = {
11686
11745
 
11687
11746
  // src/idls/fee_management.json
11688
11747
  var fee_management_default = {
11689
- address: "DuYyXguB5PVSKg6E2p4XPrrXZSCJnuBhoGpkGCBN5bBb",
11748
+ address: "8S6hxqbDc8kgHf4uUzq2t15PeY36QSCYEpBVvM4Fhrkm",
11690
11749
  metadata: {
11691
11750
  name: "fee_management",
11692
11751
  version: "0.1.0",
@@ -13156,7 +13215,7 @@ var fee_management_default = {
13156
13215
 
13157
13216
  // src/idls/presale.json
13158
13217
  var presale_default = {
13159
- address: "2Rnw1VoEtsUMQ7wkvYZjDehqSqRob6uNkeymDfvKrquB",
13218
+ address: "CKd94vPibAMAr8R5eLv21r8PYXkgLRithipBe8GV7J6C",
13160
13219
  metadata: {
13161
13220
  name: "presale",
13162
13221
  version: "0.1.0",
@@ -14823,7 +14882,7 @@ var presale_default = {
14823
14882
 
14824
14883
  // src/idls/market_oracle.json
14825
14884
  var market_oracle_default = {
14826
- address: "ADWF4J3nCJ2kWnCtycuem2jhu7amUqJWQG3oa5xF67QJ",
14885
+ address: "Agt6beCbghi4jV9A8v9geRP5dnt2wDkJBVgy9oM33zit",
14827
14886
  metadata: {
14828
14887
  name: "market_oracle",
14829
14888
  version: "0.1.0",
@@ -15524,7 +15583,7 @@ var market_oracle_default = {
15524
15583
 
15525
15584
  // src/idls/admin_contract.json
15526
15585
  var admin_contract_default = {
15527
- address: "4NdD5962SfGqofmeyjfifJpdGnwTAiKaUKB5Z42UDc9T",
15586
+ address: "2HsyCdr59W5ndeboaE9JAmhEQ46m5Gm2ZWBfYEs1tC1i",
15528
15587
  metadata: {
15529
15588
  name: "admin_contract",
15530
15589
  version: "0.1.0",
@@ -16375,11 +16434,29 @@ var admin_contract_default = {
16375
16434
  accounts: [
16376
16435
  {
16377
16436
  name: "AdminConfig",
16378
- discriminator: [156, 10, 79, 161, 71, 9, 62, 77]
16437
+ discriminator: [
16438
+ 156,
16439
+ 10,
16440
+ 79,
16441
+ 161,
16442
+ 71,
16443
+ 9,
16444
+ 62,
16445
+ 77
16446
+ ]
16379
16447
  },
16380
16448
  {
16381
16449
  name: "ClaimRecord",
16382
- discriminator: [57, 229, 0, 9, 65, 62, 96, 7]
16450
+ discriminator: [
16451
+ 57,
16452
+ 229,
16453
+ 0,
16454
+ 9,
16455
+ 65,
16456
+ 62,
16457
+ 96,
16458
+ 7
16459
+ ]
16383
16460
  }
16384
16461
  ],
16385
16462
  types: [
@@ -16470,9 +16547,9 @@ var admin_contract_default = {
16470
16547
 
16471
16548
  // src/idls/referral.json
16472
16549
  var referral_default = {
16473
- address: "7b5ohWDqrQ2KRcDJMWwj1dwgRkt5ZJdMavSmrXn9oBgL",
16550
+ address: "9kyNMtUEFR6hDeZHUTbRKH3t1EJisfSvWQKKUev7ujoC",
16474
16551
  metadata: {
16475
- name: "referral",
16552
+ name: "referral_v2",
16476
16553
  version: "0.1.0",
16477
16554
  spec: "0.1.0",
16478
16555
  description: "Referral program for XMarket \u2014 whitelist-gated batch USDS distribution"
@@ -16961,9 +17038,9 @@ var referral_default = {
16961
17038
 
16962
17039
  // src/idls/dispute.json
16963
17040
  var dispute_default = {
16964
- address: "4toSDWDCcx37R6HZ78P71nDp3NNoJvcmQpzP4sfivVvL",
17041
+ address: "8gqHPY1WtGFGmYNbrGrPVoct1kqPL6cCaUtJ17EHSsFp",
16965
17042
  metadata: {
16966
- name: "dispute",
17043
+ name: "dispute_v2",
16967
17044
  version: "0.1.0",
16968
17045
  spec: "0.1.0",
16969
17046
  description: "Dispute program for XMarket \u2014 raise/resolve/claim disputes on prediction markets"