Add factory creation ports and owner initialization contracts
This commit is contained in:
@@ -115,6 +115,8 @@ export const genericImplementationType = (
|
||||
}
|
||||
case "query":
|
||||
return queryPort(requirement);
|
||||
case "creation":
|
||||
throw new Error("Creation ports require the portable transaction context generator (LF-09)");
|
||||
case "constructor":
|
||||
return object([
|
||||
[
|
||||
|
||||
@@ -249,6 +249,8 @@ export const generateTypeScriptBindings = (
|
||||
},
|
||||
};
|
||||
}
|
||||
case "creation":
|
||||
throw new Error("Creation ports require the portable transaction context generator (LF-09)");
|
||||
case "constructor": {
|
||||
const input = requirement.inputType;
|
||||
if (!input)
|
||||
|
||||
Reference in New Issue
Block a user