{
"type": "SET",
"op_list": [
{
"type": "SET_OWNER",
"ref": "/apps/knowledge",
"value": {
".owner": {
"owners": {
"0x00ADEc28B6a845a085e03591bE7550dd68673C1C": {
"branch_owner": true,
"write_function": true,
"write_owner": true,
"write_rule": true
}
}
}
}
},
{
"type": "SET_RULE",
"ref": "/apps/knowledge/explorations/$user_addr",
"value": {
".rule": {
"write": "auth.addr === $user_addr"
}
}
},
{
"type": "SET_RULE",
"ref": "/apps/knowledge/topics",
"value": {
".rule": {
"write": "auth.addr !== ''"
}
}
},
{
"type": "SET_RULE",
"ref": "/apps/knowledge/index/by_topic/$topic_key/explorers/$user_addr",
"value": {
".rule": {
"write": "auth.addr === $user_addr"
}
}
},
{
"type": "SET_RULE",
"ref": "/apps/knowledge/access/$buyer_addr",
"value": {
".rule": {
"write": "auth.addr === $buyer_addr"
}
}
},
{
"type": "SET_RULE",
"ref": "/apps/knowledge/graph/nodes",
"value": {
".rule": {
"write": "auth.addr !== ''"
}
}
},
{
"type": "SET_RULE",
"ref": "/apps/knowledge/graph/edges",
"value": {
".rule": {
"write": "auth.addr !== ''"
}
}
},
{
"type": "SET_FUNCTION",
"ref": "/apps/knowledge/topics",
"value": {
".function": {
"_syncKnowledgeTopic": {
"function_type": "NATIVE",
"function_id": "_syncKnowledgeTopic"
}
}
}
},
{
"type": "SET_FUNCTION",
"ref": "/apps/knowledge/explorations/$addr/$topic_key/$entry_id",
"value": {
".function": {
"_syncKnowledgeExploration": {
"function_type": "NATIVE",
"function_id": "_syncKnowledgeExploration"
}
}
}
}
]
}