@whetstone-research/doppler-sdk 1.0.30 → 1.0.31

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.
@@ -885,13 +885,13 @@ function decodeCosignerConfig(encodedAccount) {
885
885
  getCosignerConfigDecoder()
886
886
  );
887
887
  }
888
- async function fetchCosignerConfig(rpc, address6, config) {
889
- const maybeAccount = await fetchMaybeCosignerConfig(rpc, address6, config);
888
+ async function fetchCosignerConfig(rpc, address7, config) {
889
+ const maybeAccount = await fetchMaybeCosignerConfig(rpc, address7, config);
890
890
  kit.assertAccountExists(maybeAccount);
891
891
  return maybeAccount;
892
892
  }
893
- async function fetchMaybeCosignerConfig(rpc, address6, config) {
894
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
893
+ async function fetchMaybeCosignerConfig(rpc, address7, config) {
894
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
895
895
  return decodeCosignerConfig(maybeAccount);
896
896
  }
897
897
  async function fetchAllCosignerConfig(rpc, addresses, config) {
@@ -3420,13 +3420,13 @@ function decodeClaimReceipt(encodedAccount) {
3420
3420
  getClaimReceiptDecoder()
3421
3421
  );
3422
3422
  }
3423
- async function fetchClaimReceipt(rpc, address6, config) {
3424
- const maybeAccount = await fetchMaybeClaimReceipt(rpc, address6, config);
3423
+ async function fetchClaimReceipt(rpc, address7, config) {
3424
+ const maybeAccount = await fetchMaybeClaimReceipt(rpc, address7, config);
3425
3425
  kit.assertAccountExists(maybeAccount);
3426
3426
  return maybeAccount;
3427
3427
  }
3428
- async function fetchMaybeClaimReceipt(rpc, address6, config) {
3429
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
3428
+ async function fetchMaybeClaimReceipt(rpc, address7, config) {
3429
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
3430
3430
  return decodeClaimReceipt(maybeAccount);
3431
3431
  }
3432
3432
  async function fetchAllClaimReceipt(rpc, addresses, config) {
@@ -3490,13 +3490,13 @@ function decodeEntry(encodedAccount) {
3490
3490
  getEntryDecoder()
3491
3491
  );
3492
3492
  }
3493
- async function fetchEntry(rpc, address6, config) {
3494
- const maybeAccount = await fetchMaybeEntry(rpc, address6, config);
3493
+ async function fetchEntry(rpc, address7, config) {
3494
+ const maybeAccount = await fetchMaybeEntry(rpc, address7, config);
3495
3495
  kit.assertAccountExists(maybeAccount);
3496
3496
  return maybeAccount;
3497
3497
  }
3498
- async function fetchMaybeEntry(rpc, address6, config) {
3499
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
3498
+ async function fetchMaybeEntry(rpc, address7, config) {
3499
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
3500
3500
  return decodeEntry(maybeAccount);
3501
3501
  }
3502
3502
  async function fetchAllEntry(rpc, addresses, config) {
@@ -3558,13 +3558,13 @@ function decodeEntryByMint(encodedAccount) {
3558
3558
  getEntryByMintDecoder()
3559
3559
  );
3560
3560
  }
3561
- async function fetchEntryByMint(rpc, address6, config) {
3562
- const maybeAccount = await fetchMaybeEntryByMint(rpc, address6, config);
3561
+ async function fetchEntryByMint(rpc, address7, config) {
3562
+ const maybeAccount = await fetchMaybeEntryByMint(rpc, address7, config);
3563
3563
  kit.assertAccountExists(maybeAccount);
3564
3564
  return maybeAccount;
3565
3565
  }
3566
- async function fetchMaybeEntryByMint(rpc, address6, config) {
3567
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
3566
+ async function fetchMaybeEntryByMint(rpc, address7, config) {
3567
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
3568
3568
  return decodeEntryByMint(maybeAccount);
3569
3569
  }
3570
3570
  async function fetchAllEntryByMint(rpc, addresses, config) {
@@ -3645,13 +3645,13 @@ function decodeInitConfig(encodedAccount) {
3645
3645
  getInitConfigDecoder2()
3646
3646
  );
3647
3647
  }
3648
- async function fetchInitConfig(rpc, address6, config) {
3649
- const maybeAccount = await fetchMaybeInitConfig(rpc, address6, config);
3648
+ async function fetchInitConfig(rpc, address7, config) {
3649
+ const maybeAccount = await fetchMaybeInitConfig(rpc, address7, config);
3650
3650
  kit.assertAccountExists(maybeAccount);
3651
3651
  return maybeAccount;
3652
3652
  }
3653
- async function fetchMaybeInitConfig(rpc, address6, config) {
3654
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
3653
+ async function fetchMaybeInitConfig(rpc, address7, config) {
3654
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
3655
3655
  return decodeInitConfig(maybeAccount);
3656
3656
  }
3657
3657
  async function fetchAllInitConfig(rpc, addresses, config) {
@@ -3951,13 +3951,13 @@ function decodeLaunch(encodedAccount) {
3951
3951
  getLaunchDecoder2()
3952
3952
  );
3953
3953
  }
3954
- async function fetchLaunch(rpc, address6, config) {
3955
- const maybeAccount = await fetchMaybeLaunch(rpc, address6, config);
3954
+ async function fetchLaunch(rpc, address7, config) {
3955
+ const maybeAccount = await fetchMaybeLaunch(rpc, address7, config);
3956
3956
  kit.assertAccountExists(maybeAccount);
3957
3957
  return maybeAccount;
3958
3958
  }
3959
- async function fetchMaybeLaunch(rpc, address6, config) {
3960
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
3959
+ async function fetchMaybeLaunch(rpc, address7, config) {
3960
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
3961
3961
  return decodeLaunch(maybeAccount);
3962
3962
  }
3963
3963
  async function fetchAllLaunch(rpc, addresses, config) {
@@ -4031,13 +4031,13 @@ function decodeMarket(encodedAccount) {
4031
4031
  getMarketDecoder()
4032
4032
  );
4033
4033
  }
4034
- async function fetchMarket(rpc, address6, config) {
4035
- const maybeAccount = await fetchMaybeMarket(rpc, address6, config);
4034
+ async function fetchMarket(rpc, address7, config) {
4035
+ const maybeAccount = await fetchMaybeMarket(rpc, address7, config);
4036
4036
  kit.assertAccountExists(maybeAccount);
4037
4037
  return maybeAccount;
4038
4038
  }
4039
- async function fetchMaybeMarket(rpc, address6, config) {
4040
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
4039
+ async function fetchMaybeMarket(rpc, address7, config) {
4040
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
4041
4041
  return decodeMarket(maybeAccount);
4042
4042
  }
4043
4043
  async function fetchAllMarket(rpc, addresses, config) {
@@ -4103,13 +4103,13 @@ function decodeOracleState2(encodedAccount) {
4103
4103
  getOracleStateDecoder()
4104
4104
  );
4105
4105
  }
4106
- async function fetchOracleState(rpc, address6, config) {
4107
- const maybeAccount = await fetchMaybeOracleState(rpc, address6, config);
4106
+ async function fetchOracleState(rpc, address7, config) {
4107
+ const maybeAccount = await fetchMaybeOracleState(rpc, address7, config);
4108
4108
  kit.assertAccountExists(maybeAccount);
4109
4109
  return maybeAccount;
4110
4110
  }
4111
- async function fetchMaybeOracleState(rpc, address6, config) {
4112
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
4111
+ async function fetchMaybeOracleState(rpc, address7, config) {
4112
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
4113
4113
  return decodeOracleState2(maybeAccount);
4114
4114
  }
4115
4115
  async function fetchAllOracleState(rpc, addresses, config) {
@@ -6283,8 +6283,8 @@ async function createSpotPoolInstruction(input) {
6283
6283
  }
6284
6284
 
6285
6285
  // src/solana/migrators/cpmmMigrator/client.ts
6286
- async function fetchCpmmMigratorState(rpc, address6) {
6287
- const response = await rpc.getAccountInfo(address6, { encoding: "base64" }).send();
6286
+ async function fetchCpmmMigratorState(rpc, address7) {
6287
+ const response = await rpc.getAccountInfo(address7, { encoding: "base64" }).send();
6288
6288
  if (!response.value) return null;
6289
6289
  return getCpmmMigratorStateDecoder().decode(
6290
6290
  chunk7PXLEMBJ_cjs.base64ToBytes(response.value.data[0])
@@ -6347,8 +6347,8 @@ async function buildCpmmMigrationRemainingAccounts({
6347
6347
  { address: migrationAuthority, role: kit.AccountRole.READONLY },
6348
6348
  { address: adminBaseAta, role: kit.AccountRole.WRITABLE },
6349
6349
  { address: adminQuoteAta, role: kit.AccountRole.WRITABLE },
6350
- ...recipientAtas.map((address6) => ({
6351
- address: address6,
6350
+ ...recipientAtas.map((address7) => ({
6351
+ address: address7,
6352
6352
  role: kit.AccountRole.WRITABLE
6353
6353
  }))
6354
6354
  ],
@@ -6835,8 +6835,8 @@ function assertTransactionMessageFitsWithLookupTable(transactionMessage, lookupT
6835
6835
  return assertTransactionMessageFits(compressedMessage, options);
6836
6836
  }
6837
6837
  var addressCodec6 = kit.getAddressCodec();
6838
- async function fetchLaunch2(rpc, address6, config) {
6839
- const response = await rpc.getAccountInfo(address6, {
6838
+ async function fetchLaunch2(rpc, address7, config) {
6839
+ const response = await rpc.getAccountInfo(address7, {
6840
6840
  encoding: "base64",
6841
6841
  commitment: config?.commitment
6842
6842
  }).send();
@@ -7241,13 +7241,13 @@ function decodeOracleState3(encodedAccount) {
7241
7241
  getOracleStateDecoder2()
7242
7242
  );
7243
7243
  }
7244
- async function fetchOracleState2(rpc, address6, config) {
7245
- const maybeAccount = await fetchMaybeOracleState2(rpc, address6, config);
7244
+ async function fetchOracleState2(rpc, address7, config) {
7245
+ const maybeAccount = await fetchMaybeOracleState2(rpc, address7, config);
7246
7246
  kit.assertAccountExists(maybeAccount);
7247
7247
  return maybeAccount;
7248
7248
  }
7249
- async function fetchMaybeOracleState2(rpc, address6, config) {
7250
- const maybeAccount = await kit.fetchEncodedAccount(rpc, address6, config);
7249
+ async function fetchMaybeOracleState2(rpc, address7, config) {
7250
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address7, config);
7251
7251
  return decodeOracleState3(maybeAccount);
7252
7252
  }
7253
7253
  async function fetchAllOracleState2(rpc, addresses, config) {
@@ -7908,14 +7908,20 @@ async function assertMigrationQuoteThreshold({
7908
7908
  }
7909
7909
  return progress;
7910
7910
  }
7911
-
7912
- // src/solana/deployment.ts
7913
7911
  var DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES = {
7914
7912
  cpmmProgram: chunk4CI2M2F6_cjs.CPMM_PROGRAM_ID,
7915
7913
  initializerProgram: INITIALIZER_PROGRAM_ID,
7916
7914
  cpmmMigratorProgram: CPMM_MIGRATOR_PROGRAM_ID,
7917
7915
  cpmmHookProgram: CPMM_HOOK_PROGRAM_ID
7918
7916
  };
7917
+ var DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES = {
7918
+ cpmmProgram: kit.address("5pXzd9UiWrVxATCYWmgo5EbfxzXqHYhfSKGdCPXPz7vK"),
7919
+ initializerProgram: kit.address("4carc9eePfE7jKUXdCAYMhcPf4awEFpZPrz1sTykdss1"),
7920
+ cpmmMigratorProgram: kit.address(
7921
+ "H71WD4tsiCCipro4urykWHySH1ryvLTmqEdNbHTGwb3o"
7922
+ ),
7923
+ cpmmHookProgram: kit.address("BeyqffXEVgLpM3fQ1zjk8YnZzQN9sMVrCKtNKwSxNATr")
7924
+ };
7919
7925
  async function deriveSolanaCpmmDeployment(programs = DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES) {
7920
7926
  const [cpmmConfig] = await chunk4CI2M2F6_cjs.getConfigAddress(programs.cpmmProgram);
7921
7927
  const [initializerConfig] = await getConfigAddress2(
@@ -7929,6 +7935,7 @@ async function deriveSolanaCpmmDeployment(programs = DOPPLER_SOLANA_DEVNET_PROGR
7929
7935
  }
7930
7936
 
7931
7937
  exports.DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES = DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES;
7938
+ exports.DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES = DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES;
7932
7939
  exports.assertMigrationQuoteThreshold = assertMigrationQuoteThreshold;
7933
7940
  exports.cpmm = cpmm_exports;
7934
7941
  exports.cpmmHook = cpmmHook_exports;