diff --git a/packages/common/src/codegen/types/index.ts b/packages/common/src/codegen/types/index.ts index 99cd9d7f..7fd10d08 100644 --- a/packages/common/src/codegen/types/index.ts +++ b/packages/common/src/codegen/types/index.ts @@ -1,12 +1,28 @@ -// export type ComponentMapType = string | Record -export type ComponentMapType = string | Record; +export type baseType = + | "address" + | "bool" + | "u8" + | "u64" + | "u128" + | "vector" + | "vector" + | "vector>" + | "vector" + | "vector" + | "Option
" + | "Option" + | "Option" + | "Option" + | "Option"; +export type ComponentMapType = baseType | Record; export type SingletonType = | { - type: string; + type: baseType; init: string; } | { - type: Record; + type: Record; init: Record; };