|
@@ -1,10 +1,11 @@
|
|
|
-import { Struct, Option, Text, bool, Vec, u16, u32, u64, getTypeRegistry, Enum, Null } from "@polkadot/types";
|
|
|
+import { Struct, Option, Text, bool, Vec, u16, u32, u64, getTypeRegistry, Null } from "@polkadot/types";
|
|
|
import { BlockNumber, Moment } from '@polkadot/types/interfaces';
|
|
|
import { Codec } from "@polkadot/types/types";
|
|
|
// we get 'moment' because it is a dependency of @polkadot/util, via @polkadot/keyring
|
|
|
import moment from 'moment';
|
|
|
import { JoyStruct } from './JoyStruct';
|
|
|
export { JoyStruct } from './JoyStruct';
|
|
|
+import { JoyEnum } from './JoyEnum';
|
|
|
export { JoyEnum } from './JoyEnum';
|
|
|
|
|
|
// Treat a BTreeSet as a Vec since it is encoded in the same way
|
|
@@ -108,12 +109,11 @@ export class InputValidationLengthConstraint extends JoyStruct<InputValidationLe
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// TODO: Replace with JoyEnum
|
|
|
export const WorkingGroupDef = {
|
|
|
Storage: Null
|
|
|
} as const;
|
|
|
export type WorkingGroupKeys = keyof typeof WorkingGroupDef;
|
|
|
-export class WorkingGroup extends Enum.with(WorkingGroupDef) { };
|
|
|
+export class WorkingGroup extends JoyEnum(WorkingGroupDef) { };
|
|
|
|
|
|
export function registerCommonTypes() {
|
|
|
const typeRegistry = getTypeRegistry();
|