@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.
package/dist/browser/index.js
CHANGED
|
@@ -8794,6 +8794,7 @@ var BulletError = class _BulletError extends Error {
|
|
|
8794
8794
|
};
|
|
8795
8795
|
|
|
8796
8796
|
// src/client.ts
|
|
8797
|
+
import { WasmSerializer } from "@sovereign-sdk/serializers/wasm";
|
|
8797
8798
|
import {
|
|
8798
8799
|
VersionMismatchError,
|
|
8799
8800
|
createStandardRollup
|
|
@@ -9329,10 +9330,7 @@ var Client = class _Client {
|
|
|
9329
9330
|
static async fromEndpoints(endpoints, wallet, txOpts = DEFAULT_TRANSACTION_OPTS) {
|
|
9330
9331
|
const rollup = await createStandardRollup({
|
|
9331
9332
|
url: endpoints.rest,
|
|
9332
|
-
|
|
9333
|
-
// With it, we'd get "wasm2.__wbindgen_add_to_stack_pointer is not a function". Sovereign is investigating.
|
|
9334
|
-
// Without it, it'll default to the JS-based implementation, which isn't thoroughly used (but should be pretty thoroughly tested)
|
|
9335
|
-
// getSerializer: (schema) => new WasmSerializer(schema),
|
|
9333
|
+
getSerializer: (schema) => new WasmSerializer(schema),
|
|
9336
9334
|
context: {
|
|
9337
9335
|
defaultTxDetails: {
|
|
9338
9336
|
max_priority_fee_bips: txOpts.maxPriorityFeeBps,
|
|
@@ -9882,7 +9880,7 @@ var Client = class _Client {
|
|
|
9882
9880
|
interest_rate: BulletWasm.convert_rust_decimal_to_json(
|
|
9883
9881
|
interestRate.toFixed()
|
|
9884
9882
|
),
|
|
9885
|
-
|
|
9883
|
+
leverage_table_args: new Map(
|
|
9886
9884
|
Array.from(initLeverageTableArgs.entries()).map(
|
|
9887
9885
|
([decimalKey, value]) => [
|
|
9888
9886
|
BulletWasm.convert_rust_decimal_to_json(decimalKey.toFixed()),
|