tx · GitUvDLTkfEcvrGpHy3nQBRHYhsgUtvv26izUBRqnJER

3N9uzN2kjrwCnrmHAhw7m3FdKhkJ69SGL6F:  -0.01400000 Waves

2020.03.17 19:11 [913493] smart account 3N9uzN2kjrwCnrmHAhw7m3FdKhkJ69SGL6F > SELF 0.00000000 Waves

{ "type": 13, "id": "GitUvDLTkfEcvrGpHy3nQBRHYhsgUtvv26izUBRqnJER", "fee": 1400000, "feeAssetId": null, "timestamp": 1584459653954, "version": 1, "sender": "3N9uzN2kjrwCnrmHAhw7m3FdKhkJ69SGL6F", "senderPublicKey": "9mMgaH1kqUFX5hZW9cQ81VCgroZLfdP6VZWfZL59gZDd", "proofs": [ "5i8c3FN5NtjSW5vS2i2e5wQZj2HQLjpVbmS7vDZSGVLL4g2qW8EJva6sAnCzanUyieenjfZwV47NtZDKJH3kdxSD" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAA3NheQAAAAIAAAADbWlkAAAABHRleHQEAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAAFfBQAAAANtaWQEAAAAA3ZhbAUAAAAEdGV4dAMJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQkAAAIAAAABAgAAABZNZXNzYWdlIGFscmVhZHkgZXhpc3RzCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAADa2V5BQAAAAN2YWwFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAFpAAAAA2ZlZQUAAAAEdW5pdAUAAAADbmlsAAAAAG3m06I=", "chainId": 84, "height": 913493, "spentComplexity": 0 } View: original | compacted Prev: AWMygA2NbaNaN4vvaXGKBJgwmv5yNSNNMnRxNJVJv3AR Next: Gzmh4axgnTwKHVk3VwLTzyZT1o5xpePgj8Cnwf7KyLje Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func request (name) = {
8- let wasRequested = match getInteger(this, name) {
9- case a: Int =>
10- true
11- case _ =>
12- false
7+func say (mid,text) = {
8+ let key = ((toString(i.caller) + "_") + mid)
9+ let val = text
10+ if (isDefined(getString(this, key)))
11+ then throw("Message already exists")
12+ else ScriptResult(WriteSet([DataEntry(key, val)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
1313 }
14- if (wasRequested)
15- then throw("The certificate was already requested")
16- else WriteSet([DataEntry(name, 0)])
17- }
18-
19-
20-
21-@Callable(i)
22-func approve (name,id) = if ((this != i.caller))
23- then throw("dApp owner allowed only")
24- else WriteSet([DataEntry(name, id)])
2514
2615
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func request (name) = {
8- let wasRequested = match getInteger(this, name) {
9- case a: Int =>
10- true
11- case _ =>
12- false
7+func say (mid,text) = {
8+ let key = ((toString(i.caller) + "_") + mid)
9+ let val = text
10+ if (isDefined(getString(this, key)))
11+ then throw("Message already exists")
12+ else ScriptResult(WriteSet([DataEntry(key, val)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
1313 }
14- if (wasRequested)
15- then throw("The certificate was already requested")
16- else WriteSet([DataEntry(name, 0)])
17- }
18-
19-
20-
21-@Callable(i)
22-func approve (name,id) = if ((this != i.caller))
23- then throw("dApp owner allowed only")
24- else WriteSet([DataEntry(name, id)])
2514
2615

github/deemru/w8io/169f3d6 
39.92 ms