Skip to content

Instantly share code, notes, and snippets.

@woss
Created August 23, 2021 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woss/659664f3f3c62568dcc50ce163e3210b to your computer and use it in GitHub Desktop.
Save woss/659664f3f3c62568dcc50ce163e3210b to your computer and use it in GitHub Desktop.
type OperationID = string
type OperationChild = [OperationID, [] | OperationChild[]]
interface Operation {
name: string,
ops: OperationChild[]
}
export async function lib() {
const op: Operation = {
name: "test operation",
ops: [
[
"split",
[
[
"save_statements",
[
[
"identity",
[
[
"user_sign_claims",
[
[
"create_ownership_claims",
[
[
"match_all",
[
["cid", []],
[
"identity",
[
[
"take_photo_and_upload_qrcode",
[["create_qrcode", [["cid", []]]]],
],
],
],
],
],
],
],
],
],
],
],
],
],
],
],
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment