@ocap/types 1.30.17 → 1.30.19
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/interfaces/state.ts +2 -3
- package/lib/state_pb.d.ts +3 -9
- package/package.json +1 -1
package/interfaces/state.ts
CHANGED
|
@@ -317,10 +317,9 @@ export interface ITokenFactoryCurve {
|
|
|
317
317
|
constant?: number;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
/**
|
|
320
|
+
/** Narrows status to known string literals; uses runtime curve/context/token shapes; data as opaque payload */
|
|
321
321
|
export interface ITokenFactoryState
|
|
322
|
-
extends Omit<TTokenFactoryState, '
|
|
323
|
-
owner: string;
|
|
322
|
+
extends Omit<TTokenFactoryState, 'status' | 'curve' | 'context' | 'token' | 'reserveToken' | 'data'> {
|
|
324
323
|
status: 'ACTIVE' | 'PAUSED';
|
|
325
324
|
curve?: ITokenFactoryCurve | null;
|
|
326
325
|
context: IStateContext;
|
package/lib/state_pb.d.ts
CHANGED
|
@@ -217,22 +217,16 @@ export type TEvidenceState = {
|
|
|
217
217
|
|
|
218
218
|
export type TTokenFactoryState = {
|
|
219
219
|
address: string,
|
|
220
|
-
|
|
220
|
+
owner: string,
|
|
221
221
|
tokenAddress: string,
|
|
222
222
|
reserveAddress: string,
|
|
223
223
|
curve?: type_pb.TCurveConfig,
|
|
224
224
|
currentSupply: string,
|
|
225
225
|
reserveBalance: string,
|
|
226
226
|
feeRate: number,
|
|
227
|
-
status:
|
|
227
|
+
status: string,
|
|
228
228
|
token?: TTokenState,
|
|
229
229
|
reserveToken?: TTokenState,
|
|
230
230
|
context?: type_pb.TStateContext,
|
|
231
|
+
data?: google_protobuf_any_pb.Any,
|
|
231
232
|
}
|
|
232
|
-
|
|
233
|
-
export interface TokenFactoryStatusMap {
|
|
234
|
-
TOKEN_FACTORY_ACTIVE: 0;
|
|
235
|
-
TOKEN_FACTORY_PAUSED: 1;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export const TokenFactoryStatus: TokenFactoryStatusMap;
|