@bulletxyz/bullet-sdk 0.27.0-rc.2 → 0.27.0-rc.4

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.
@@ -8808,6 +8808,7 @@ var Wallet = class {
8808
8808
  };
8809
8809
 
8810
8810
  // src/client.ts
8811
+ import { WasmSerializer } from "@sovereign-sdk/serializers/wasm";
8811
8812
  import {
8812
8813
  VersionMismatchError,
8813
8814
  createStandardRollup
@@ -9343,10 +9344,7 @@ var Client = class _Client {
9343
9344
  static async fromEndpoints(endpoints, wallet, txOpts = DEFAULT_TRANSACTION_OPTS) {
9344
9345
  const rollup = await createStandardRollup({
9345
9346
  url: endpoints.rest,
9346
- // TODO: Commenting out the WasmSerializer is a temporary fix
9347
- // With it, we'd get "wasm2.__wbindgen_add_to_stack_pointer is not a function". Sovereign is investigating.
9348
- // Without it, it'll default to the JS-based implementation, which isn't thoroughly used (but should be pretty thoroughly tested)
9349
- // getSerializer: (schema) => new WasmSerializer(schema),
9347
+ getSerializer: (schema) => new WasmSerializer(schema),
9350
9348
  context: {
9351
9349
  defaultTxDetails: {
9352
9350
  max_priority_fee_bips: txOpts.maxPriorityFeeBps,
@@ -9896,7 +9894,7 @@ var Client = class _Client {
9896
9894
  interest_rate: BulletWasm.convert_rust_decimal_to_json(
9897
9895
  interestRate.toFixed()
9898
9896
  ),
9899
- init_leverage_table_args: new Map(
9897
+ leverage_table_args: new Map(
9900
9898
  Array.from(initLeverageTableArgs.entries()).map(
9901
9899
  ([decimalKey, value]) => [
9902
9900
  BulletWasm.convert_rust_decimal_to_json(decimalKey.toFixed()),