@win-trader/bindings 0.1.0 → 0.3.0

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.
@@ -5,47 +5,44 @@ export * from "@stellar/stellar-sdk";
5
5
  export * as contract from "@stellar/stellar-sdk/contract";
6
6
  export * as rpc from "@stellar/stellar-sdk/rpc";
7
7
  export declare const ConfigManagerError: {
8
- 1: {
8
+ 300: {
9
9
  message: string;
10
10
  };
11
- 2: {
11
+ 301: {
12
12
  message: string;
13
13
  };
14
- 3: {
14
+ 310: {
15
15
  message: string;
16
16
  };
17
- 6: {
17
+ 311: {
18
18
  message: string;
19
19
  };
20
- 7: {
20
+ 320: {
21
21
  message: string;
22
22
  };
23
- 8: {
23
+ 321: {
24
24
  message: string;
25
25
  };
26
- 9: {
26
+ 322: {
27
27
  message: string;
28
28
  };
29
- 10: {
29
+ 323: {
30
30
  message: string;
31
31
  };
32
- 11: {
32
+ 330: {
33
33
  message: string;
34
34
  };
35
- 12: {
35
+ 331: {
36
36
  message: string;
37
37
  };
38
- 13: {
38
+ 332: {
39
39
  message: string;
40
40
  };
41
- 14: {
41
+ 333: {
42
42
  message: string;
43
43
  };
44
44
  };
45
45
  export type StorageKey = {
46
- tag: "Initialized";
47
- values: void;
48
- } | {
49
46
  tag: "UpgradeTimelock";
50
47
  values: void;
51
48
  } | {
@@ -105,6 +102,17 @@ export declare const AccessControlError: {
105
102
  message: string;
106
103
  };
107
104
  };
105
+ export declare const OwnableError: {
106
+ 2100: {
107
+ message: string;
108
+ };
109
+ 2101: {
110
+ message: string;
111
+ };
112
+ 2102: {
113
+ message: string;
114
+ };
115
+ };
108
116
  /**
109
117
  * Storage key for enumeration of accounts per role.
110
118
  */
@@ -137,17 +145,6 @@ export type AccessControlStorageKey = {
137
145
  tag: "PendingAdmin";
138
146
  values: void;
139
147
  };
140
- export declare const OwnableError: {
141
- 2100: {
142
- message: string;
143
- };
144
- 2101: {
145
- message: string;
146
- };
147
- 2102: {
148
- message: string;
149
- };
150
- };
151
148
  /**
152
149
  * Storage keys for `Ownable` utility.
153
150
  */
@@ -159,103 +156,71 @@ export type OwnableStorageKey = {
159
156
  values: void;
160
157
  };
161
158
  /**
162
- * Authoritative per-market state: the side aggregates, the funding indices,
163
- * the funding EMA, and the market configuration.
164
- *
165
- * Soroban limits UDT field names to 30 characters, so where a doc glossary
166
- * term is longer the field drops the redundant qualifier and its doc
167
- * comment carries the full term (e.g. `receiver_backed_index_long` is the
168
- * doc's `receiver_backed_payer_index` for the long side).
159
+ * SEP-40 asset identifier. Markets are quoted as `Other(market symbol)`.
169
160
  */
161
+ export type Asset = {
162
+ tag: "Stellar";
163
+ values: readonly [string];
164
+ } | {
165
+ tag: "Other";
166
+ values: readonly [string];
167
+ };
168
+ export interface PriceData {
169
+ price: i128;
170
+ timestamp: u64;
171
+ }
172
+ export interface StampedPrice {
173
+ observed_at: u64;
174
+ price: i128;
175
+ }
170
176
  export interface Market {
171
177
  config: MarketConfig;
172
- /**
173
- * `INDEX_PRECISION`-scaled bps/day payer rate as of the last refresh.
174
- */
175
178
  current_payer_rate: i128;
176
179
  current_payer_side: PayerSide;
177
180
  last_funding_checkpoint: u64;
178
181
  long: MarketSide;
179
- /**
180
- * Cumulative payer fee per unit of dominant-side size that is LP
181
- * revenue on collection (§8.2).
182
- */
182
+ long_payer_remainders: RemainderGroup;
183
183
  lp_backed_index_long: i128;
184
184
  lp_backed_index_short: i128;
185
- lp_payer_remainder: i128;
186
- /**
187
- * Sub-stroop carry of the receiver-liability accrual (§8.3).
188
- */
189
- pending_remainder: i128;
190
- /**
191
- * Cumulative payer fee per unit of dominant-side size whose collection
192
- * restores cash backing an already-accrued receiver claim (§8.2).
193
- */
185
+ pending_receiver_funding: i128;
194
186
  receiver_backed_index_long: i128;
195
187
  receiver_backed_index_short: i128;
196
- /**
197
- * Cumulative funding credit per unit of light-side size (§8.2).
198
- */
199
188
  receiver_index_long: i128;
200
- receiver_index_remainder: i128;
201
189
  receiver_index_short: i128;
202
- receiver_payer_remainder: i128;
203
190
  short: MarketSide;
204
- /**
205
- * §8.1 signed EMA of the instantaneous skew: a fraction of one at
206
- * `INDEX_PRECISION` scale, positive when history says longs dominate.
207
- * Decays toward the current skew with the global half-life.
208
- */
191
+ short_payer_remainders: RemainderGroup;
209
192
  skew_ema: i128;
210
193
  }
194
+ export type Trigger = {
195
+ tag: "None";
196
+ values: void;
197
+ } | {
198
+ tag: "Attached";
199
+ values: readonly [TriggerInstruction];
200
+ };
211
201
  export interface LpConfig {
212
- lp_request_delay: u64;
202
+ lp_request_delay_seconds: u64;
213
203
  max_withdraw_utilization_bps: u32;
214
204
  min_deposit_nav_factor_bps: u32;
215
205
  }
216
- /**
217
- * Represents a single trader's open leveraged position.
218
- */
219
206
  export interface Position {
220
- /**
221
- * Asset units at `PRICE_PRECISION`.
222
- */
223
207
  base_exposure: i128;
224
- borrow_debt: i128;
225
- /**
226
- * Cash owned by an optional-order executor.
227
- */
228
- execution_budget: i128;
229
- funding_paid_to_lps_debt: i128;
230
- funding_paid_to_receivers_debt: i128;
231
- funding_received_debt: i128;
208
+ borrow_index_snapshot: i128;
232
209
  id: u64;
233
210
  is_long: boolean;
234
- last_increased_time: u64;
211
+ lp_payer_index_snapshot: i128;
235
212
  market: string;
213
+ opened_at: u64;
236
214
  owner: string;
237
- /**
238
- * Fixed gross capacity assigned when risk opens.
239
- */
215
+ pending_mutation_action_id: Option<u64>;
216
+ receiver_index_snapshot: i128;
217
+ receiver_payer_index_snapshot: i128;
240
218
  risk_units: i128;
241
- /**
242
- * USD notional at `PRICE_PRECISION`.
243
- */
244
219
  size: i128;
245
- /**
246
- * Trigger price for the optional stop-loss order; `0` = none.
247
- */
248
- stop_loss: i128;
249
- /**
250
- * Trader-owned collateral recorded in contract state (the doc's
251
- * "stored collateral"). Effective collateral — stored collateral after
252
- * pending fees and funding credits — is always derived, never stored.
253
- */
220
+ stop_loss: Trigger;
254
221
  stored_collateral: i128;
255
- /**
256
- * Trigger price for the optional take-profit order; `0` = none.
257
- */
258
- take_profit: i128;
222
+ stored_minimum_borrow_fee: i128;
223
+ take_profit: Trigger;
259
224
  }
260
225
  export interface LpRequest {
261
226
  amount: i128;
@@ -264,13 +229,12 @@ export interface LpRequest {
264
229
  kind: LpRequestKind;
265
230
  owner: string;
266
231
  request_time: u64;
232
+ /**
233
+ * The resolve reward fixed when the request was made.
234
+ */
235
+ reward: i128;
267
236
  status: LpRequestStatus;
268
237
  }
269
- /**
270
- * Which side currently pays funding (§8.1: the side the blended integral
271
- * skew points at — under the EMA this can be the *lighter* side for a
272
- * while after the book flips). `None` when the blend is exactly zero.
273
- */
274
238
  export type PayerSide = {
275
239
  tag: "None";
276
240
  values: void;
@@ -294,122 +258,67 @@ export type RiskState = {
294
258
  tag: "HardCap";
295
259
  values: void;
296
260
  };
297
- /**
298
- * A pending limit/stop entry order: the frozen `open_position` arguments
299
- * plus a trigger condition and an expiry. Placing one only writes this
300
- * record — no funds move. A keeper's `execute_entry_order` pulls the
301
- * collateral via the owner's token allowance and opens the position
302
- * exactly as a market open would.
303
- */
304
- export interface EntryOrder {
305
- acceptable_price: i128;
306
- collateral: i128;
307
- execution_budget: i128;
308
- /**
309
- * Ledger timestamp after which the order is dead and swept on the next
310
- * touch (user-configurable max TTL).
311
- */
312
- expires_at: u64;
313
- id: u64;
314
- is_long: boolean;
315
- market: string;
316
- owner: string;
317
- size: i128;
318
- stop_loss: i128;
319
- take_profit: i128;
320
- /**
321
- * True → fill when price ≥ trigger (stop/breakout entry); false → fill
322
- * when price ≤ trigger (limit/dip entry). Inferred at placement from
323
- * the trigger vs. the current price.
324
- */
325
- trigger_above: boolean;
326
- /**
327
- * The oracle price at which the order becomes fillable.
328
- */
329
- trigger_price: i128;
330
- }
261
+ export type ActionKind = {
262
+ tag: "MarketOpen";
263
+ values: void;
264
+ } | {
265
+ tag: "LimitOpen";
266
+ values: void;
267
+ } | {
268
+ tag: "Decrease";
269
+ values: void;
270
+ } | {
271
+ tag: "Close";
272
+ values: void;
273
+ };
331
274
  export interface MarketSide {
332
275
  base_exposure: i128;
276
+ hard_cap_payout_factor: i128;
277
+ hard_cap_reference_pnl: i128;
333
278
  risk_state: RiskState;
334
279
  risk_units: i128;
335
280
  size_open_interest: i128;
336
281
  stored_collateral_total: i128;
337
282
  }
338
- export interface RoundPrice {
339
- price: i128;
340
- symbol: string;
283
+ export interface OpenPayload {
284
+ acceptable_price: i128;
285
+ expires_at: u64;
286
+ is_long: boolean;
287
+ size: i128;
288
+ stop_loss: i128;
289
+ submitted_collateral: i128;
290
+ take_profit: i128;
341
291
  }
342
- export interface OracleRound {
343
- id: u64;
344
- previous_id: u64;
345
- previous_timestamp: u64;
346
- prices: Array<RoundPrice>;
347
- timestamp: u64;
292
+ export interface ClosePayload {
293
+ acceptable_price: i128;
294
+ position_id: u64;
348
295
  }
349
296
  export interface GlobalConfig {
350
297
  base_borrow_rate_bps_day: i128;
351
- /**
352
- * §9.2 borrow-curve exponent, bps: 20_000 = u² (legacy quadratic),
353
- * 10_000 = linear. Bounded to ≤ 100_000 (e ≤ 10) by validation.
354
- */
355
- borrow_exponent_bps: u32;
356
- /**
357
- * §8.1 half-life of the funding skew EMA, seconds (global: one memory
358
- * horizon for every market).
359
- */
298
+ borrow_lp_revenue_share_bps: u32;
299
+ config_timelock_seconds: u64;
300
+ fee_lp_revenue_share_bps: u32;
360
301
  funding_half_life_seconds: u64;
361
- hard_cap_factor_limit_bps: u32;
362
- lp_revenue_share_bps: u32;
302
+ global_hard_cap_limit_bps: u32;
303
+ hard_cap_relatch_band_bps: u32;
304
+ keeper_rewards: KeeperRewards;
363
305
  max_active_markets: u32;
364
- max_adl_reward: i128;
365
- max_insolvent_touch_reward: i128;
306
+ max_market_order_lifetime: u64;
307
+ max_order_lifetime_seconds: u64;
308
+ max_price_age_seconds: u64;
366
309
  max_variable_borrow_bps_day: i128;
367
- /**
368
- * §11.2 minimum borrow charge per capitalization: an index delta at
369
- * `INDEX_PRECISION` scale applied to the position's risk units
370
- * (2e11 = 2 bps of notional at a 10% market risk factor). Zero
371
- * disables the floor.
372
- */
373
- min_borrow_index_delta: i128;
310
+ min_borrow_fee_seconds: u64;
374
311
  min_collateral: i128;
375
312
  min_position_lifetime: u64;
376
- /**
377
- * §11.1 share of a closing fee routed to the trader's referrer, carved
378
- * from the protocol slice (keeper and LP shares are untouched). `0`
379
- * disables referral accrual globally — a kill switch. Validated so
380
- * `lp + keeper + referral ≤ BPS`, keeping the protocol remainder ≥ 0.
381
- */
382
- referral_fee_share_bps: u32;
383
313
  risk_capacity_limit_bps: u32;
384
- risk_keeper_revenue_share_bps: u32;
385
314
  }
386
315
  export interface MarketConfig {
387
316
  adl_pnl_factor_bps: u32;
388
- adl_reward_bps: u32;
389
- /**
390
- * §11.1 closing-fee tier when the close worsens skew.
391
- */
392
- close_fee_high_bps: u32;
393
- /**
394
- * §11.1 closing-fee tier when the close improves or preserves skew.
395
- */
396
- close_fee_low_bps: u32;
317
+ close_pnl_fee_bps: u32;
318
+ close_size_fee_bps: u32;
397
319
  hard_cap_pnl_factor_bps: u32;
398
- /**
399
- * Margin required to open or add risk (§12.3). Divides max leverage:
400
- * a position may not be created closer to liquidation than this.
401
- */
402
320
  initial_margin_bps: u32;
403
- /**
404
- * §8.1 weight of the instantaneous skew in the funding blend, in bps;
405
- * the rest is the half-life EMA. `BPS` reproduces pure instant skew.
406
- */
407
321
  instant_weight_bps: u32;
408
- liquidation_reward_bps: u32;
409
- /**
410
- * Margin below which the position is liquidatable (§12.3). Must not
411
- * exceed `initial_margin_bps`; the gap is the entry buffer.
412
- */
413
322
  maintenance_margin_bps: u32;
414
323
  market_risk_factor_bps: u32;
415
324
  max_funding_rate_bps_day: i128;
@@ -417,37 +326,88 @@ export interface MarketConfig {
417
326
  max_long_size_open_interest: i128;
418
327
  max_short_base_exposure: i128;
419
328
  max_short_size_open_interest: i128;
329
+ open_fee_bps: u32;
330
+ order_execution_delay_seconds: u64;
420
331
  recovery_pnl_factor_bps: u32;
421
332
  warning_pnl_factor_bps: u32;
422
333
  }
423
- /**
424
- * Global safety thresholds for price validation.
425
- */
426
- export interface OracleConfig {
427
- /**
428
- * How long a cached aggregated price remains valid after the router
429
- * fetch (in seconds). A cache hit also requires every source timestamp
430
- * used for the cached median to remain within `staleness_threshold`.
431
- * Must be > 0 and <= `staleness_threshold`.
432
- */
433
- cache_duration: u64;
434
- /**
435
- * Maximum allowed spread between oracle sources in basis points
436
- * (e.g., 100 = 1%). Bounded at `crate::constants::MAX_DEVIATION_BPS_CEILING`.
437
- */
438
- max_deviation_bps: i128;
439
- /**
440
- * Minimum number of source responses that must agree within
441
- * `max_deviation_bps` for OracleRouter to return a price. Floored at
442
- * `crate::constants::MIN_REQUIRED_SOURCES_FLOOR`, ceilinged at
443
- * `crate::constants::MAX_ORACLE_SOURCES`.
444
- */
445
- min_required_sources: u32;
446
- /**
447
- * Maximum age of an external SEP-40 price feed before it is rejected
448
- * as stale (in seconds).
449
- */
450
- staleness_threshold: u64;
334
+ export type ActionOutcome = {
335
+ tag: "Executed";
336
+ values: void;
337
+ } | {
338
+ tag: "Failed";
339
+ values: void;
340
+ } | {
341
+ tag: "Cancelled";
342
+ values: void;
343
+ } | {
344
+ tag: "Expired";
345
+ values: void;
346
+ } | {
347
+ tag: "Superseded";
348
+ values: void;
349
+ } | {
350
+ tag: "NotReady";
351
+ values: void;
352
+ } | {
353
+ tag: "Pending";
354
+ values: void;
355
+ } | {
356
+ tag: "RequiresLiquidation";
357
+ values: void;
358
+ };
359
+ export type ActionPayload = {
360
+ tag: "MarketOpen";
361
+ values: readonly [OpenPayload];
362
+ } | {
363
+ tag: "LimitOpen";
364
+ values: readonly [OpenPayload, TriggerCondition];
365
+ } | {
366
+ tag: "Decrease";
367
+ values: readonly [DecreasePayload];
368
+ } | {
369
+ tag: "Close";
370
+ values: readonly [ClosePayload];
371
+ };
372
+ export type FailureReason = {
373
+ tag: "PriceBoundExceeded";
374
+ values: void;
375
+ } | {
376
+ tag: "CapacityExceeded";
377
+ values: void;
378
+ } | {
379
+ tag: "ExposureCapExceeded";
380
+ values: void;
381
+ } | {
382
+ tag: "SideRestricted";
383
+ values: void;
384
+ } | {
385
+ tag: "InsufficientCollateral";
386
+ values: void;
387
+ } | {
388
+ tag: "UnpayableProfit";
389
+ values: void;
390
+ } | {
391
+ tag: "PositionGone";
392
+ values: void;
393
+ } | {
394
+ tag: "MarketPaused";
395
+ values: void;
396
+ } | {
397
+ tag: "SizeTooSmall";
398
+ values: void;
399
+ };
400
+ export interface KeeperRewards {
401
+ adl: i128;
402
+ close: i128;
403
+ decrease: i128;
404
+ expiry: i128;
405
+ limit_order: i128;
406
+ liquidation: i128;
407
+ lp_resolve: i128;
408
+ open: i128;
409
+ sl: i128;
410
+ tp: i128;
451
411
  }
452
412
  export type LpRequestKind = {
453
413
  tag: "Deposit";
@@ -456,24 +416,35 @@ export type LpRequestKind = {
456
416
  tag: "Withdrawal";
457
417
  values: void;
458
418
  };
459
- /**
460
- * Data required during a WASM migration. Single definition for all contracts.
461
- */
462
419
  export interface MigrationData {
463
420
  version: u32;
464
421
  }
465
- /**
466
- * Pending WASM upgrade — set by `propose_upgrade`, consumed by `upgrade`
467
- * (cleared atomically on a successful install), or cleared by `cancel_upgrade`.
468
- * Single shape across every protocol contract. Contracts store it at
469
- * the shared `pending_upgrade` Symbol key in their own instance storage (see
470
- * `crate::upgrade::pending_upgrade_key`). `upgrade` refuses to install
471
- * unless `pending.wasm_hash` matches the supplied hash and `now >= eta`.
472
- */
422
+ export interface PendingAction {
423
+ action_id: u64;
424
+ commit_observed_at: u64;
425
+ created_at: u64;
426
+ escrowed_collateral: i128;
427
+ execute_after: u64;
428
+ kind: ActionKind;
429
+ market_id: string;
430
+ owner: string;
431
+ payload: ActionPayload;
432
+ }
473
433
  export interface PendingUpgrade {
474
434
  eta: u64;
475
435
  wasm_hash: Buffer;
476
436
  }
437
+ export interface RemainderGroup {
438
+ distribution_remainder: i128;
439
+ lp_payer_remainder: i128;
440
+ receiver_liability_remainder: i128;
441
+ receiver_payer_remainder: i128;
442
+ }
443
+ export interface DecreasePayload {
444
+ acceptable_price: i128;
445
+ position_id: u64;
446
+ size_removed: i128;
447
+ }
477
448
  export type LpRequestStatus = {
478
449
  tag: "Pending";
479
450
  values: void;
@@ -483,32 +454,20 @@ export type LpRequestStatus = {
483
454
  } | {
484
455
  tag: "Failed";
485
456
  values: void;
486
- } | {
487
- tag: "Expired";
488
- values: void;
489
457
  };
490
- /**
491
- * The caller-supplied fields of a `place_entry_order` request, bundled so
492
- * the entry point stays within Soroban's parameter limit. `owner` and
493
- * `market` are passed alongside; `id` and `trigger_above` are derived at
494
- * placement.
495
- */
496
- export interface EntryOrderParams {
497
- acceptable_price: i128;
498
- collateral: i128;
499
- execution_budget: i128;
500
- expires_at: u64;
501
- is_long: boolean;
502
- size: i128;
503
- stop_loss: i128;
504
- take_profit: i128;
505
- trigger_price: i128;
458
+ export interface PendingFeesView {
459
+ borrow: i128;
460
+ funding_paid_to_lps: i128;
461
+ funding_paid_to_receivers: i128;
462
+ funding_received: i128;
463
+ }
464
+ export interface PendingPriceFeed {
465
+ effective_at: u64;
466
+ price_feed: string;
506
467
  }
507
468
  export interface SettlementResult {
508
- /**
509
- * Shares minted for a deposit or assets paid for a withdrawal.
510
- */
511
469
  amount: i128;
470
+ reward: i128;
512
471
  status: SettlementStatus;
513
472
  }
514
473
  export type SettlementStatus = {
@@ -517,19 +476,49 @@ export type SettlementStatus = {
517
476
  } | {
518
477
  tag: "Failed";
519
478
  values: void;
479
+ } | {
480
+ tag: "NotReady";
481
+ values: void;
520
482
  };
483
+ export interface TriggerCondition {
484
+ trigger_above: boolean;
485
+ trigger_price: i128;
486
+ }
521
487
  export interface AccountingSnapshot {
522
488
  cash_lp_equity: i128;
523
489
  cash_shortfall: i128;
490
+ deleveraging_side_count: u32;
524
491
  free_lp_capital: i128;
525
- lp_blocked_side_count: u32;
492
+ min_equity_clear_of_adl: i128;
526
493
  non_lp_claims: i128;
527
494
  open_position_count: u64;
528
495
  physical_cash: i128;
529
496
  required_risk_backing: i128;
497
+ restricted_side_count: u32;
530
498
  total_risk_units: i128;
531
499
  vault_nav: i128;
532
500
  }
501
+ export interface TriggerInstruction {
502
+ acceptable_price: i128;
503
+ commit_observed_at: u64;
504
+ committed_at: u64;
505
+ execute_after: u64;
506
+ trigger_price: i128;
507
+ }
508
+ export interface PendingGlobalConfig {
509
+ config: GlobalConfig;
510
+ effective_at: u64;
511
+ }
512
+ export interface PendingMarketConfig {
513
+ config: MarketConfig;
514
+ effective_at: u64;
515
+ }
516
+ export interface EventHeader {
517
+ actor: string;
518
+ event_version: u32;
519
+ ledger_timestamp: u64;
520
+ market: string;
521
+ }
533
522
  export declare const UpgradeableError: {
534
523
  /**
535
524
  * When migration is attempted but not allowed due to upgrade state.
@@ -558,16 +547,6 @@ export declare const MerkleDistributorError: {
558
547
  message: string;
559
548
  };
560
549
  };
561
- /**
562
- * Storage keys for the data associated with `MerkleDistributor`
563
- */
564
- export type MerkleDistributorStorageKey = {
565
- tag: "Root";
566
- values: void;
567
- } | {
568
- tag: "Claimed";
569
- values: readonly [u32];
570
- };
571
550
  /**
572
551
  * Rounding direction for division operations
573
552
  */
@@ -595,37 +574,47 @@ export declare const SorobanFixedPointError: {
595
574
  message: string;
596
575
  };
597
576
  };
598
- export declare const CryptoError: {
577
+ export declare const PausableError: {
599
578
  /**
600
- * The merkle proof length is out of bounds.
579
+ * The operation failed because the contract is paused.
601
580
  */
602
- 1400: {
581
+ 1000: {
603
582
  message: string;
604
583
  };
605
584
  /**
606
- * The index of the leaf is out of bounds.
585
+ * The operation failed because the contract is not paused.
607
586
  */
608
- 1401: {
587
+ 1001: {
609
588
  message: string;
610
589
  };
590
+ };
591
+ /**
592
+ * Storage keys for the data associated with `MerkleDistributor`
593
+ */
594
+ export type MerkleDistributorStorageKey = {
595
+ tag: "Root";
596
+ values: void;
597
+ } | {
598
+ tag: "Claimed";
599
+ values: readonly [u32];
600
+ };
601
+ export declare const CryptoError: {
611
602
  /**
612
- * No data in hasher state.
603
+ * The merkle proof length is out of bounds.
613
604
  */
614
- 1402: {
605
+ 1400: {
615
606
  message: string;
616
607
  };
617
- };
618
- export declare const PausableError: {
619
608
  /**
620
- * The operation failed because the contract is paused.
609
+ * The index of the leaf is out of bounds.
621
610
  */
622
- 1000: {
611
+ 1401: {
623
612
  message: string;
624
613
  };
625
614
  /**
626
- * The operation failed because the contract is not paused.
615
+ * No data in hasher state.
627
616
  */
628
- 1001: {
617
+ 1402: {
629
618
  message: string;
630
619
  };
631
620
  };
@@ -700,10 +689,6 @@ export interface Client {
700
689
  caller: string;
701
690
  wasm_hash: Buffer;
702
691
  }, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
703
- /**
704
- * Construct and simulate a bump_config_state transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
705
- */
706
- bump_config_state: (options?: MethodOptions) => Promise<AssembledTransaction<null>>;
707
692
  /**
708
693
  * Construct and simulate a get_pending_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
709
694
  */
@@ -753,7 +738,6 @@ export declare class Client extends ContractClient {
753
738
  propose_admin: (json: string) => AssembledTransaction<null>;
754
739
  cancel_upgrade: (json: string) => AssembledTransaction<null>;
755
740
  propose_upgrade: (json: string) => AssembledTransaction<null>;
756
- bump_config_state: (json: string) => AssembledTransaction<null>;
757
741
  get_pending_admin: (json: string) => AssembledTransaction<Option<string>>;
758
742
  get_upgrade_timelock: (json: string) => AssembledTransaction<bigint>;
759
743
  set_upgrade_timelock: (json: string) => AssembledTransaction<null>;