@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.
@@ -317,10 +317,9 @@ export interface ITokenFactoryCurve {
317
317
  constant?: number;
318
318
  }
319
319
 
320
- /** owner instead of ownerAddress, status: string instead of enum */
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, 'ownerAddress' | 'status' | 'curve' | 'context' | 'token' | 'reserveToken'> {
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
- ownerAddress: string,
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: TokenFactoryStatusMap[keyof TokenFactoryStatusMap],
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/types",
3
- "version": "1.30.17",
3
+ "version": "1.30.19",
4
4
  "description": "Typescript definitions generated from protobuf",
5
5
  "keywords": [
6
6
  "ocap",