@sovryn-zero/lib-base 0.2.0 → 0.2.2

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.
Files changed (41) hide show
  1. package/dist/index.d.ts +13 -13
  2. package/dist/index.js +25 -25
  3. package/dist/src/Decimal.d.ts +88 -88
  4. package/dist/src/Decimal.js +360 -360
  5. package/dist/src/Fees.d.ts +81 -81
  6. package/dist/src/Fees.js +122 -122
  7. package/dist/src/LiquityStore.d.ts +206 -208
  8. package/dist/src/LiquityStore.d.ts.map +1 -1
  9. package/dist/src/LiquityStore.js +207 -208
  10. package/dist/src/LiquityStore.js.map +1 -1
  11. package/dist/src/ObservableLiquity.d.ts +14 -14
  12. package/dist/src/ObservableLiquity.js +2 -2
  13. package/dist/src/PopulatableLiquity.d.ts +124 -124
  14. package/dist/src/PopulatableLiquity.js +2 -2
  15. package/dist/src/ReadableLiquity.d.ts +151 -155
  16. package/dist/src/ReadableLiquity.d.ts.map +1 -1
  17. package/dist/src/ReadableLiquity.js +2 -2
  18. package/dist/src/SendableLiquity.d.ts +155 -155
  19. package/dist/src/SendableLiquity.js +19 -19
  20. package/dist/src/StabilityDeposit.d.ts +58 -58
  21. package/dist/src/StabilityDeposit.js +79 -79
  22. package/dist/src/TransactableLiquity.d.ts +413 -413
  23. package/dist/src/TransactableLiquity.js +17 -17
  24. package/dist/src/Trove.d.ts +366 -366
  25. package/dist/src/Trove.js +422 -422
  26. package/dist/src/ZEROStake.d.ts +51 -51
  27. package/dist/src/ZEROStake.js +73 -73
  28. package/dist/src/_CachedReadableLiquity.d.ts +53 -54
  29. package/dist/src/_CachedReadableLiquity.d.ts.map +1 -1
  30. package/dist/src/_CachedReadableLiquity.js +88 -92
  31. package/dist/src/_CachedReadableLiquity.js.map +1 -1
  32. package/dist/src/constants.d.ts +60 -60
  33. package/dist/src/constants.d.ts.map +1 -1
  34. package/dist/src/constants.js +63 -63
  35. package/dist/src/constants.js.map +1 -1
  36. package/etc/lib-base.api.md +0 -4
  37. package/package.json +1 -1
  38. package/src/LiquityStore.ts +0 -9
  39. package/src/ReadableLiquity.ts +0 -5
  40. package/src/_CachedReadableLiquity.ts +0 -7
  41. package/src/constants.ts +1 -1
