tx · HGjnddhc4kLE7AUn5siSG6xCpWS6r38FTgeGP4u9zYkJ

3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY:  -0.01400000 Waves

2019.09.24 17:26 [690538] smart account 3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY > SELF 0.00000000 Waves

{ "type": 13, "id": "HGjnddhc4kLE7AUn5siSG6xCpWS6r38FTgeGP4u9zYkJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1569335251210, "version": 1, "sender": "3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY", "senderPublicKey": "6VdgiscuZ9B1c2urnAVPPVaCS5afNjzf1RpG2SS3GUy6", "proofs": [ "25TM38uNtTpq82qhezLZVyexgTEBj1DXdKeiMVggfAZrBpxaTWYgr7wJBrqM1ZERLDaZbUTR61bZJwEyUrLqgGmu" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAFF9oCwAAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAEAAAAGaW52b2tlAQAAABFmaWxlQ2VydGlmaWNhdGlvbgAAAAQAAAAEaGFzaAAAAAV0aXRsZQAAAAR1dWlkAAAABGRhdGEEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAAdwYXltZW50BAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAGaW52b2tlAAAADXRyYW5zYWN0aW9uSWQEAAAACmVudHJ5RXhpc3QEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAARoYXNoBQAAAAR1dWlkAwkAAAEAAA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aXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAEdXVpZAkAAlgAAAABBQAAAAJpZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAARoYXNoBQAAAAR1dWlkCQACWAAAAAEFAAAAAmlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABXRpdGxlBQAAAAR1dWlkCQACWAAAAAEFAAAAAmlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAhkYXRhX2ZjXwkAAlgAAAABBQAAAAJpZAIAAAABXwkAAlgAAAABCAgFAAAABmludm9rZQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABGRhdGEFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABGJhbmsFAAAABmFtb3VudAUAAAANYWNjZXB0ZWRUb2tlbgUAAAADbmlsAAAAAJedOhg=", "chainId": 84, "height": 690538, "spentComplexity": 0 } View: original | compacted Prev: 4Aac3xFfEQNfqKcUj9Sjk7LgKHi2z3Ts3BiSUxHorne8 Next: none Diff:
OldNewDifferences
2121 }
2222 else "NONE"
2323 }
24+ let o = {
25+ let m = getString(this, g)
26+ if ($isInstanceOf(m, "String"))
27+ then {
28+ let n = m
29+ n
30+ }
31+ else "NONE"
32+ }
2433 if ((l != "NONE"))
2534 then throw("This entry already exist")
26- else {
27- let o = if (isDefined(i.assetId))
28- then extract(i.assetId)
29- else throw("Waves is not accepted as payment")
30- if ((o != a))
31- then throw("Only payments in SIGN are allowed at the moment")
32- else if ((j != b))
33- then throw("The price is wrong")
34- else ScriptResult(WriteSet([DataEntry((e + g), toBase58String(k)), DataEntry((f + g), toBase58String(k)), DataEntry(((("data_fc_" + toBase58String(k)) + "_") + toBase58String(d.caller.bytes)), h)]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)]))
35- }
35+ else if ((o != "NONE"))
36+ then throw("This uuid already exist")
37+ else if ((size(g) > 36))
38+ then throw("Uuid is too long")
39+ else if ((size(f) > 64))
40+ then throw("Title is too long")
41+ else {
42+ let p = if (isDefined(i.assetId))
43+ then extract(i.assetId)
44+ else throw("Waves is not accepted as payment")
45+ if ((p != a))
46+ then throw("Only payments in SIGN are allowed at the moment")
47+ else if ((j != b))
48+ then throw("The price is wrong")
49+ else ScriptResult(WriteSet([DataEntry(g, toBase58String(k)), DataEntry((e + g), toBase58String(k)), DataEntry((f + g), toBase58String(k)), DataEntry(((("data_fc_" + toBase58String(k)) + "_") + toBase58String(d.caller.bytes)), h)]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)]))
50+ }
3651 }
3752
3853
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
66 let b = 350000000000
77
88 let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
99
1010 @Callable(d)
1111 func fileCertification (e,f,g,h) = {
1212 let i = extract(d.payment)
1313 let j = extract(i.amount)
1414 let k = extract(d.transactionId)
1515 let l = {
1616 let m = getString(this, (e + g))
1717 if ($isInstanceOf(m, "String"))
1818 then {
1919 let n = m
2020 n
2121 }
2222 else "NONE"
2323 }
24+ let o = {
25+ let m = getString(this, g)
26+ if ($isInstanceOf(m, "String"))
27+ then {
28+ let n = m
29+ n
30+ }
31+ else "NONE"
32+ }
2433 if ((l != "NONE"))
2534 then throw("This entry already exist")
26- else {
27- let o = if (isDefined(i.assetId))
28- then extract(i.assetId)
29- else throw("Waves is not accepted as payment")
30- if ((o != a))
31- then throw("Only payments in SIGN are allowed at the moment")
32- else if ((j != b))
33- then throw("The price is wrong")
34- else ScriptResult(WriteSet([DataEntry((e + g), toBase58String(k)), DataEntry((f + g), toBase58String(k)), DataEntry(((("data_fc_" + toBase58String(k)) + "_") + toBase58String(d.caller.bytes)), h)]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)]))
35- }
35+ else if ((o != "NONE"))
36+ then throw("This uuid already exist")
37+ else if ((size(g) > 36))
38+ then throw("Uuid is too long")
39+ else if ((size(f) > 64))
40+ then throw("Title is too long")
41+ else {
42+ let p = if (isDefined(i.assetId))
43+ then extract(i.assetId)
44+ else throw("Waves is not accepted as payment")
45+ if ((p != a))
46+ then throw("Only payments in SIGN are allowed at the moment")
47+ else if ((j != b))
48+ then throw("The price is wrong")
49+ else ScriptResult(WriteSet([DataEntry(g, toBase58String(k)), DataEntry((e + g), toBase58String(k)), DataEntry((f + g), toBase58String(k)), DataEntry(((("data_fc_" + toBase58String(k)) + "_") + toBase58String(d.caller.bytes)), h)]), TransferSet([ScriptTransfer(addressFromStringValue(c), j, a)]))
50+ }
3651 }
3752
3853

github/deemru/w8io/169f3d6 
25.66 ms