tx · 3wKZBRkEzBQcUPVLC8KC8rHzr5iroC3aeXLtFyvr4bFE

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 15:52 [1818116] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "3wKZBRkEzBQcUPVLC8KC8rHzr5iroC3aeXLtFyvr4bFE", "fee": 1000000, "feeAssetId": null, "timestamp": 1638536065157, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "41aKAoXgWf6gKccHojPqk7S2auxFYYk8Si6AC1oWxhxh8S2v83ugFpUbucMAUuHuYgDCHMZMoiFLkJw218WyTmnt" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAACAAAAAAVjYW5kbwIAAAAjM011VzR0MWpDWEh0OFdSc0hWTFVhcjMyRW52SnhaYVFXQXgAAAAABXNlcGFyAgAAAAV8fHx8fAAAAAIAAAABaQEAAAAGY3JlYXRlAAAAAQAAAAJ4eQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABG1lc3MJAAS5AAAAAgkABEwAAAACAgAAACMzTjM3N01TRnpGZHd4Vzk3RU5wZnFmWkxZU25HelNNV3ZOTgkABEwAAAACAgAAAAN1cmwJAARMAAAAAgkAAaQAAAABAAAAAAAAAABkBQAAAANuaWwFAAAABXNlcGFyAwkAAAAAAAACBQAAAAVjYW5kbwUAAAAMY2FsbGVyQWRyZXNzCQAFFAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAACeHkFAAAABG1lc3MFAAAAA25pbAUAAAAEdW5pdAkAAAIAAAABAgAAACDQktGLINC90LUg0LzQvtC20LXRgtC1IHRvIGNyZWF0ZQAAAAFpAQAAAAZjaGFuZ2UAAAABAAAABXRyYW5zBAAAAAxjYWxsZXJBZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAACdHIJAAS1AAAAAgUAAAAFdHJhbnMFAAAABXNlcGFyBAAAAARtZXNzCQAEuQAAAAIJAARMAAAAAgUAAAAMY2FsbGVyQWRyZXNzCQAETAAAAAIJAAGRAAAAAgUAAAACdHIAAAAAAAAAAAEJAARMAAAAAgkAAZEAAAACBQAAAAJ0cgAAAAAAAAAAAgUAAAADbmlsBQAAAAVzZXBhcgQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQMJAAAAAAAAAgUAAAAFY2FuZG8FAAAADGNhbGxlckFkcmVzcwkABRQAAAACCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgUAAAACdHIAAAAAAAAAAAAFAAAABG1lc3MJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAF9eEABQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQJAAACAAAAAQIAAAAg0JLRiyDQvdC1INC80L7QttC10YLQtSB0byBjcmVhdGUAAAAA7cfaUw==", "height": 1818116, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9ZQZvEjFoxHpGEMNEFVPA4f8tBi2Kj77BUb5jxW5j1EA Next: J2RWo1srm7D2hyF1LSjCqXmftMaHnS5HhRkPpM1e86Gf Diff:
OldNewDifferences
2121 let callerAdress = toBase58String(i.caller.bytes)
2222 let tr = split(trans, separ)
2323 let mess = makeString([callerAdress, tr[1], tr[2]], separ)
24- if ((cando == callerAdress))
25- then $Tuple2([StringEntry(tr[0], mess), ScriptTransfer(i.caller, 100000000, unit)], unit)
26- else throw("Вы не можете to create")
24+ let pmt = if ((size(i.payments) == 1))
25+ then i.payments[0]
26+ else throw("Attached payment is required")
27+ if (isDefined(pmt.assetId))
28+ then throw("works with waves only")
29+ else if ((cando == callerAdress))
30+ then $Tuple2([StringEntry(tr[0], mess), ScriptTransfer(i.caller, 100000000, unit)], unit)
31+ else throw("Вы не можете to create")
2732 }
2833
2934
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let cando = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let separ = "|||||"
77
88 @Callable(i)
99 func create (xy) = {
1010 let callerAdress = toBase58String(i.caller.bytes)
1111 let mess = makeString(["3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "url", toString(100)], separ)
1212 if ((cando == callerAdress))
1313 then $Tuple2([StringEntry(xy, mess)], unit)
1414 else throw("Вы не можете to create")
1515 }
1616
1717
1818
1919 @Callable(i)
2020 func change (trans) = {
2121 let callerAdress = toBase58String(i.caller.bytes)
2222 let tr = split(trans, separ)
2323 let mess = makeString([callerAdress, tr[1], tr[2]], separ)
24- if ((cando == callerAdress))
25- then $Tuple2([StringEntry(tr[0], mess), ScriptTransfer(i.caller, 100000000, unit)], unit)
26- else throw("Вы не можете to create")
24+ let pmt = if ((size(i.payments) == 1))
25+ then i.payments[0]
26+ else throw("Attached payment is required")
27+ if (isDefined(pmt.assetId))
28+ then throw("works with waves only")
29+ else if ((cando == callerAdress))
30+ then $Tuple2([StringEntry(tr[0], mess), ScriptTransfer(i.caller, 100000000, unit)], unit)
31+ else throw("Вы не можете to create")
2732 }
2833
2934

github/deemru/w8io/026f985 
27.05 ms