@typus/typus-perp-sdk 1.1.4 → 1.1.5-funding-collect

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.
@@ -382,6 +382,132 @@ export declare class BurnLpEvent implements StructClass {
382
382
  static fromSuiObjectData(data: SuiObjectData): BurnLpEvent;
383
383
  static fetch(client: SuiClient, id: string): Promise<BurnLpEvent>;
384
384
  }
385
+ export declare function isCompleteRebalancingEvent(type: string): boolean;
386
+ export interface CompleteRebalancingEventFields {
387
+ index: ToField<"u64">;
388
+ fromToken: ToField<TypeName>;
389
+ toToken: ToField<TypeName>;
390
+ fromTokenOraclePrice: ToField<"u64">;
391
+ toTokenOraclePrice: ToField<"u64">;
392
+ swappedBackUsd: ToField<"u64">;
393
+ tvlUsd: ToField<"u64">;
394
+ fromTokenLiquidityAmount: ToField<"u64">;
395
+ toTokenLiquidityAmount: ToField<"u64">;
396
+ u64Padding: ToField<Vector<"u64">>;
397
+ }
398
+ export type CompleteRebalancingEventReified = Reified<CompleteRebalancingEvent, CompleteRebalancingEventFields>;
399
+ export declare class CompleteRebalancingEvent implements StructClass {
400
+ __StructClass: true;
401
+ static readonly $typeName: string;
402
+ static readonly $numTypeParams = 0;
403
+ static readonly $isPhantom: readonly [];
404
+ readonly $typeName: string;
405
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::CompleteRebalancingEvent`;
406
+ readonly $typeArgs: [];
407
+ readonly $isPhantom: readonly [];
408
+ readonly index: ToField<"u64">;
409
+ readonly fromToken: ToField<TypeName>;
410
+ readonly toToken: ToField<TypeName>;
411
+ readonly fromTokenOraclePrice: ToField<"u64">;
412
+ readonly toTokenOraclePrice: ToField<"u64">;
413
+ readonly swappedBackUsd: ToField<"u64">;
414
+ readonly tvlUsd: ToField<"u64">;
415
+ readonly fromTokenLiquidityAmount: ToField<"u64">;
416
+ readonly toTokenLiquidityAmount: ToField<"u64">;
417
+ readonly u64Padding: ToField<Vector<"u64">>;
418
+ private constructor();
419
+ static reified(): CompleteRebalancingEventReified;
420
+ static get r(): reified.StructClassReified<CompleteRebalancingEvent, CompleteRebalancingEventFields>;
421
+ static phantom(): PhantomReified<ToTypeStr<CompleteRebalancingEvent>>;
422
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::CompleteRebalancingEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::CompleteRebalancingEvent">;
423
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
424
+ index: string;
425
+ from_token: {
426
+ name: {
427
+ bytes: number[];
428
+ };
429
+ };
430
+ to_token: {
431
+ name: {
432
+ bytes: number[];
433
+ };
434
+ };
435
+ from_token_oracle_price: string;
436
+ to_token_oracle_price: string;
437
+ swapped_back_usd: string;
438
+ tvl_usd: string;
439
+ from_token_liquidity_amount: string;
440
+ to_token_liquidity_amount: string;
441
+ u64_padding: string[];
442
+ }, {
443
+ index: string | number | bigint;
444
+ from_token: {
445
+ name: {
446
+ bytes: Iterable<number> & {
447
+ length: number;
448
+ };
449
+ };
450
+ };
451
+ to_token: {
452
+ name: {
453
+ bytes: Iterable<number> & {
454
+ length: number;
455
+ };
456
+ };
457
+ };
458
+ from_token_oracle_price: string | number | bigint;
459
+ to_token_oracle_price: string | number | bigint;
460
+ swapped_back_usd: string | number | bigint;
461
+ tvl_usd: string | number | bigint;
462
+ from_token_liquidity_amount: string | number | bigint;
463
+ to_token_liquidity_amount: string | number | bigint;
464
+ u64_padding: Iterable<string | number | bigint> & {
465
+ length: number;
466
+ };
467
+ }>;
468
+ static fromFields(fields: Record<string, any>): CompleteRebalancingEvent;
469
+ static fromFieldsWithTypes(item: FieldsWithTypes): CompleteRebalancingEvent;
470
+ static fromBcs(data: Uint8Array): CompleteRebalancingEvent;
471
+ toJSONField(): {
472
+ index: string;
473
+ fromToken: {
474
+ name: string;
475
+ };
476
+ toToken: {
477
+ name: string;
478
+ };
479
+ fromTokenOraclePrice: string;
480
+ toTokenOraclePrice: string;
481
+ swappedBackUsd: string;
482
+ tvlUsd: string;
483
+ fromTokenLiquidityAmount: string;
484
+ toTokenLiquidityAmount: string;
485
+ u64Padding: string[];
486
+ };
487
+ toJSON(): {
488
+ index: string;
489
+ fromToken: {
490
+ name: string;
491
+ };
492
+ toToken: {
493
+ name: string;
494
+ };
495
+ fromTokenOraclePrice: string;
496
+ toTokenOraclePrice: string;
497
+ swappedBackUsd: string;
498
+ tvlUsd: string;
499
+ fromTokenLiquidityAmount: string;
500
+ toTokenLiquidityAmount: string;
501
+ u64Padding: string[];
502
+ $typeName: string;
503
+ $typeArgs: [];
504
+ };
505
+ static fromJSONField(field: any): CompleteRebalancingEvent;
506
+ static fromJSON(json: Record<string, any>): CompleteRebalancingEvent;
507
+ static fromSuiParsedData(content: SuiParsedData): CompleteRebalancingEvent;
508
+ static fromSuiObjectData(data: SuiObjectData): CompleteRebalancingEvent;
509
+ static fetch(client: SuiClient, id: string): Promise<CompleteRebalancingEvent>;
510
+ }
385
511
  export declare function isCompleteRemoveLiquidityTokenProcessEvent(type: string): boolean;
386
512
  export interface CompleteRemoveLiquidityTokenProcessEventFields {
387
513
  index: ToField<"u64">;
@@ -1212,6 +1338,336 @@ export declare class LiquidityPoolInfo implements StructClass {
1212
1338
  static fromSuiObjectData(data: SuiObjectData): LiquidityPoolInfo;
1213
1339
  static fetch(client: SuiClient, id: string): Promise<LiquidityPoolInfo>;
1214
1340
  }
1341
+ export declare function isManagerDepositReceipt(type: string): boolean;
1342
+ export interface ManagerDepositReceiptFields {
1343
+ id: ToField<UID>;
1344
+ tokenType: ToField<TypeName>;
1345
+ amount: ToField<"u64">;
1346
+ }
1347
+ export type ManagerDepositReceiptReified = Reified<ManagerDepositReceipt, ManagerDepositReceiptFields>;
1348
+ export declare class ManagerDepositReceipt implements StructClass {
1349
+ __StructClass: true;
1350
+ static readonly $typeName: string;
1351
+ static readonly $numTypeParams = 0;
1352
+ static readonly $isPhantom: readonly [];
1353
+ readonly $typeName: string;
1354
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerDepositReceipt`;
1355
+ readonly $typeArgs: [];
1356
+ readonly $isPhantom: readonly [];
1357
+ readonly id: ToField<UID>;
1358
+ readonly tokenType: ToField<TypeName>;
1359
+ readonly amount: ToField<"u64">;
1360
+ private constructor();
1361
+ static reified(): ManagerDepositReceiptReified;
1362
+ static get r(): reified.StructClassReified<ManagerDepositReceipt, ManagerDepositReceiptFields>;
1363
+ static phantom(): PhantomReified<ToTypeStr<ManagerDepositReceipt>>;
1364
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerDepositReceipt" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerDepositReceipt">;
1365
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
1366
+ id: {
1367
+ id: {
1368
+ bytes: string;
1369
+ };
1370
+ };
1371
+ token_type: {
1372
+ name: {
1373
+ bytes: number[];
1374
+ };
1375
+ };
1376
+ amount: string;
1377
+ }, {
1378
+ id: {
1379
+ id: {
1380
+ bytes: string;
1381
+ };
1382
+ };
1383
+ token_type: {
1384
+ name: {
1385
+ bytes: Iterable<number> & {
1386
+ length: number;
1387
+ };
1388
+ };
1389
+ };
1390
+ amount: string | number | bigint;
1391
+ }>;
1392
+ static fromFields(fields: Record<string, any>): ManagerDepositReceipt;
1393
+ static fromFieldsWithTypes(item: FieldsWithTypes): ManagerDepositReceipt;
1394
+ static fromBcs(data: Uint8Array): ManagerDepositReceipt;
1395
+ toJSONField(): {
1396
+ id: string;
1397
+ tokenType: {
1398
+ name: string;
1399
+ };
1400
+ amount: string;
1401
+ };
1402
+ toJSON(): {
1403
+ id: string;
1404
+ tokenType: {
1405
+ name: string;
1406
+ };
1407
+ amount: string;
1408
+ $typeName: string;
1409
+ $typeArgs: [];
1410
+ };
1411
+ static fromJSONField(field: any): ManagerDepositReceipt;
1412
+ static fromJSON(json: Record<string, any>): ManagerDepositReceipt;
1413
+ static fromSuiParsedData(content: SuiParsedData): ManagerDepositReceipt;
1414
+ static fromSuiObjectData(data: SuiObjectData): ManagerDepositReceipt;
1415
+ static fetch(client: SuiClient, id: string): Promise<ManagerDepositReceipt>;
1416
+ }
1417
+ export declare function isManagerDepositReceiptV2(type: string): boolean;
1418
+ export interface ManagerDepositReceiptV2Fields {
1419
+ id: ToField<UID>;
1420
+ index: ToField<"u64">;
1421
+ tokenType: ToField<TypeName>;
1422
+ amount: ToField<"u64">;
1423
+ u64Padding: ToField<Vector<"u64">>;
1424
+ }
1425
+ export type ManagerDepositReceiptV2Reified = Reified<ManagerDepositReceiptV2, ManagerDepositReceiptV2Fields>;
1426
+ export declare class ManagerDepositReceiptV2 implements StructClass {
1427
+ __StructClass: true;
1428
+ static readonly $typeName: string;
1429
+ static readonly $numTypeParams = 0;
1430
+ static readonly $isPhantom: readonly [];
1431
+ readonly $typeName: string;
1432
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerDepositReceiptV2`;
1433
+ readonly $typeArgs: [];
1434
+ readonly $isPhantom: readonly [];
1435
+ readonly id: ToField<UID>;
1436
+ readonly index: ToField<"u64">;
1437
+ readonly tokenType: ToField<TypeName>;
1438
+ readonly amount: ToField<"u64">;
1439
+ readonly u64Padding: ToField<Vector<"u64">>;
1440
+ private constructor();
1441
+ static reified(): ManagerDepositReceiptV2Reified;
1442
+ static get r(): reified.StructClassReified<ManagerDepositReceiptV2, ManagerDepositReceiptV2Fields>;
1443
+ static phantom(): PhantomReified<ToTypeStr<ManagerDepositReceiptV2>>;
1444
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerDepositReceiptV2" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerDepositReceiptV2">;
1445
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
1446
+ id: {
1447
+ id: {
1448
+ bytes: string;
1449
+ };
1450
+ };
1451
+ index: string;
1452
+ token_type: {
1453
+ name: {
1454
+ bytes: number[];
1455
+ };
1456
+ };
1457
+ amount: string;
1458
+ u64_padding: string[];
1459
+ }, {
1460
+ id: {
1461
+ id: {
1462
+ bytes: string;
1463
+ };
1464
+ };
1465
+ index: string | number | bigint;
1466
+ token_type: {
1467
+ name: {
1468
+ bytes: Iterable<number> & {
1469
+ length: number;
1470
+ };
1471
+ };
1472
+ };
1473
+ amount: string | number | bigint;
1474
+ u64_padding: Iterable<string | number | bigint> & {
1475
+ length: number;
1476
+ };
1477
+ }>;
1478
+ static fromFields(fields: Record<string, any>): ManagerDepositReceiptV2;
1479
+ static fromFieldsWithTypes(item: FieldsWithTypes): ManagerDepositReceiptV2;
1480
+ static fromBcs(data: Uint8Array): ManagerDepositReceiptV2;
1481
+ toJSONField(): {
1482
+ id: string;
1483
+ index: string;
1484
+ tokenType: {
1485
+ name: string;
1486
+ };
1487
+ amount: string;
1488
+ u64Padding: string[];
1489
+ };
1490
+ toJSON(): {
1491
+ id: string;
1492
+ index: string;
1493
+ tokenType: {
1494
+ name: string;
1495
+ };
1496
+ amount: string;
1497
+ u64Padding: string[];
1498
+ $typeName: string;
1499
+ $typeArgs: [];
1500
+ };
1501
+ static fromJSONField(field: any): ManagerDepositReceiptV2;
1502
+ static fromJSON(json: Record<string, any>): ManagerDepositReceiptV2;
1503
+ static fromSuiParsedData(content: SuiParsedData): ManagerDepositReceiptV2;
1504
+ static fromSuiObjectData(data: SuiObjectData): ManagerDepositReceiptV2;
1505
+ static fetch(client: SuiClient, id: string): Promise<ManagerDepositReceiptV2>;
1506
+ }
1507
+ export declare function isManagerEmergencyDepositEvent(type: string): boolean;
1508
+ export interface ManagerEmergencyDepositEventFields {
1509
+ sender: ToField<"address">;
1510
+ index: ToField<"u64">;
1511
+ liquidityTokenType: ToField<TypeName>;
1512
+ amount: ToField<"u64">;
1513
+ u64Padding: ToField<Vector<"u64">>;
1514
+ }
1515
+ export type ManagerEmergencyDepositEventReified = Reified<ManagerEmergencyDepositEvent, ManagerEmergencyDepositEventFields>;
1516
+ export declare class ManagerEmergencyDepositEvent implements StructClass {
1517
+ __StructClass: true;
1518
+ static readonly $typeName: string;
1519
+ static readonly $numTypeParams = 0;
1520
+ static readonly $isPhantom: readonly [];
1521
+ readonly $typeName: string;
1522
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerEmergencyDepositEvent`;
1523
+ readonly $typeArgs: [];
1524
+ readonly $isPhantom: readonly [];
1525
+ readonly sender: ToField<"address">;
1526
+ readonly index: ToField<"u64">;
1527
+ readonly liquidityTokenType: ToField<TypeName>;
1528
+ readonly amount: ToField<"u64">;
1529
+ readonly u64Padding: ToField<Vector<"u64">>;
1530
+ private constructor();
1531
+ static reified(): ManagerEmergencyDepositEventReified;
1532
+ static get r(): reified.StructClassReified<ManagerEmergencyDepositEvent, ManagerEmergencyDepositEventFields>;
1533
+ static phantom(): PhantomReified<ToTypeStr<ManagerEmergencyDepositEvent>>;
1534
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerEmergencyDepositEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerEmergencyDepositEvent">;
1535
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
1536
+ sender: string;
1537
+ index: string;
1538
+ liquidity_token_type: {
1539
+ name: {
1540
+ bytes: number[];
1541
+ };
1542
+ };
1543
+ amount: string;
1544
+ u64_padding: string[];
1545
+ }, {
1546
+ sender: string;
1547
+ index: string | number | bigint;
1548
+ liquidity_token_type: {
1549
+ name: {
1550
+ bytes: Iterable<number> & {
1551
+ length: number;
1552
+ };
1553
+ };
1554
+ };
1555
+ amount: string | number | bigint;
1556
+ u64_padding: Iterable<string | number | bigint> & {
1557
+ length: number;
1558
+ };
1559
+ }>;
1560
+ static fromFields(fields: Record<string, any>): ManagerEmergencyDepositEvent;
1561
+ static fromFieldsWithTypes(item: FieldsWithTypes): ManagerEmergencyDepositEvent;
1562
+ static fromBcs(data: Uint8Array): ManagerEmergencyDepositEvent;
1563
+ toJSONField(): {
1564
+ sender: string;
1565
+ index: string;
1566
+ liquidityTokenType: {
1567
+ name: string;
1568
+ };
1569
+ amount: string;
1570
+ u64Padding: string[];
1571
+ };
1572
+ toJSON(): {
1573
+ sender: string;
1574
+ index: string;
1575
+ liquidityTokenType: {
1576
+ name: string;
1577
+ };
1578
+ amount: string;
1579
+ u64Padding: string[];
1580
+ $typeName: string;
1581
+ $typeArgs: [];
1582
+ };
1583
+ static fromJSONField(field: any): ManagerEmergencyDepositEvent;
1584
+ static fromJSON(json: Record<string, any>): ManagerEmergencyDepositEvent;
1585
+ static fromSuiParsedData(content: SuiParsedData): ManagerEmergencyDepositEvent;
1586
+ static fromSuiObjectData(data: SuiObjectData): ManagerEmergencyDepositEvent;
1587
+ static fetch(client: SuiClient, id: string): Promise<ManagerEmergencyDepositEvent>;
1588
+ }
1589
+ export declare function isManagerEmergencyWithdrawEvent(type: string): boolean;
1590
+ export interface ManagerEmergencyWithdrawEventFields {
1591
+ sender: ToField<"address">;
1592
+ index: ToField<"u64">;
1593
+ liquidityTokenType: ToField<TypeName>;
1594
+ amount: ToField<"u64">;
1595
+ u64Padding: ToField<Vector<"u64">>;
1596
+ }
1597
+ export type ManagerEmergencyWithdrawEventReified = Reified<ManagerEmergencyWithdrawEvent, ManagerEmergencyWithdrawEventFields>;
1598
+ export declare class ManagerEmergencyWithdrawEvent implements StructClass {
1599
+ __StructClass: true;
1600
+ static readonly $typeName: string;
1601
+ static readonly $numTypeParams = 0;
1602
+ static readonly $isPhantom: readonly [];
1603
+ readonly $typeName: string;
1604
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerEmergencyWithdrawEvent`;
1605
+ readonly $typeArgs: [];
1606
+ readonly $isPhantom: readonly [];
1607
+ readonly sender: ToField<"address">;
1608
+ readonly index: ToField<"u64">;
1609
+ readonly liquidityTokenType: ToField<TypeName>;
1610
+ readonly amount: ToField<"u64">;
1611
+ readonly u64Padding: ToField<Vector<"u64">>;
1612
+ private constructor();
1613
+ static reified(): ManagerEmergencyWithdrawEventReified;
1614
+ static get r(): reified.StructClassReified<ManagerEmergencyWithdrawEvent, ManagerEmergencyWithdrawEventFields>;
1615
+ static phantom(): PhantomReified<ToTypeStr<ManagerEmergencyWithdrawEvent>>;
1616
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerEmergencyWithdrawEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerEmergencyWithdrawEvent">;
1617
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
1618
+ sender: string;
1619
+ index: string;
1620
+ liquidity_token_type: {
1621
+ name: {
1622
+ bytes: number[];
1623
+ };
1624
+ };
1625
+ amount: string;
1626
+ u64_padding: string[];
1627
+ }, {
1628
+ sender: string;
1629
+ index: string | number | bigint;
1630
+ liquidity_token_type: {
1631
+ name: {
1632
+ bytes: Iterable<number> & {
1633
+ length: number;
1634
+ };
1635
+ };
1636
+ };
1637
+ amount: string | number | bigint;
1638
+ u64_padding: Iterable<string | number | bigint> & {
1639
+ length: number;
1640
+ };
1641
+ }>;
1642
+ static fromFields(fields: Record<string, any>): ManagerEmergencyWithdrawEvent;
1643
+ static fromFieldsWithTypes(item: FieldsWithTypes): ManagerEmergencyWithdrawEvent;
1644
+ static fromBcs(data: Uint8Array): ManagerEmergencyWithdrawEvent;
1645
+ toJSONField(): {
1646
+ sender: string;
1647
+ index: string;
1648
+ liquidityTokenType: {
1649
+ name: string;
1650
+ };
1651
+ amount: string;
1652
+ u64Padding: string[];
1653
+ };
1654
+ toJSON(): {
1655
+ sender: string;
1656
+ index: string;
1657
+ liquidityTokenType: {
1658
+ name: string;
1659
+ };
1660
+ amount: string;
1661
+ u64Padding: string[];
1662
+ $typeName: string;
1663
+ $typeArgs: [];
1664
+ };
1665
+ static fromJSONField(field: any): ManagerEmergencyWithdrawEvent;
1666
+ static fromJSON(json: Record<string, any>): ManagerEmergencyWithdrawEvent;
1667
+ static fromSuiParsedData(content: SuiParsedData): ManagerEmergencyWithdrawEvent;
1668
+ static fromSuiObjectData(data: SuiObjectData): ManagerEmergencyWithdrawEvent;
1669
+ static fetch(client: SuiClient, id: string): Promise<ManagerEmergencyWithdrawEvent>;
1670
+ }
1215
1671
  export declare function isManagerFlashRemoveLiquidityEvent(type: string): boolean;
1216
1672
  export interface ManagerFlashRemoveLiquidityEventFields {
1217
1673
  index: ToField<"u64">;
@@ -1688,6 +2144,256 @@ export declare class NewLiquidityPoolEvent implements StructClass {
1688
2144
  static fromSuiObjectData(data: SuiObjectData): NewLiquidityPoolEvent;
1689
2145
  static fetch(client: SuiClient, id: string): Promise<NewLiquidityPoolEvent>;
1690
2146
  }
2147
+ export declare function isRebalanceEvent(type: string): boolean;
2148
+ export interface RebalanceEventFields {
2149
+ index: ToField<"u64">;
2150
+ fromToken: ToField<TypeName>;
2151
+ toToken: ToField<TypeName>;
2152
+ rebalanceAmount: ToField<"u64">;
2153
+ fromTokenOraclePrice: ToField<"u64">;
2154
+ toTokenOraclePrice: ToField<"u64">;
2155
+ reducedUsd: ToField<"u64">;
2156
+ tvlUsd: ToField<"u64">;
2157
+ fromTokenLiquidityAmount: ToField<"u64">;
2158
+ toTokenLiquidityAmount: ToField<"u64">;
2159
+ u64Padding: ToField<Vector<"u64">>;
2160
+ }
2161
+ export type RebalanceEventReified = Reified<RebalanceEvent, RebalanceEventFields>;
2162
+ export declare class RebalanceEvent implements StructClass {
2163
+ __StructClass: true;
2164
+ static readonly $typeName: string;
2165
+ static readonly $numTypeParams = 0;
2166
+ static readonly $isPhantom: readonly [];
2167
+ readonly $typeName: string;
2168
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RebalanceEvent`;
2169
+ readonly $typeArgs: [];
2170
+ readonly $isPhantom: readonly [];
2171
+ readonly index: ToField<"u64">;
2172
+ readonly fromToken: ToField<TypeName>;
2173
+ readonly toToken: ToField<TypeName>;
2174
+ readonly rebalanceAmount: ToField<"u64">;
2175
+ readonly fromTokenOraclePrice: ToField<"u64">;
2176
+ readonly toTokenOraclePrice: ToField<"u64">;
2177
+ readonly reducedUsd: ToField<"u64">;
2178
+ readonly tvlUsd: ToField<"u64">;
2179
+ readonly fromTokenLiquidityAmount: ToField<"u64">;
2180
+ readonly toTokenLiquidityAmount: ToField<"u64">;
2181
+ readonly u64Padding: ToField<Vector<"u64">>;
2182
+ private constructor();
2183
+ static reified(): RebalanceEventReified;
2184
+ static get r(): reified.StructClassReified<RebalanceEvent, RebalanceEventFields>;
2185
+ static phantom(): PhantomReified<ToTypeStr<RebalanceEvent>>;
2186
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RebalanceEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RebalanceEvent">;
2187
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
2188
+ index: string;
2189
+ from_token: {
2190
+ name: {
2191
+ bytes: number[];
2192
+ };
2193
+ };
2194
+ to_token: {
2195
+ name: {
2196
+ bytes: number[];
2197
+ };
2198
+ };
2199
+ rebalance_amount: string;
2200
+ from_token_oracle_price: string;
2201
+ to_token_oracle_price: string;
2202
+ reduced_usd: string;
2203
+ tvl_usd: string;
2204
+ from_token_liquidity_amount: string;
2205
+ to_token_liquidity_amount: string;
2206
+ u64_padding: string[];
2207
+ }, {
2208
+ index: string | number | bigint;
2209
+ from_token: {
2210
+ name: {
2211
+ bytes: Iterable<number> & {
2212
+ length: number;
2213
+ };
2214
+ };
2215
+ };
2216
+ to_token: {
2217
+ name: {
2218
+ bytes: Iterable<number> & {
2219
+ length: number;
2220
+ };
2221
+ };
2222
+ };
2223
+ rebalance_amount: string | number | bigint;
2224
+ from_token_oracle_price: string | number | bigint;
2225
+ to_token_oracle_price: string | number | bigint;
2226
+ reduced_usd: string | number | bigint;
2227
+ tvl_usd: string | number | bigint;
2228
+ from_token_liquidity_amount: string | number | bigint;
2229
+ to_token_liquidity_amount: string | number | bigint;
2230
+ u64_padding: Iterable<string | number | bigint> & {
2231
+ length: number;
2232
+ };
2233
+ }>;
2234
+ static fromFields(fields: Record<string, any>): RebalanceEvent;
2235
+ static fromFieldsWithTypes(item: FieldsWithTypes): RebalanceEvent;
2236
+ static fromBcs(data: Uint8Array): RebalanceEvent;
2237
+ toJSONField(): {
2238
+ index: string;
2239
+ fromToken: {
2240
+ name: string;
2241
+ };
2242
+ toToken: {
2243
+ name: string;
2244
+ };
2245
+ rebalanceAmount: string;
2246
+ fromTokenOraclePrice: string;
2247
+ toTokenOraclePrice: string;
2248
+ reducedUsd: string;
2249
+ tvlUsd: string;
2250
+ fromTokenLiquidityAmount: string;
2251
+ toTokenLiquidityAmount: string;
2252
+ u64Padding: string[];
2253
+ };
2254
+ toJSON(): {
2255
+ index: string;
2256
+ fromToken: {
2257
+ name: string;
2258
+ };
2259
+ toToken: {
2260
+ name: string;
2261
+ };
2262
+ rebalanceAmount: string;
2263
+ fromTokenOraclePrice: string;
2264
+ toTokenOraclePrice: string;
2265
+ reducedUsd: string;
2266
+ tvlUsd: string;
2267
+ fromTokenLiquidityAmount: string;
2268
+ toTokenLiquidityAmount: string;
2269
+ u64Padding: string[];
2270
+ $typeName: string;
2271
+ $typeArgs: [];
2272
+ };
2273
+ static fromJSONField(field: any): RebalanceEvent;
2274
+ static fromJSON(json: Record<string, any>): RebalanceEvent;
2275
+ static fromSuiParsedData(content: SuiParsedData): RebalanceEvent;
2276
+ static fromSuiObjectData(data: SuiObjectData): RebalanceEvent;
2277
+ static fetch(client: SuiClient, id: string): Promise<RebalanceEvent>;
2278
+ }
2279
+ export declare function isRebalanceProcess(type: string): boolean;
2280
+ export interface RebalanceProcessFields {
2281
+ index: ToField<"u64">;
2282
+ tokenTypeA: ToField<TypeName>;
2283
+ tokenDecimalA: ToField<"u64">;
2284
+ tokenAmountA: ToField<"u64">;
2285
+ oraclePriceA: ToField<"u64">;
2286
+ reducedUsd: ToField<"u64">;
2287
+ tokenTypeB: ToField<TypeName>;
2288
+ tokenDecimalB: ToField<"u64">;
2289
+ oraclePriceB: ToField<"u64">;
2290
+ }
2291
+ export type RebalanceProcessReified = Reified<RebalanceProcess, RebalanceProcessFields>;
2292
+ export declare class RebalanceProcess implements StructClass {
2293
+ __StructClass: true;
2294
+ static readonly $typeName: string;
2295
+ static readonly $numTypeParams = 0;
2296
+ static readonly $isPhantom: readonly [];
2297
+ readonly $typeName: string;
2298
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RebalanceProcess`;
2299
+ readonly $typeArgs: [];
2300
+ readonly $isPhantom: readonly [];
2301
+ readonly index: ToField<"u64">;
2302
+ readonly tokenTypeA: ToField<TypeName>;
2303
+ readonly tokenDecimalA: ToField<"u64">;
2304
+ readonly tokenAmountA: ToField<"u64">;
2305
+ readonly oraclePriceA: ToField<"u64">;
2306
+ readonly reducedUsd: ToField<"u64">;
2307
+ readonly tokenTypeB: ToField<TypeName>;
2308
+ readonly tokenDecimalB: ToField<"u64">;
2309
+ readonly oraclePriceB: ToField<"u64">;
2310
+ private constructor();
2311
+ static reified(): RebalanceProcessReified;
2312
+ static get r(): reified.StructClassReified<RebalanceProcess, RebalanceProcessFields>;
2313
+ static phantom(): PhantomReified<ToTypeStr<RebalanceProcess>>;
2314
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RebalanceProcess" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RebalanceProcess">;
2315
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
2316
+ index: string;
2317
+ token_type_a: {
2318
+ name: {
2319
+ bytes: number[];
2320
+ };
2321
+ };
2322
+ token_decimal_a: string;
2323
+ token_amount_a: string;
2324
+ oracle_price_a: string;
2325
+ reduced_usd: string;
2326
+ token_type_b: {
2327
+ name: {
2328
+ bytes: number[];
2329
+ };
2330
+ };
2331
+ token_decimal_b: string;
2332
+ oracle_price_b: string;
2333
+ }, {
2334
+ index: string | number | bigint;
2335
+ token_type_a: {
2336
+ name: {
2337
+ bytes: Iterable<number> & {
2338
+ length: number;
2339
+ };
2340
+ };
2341
+ };
2342
+ token_decimal_a: string | number | bigint;
2343
+ token_amount_a: string | number | bigint;
2344
+ oracle_price_a: string | number | bigint;
2345
+ reduced_usd: string | number | bigint;
2346
+ token_type_b: {
2347
+ name: {
2348
+ bytes: Iterable<number> & {
2349
+ length: number;
2350
+ };
2351
+ };
2352
+ };
2353
+ token_decimal_b: string | number | bigint;
2354
+ oracle_price_b: string | number | bigint;
2355
+ }>;
2356
+ static fromFields(fields: Record<string, any>): RebalanceProcess;
2357
+ static fromFieldsWithTypes(item: FieldsWithTypes): RebalanceProcess;
2358
+ static fromBcs(data: Uint8Array): RebalanceProcess;
2359
+ toJSONField(): {
2360
+ index: string;
2361
+ tokenTypeA: {
2362
+ name: string;
2363
+ };
2364
+ tokenDecimalA: string;
2365
+ tokenAmountA: string;
2366
+ oraclePriceA: string;
2367
+ reducedUsd: string;
2368
+ tokenTypeB: {
2369
+ name: string;
2370
+ };
2371
+ tokenDecimalB: string;
2372
+ oraclePriceB: string;
2373
+ };
2374
+ toJSON(): {
2375
+ index: string;
2376
+ tokenTypeA: {
2377
+ name: string;
2378
+ };
2379
+ tokenDecimalA: string;
2380
+ tokenAmountA: string;
2381
+ oraclePriceA: string;
2382
+ reducedUsd: string;
2383
+ tokenTypeB: {
2384
+ name: string;
2385
+ };
2386
+ tokenDecimalB: string;
2387
+ oraclePriceB: string;
2388
+ $typeName: string;
2389
+ $typeArgs: [];
2390
+ };
2391
+ static fromJSONField(field: any): RebalanceProcess;
2392
+ static fromJSON(json: Record<string, any>): RebalanceProcess;
2393
+ static fromSuiParsedData(content: SuiParsedData): RebalanceProcess;
2394
+ static fromSuiObjectData(data: SuiObjectData): RebalanceProcess;
2395
+ static fetch(client: SuiClient, id: string): Promise<RebalanceProcess>;
2396
+ }
1691
2397
  export declare function isRedeemEvent(type: string): boolean;
1692
2398
  export interface RedeemEventFields {
1693
2399
  sender: ToField<"address">;
@@ -3236,6 +3942,74 @@ export declare class UpdateMarginConfigEvent implements StructClass {
3236
3942
  static fromSuiObjectData(data: SuiObjectData): UpdateMarginConfigEvent;
3237
3943
  static fetch(client: SuiClient, id: string): Promise<UpdateMarginConfigEvent>;
3238
3944
  }
3945
+ export declare function isUpdateRebalanceCostThresholdBpEvent(type: string): boolean;
3946
+ export interface UpdateRebalanceCostThresholdBpEventFields {
3947
+ sender: ToField<"address">;
3948
+ index: ToField<"u64">;
3949
+ previousRebalanceCostThresholdBp: ToField<"u64">;
3950
+ newRebalanceCostThresholdBp: ToField<"u64">;
3951
+ u64Padding: ToField<Vector<"u64">>;
3952
+ }
3953
+ export type UpdateRebalanceCostThresholdBpEventReified = Reified<UpdateRebalanceCostThresholdBpEvent, UpdateRebalanceCostThresholdBpEventFields>;
3954
+ export declare class UpdateRebalanceCostThresholdBpEvent implements StructClass {
3955
+ __StructClass: true;
3956
+ static readonly $typeName: string;
3957
+ static readonly $numTypeParams = 0;
3958
+ static readonly $isPhantom: readonly [];
3959
+ readonly $typeName: string;
3960
+ readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateRebalanceCostThresholdBpEvent`;
3961
+ readonly $typeArgs: [];
3962
+ readonly $isPhantom: readonly [];
3963
+ readonly sender: ToField<"address">;
3964
+ readonly index: ToField<"u64">;
3965
+ readonly previousRebalanceCostThresholdBp: ToField<"u64">;
3966
+ readonly newRebalanceCostThresholdBp: ToField<"u64">;
3967
+ readonly u64Padding: ToField<Vector<"u64">>;
3968
+ private constructor();
3969
+ static reified(): UpdateRebalanceCostThresholdBpEventReified;
3970
+ static get r(): reified.StructClassReified<UpdateRebalanceCostThresholdBpEvent, UpdateRebalanceCostThresholdBpEventFields>;
3971
+ static phantom(): PhantomReified<ToTypeStr<UpdateRebalanceCostThresholdBpEvent>>;
3972
+ static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateRebalanceCostThresholdBpEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateRebalanceCostThresholdBpEvent">;
3973
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
3974
+ sender: string;
3975
+ index: string;
3976
+ previous_rebalance_cost_threshold_bp: string;
3977
+ new_rebalance_cost_threshold_bp: string;
3978
+ u64_padding: string[];
3979
+ }, {
3980
+ sender: string;
3981
+ index: string | number | bigint;
3982
+ previous_rebalance_cost_threshold_bp: string | number | bigint;
3983
+ new_rebalance_cost_threshold_bp: string | number | bigint;
3984
+ u64_padding: Iterable<string | number | bigint> & {
3985
+ length: number;
3986
+ };
3987
+ }>;
3988
+ static fromFields(fields: Record<string, any>): UpdateRebalanceCostThresholdBpEvent;
3989
+ static fromFieldsWithTypes(item: FieldsWithTypes): UpdateRebalanceCostThresholdBpEvent;
3990
+ static fromBcs(data: Uint8Array): UpdateRebalanceCostThresholdBpEvent;
3991
+ toJSONField(): {
3992
+ sender: string;
3993
+ index: string;
3994
+ previousRebalanceCostThresholdBp: string;
3995
+ newRebalanceCostThresholdBp: string;
3996
+ u64Padding: string[];
3997
+ };
3998
+ toJSON(): {
3999
+ sender: string;
4000
+ index: string;
4001
+ previousRebalanceCostThresholdBp: string;
4002
+ newRebalanceCostThresholdBp: string;
4003
+ u64Padding: string[];
4004
+ $typeName: string;
4005
+ $typeArgs: [];
4006
+ };
4007
+ static fromJSONField(field: any): UpdateRebalanceCostThresholdBpEvent;
4008
+ static fromJSON(json: Record<string, any>): UpdateRebalanceCostThresholdBpEvent;
4009
+ static fromSuiParsedData(content: SuiParsedData): UpdateRebalanceCostThresholdBpEvent;
4010
+ static fromSuiObjectData(data: SuiObjectData): UpdateRebalanceCostThresholdBpEvent;
4011
+ static fetch(client: SuiClient, id: string): Promise<UpdateRebalanceCostThresholdBpEvent>;
4012
+ }
3239
4013
  export declare function isUpdateSpotConfigEvent(type: string): boolean;
3240
4014
  export interface UpdateSpotConfigEventFields {
3241
4015
  sender: ToField<"address">;