tx · CieE6am4zjHXpPKsjEKda8gPg5xxdsosP1tP8uEBqxar 3N1fcrWULKWACeWDuo3FpugKcoYC4xQ7uw8: -0.00200000 Waves 2022.07.01 12:10 [2120388] smart account 3N1fcrWULKWACeWDuo3FpugKcoYC4xQ7uw8 > SELF 0.00000000 Waves
{ "type": 13, "id": "CieE6am4zjHXpPKsjEKda8gPg5xxdsosP1tP8uEBqxar", "fee": 200000, "feeAssetId": null, "timestamp": 1656666604740, "version": 2, "chainId": 84, "sender": "3N1fcrWULKWACeWDuo3FpugKcoYC4xQ7uw8", "senderPublicKey": "48K83j8fKJeoBfJYe7BTpnr2VQg7uLGwyCrhmdghH3xZ", "proofs": [ "52CZsy9f5VtCgJHiZTAFmdK1Qq3qqNEupa5CnLfm3XTCXyWUv81AkAxXpq88YGwJ7wLbh4bbQNH7iEjDH9287VPQ" ], "script": "base64:AAIFAAAAAAAAAA0IAhIJCgcBAQEICAgIAAAAAQAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAEAAAABaQEAAAAJZW1pdEV2ZW50AAAABwAAABBzb3VyY2VfY2hhaW5faWR4AAAAEHRhcmdldF9jaGFpbl9pZHgAAAAMYmxvY2tfaGVpZ2h0AAAACmJsb2NrX2hhc2gAAAAHdHhfaGFzaAAAAAxzb3VyY2VfYXNzZXQAAAAGYW1vdW50BAAAAAlhbW91bnRJbnQEAAAAByRtYXRjaDAJAAGoAAAAAQUAAAAGYW1vdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZCaWdJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQJAAACAAAAAQIAAAAQaW5jb3JyZWN0IGFtb3VudAkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgQAAAAMZXZlbnRMYXN0SWR4BAAAAAckbWF0Y2gwCQAEHwAAAAECAAAAD0VWRU5UU19MQVNUX0lEWAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0AAAAAAAAAAAACQAAAgAAAAECAAAAC01hdGNoIGVycm9yBAAAAAVldmVudAkABLkAAAACCQAETAAAAAIJAAGkAAAAAQUAAAAQc291cmNlX2NoYWluX2lkeAkABEwAAAACCQABpAAAAAEFAAAAEHRhcmdldF9jaGFpbl9pZHgJAARMAAAAAgkAAaQAAAABBQAAAAxibG9ja19oZWlnaHQJAARMAAAAAgUAAAAKYmxvY2tfaGFzaAkABEwAAAACBQAAAAd0eF9oYXNoCQAETAAAAAIFAAAADHNvdXJjZV9hc3NldAkABEwAAAACCQABpgAAAAEFAAAACWFtb3VudEludAUAAAADbmlsBQAAAAlzZXBhcmF0b3IJAAUUAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACEVWRU5UU19fCQABpAAAAAEFAAAADGV2ZW50TGFzdElkeAUAAAAFZXZlbnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAD0VWRU5UU19MQVNUX0lEWAkAAGQAAAACBQAAAAxldmVudExhc3RJZHgAAAAAAAAAAAEFAAAAA25pbAUAAAAEdW5pdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5HIuc6g==", "height": 2120388, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: EYtzk38Wpt3hchAQhAzmUtXC8ixMDvaWzTWV9W692NJn Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let separator = "__" | |
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func emitEvent (source_chain_idx,target_chain_idx,block_height,block_hash,tx_hash,source_asset,amount) = { | |
8 | + | let amountInt = match parseBigInt(amount) { | |
9 | + | case a: BigInt => | |
10 | + | a | |
11 | + | case _: Unit => | |
12 | + | throw("incorrect amount") | |
13 | + | case _ => | |
14 | + | throw("Match error") | |
15 | + | } | |
16 | + | let eventLastIdx = match getInteger("EVENTS_LAST_IDX") { | |
17 | + | case a: Int => | |
18 | + | a | |
19 | + | case _: Unit => | |
20 | + | 0 | |
21 | + | case _ => | |
22 | + | throw("Match error") | |
23 | + | } | |
24 | + | let event = makeString([toString(source_chain_idx), toString(target_chain_idx), toString(block_height), block_hash, tx_hash, source_asset, toString(amountInt)], separator) | |
25 | + | $Tuple2([StringEntry(("EVENTS__" + toString(eventLastIdx)), event), IntegerEntry("EVENTS_LAST_IDX", (eventLastIdx + 1))], unit) | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | @Verifier(tx) | |
30 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
31 | + |
github/deemru/w8io/169f3d6 31.59 ms ◑