tx · DqfoVpmRY8jiWmQd4x9YTAHCdspbkS51CjLQz6QLLuRh

3MxquWQhzpqXgbqunnFqHFJXTjasEznd1tN:  -0.00300000 Waves

2022.10.07 14:03 [2261830] smart account 3MxquWQhzpqXgbqunnFqHFJXTjasEznd1tN > SELF 0.00000000 Waves

{ "type": 13, "id": "DqfoVpmRY8jiWmQd4x9YTAHCdspbkS51CjLQz6QLLuRh", "fee": 300000, "feeAssetId": null, "timestamp": 1665140658323, "version": 2, "chainId": 84, "sender": "3MxquWQhzpqXgbqunnFqHFJXTjasEznd1tN", "senderPublicKey": "GDjexdefwEhShjRTvHgazn3gTrDo74eHpJCAz14cAEeh", "proofs": [ "3eoAhfZHqcgFHGC9tewazK5onepMxkYcyuQKAmkjCw5TLK7SQfR9CbeLWLChLqGeUogxPrgV4R7pCWP3Exa6zV7i" ], "script": "base64:AAIFAAAAAAAAACsIAhIECgIICBIDCgEIEgQKAggIEgMKAQgSBAoCCAESAwoBCBIGCgQICAgBAAAADgEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAEWdldEludGVnZXJPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAATcGFyc2VBZGRyZXNzT3JUaHJvdwAAA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ZGUFAAAAA3R0bAAAAAAwVsc5", "height": 2261830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BRmubh4Q92AmW1tpUFNqioS1MbM8pPkpKjCyJme88h88 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getStringOrThrow (address,key) = valueOrErrorMessage(getString(address, key), ((("Can't read '" + key) + "' at address ") + toString(address)))
5+
6+
7+func getIntegerOrThrow (address,key) = valueOrErrorMessage(getInteger(address, key), ((("Can't read '" + key) + "' at address ") + toString(address)))
8+
9+
10+func parseAddressOrThrow (maybeAddress) = valueOrErrorMessage(addressFromString(maybeAddress), (("Can't parse address from '" + maybeAddress) + "'"))
11+
12+
13+func key_entity (name,pk,property) = ((((name + "_") + pk) + "_") + property)
14+
15+
16+func key_Records_owner (node) = key_entity("Records", node, "owner")
17+
18+
19+func key_Records_resolver (node) = key_entity("Records", node, "resolver")
20+
21+
22+func key_Records_ttl (node) = key_entity("Records", node, "ttl")
23+
24+
25+func _getOwner (node) = getStringOrThrow(this, key_Records_owner(node))
26+
27+
28+func _setOwner (node,owner) = [StringEntry(key_Records_owner(node), owner)]
29+
30+
31+func _setResolver (node,resolver) = [StringEntry(key_Records_resolver(node), resolver)]
32+
33+
34+func _setTTL (node,ttl) = [IntegerEntry(key_Records_ttl(node), ttl)]
35+
36+
37+func modifiers (validations) = unit
38+
39+
40+func isSelfCall (inv) = if ((inv.caller == this))
41+ then unit
42+ else throw("Permission denied")
43+
44+
45+func isSelfOrOwnerCall (inv,node) = if (isDefined(indexOf([this, parseAddressOrThrow(_getOwner(node))], inv.caller)))
46+ then unit
47+ else throw("Permission denied")
48+
49+
50+@Callable(inv)
51+func setOwner (node,owner) = valueOrElse(modifiers([isSelfOrOwnerCall(inv, node)]), _setOwner(node, owner))
52+
53+
54+
55+@Callable(inv)
56+func owner (node) = $Tuple2(nil, _getOwner(node))
57+
58+
59+
60+@Callable(inv)
61+func setResolver (node,resolver) = valueOrElse(modifiers([isSelfOrOwnerCall(inv, node)]), _setResolver(node, resolver))
62+
63+
64+
65+@Callable(inv)
66+func resolver (node) = $Tuple2(nil, getStringOrThrow(this, key_Records_resolver(node)))
67+
68+
69+
70+@Callable(inv)
71+func setTTL (node,ttl) = valueOrElse(modifiers([isSelfOrOwnerCall(inv, node)]), _setTTL(node, ttl))
72+
73+
74+
75+@Callable(inv)
76+func ttl (node) = $Tuple2(nil, getIntegerOrThrow(this, key_Records_ttl(node)))
77+
78+
79+
80+@Callable(inv)
81+func setRecord (node,owner,resolver,ttl) = valueOrElse(modifiers([isSelfCall(inv)]), ((_setOwner(node, owner) ++ _setResolver(node, resolver)) ++ _setTTL(node, ttl)))
82+
83+

github/deemru/w8io/026f985 
17.20 ms