@bulletxyz/bullet-sdk 0.49.14 → 0.49.15
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/browser/index.js
CHANGED
|
@@ -4523,7 +4523,14 @@ async function createAuthenticatedClient(endpoints, wallet, delegatorAddress, tx
|
|
|
4523
4523
|
url: endpoints.rest.replace("rollup.", "tradingapi."),
|
|
4524
4524
|
getSerializer: (schema) => new WasmSerializer(schema),
|
|
4525
4525
|
txSubmissionEndpoint: "/tx/submit"
|
|
4526
|
-
}
|
|
4526
|
+
};
|
|
4527
|
+
if (endpoints.rest.endsWith("rollup.applications"))
|
|
4528
|
+
rollupConfigTx = {
|
|
4529
|
+
url: endpoints.rest,
|
|
4530
|
+
getSerializer: (schema) => new WasmSerializer(schema),
|
|
4531
|
+
txSubmissionEndpoint: "/sequencer/txs"
|
|
4532
|
+
};
|
|
4533
|
+
let authenticator = txOpts?.authenticator ?? DEFAULT_TRANSACTION_OPTS.authenticator, rollup = await createSolanaSignableRollup(rollupConfig, solanaEndpoint), rollup_tx = await createSolanaSignableRollup(rollupConfigTx, solanaEndpoint), client = new AuthenticatedClient(endpoints, rollup, rollup_tx, wallet, delegatorAddress, authenticator);
|
|
4527
4534
|
await client.initializeExchangeInfo();
|
|
4528
4535
|
let chainId = await client.getChainId();
|
|
4529
4536
|
rollupConfig.context = {
|
|
@@ -4640,4 +4647,4 @@ export {
|
|
|
4640
4647
|
AbortError
|
|
4641
4648
|
};
|
|
4642
4649
|
|
|
4643
|
-
//# debugId=
|
|
4650
|
+
//# debugId=BA1C39F12F4F632364756E2164756E21
|