@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.
@@ -4360,6 +4360,7 @@ interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4360
4360
  initializerConfig: Address;
4361
4361
  }
4362
4362
  declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4363
+ declare const DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4363
4364
  declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
4364
4365
 
4365
4366
  /**
@@ -7163,4 +7164,4 @@ declare function assertMigrationQuoteThreshold({ rpc, quoteVault, pendingQuoteFe
7163
7164
  commitment?: 'processed' | 'confirmed' | 'finalized';
7164
7165
  }): Promise<MigrationQuoteProgress>;
7165
7166
 
7166
- export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cpmm, index$4 as cpmmHook, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };
7167
+ export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cpmm, index$4 as cpmmHook, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };
@@ -4360,6 +4360,7 @@ interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4360
4360
  initializerConfig: Address;
4361
4361
  }
4362
4362
  declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4363
+ declare const DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4363
4364
  declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
4364
4365
 
4365
4366
  /**
@@ -7163,4 +7164,4 @@ declare function assertMigrationQuoteThreshold({ rpc, quoteVault, pendingQuoteFe
7163
7164
  commitment?: 'processed' | 'confirmed' | 'finalized';
7164
7165
  }): Promise<MigrationQuoteProgress>;
7165
7166
 
7166
- export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cpmm, index$4 as cpmmHook, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };
7167
+ export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cpmm, index$4 as cpmmHook, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };
@@ -883,13 +883,13 @@ function decodeCosignerConfig(encodedAccount) {
883
883
  getCosignerConfigDecoder()
884
884
  );
885
885
  }
886
- async function fetchCosignerConfig(rpc, address6, config) {
887
- const maybeAccount = await fetchMaybeCosignerConfig(rpc, address6, config);
886
+ async function fetchCosignerConfig(rpc, address7, config) {
887
+ const maybeAccount = await fetchMaybeCosignerConfig(rpc, address7, config);
888
888
  assertAccountExists(maybeAccount);
889
889
  return maybeAccount;
890
890
  }
891
- async function fetchMaybeCosignerConfig(rpc, address6, config) {
892
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
891
+ async function fetchMaybeCosignerConfig(rpc, address7, config) {
892
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
893
893
  return decodeCosignerConfig(maybeAccount);
894
894
  }
895
895
  async function fetchAllCosignerConfig(rpc, addresses, config) {
@@ -3418,13 +3418,13 @@ function decodeClaimReceipt(encodedAccount) {
3418
3418
  getClaimReceiptDecoder()
3419
3419
  );
3420
3420
  }
3421
- async function fetchClaimReceipt(rpc, address6, config) {
3422
- const maybeAccount = await fetchMaybeClaimReceipt(rpc, address6, config);
3421
+ async function fetchClaimReceipt(rpc, address7, config) {
3422
+ const maybeAccount = await fetchMaybeClaimReceipt(rpc, address7, config);
3423
3423
  assertAccountExists(maybeAccount);
3424
3424
  return maybeAccount;
3425
3425
  }
3426
- async function fetchMaybeClaimReceipt(rpc, address6, config) {
3427
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
3426
+ async function fetchMaybeClaimReceipt(rpc, address7, config) {
3427
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
3428
3428
  return decodeClaimReceipt(maybeAccount);
3429
3429
  }
3430
3430
  async function fetchAllClaimReceipt(rpc, addresses, config) {
@@ -3488,13 +3488,13 @@ function decodeEntry(encodedAccount) {
3488
3488
  getEntryDecoder()
3489
3489
  );
3490
3490
  }
3491
- async function fetchEntry(rpc, address6, config) {
3492
- const maybeAccount = await fetchMaybeEntry(rpc, address6, config);
3491
+ async function fetchEntry(rpc, address7, config) {
3492
+ const maybeAccount = await fetchMaybeEntry(rpc, address7, config);
3493
3493
  assertAccountExists(maybeAccount);
3494
3494
  return maybeAccount;
3495
3495
  }
3496
- async function fetchMaybeEntry(rpc, address6, config) {
3497
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
3496
+ async function fetchMaybeEntry(rpc, address7, config) {
3497
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
3498
3498
  return decodeEntry(maybeAccount);
3499
3499
  }
3500
3500
  async function fetchAllEntry(rpc, addresses, config) {
@@ -3556,13 +3556,13 @@ function decodeEntryByMint(encodedAccount) {
3556
3556
  getEntryByMintDecoder()
3557
3557
  );
3558
3558
  }
3559
- async function fetchEntryByMint(rpc, address6, config) {
3560
- const maybeAccount = await fetchMaybeEntryByMint(rpc, address6, config);
3559
+ async function fetchEntryByMint(rpc, address7, config) {
3560
+ const maybeAccount = await fetchMaybeEntryByMint(rpc, address7, config);
3561
3561
  assertAccountExists(maybeAccount);
3562
3562
  return maybeAccount;
3563
3563
  }
3564
- async function fetchMaybeEntryByMint(rpc, address6, config) {
3565
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
3564
+ async function fetchMaybeEntryByMint(rpc, address7, config) {
3565
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
3566
3566
  return decodeEntryByMint(maybeAccount);
3567
3567
  }
3568
3568
  async function fetchAllEntryByMint(rpc, addresses, config) {
@@ -3643,13 +3643,13 @@ function decodeInitConfig(encodedAccount) {
3643
3643
  getInitConfigDecoder2()
3644
3644
  );
3645
3645
  }
3646
- async function fetchInitConfig(rpc, address6, config) {
3647
- const maybeAccount = await fetchMaybeInitConfig(rpc, address6, config);
3646
+ async function fetchInitConfig(rpc, address7, config) {
3647
+ const maybeAccount = await fetchMaybeInitConfig(rpc, address7, config);
3648
3648
  assertAccountExists(maybeAccount);
3649
3649
  return maybeAccount;
3650
3650
  }
3651
- async function fetchMaybeInitConfig(rpc, address6, config) {
3652
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
3651
+ async function fetchMaybeInitConfig(rpc, address7, config) {
3652
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
3653
3653
  return decodeInitConfig(maybeAccount);
3654
3654
  }
3655
3655
  async function fetchAllInitConfig(rpc, addresses, config) {
@@ -3949,13 +3949,13 @@ function decodeLaunch(encodedAccount) {
3949
3949
  getLaunchDecoder2()
3950
3950
  );
3951
3951
  }
3952
- async function fetchLaunch(rpc, address6, config) {
3953
- const maybeAccount = await fetchMaybeLaunch(rpc, address6, config);
3952
+ async function fetchLaunch(rpc, address7, config) {
3953
+ const maybeAccount = await fetchMaybeLaunch(rpc, address7, config);
3954
3954
  assertAccountExists(maybeAccount);
3955
3955
  return maybeAccount;
3956
3956
  }
3957
- async function fetchMaybeLaunch(rpc, address6, config) {
3958
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
3957
+ async function fetchMaybeLaunch(rpc, address7, config) {
3958
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
3959
3959
  return decodeLaunch(maybeAccount);
3960
3960
  }
3961
3961
  async function fetchAllLaunch(rpc, addresses, config) {
@@ -4029,13 +4029,13 @@ function decodeMarket(encodedAccount) {
4029
4029
  getMarketDecoder()
4030
4030
  );
4031
4031
  }
4032
- async function fetchMarket(rpc, address6, config) {
4033
- const maybeAccount = await fetchMaybeMarket(rpc, address6, config);
4032
+ async function fetchMarket(rpc, address7, config) {
4033
+ const maybeAccount = await fetchMaybeMarket(rpc, address7, config);
4034
4034
  assertAccountExists(maybeAccount);
4035
4035
  return maybeAccount;
4036
4036
  }
4037
- async function fetchMaybeMarket(rpc, address6, config) {
4038
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
4037
+ async function fetchMaybeMarket(rpc, address7, config) {
4038
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
4039
4039
  return decodeMarket(maybeAccount);
4040
4040
  }
4041
4041
  async function fetchAllMarket(rpc, addresses, config) {
@@ -4101,13 +4101,13 @@ function decodeOracleState2(encodedAccount) {
4101
4101
  getOracleStateDecoder()
4102
4102
  );
4103
4103
  }
4104
- async function fetchOracleState(rpc, address6, config) {
4105
- const maybeAccount = await fetchMaybeOracleState(rpc, address6, config);
4104
+ async function fetchOracleState(rpc, address7, config) {
4105
+ const maybeAccount = await fetchMaybeOracleState(rpc, address7, config);
4106
4106
  assertAccountExists(maybeAccount);
4107
4107
  return maybeAccount;
4108
4108
  }
4109
- async function fetchMaybeOracleState(rpc, address6, config) {
4110
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
4109
+ async function fetchMaybeOracleState(rpc, address7, config) {
4110
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
4111
4111
  return decodeOracleState2(maybeAccount);
4112
4112
  }
4113
4113
  async function fetchAllOracleState(rpc, addresses, config) {
@@ -6281,8 +6281,8 @@ async function createSpotPoolInstruction(input) {
6281
6281
  }
6282
6282
 
6283
6283
  // src/solana/migrators/cpmmMigrator/client.ts
6284
- async function fetchCpmmMigratorState(rpc, address6) {
6285
- const response = await rpc.getAccountInfo(address6, { encoding: "base64" }).send();
6284
+ async function fetchCpmmMigratorState(rpc, address7) {
6285
+ const response = await rpc.getAccountInfo(address7, { encoding: "base64" }).send();
6286
6286
  if (!response.value) return null;
6287
6287
  return getCpmmMigratorStateDecoder().decode(
6288
6288
  base64ToBytes(response.value.data[0])
@@ -6345,8 +6345,8 @@ async function buildCpmmMigrationRemainingAccounts({
6345
6345
  { address: migrationAuthority, role: AccountRole.READONLY },
6346
6346
  { address: adminBaseAta, role: AccountRole.WRITABLE },
6347
6347
  { address: adminQuoteAta, role: AccountRole.WRITABLE },
6348
- ...recipientAtas.map((address6) => ({
6349
- address: address6,
6348
+ ...recipientAtas.map((address7) => ({
6349
+ address: address7,
6350
6350
  role: AccountRole.WRITABLE
6351
6351
  }))
6352
6352
  ],
@@ -6833,8 +6833,8 @@ function assertTransactionMessageFitsWithLookupTable(transactionMessage, lookupT
6833
6833
  return assertTransactionMessageFits(compressedMessage, options);
6834
6834
  }
6835
6835
  var addressCodec6 = getAddressCodec();
6836
- async function fetchLaunch2(rpc, address6, config) {
6837
- const response = await rpc.getAccountInfo(address6, {
6836
+ async function fetchLaunch2(rpc, address7, config) {
6837
+ const response = await rpc.getAccountInfo(address7, {
6838
6838
  encoding: "base64",
6839
6839
  commitment: config?.commitment
6840
6840
  }).send();
@@ -7239,13 +7239,13 @@ function decodeOracleState3(encodedAccount) {
7239
7239
  getOracleStateDecoder2()
7240
7240
  );
7241
7241
  }
7242
- async function fetchOracleState2(rpc, address6, config) {
7243
- const maybeAccount = await fetchMaybeOracleState2(rpc, address6, config);
7242
+ async function fetchOracleState2(rpc, address7, config) {
7243
+ const maybeAccount = await fetchMaybeOracleState2(rpc, address7, config);
7244
7244
  assertAccountExists(maybeAccount);
7245
7245
  return maybeAccount;
7246
7246
  }
7247
- async function fetchMaybeOracleState2(rpc, address6, config) {
7248
- const maybeAccount = await fetchEncodedAccount(rpc, address6, config);
7247
+ async function fetchMaybeOracleState2(rpc, address7, config) {
7248
+ const maybeAccount = await fetchEncodedAccount(rpc, address7, config);
7249
7249
  return decodeOracleState3(maybeAccount);
7250
7250
  }
7251
7251
  async function fetchAllOracleState2(rpc, addresses, config) {
@@ -7906,14 +7906,20 @@ async function assertMigrationQuoteThreshold({
7906
7906
  }
7907
7907
  return progress;
7908
7908
  }
7909
-
7910
- // src/solana/deployment.ts
7911
7909
  var DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES = {
7912
7910
  cpmmProgram: CPMM_PROGRAM_ID,
7913
7911
  initializerProgram: INITIALIZER_PROGRAM_ID,
7914
7912
  cpmmMigratorProgram: CPMM_MIGRATOR_PROGRAM_ID,
7915
7913
  cpmmHookProgram: CPMM_HOOK_PROGRAM_ID
7916
7914
  };
7915
+ var DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES = {
7916
+ cpmmProgram: address("5pXzd9UiWrVxATCYWmgo5EbfxzXqHYhfSKGdCPXPz7vK"),
7917
+ initializerProgram: address("4carc9eePfE7jKUXdCAYMhcPf4awEFpZPrz1sTykdss1"),
7918
+ cpmmMigratorProgram: address(
7919
+ "H71WD4tsiCCipro4urykWHySH1ryvLTmqEdNbHTGwb3o"
7920
+ ),
7921
+ cpmmHookProgram: address("BeyqffXEVgLpM3fQ1zjk8YnZzQN9sMVrCKtNKwSxNATr")
7922
+ };
7917
7923
  async function deriveSolanaCpmmDeployment(programs = DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES) {
7918
7924
  const [cpmmConfig] = await getConfigAddress(programs.cpmmProgram);
7919
7925
  const [initializerConfig] = await getConfigAddress2(
@@ -7926,6 +7932,6 @@ async function deriveSolanaCpmmDeployment(programs = DOPPLER_SOLANA_DEVNET_PROGR
7926
7932
  };
7927
7933
  }
7928
7934
 
7929
- export { DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, assertMigrationQuoteThreshold, cpmm_exports as cpmm, cpmmHook_exports as cpmmHook, cpmmMigrator_exports as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, initializer_exports as initializer, migrateLaunch, predictionMigrator_exports as predictionMigrator, swapExactIn, trustedOracle_exports as trustedOracle };
7935
+ export { DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, DOPPLER_SOLANA_MAINNET_PROGRAM_ADDRESSES, assertMigrationQuoteThreshold, cpmm_exports as cpmm, cpmmHook_exports as cpmmHook, cpmmMigrator_exports as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, initializer_exports as initializer, migrateLaunch, predictionMigrator_exports as predictionMigrator, swapExactIn, trustedOracle_exports as trustedOracle };
7930
7936
  //# sourceMappingURL=index.js.map
7931
7937
  //# sourceMappingURL=index.js.map