-
Notifications
You must be signed in to change notification settings - Fork 0
/
smacco_example.json
56 lines (54 loc) · 1.32 KB
/
smacco_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"standard": "smacco-1.0",
"input_type" : "single/array",
"pubkey_list" : ["pubkey0", "pubkey1"],
"rules" : [
{
"rule_type" : "DENY_IF/ALLOW_IF",
"description" : "xxx",
"condition" : {
"condition_type" : "AND/OR",
"conditions" : [
{
"condition_type" : "NOT",
"condition" : {
"condition_type" : "ONLY_ASSET/HAS_ASSET",
"param" : "NEO/assetid"
}
},
{
"condition_type" : "BLOCK_LEQ/BLOCK_GEQ",
"param" : "4000"
},
{
"condition_type" : "CHECKSIG",
"pubkey" : "publickey_0",
"privkey" : "input_0",
},
{
"condition_type" : "CHECKMULTISIG",
"minimum_required" : "2",
"condition_name" : "checkmsig",
"pubkeys" : [
"publickey_0",
"publickey_1",
],
"privkeys" : [
"input_0",
"input_1",
]
},
{
"condition_type" : "ASSET_ORIG/ASSET_DEST",
"target" : "scripthash/self",
},
]
}
},
{
"description" : "end"
}
],
"default_rule" : "DENY_ALL/ALLOW_ALL",
"target_language" : "C#"
}