opnet 1.5.9 → 1.5.11

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.
@@ -1 +1 @@
1
- export declare const version = "1.5.9";
1
+ export declare const version = "1.5.10";
@@ -21,27 +21,41 @@ export type ReservationCreatedEvent = {
21
21
  readonly expectedAmountOut: bigint;
22
22
  readonly totalSatoshis: bigint;
23
23
  };
24
+ export type ReservationPurgedEvent = {
25
+ readonly reservationId: bigint;
26
+ readonly currentBlock: bigint;
27
+ readonly purgingBlock: bigint;
28
+ readonly purgeIndex: number;
29
+ readonly providerCount: number;
30
+ };
31
+ export type ReservationPurgingEvent = {
32
+ readonly reservationId: bigint;
33
+ readonly purgeIndex: number;
34
+ readonly purgeQueueLength: number;
35
+ };
24
36
  export type SwapExecutedEvent = {
25
37
  readonly buyer: Address;
26
38
  readonly amountIn: bigint;
27
39
  readonly amountOut: bigint;
28
40
  };
29
- export type UnlistEvent = {
30
- readonly token: Address;
31
- readonly amount: bigint;
32
- readonly remainingLiquidity: bigint;
33
- };
34
41
  export type LiquidityReservedEvent = {
35
42
  readonly depositAddress: string;
36
43
  readonly amount: bigint;
37
44
  readonly providerId: bigint;
38
45
  };
46
+ export type ListingCanceledEvent = {
47
+ readonly amount: bigint;
48
+ readonly penalty: bigint;
49
+ };
39
50
  export type ActivateProviderEvent = {
40
51
  readonly providerId: bigint;
41
52
  readonly listingAmount: bigint;
53
+ readonly btcToRemove: bigint;
42
54
  };
43
55
  export type FulfilledProviderEvent = {
44
56
  readonly providerId: bigint;
57
+ readonly canceled: boolean;
58
+ readonly removalCompleted: boolean;
45
59
  };
46
60
  export type ReserveNativeSwap = CallResult<{
47
61
  ok: boolean;
@@ -57,19 +71,17 @@ export type ListLiquidity = CallResult<{
57
71
  }, OPNetEvent<LiquidityListedEvent>[]>;
58
72
  export type CancelListing = CallResult<{
59
73
  ok: boolean;
60
- }, OPNetEvent<UnlistEvent | TransferEvent | FulfilledProviderEvent>[]>;
74
+ }, OPNetEvent<ListingCanceledEvent | TransferEvent | FulfilledProviderEvent>[]>;
61
75
  export type CreatePool = CallResult<{
62
76
  ok: boolean;
63
77
  }, OPNetEvent<TransferEvent | LiquidityAddedEvent>[]>;
64
78
  export type SetFees = CallResult<{
65
79
  ok: boolean;
66
- }, [
67
- ]>;
80
+ }, []>;
68
81
  export type GetFees = CallResult<{
69
82
  reservationBaseFee: bigint;
70
83
  priorityQueueBaseFee: bigint;
71
- }, [
72
- ]>;
84
+ }, []>;
73
85
  export type Swap = CallResult<{
74
86
  ok: boolean;
75
87
  }, OPNetEvent<SwapExecutedEvent | TransferEvent | ActivateProviderEvent | FulfilledProviderEvent>[]>;
@@ -98,16 +110,14 @@ export type GetProviderDetails = CallResult<{
98
110
  ]>;
99
111
  export type GetPriorityQueueCost = CallResult<{
100
112
  cost: bigint;
101
- }, [
102
- ]>;
113
+ }, []>;
103
114
  export type AntiBotSettings = CallResult<{
104
- antibotEnabledFor: number;
105
- antibotMaximumTokensPerReservation: bigint;
106
- maxReservesIn5BlocksPercent: number;
115
+ antiBotExpirationBlock: bigint;
116
+ maxTokensPerReservation: bigint;
107
117
  }, [
108
118
  ]>;
109
119
  export type StakingAddressResult = CallResult<{
110
- stakingContractAddress: Address;
120
+ stakingAddress: Address;
111
121
  }, []>;
112
122
  export type QueueDetails = CallResult<{
113
123
  lastPurgedBlock: number;