tx · GDBJMm59metVmuDySJkpsZhpwdjv7G6H3dHQxPdDbZew

3N9yvmedCCeVxZ6HLMmFxfVAgCPVsVVZgkr:  -0.01000000 Waves

2022.06.15 19:04 [2097708] smart account 3N9yvmedCCeVxZ6HLMmFxfVAgCPVsVVZgkr > SELF 0.00000000 Waves

{ "type": 13, "id": "GDBJMm59metVmuDySJkpsZhpwdjv7G6H3dHQxPdDbZew", "fee": 1000000, "feeAssetId": null, "timestamp": 1655309033808, "version": 2, "chainId": 84, "sender": "3N9yvmedCCeVxZ6HLMmFxfVAgCPVsVVZgkr", "senderPublicKey": "79Z2yvDtgFtAjtGpbmdiBps3BwQ9zkLhy4p2iFtxxoD", "proofs": [ "3kdACn6yRYwdkvjxvZfuYZDGzx3q1mgNKXmVk5efrMsb3k8RhBH9K8cUvsD5XZBCxBRJFR1n8wGYMddwAkHANcaG" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAIAAAAADnJlYmlydGhBZGRyZXNzAQAAABoBV3CRddSe63o+H/lkADDI3EZdXJpE33XC9wEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAAAAAEAAAABaQEAAAARaXNzdWVGcmVlRHVja2xpbmcAAAACAAAAB2FkZHJlc3MAAAAHdHhJZFN0cgMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgkBAAAAB0FkZHJlc3MAAAABBQAAAA5yZWJpcnRoQWRkcmVzcwkAAAIAAAABAgAAAAxyZWJpcnRoIG9ubHkEAAAABWFzc2V0CQAEQwAAAAcCAAAAEEJBQlktMTExMTExMTEtR1oCAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAcFAAAABHVuaXQFAAAABmhlaWdodAQAAAAHYXNzZXRJZAkABDgAAAABBQAAAAVhc3NldAkABRQAAAACCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAB2FkZHJlc3MCAAAAAV8FAAAAB3R4SWRTdHICAAAAA19kaQkAAlgAAAABBQAAAAdhc3NldElkCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAxzdGF0c19hbW91bnQJAABkAAAAAgkBAAAADXRyeUdldEludGVnZXIAAAABAgAAAAxzdGF0c19hbW91bnQAAAAAAAAAAAEJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAABXZhbHVlAAAAAQkABCYAAAABBQAAAAdhZGRyZXNzAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwCAAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Sh1YUQ==", "height": 2097708, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5DGoK8metXuHvbjnyRTyh5DZVwwVZoiqire9qDAnAiKT Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
2-{-# CONTENT_TYPE EXPRESSION #-}
3-sigVerify_64Kb(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let rebirthAddress = base58'3PCC6fVHNa6289DTDmcUo3RuLaFmteZZsmQ'
5+
6+func tryGetInteger (key) = {
7+ let val = match getInteger(this, key) {
8+ case b: Int =>
9+ b
10+ case _ =>
11+ 0
12+ }
13+ val
14+ }
15+
16+
17+@Callable(i)
18+func issueFreeDuckling (address,txIdStr) = if ((i.caller != Address(rebirthAddress)))
19+ then throw("rebirth only")
20+ else {
21+ let asset = Issue("BABY-11111111-GZ", "", 1, 0, false, unit, height)
22+ let assetId = calculateAssetId(asset)
23+ $Tuple2([StringEntry((((address + "_") + txIdStr) + "_di"), toBase58String(assetId)), IntegerEntry("stats_amount", (tryGetInteger("stats_amount") + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], "")
24+ }
25+
26+
27+@Verifier(tx)
28+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
29+

github/deemru/w8io/169f3d6 
82.68 ms