tx · 4VwKiaFMbzYT37t8uTiuxX7w7W7D6kVpdFU8b9BAkN8i 3NAsYfMFKz6yRHaN6iJ5fMA9xQeVNmEeGaB: -0.01400000 Waves 2021.02.03 19:58 [1382252] smart account 3NAsYfMFKz6yRHaN6iJ5fMA9xQeVNmEeGaB > SELF 0.00000000 Waves
{ "type": 13, "id": "4VwKiaFMbzYT37t8uTiuxX7w7W7D6kVpdFU8b9BAkN8i", "fee": 1400000, "feeAssetId": null, "timestamp": 1612371530121, "version": 2, "chainId": 84, "sender": "3NAsYfMFKz6yRHaN6iJ5fMA9xQeVNmEeGaB", "senderPublicKey": "4hnhV8AtH4FFXoVqTYvoBzHYoonCfXadJzK6CGXz2tWA", "proofs": [ "4jfgHNJqBovgeLYrdiVcPbkxW6oiTkV19yCWZ4bTWJpAxeHRJvZMj5m1RKXuo5hMTcsh7etsuwrsSJqAsHh1nz7e" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAHZ2V0VW5pdAAAAAEAAAAGdW5pdGlkBAAAAAt1bml0QXNzZXRJZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABHVuaXQJAAGkAAAAAQUAAAAGdW5pdGlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAEY29zdAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABWNvc3RfBQAAAAt1bml0QXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABGNvc3QJAAACAAAAAQIAAAAYV3Jvbmcgc2VydmljZSBmZWUgYW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQkAAZsAAAABBQAAAAt1bml0QXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnuB3W3", "height": 1382252, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8qofLJAXp5eB2iadrKZKX3tRuxT5TdCMVhjXHrTTboGT Next: 89hFcsV95NYB3tf3uYce1bEkC6hbrJxt5tzUgmUTAWTk Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func getUnit (unitid) = { | |
8 | 8 | let unitAssetId = match getString(this, ("unit" + toString(unitid))) { | |
9 | 9 | case a: String => | |
10 | 10 | a | |
11 | 11 | case _ => | |
12 | 12 | "" | |
13 | 13 | } | |
14 | 14 | let cost = match getInteger(this, ("cost_" + unitAssetId)) { | |
15 | 15 | case a: Int => | |
16 | 16 | a | |
17 | 17 | case _ => | |
18 | 18 | 0 | |
19 | 19 | } | |
20 | 20 | let pmt = if ((size(i.payments) == 1)) | |
21 | 21 | then i.payments[0] | |
22 | 22 | else throw("Attached payment is required") | |
23 | 23 | if (isDefined(pmt.assetId)) | |
24 | 24 | then throw("works with waves only") | |
25 | 25 | else if ((pmt.amount != cost)) | |
26 | 26 | then throw("Wrong service fee amount") | |
27 | 27 | else [ScriptTransfer(i.caller, 1, toBytes(unitAssetId))] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Verifier(tx) | |
32 | 32 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
33 | 33 |
github/deemru/w8io/169f3d6 111.20 ms ◑