tx · 89hFcsV95NYB3tf3uYce1bEkC6hbrJxt5tzUgmUTAWTk

3NAsYfMFKz6yRHaN6iJ5fMA9xQeVNmEeGaB:  -0.01400000 Waves

2021.02.03 20:03 [1382256] smart account 3NAsYfMFKz6yRHaN6iJ5fMA9xQeVNmEeGaB > SELF 0.00000000 Waves

{ "type": 13, "id": "89hFcsV95NYB3tf3uYce1bEkC6hbrJxt5tzUgmUTAWTk", "fee": 1400000, "feeAssetId": null, "timestamp": 1612371789535, "version": 2, "chainId": 84, "sender": "3NAsYfMFKz6yRHaN6iJ5fMA9xQeVNmEeGaB", "senderPublicKey": "4hnhV8AtH4FFXoVqTYvoBzHYoonCfXadJzK6CGXz2tWA", "proofs": [ "35RUczwtogCZGNHZC3GCaD3oToQdTozwnPHz8ihMfKPNfDBkCYehF7x1ZKL8JJe6ZxqiwvpfL6SYn9FW2dHLq8du" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAHZ2V0VW5pdAAAAAEAAAAGdW5pdGlkBAAAAAt1bml0QXNzZXRJZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABHVuaXQJAAGkAAAAAQUAAAAGdW5pdGlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAEY29zdAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABWNvc3RfBQAAAAt1bml0QXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABGNvc3QJAAACAAAAAQIAAAAYV3Jvbmcgc2VydmljZSBmZWUgYW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQkAAZsAAAABBQAAAAt1bml0QXNzZXRJZAUAAAADbmlsAAAAAF+FQEE=", "height": 1382256, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4VwKiaFMbzYT37t8uTiuxX7w7W7D6kVpdFU8b9BAkN8i Next: none Diff:
OldNewDifferences
2828 }
2929
3030
31-@Verifier(tx)
32-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
33-
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func getUnit (unitid) = {
88 let unitAssetId = match getString(this, ("unit" + toString(unitid))) {
99 case a: String =>
1010 a
1111 case _ =>
1212 ""
1313 }
1414 let cost = match getInteger(this, ("cost_" + unitAssetId)) {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020 let pmt = if ((size(i.payments) == 1))
2121 then i.payments[0]
2222 else throw("Attached payment is required")
2323 if (isDefined(pmt.assetId))
2424 then throw("works with waves only")
2525 else if ((pmt.amount != cost))
2626 then throw("Wrong service fee amount")
2727 else [ScriptTransfer(i.caller, 1, toBytes(unitAssetId))]
2828 }
2929
3030
31-@Verifier(tx)
32-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
33-

github/deemru/w8io/169f3d6 
38.48 ms