tx · A7sqtDNpknuQZPhQTwbNBUfmBC7dgotb3kymKLPtqYNW 3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds: -0.01400000 Waves 2022.03.05 11:52 [1950455] smart account 3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds > SELF 0.00000000 Waves
{ "type": 13, "id": "A7sqtDNpknuQZPhQTwbNBUfmBC7dgotb3kymKLPtqYNW", "fee": 1400000, "feeAssetId": null, "timestamp": 1646470342248, "version": 2, "chainId": 84, "sender": "3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds", "senderPublicKey": "CcnrRKYzgAP4VNysQhGczok7xWdHDnijupPd8nTfV8BE", "proofs": [ "5XYDB8HGLSp2YVsb1rJ2qgmRVYPhkLfeRMP7gWevSE8AGtww5Jf6sohofaxYZocQjQTeuvtzY5FuxkCEeCKnuuff" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAEU2VuZAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPc2VuZGVycHVibGlja2V5CQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAGYXNzZXQxAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAQAAAAHdHhuaGFzaAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAZhc3NldDEJAAACAAAAAQkAASwAAAACAgAAACZJbmNvcnJlY3QgYXNzZXQgYXR0YWNoZWQsIHBsZWFzZSBzZW5kIAkAAlgAAAABBQAAAAZhc3NldDEJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADFNlbmRlcl9UeG5JRAUAAAAHdHhuaGFzaAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAd0eG5oYXNoAgAAAA9fU2VuZGVyX0FkZHJlc3MFAAAABnNlbmRlcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAd0eG5oYXNoAgAAAA5fU2VuZGVyX3B1YmtleQUAAAAPc2VuZGVycHVibGlja2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAAB3R4bmhhc2gCAAAADl9TZW5kZXJfYW1vdW50CAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAd0eG5oYXNoAgAAAA9fU2VuZGVyX0Fzc2V0SUQFAAAABmFzc2V0MQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAd0eG5oYXNoAgAAAA5fU2VuZGVyX1N0YXR1cwIAAAAHUEVORElORwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Sgcatw==", "height": 1950455, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HBxEonqYeSh7jbvree28uKWFh9N1qWRJTMSGzk33aLjH Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func Send () = { | |
8 | + | let pmt = extract(i.payment) | |
9 | + | let sender = toBase58String(i.caller.bytes) | |
10 | + | let senderpublickey = toBase58String(i.callerPublicKey) | |
11 | + | let asset1 = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
12 | + | let txnhash = toBase58String(i.transactionId) | |
13 | + | if ((pmt.assetId != asset1)) | |
14 | + | then throw(("Incorrect asset attached, please send " + toBase58String(asset1))) | |
15 | + | else WriteSet([DataEntry("Sender_TxnID", txnhash), DataEntry((txnhash + "_Sender_Address"), sender), DataEntry((txnhash + "_Sender_pubkey"), senderpublickey), DataEntry((txnhash + "_Sender_amount"), pmt.amount), DataEntry((txnhash + "_Sender_AssetID"), asset1), DataEntry((txnhash + "_Sender_Status"), "PENDING")]) | |
16 | + | } | |
17 | + | ||
18 | + | ||
19 | + | @Verifier(tx) | |
20 | + | func verify () = match tx { | |
21 | + | case _ => | |
22 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
23 | + | } | |
24 | + |
github/deemru/w8io/026f985 18.53 ms ◑