@@ -1,209 +1,207 @@
1
- import { Decimal } from "./Decimal";
2
- import { StabilityDeposit } from "./StabilityDeposit";
3
- import { Trove, TroveWithPendingRedistribution, UserTrove } from "./Trove";
4
- import { Fees } from "./Fees";
5
- import { ZEROStake } from "./ZEROStake";
6
- import { FrontendStatus } from "./ReadableLiquity";
7
- /**
8
- * State variables read from the blockchain.
9
- *
10
- * @public
11
- */
12
- export interface LiquityStoreBaseState {
13
- /** Status of currently used frontend. */
14
- frontend: FrontendStatus;
15
- /** Status of user's own frontend. */
16
- ownFrontend: FrontendStatus;
17
- /** Number of Troves that are currently open. */
18
- numberOfTroves: number;
19
- /** User's native currency balance (e.g. Ether). */
20
- accountBalance: Decimal;
21
- /** User's ZUSD token balance. */
22
- zusdBalance: Decimal;
23
- /** User's NUE token balance. */
24
- nueBalance: Decimal;
25
- /** User's ZERO token balance. */
26
- zeroBalance: Decimal;
27
- /**
28
- * Amount of leftover collateral available for withdrawal to the user.
29
- *
30
- * @remarks
31
- * See {@link ReadableLiquity.getCollateralSurplusBalance | getCollateralSurplusBalance()} for
32
- * more information.
33
- */
34
- collateralSurplusBalance: Decimal;
35
- /** Current price of the native currency (e.g. Ether) in USD. */
36
- price: Decimal;
37
- /** Total amount of ZUSD currently deposited in the Stability Pool. */
38
- zusdInStabilityPool: Decimal;
39
- /** Total collateral and debt in the Zero system. */
40
- total: Trove;
41
- /**
42
- * Total collateral and debt per stake that has been liquidated through redistribution.
43
- *
44
- * @remarks
45
- * Needed when dealing with instances of {@link TroveWithPendingRedistribution}.
46
- */
47
- totalRedistributed: Trove;
48
- /**
49
- * User's Trove in its state after the last direct modification.
50
- *
51
- * @remarks
52
- * The current state of the user's Trove can be found as
53
- * {@link LiquityStoreDerivedState.trove | trove}.
54
- */
55
- troveBeforeRedistribution: TroveWithPendingRedistribution;
56
- /** User's stability deposit. */
57
- stabilityDeposit: StabilityDeposit;
58
- /** Remaining ZERO that will be collectively rewarded to stability depositors. */
59
- remainingStabilityPoolZEROReward: Decimal;
60
- /** @internal */
61
- _feesInNormalMode: Fees;
62
- /** User's ZERO stake. */
63
- zeroStake: ZEROStake;
64
- /** Total amount of ZERO currently staked. */
65
- totalStakedZERO: Decimal;
66
- /** @internal */
67
- _riskiestTroveBeforeRedistribution: TroveWithPendingRedistribution;
68
- }
69
- /**
70
- * State variables derived from {@link LiquityStoreBaseState}.
71
- *
72
- * @public
73
- */
74
- export interface LiquityStoreDerivedState {
75
- /** Current state of user's Trove */
76
- trove: UserTrove;
77
- /** Calculator for current fees. */
78
- fees: Fees;
79
- /**
80
- * Current borrowing rate.
81
- *
82
- * @remarks
83
- * A value between 0 and 1.
84
- *
85
- * @example
86
- * For example a value of 0.01 amounts to a borrowing fee of 1% of the borrowed amount.
87
- */
88
- borrowingRate: Decimal;
89
- /**
90
- * Current redemption rate.
91
- *
92
- * @remarks
93
- * Note that the actual rate paid by a redemption transaction will depend on the amount of ZUSD
94
- * being redeemed.
95
- *
96
- * Use {@link Fees.redemptionRate} to calculate a precise redemption rate.
97
- */
98
- redemptionRate: Decimal;
99
- /**
100
- * Whether there are any Troves with collateral ratio below the
101
- * {@link MINIMUM_COLLATERAL_RATIO | minimum}.
102
- */
103
- haveUndercollateralizedTroves: boolean;
104
- }
105
- /**
106
- * Type of {@link LiquityStore}'s {@link LiquityStore.state | state}.
107
- *
108
- * @remarks
109
- * It combines all properties of {@link LiquityStoreBaseState} and {@link LiquityStoreDerivedState}
110
- * with optional extra state added by the particular `LiquityStore` implementation.
111
- *
112
- * The type parameter `T` may be used to type the extra state.
113
- *
114
- * @public
115
- */
116
- export declare type LiquityStoreState<T = unknown> = LiquityStoreBaseState & LiquityStoreDerivedState & T;
117
- /**
118
- * Parameters passed to {@link LiquityStore} listeners.
119
- *
120
- * @remarks
121
- * Use the {@link LiquityStore.subscribe | subscribe()} function to register a listener.
122
-
123
- * @public
124
- */
125
- export interface LiquityStoreListenerParams<T = unknown> {
126
- /** The entire previous state. */
127
- newState: LiquityStoreState<T>;
128
- /** The entire new state. */
129
- oldState: LiquityStoreState<T>;
130
- /** Only the state variables that have changed. */
131
- stateChange: Partial<LiquityStoreState<T>>;
132
- }
133
- /**
134
- * Abstract base class of Zero data store implementations.
135
- *
136
- * @remarks
137
- * The type parameter `T` may be used to type extra state added to {@link LiquityStoreState} by the
138
- * subclass.
139
- *
140
- * Implemented by {@link @sovryn-zero/lib-ethers#BlockPolledLiquityStore}.
141
- *
142
- * @public
143
- */
144
- export declare abstract class LiquityStore<T = unknown> {
145
- /** Turn console logging on/off. */
146
- logging: boolean;
147
- /**
148
- * Called after the state is fetched for the first time.
149
- *
150
- * @remarks
151
- * See {@link LiquityStore.start | start()}.
152
- */
153
- onLoaded?: () => void;
154
- /** @internal */
155
- protected _loaded: boolean;
156
- private _baseState?;
157
- private _derivedState?;
158
- private _extraState?;
159
- private _updateTimeoutId;
160
- private _listeners;
161
- /**
162
- * The current store state.
163
- *
164
- * @remarks
165
- * Should not be accessed before the store is loaded. Assign a function to
166
- * {@link LiquityStore.onLoaded | onLoaded} to get a callback when this happens.
167
- *
168
- * See {@link LiquityStoreState} for the list of properties returned.
169
- */
170
- get state(): LiquityStoreState<T>;
171
- /** @internal */
172
- protected abstract _doStart(): () => void;
173
- /**
174
- * Start monitoring the blockchain for Zero state changes.
175
- *
176
- * @remarks
177
- * The {@link LiquityStore.onLoaded | onLoaded} callback will be called after the state is fetched
178
- * for the first time.
179
- *
180
- * Use the {@link LiquityStore.subscribe | subscribe()} function to register listeners.
181
- *
182
- * @returns Function to stop the monitoring.
183
- */
184
- start(): () => void;
185
- private _cancelUpdateIfScheduled;
186
- private _scheduleUpdate;
187
- private _logUpdate;
188
- private _updateIfChanged;
189
- private _silentlyUpdateIfChanged;
190
- private _updateFees;
191
- private _reduce;
192
- private _derive;
193
- private _reduceDerived;
194
- /** @internal */
195
- protected abstract _reduceExtra(extraState: T, extraStateUpdate: Partial<T>): T;
196
- private _notify;
197
- /**
198
- * Register a state change listener.
199
- *
200
- * @param listener - Function that will be called whenever state changes.
201
- * @returns Function to unregister this listener.
202
- */
203
- subscribe(listener: (params: LiquityStoreListenerParams<T>) => void): () => void;
204
- /** @internal */
205
- protected _load(baseState: LiquityStoreBaseState, extraState?: T): void;
206
- /** @internal */
207
- protected _update(baseStateUpdate?: Partial<LiquityStoreBaseState>, extraStateUpdate?: Partial<T>): void;
208
- }
1
+ import { Decimal } from "./Decimal";
2
+ import { StabilityDeposit } from "./StabilityDeposit";
3
+ import { Trove, TroveWithPendingRedistribution, UserTrove } from "./Trove";
4
+ import { Fees } from "./Fees";
5
+ import { ZEROStake } from "./ZEROStake";
6
+ import { FrontendStatus } from "./ReadableLiquity";
7
+ /**
8
+ * State variables read from the blockchain.
9
+ *
10
+ * @public
11
+ */
12
+ export interface LiquityStoreBaseState {
13
+ /** Status of currently used frontend. */
14
+ frontend: FrontendStatus;
15
+ /** Status of user's own frontend. */
16
+ ownFrontend: FrontendStatus;
17
+ /** Number of Troves that are currently open. */
18
+ numberOfTroves: number;
19
+ /** User's native currency balance (e.g. Ether). */
20
+ accountBalance: Decimal;
21
+ /** User's ZUSD token balance. */
22
+ zusdBalance: Decimal;
23
+ /** User's NUE token balance. */
24
+ nueBalance: Decimal;
25
+ /** User's ZERO token balance. */
26
+ zeroBalance: Decimal;
27
+ /**
28
+ * Amount of leftover collateral available for withdrawal to the user.
29
+ *
30
+ * @remarks
31
+ * See {@link ReadableLiquity.getCollateralSurplusBalance | getCollateralSurplusBalance()} for
32
+ * more information.
33
+ */
34
+ collateralSurplusBalance: Decimal;
35
+ /** Current price of the native currency (e.g. Ether) in USD. */
36
+ price: Decimal;
37
+ /** Total amount of ZUSD currently deposited in the Stability Pool. */
38
+ zusdInStabilityPool: Decimal;
39
+ /** Total collateral and debt in the Zero system. */
40
+ total: Trove;
41
+ /**
42
+ * Total collateral and debt per stake that has been liquidated through redistribution.
43
+ *
44
+ * @remarks
45
+ * Needed when dealing with instances of {@link TroveWithPendingRedistribution}.
46
+ */
47
+ totalRedistributed: Trove;
48
+ /**
49
+ * User's Trove in its state after the last direct modification.
50
+ *
51
+ * @remarks
52
+ * The current state of the user's Trove can be found as
53
+ * {@link LiquityStoreDerivedState.trove | trove}.
54
+ */
55
+ troveBeforeRedistribution: TroveWithPendingRedistribution;
56
+ /** User's stability deposit. */
57
+ stabilityDeposit: StabilityDeposit;
58
+ /** @internal */
59
+ _feesInNormalMode: Fees;
60
+ /** User's ZERO stake. */
61
+ zeroStake: ZEROStake;
62
+ /** Total amount of ZERO currently staked. */
63
+ totalStakedZERO: Decimal;
64
+ /** @internal */
65
+ _riskiestTroveBeforeRedistribution: TroveWithPendingRedistribution;
66
+ }
67
+ /**
68
+ * State variables derived from {@link LiquityStoreBaseState}.
69
+ *
70
+ * @public
71
+ */
72
+ export interface LiquityStoreDerivedState {
73
+ /** Current state of user's Trove */
74
+ trove: UserTrove;
75
+ /** Calculator for current fees. */
76
+ fees: Fees;
77
+ /**
78
+ * Current borrowing rate.
79
+ *
80
+ * @remarks
81
+ * A value between 0 and 1.
82
+ *
83
+ * @example
84
+ * For example a value of 0.01 amounts to a borrowing fee of 1% of the borrowed amount.
85
+ */
86
+ borrowingRate: Decimal;
87
+ /**
88
+ * Current redemption rate.
89
+ *
90
+ * @remarks
91
+ * Note that the actual rate paid by a redemption transaction will depend on the amount of ZUSD
92
+ * being redeemed.
93
+ *
94
+ * Use {@link Fees.redemptionRate} to calculate a precise redemption rate.
95
+ */
96
+ redemptionRate: Decimal;
97
+ /**
98
+ * Whether there are any Troves with collateral ratio below the
99
+ * {@link MINIMUM_COLLATERAL_RATIO | minimum}.
100
+ */
101
+ haveUndercollateralizedTroves: boolean;
102
+ }
103
+ /**
104
+ * Type of {@link LiquityStore}'s {@link LiquityStore.state | state}.
105
+ *
106
+ * @remarks
107
+ * It combines all properties of {@link LiquityStoreBaseState} and {@link LiquityStoreDerivedState}
108
+ * with optional extra state added by the particular `LiquityStore` implementation.
109
+ *
110
+ * The type parameter `T` may be used to type the extra state.
111
+ *
112
+ * @public
113
+ */
114
+ export declare type LiquityStoreState<T = unknown> = LiquityStoreBaseState & LiquityStoreDerivedState & T;
115
+ /**
116
+ * Parameters passed to {@link LiquityStore} listeners.
117
+ *
118
+ * @remarks
119
+ * Use the {@link LiquityStore.subscribe | subscribe()} function to register a listener.
120
+
121
+ * @public
122
+ */
123
+ export interface LiquityStoreListenerParams<T = unknown> {
124
+ /** The entire previous state. */
125
+ newState: LiquityStoreState<T>;
126
+ /** The entire new state. */
127
+ oldState: LiquityStoreState<T>;
128
+ /** Only the state variables that have changed. */
129
+ stateChange: Partial<LiquityStoreState<T>>;
130
+ }
131
+ /**
132
+ * Abstract base class of Zero data store implementations.
133
+ *
134
+ * @remarks
135
+ * The type parameter `T` may be used to type extra state added to {@link LiquityStoreState} by the
136
+ * subclass.
137
+ *
138
+ * Implemented by {@link @sovryn-zero/lib-ethers#BlockPolledLiquityStore}.
139
+ *
140
+ * @public
141
+ */
142
+ export declare abstract class LiquityStore<T = unknown> {
143
+ /** Turn console logging on/off. */
144
+ logging: boolean;
145
+ /**
146
+ * Called after the state is fetched for the first time.
147
+ *
148
+ * @remarks
149
+ * See {@link LiquityStore.start | start()}.
150
+ */
151
+ onLoaded?: () => void;
152
+ /** @internal */
153
+ protected _loaded: boolean;
154
+ private _baseState?;
155
+ private _derivedState?;
156
+ private _extraState?;
157
+ private _updateTimeoutId;
158
+ private _listeners;
159
+ /**
160
+ * The current store state.
161
+ *
162
+ * @remarks
163
+ * Should not be accessed before the store is loaded. Assign a function to
164
+ * {@link LiquityStore.onLoaded | onLoaded} to get a callback when this happens.
165
+ *
166
+ * See {@link LiquityStoreState} for the list of properties returned.
167
+ */
168
+ get state(): LiquityStoreState<T>;
169
+ /** @internal */
170
+ protected abstract _doStart(): () => void;
171
+ /**
172
+ * Start monitoring the blockchain for Zero state changes.
173
+ *
174
+ * @remarks
175
+ * The {@link LiquityStore.onLoaded | onLoaded} callback will be called after the state is fetched
176
+ * for the first time.
177
+ *
178
+ * Use the {@link LiquityStore.subscribe | subscribe()} function to register listeners.
179
+ *
180
+ * @returns Function to stop the monitoring.
181
+ */
182
+ start(): () => void;
183
+ private _cancelUpdateIfScheduled;
184
+ private _scheduleUpdate;
185
+ private _logUpdate;
186
+ private _updateIfChanged;
187
+ private _silentlyUpdateIfChanged;
188
+ private _updateFees;
189
+ private _reduce;
190
+ private _derive;
191
+ private _reduceDerived;
192
+ /** @internal */
193
+ protected abstract _reduceExtra(extraState: T, extraStateUpdate: Partial<T>): T;
194
+ private _notify;
195
+ /**
196
+ * Register a state change listener.
197
+ *
198
+ * @param listener - Function that will be called whenever state changes.
199
+ * @returns Function to unregister this listener.
200
+ */
201
+ subscribe(listener: (params: LiquityStoreListenerParams<T>) => void): () => void;
202
+ /** @internal */
203
+ protected _load(baseState: LiquityStoreBaseState, extraState?: T): void;
204
+ /** @internal */
205
+ protected _update(baseStateUpdate?: Partial<LiquityStoreBaseState>, extraStateUpdate?: Partial<T>): void;
206
+ }
209
207
  //# sourceMappingURL=LiquityStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LiquityStore.d.ts","sourceRoot":"","sources":["../../src/LiquityStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,8BAA8B,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,qBAA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