Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vladilen11 committed Sep 24, 2023
1 parent c26453a commit a2c03c0
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions packages/common/src/codegen/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
// export type ComponentMapType = string | Record<string, string | object>
export type ComponentMapType = string | Record<string, string>;
export type baseType =
| "address"
| "bool"
| "u8"
| "u64"
| "u128"
| "vector<address"
| "vector<bool>"
| "vector<u8>"
| "vector<vector<u8>>"
| "vector<u64>"
| "vector<u128>"
| "Option<address>"
| "Option<bool>"
| "Option<u8>"
| "Option<u64>"
| "Option<u128>";
export type ComponentMapType = baseType | Record<string, baseType>;
export type SingletonType =
| {
type: string;
type: baseType;
init: string;
}
| {
type: Record<string, string>;
type: Record<string, baseType>;
init: Record<string, string>;
};

Expand Down

0 comments on commit a2c03c0

Please sign in to comment.