tx · GghJit96tsmPGhZ8yEziYMEa9vc67p8rrygChQZwCvQ8

3N4E8KG2AUwgX2Y9xdYYsD9iv55VME4twvY:  -0.05000000 Waves

2023.10.06 13:42 [2786652] smart account 3N4E8KG2AUwgX2Y9xdYYsD9iv55VME4twvY > SELF 0.00000000 Waves

{ "type": 13, "id": "GghJit96tsmPGhZ8yEziYMEa9vc67p8rrygChQZwCvQ8", "fee": 5000000, "feeAssetId": null, "timestamp": 1696588927098, "version": 1, "sender": "3N4E8KG2AUwgX2Y9xdYYsD9iv55VME4twvY", "senderPublicKey": "4ebpsPeeDUa3KEre4qF2K3ZgDs4iZMRVQDYRqw242SLM", "proofs": [ "4WMMaCcBpJzxvSzvzb8mAkoAG86phmRQBaj3LNSwSve4ij3LjepqpLW4poBYL9pUZpRyZTAct6QBM3ApQ2SAJERj" ], "script": "base64:BgIPCAISAwoBCBIGCgQICAQBBQASY29uZmlnQWRkcmVzc1N0b3JlAgZjb25maWcADWNvbmZpZ0FkZHJlc3MJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkApggBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUEdGhpcwUSY29uZmlnQWRkcmVzc1N0b3JlAid2b3RpbmctcmVzdWx0OiBjb25maWcgYWRkcmVzcyBub3QgZm91bmQCFmludmFsaWQgY29uZmlnIGFkZHJlc3MBEHdyaXRlQ29uc3RTdHJpbmcCA2tleQV2YWx1ZQMJAQEhAQkBCWlzRGVmaW5lZAEJAJ0IAgUEdGhpcwUDa2V5CQELU3RyaW5nRW50cnkCBQNrZXkFBXZhbHVlCQACAQkArAICAhVhbHJlYWR5IGluaXRpYWxpemVkOiAFA2tleQAWY2hpbGRyZW5Wb3RpbmdDb250cmFjdAkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCmCAEJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQ1jb25maWdBZGRyZXNzAhhjb250cmFjdF9jaGlsZHJlbl92b3RpbmcCG25vI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90aW5nCQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMJAKwCAgkArAICCQCsAgICGXByb3Bvc2FsX2FsbG93X2Jyb2FkY2FzdF8JAKUIAQUEdGhpcwIBXwUCaWQHAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQYFCGJ5Vm90aW5nIfr7Qg==", "chainId": 84, "height": 2786652, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "config"
5+
6+let b = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, a), "voting-result: config address not found")), "invalid config address")
7+
8+func c (d,e) = if (!(isDefined(getString(this, d))))
9+ then StringEntry(d, e)
10+ else throw(("already initialized: " + d))
11+
12+
13+let f = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(b, "contract_children_voting"), "no contract_children_voting")), "invalid contract_children_voting")
14+
15+let g = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(b, "contract_voting"), "no contract_voting")), "invalid contract_voting")
16+
17+@Callable(h)
18+func init (i) = [c(a, i)]
19+
20+
21+
22+@Callable(h)
23+func setResult (j,k,l,m) = if (if ((h.caller != g))
24+ then (h.caller != f)
25+ else false)
26+ then throw("only voting contract can call this method")
27+ else if (!(valueOrElse(getBoolean(this, ("allowed_child_voting_" + j)), true)))
28+ then throw(("child voting is not allowed for address " + j))
29+ else {
30+ let n = ((("proposal_allow_broadcast_" + j) + "_") + k)
31+ if (l)
32+ then [IntegerEntry(n, m)]
33+ else [DeleteEntry(n)]
34+ }
35+
36+
37+@Verifier(o)
38+func p () = {
39+ let q = toBase58String(o.id)
40+ let r = valueOrElse(getBoolean(this, ((("proposal_allow_broadcast_" + toString(this)) + "_") + q)), false)
41+ if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey))
42+ then true
43+ else r
44+ }
45+

github/deemru/w8io/169f3d6 
68.66 ms