tx · DVkzQbueZ2uK1AkM8nUXbfQ8NwLcAXcCZrZYe98NWbGZ
3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds: -0.01400000 Waves
2022.03.05 19:12 [1950898] smart account 3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds > SELF 0.00000000 Waves
{
"type": 13,
"id": "DVkzQbueZ2uK1AkM8nUXbfQ8NwLcAXcCZrZYe98NWbGZ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1646496825693,
"version": 2,
"chainId": 84,
"sender": "3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds",
"senderPublicKey": "CcnrRKYzgAP4VNysQhGczok7xWdHDnijupPd8nTfV8BE",
"proofs": [
"41A49GBZ3iA7GE2wyfVKzh49MC29FMns1UjDv2pg4SMTtFmZXxyntemSdgkoAL2vTt2FQD3RKgiagJByuPCotyZo"
],
"script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAAAAAAAgAAAAFpAQAAAARTZW5kAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPc2VuZGVycHVibGlja2V5CQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAGYXNzZXQxAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAQAAAAHdHhuaGFzaAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAZhc3NldDEJAAACAAAAAQIAAABSSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCBabjNjTEhXN2FBVlBtNWFBQ2NUanZnN2U3aUV5MmNLRHRib3dvazVxYTlILgkABEwAAAACCQEAA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AALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAD1RyYW5zYWN0aW9uSGFzaAIAAAAPX1NlbmRlcl9Bc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAPVHJhbnNhY3Rpb25IYXNoAgAAAA5fU2VuZGVyX1N0YXR1cwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAD1RyYW5zYWN0aW9uSGFzaAIAAAAOX1NlbmRlcl9hbW91bnQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAA9UcmFuc2FjdGlvbkhhc2gCAAAADl9TZW5kZXJfcHVia2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnRNJ5e",
"height": 1950898,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Hy6JKbbgigYctzR3HnLvQbRN7oBU4ywaTKxTN9aSiBvh
Next: 2UxjBfq7ZELynGHfoFPb346MM3sVt6ZfJDjSD99JNz7M
Diff:
Old | New | | Differences |
---|
12 | 12 | | let txnhash = toBase58String(i.transactionId) |
---|
13 | 13 | | if ((pmt.assetId != asset1)) |
---|
14 | 14 | | then throw("Incorrect asset attached, please send Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H.") |
---|
15 | | - | else [StringEntry(((sender + "_TxnID") + txnhash), txnhash), StringEntry((txnhash + "_Sender_Address"), sender), StringEntry((txnhash + "_Sender_pubkey"), senderpublickey), IntegerEntry((txnhash + "_Sender_amount"), pmt.amount), StringEntry((txnhash + "_Sender_AssetID"), "Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H"), StringEntry((txnhash + "_Sender_Status"), "PENDING")] |
---|
| 15 | + | else [StringEntry(((sender + "_TxnID_") + txnhash), txnhash), StringEntry((txnhash + "_Sender_Address"), sender), StringEntry((txnhash + "_Sender_pubkey"), senderpublickey), IntegerEntry((txnhash + "_Sender_amount"), pmt.amount), StringEntry((txnhash + "_Sender_AssetID"), "Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H"), StringEntry((txnhash + "_Sender_Status"), "PENDING")] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(i) |
---|
21 | | - | func RemoveEntry (TransactionHash) = [DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] |
---|
| 21 | + | func RemoveEntry (TransactionHash) = { |
---|
| 22 | + | let sender = toBase58String(i.caller.bytes) |
---|
| 23 | + | [DeleteEntry(((sender + "_TxnID") + TransactionHash)), DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] |
---|
| 24 | + | } |
---|
22 | 25 | | |
---|
23 | 26 | | |
---|
24 | 27 | | @Verifier(tx) |
---|
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 Send () = { |
---|
8 | 8 | | let pmt = value(i.payments[0]) |
---|
9 | 9 | | let sender = toBase58String(i.caller.bytes) |
---|
10 | 10 | | let senderpublickey = toBase58String(i.callerPublicKey) |
---|
11 | 11 | | let asset1 = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' |
---|
12 | 12 | | let txnhash = toBase58String(i.transactionId) |
---|
13 | 13 | | if ((pmt.assetId != asset1)) |
---|
14 | 14 | | then throw("Incorrect asset attached, please send Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H.") |
---|
15 | | - | else [StringEntry(((sender + "_TxnID") + txnhash), txnhash), StringEntry((txnhash + "_Sender_Address"), sender), StringEntry((txnhash + "_Sender_pubkey"), senderpublickey), IntegerEntry((txnhash + "_Sender_amount"), pmt.amount), StringEntry((txnhash + "_Sender_AssetID"), "Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H"), StringEntry((txnhash + "_Sender_Status"), "PENDING")] |
---|
| 15 | + | else [StringEntry(((sender + "_TxnID_") + txnhash), txnhash), StringEntry((txnhash + "_Sender_Address"), sender), StringEntry((txnhash + "_Sender_pubkey"), senderpublickey), IntegerEntry((txnhash + "_Sender_amount"), pmt.amount), StringEntry((txnhash + "_Sender_AssetID"), "Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H"), StringEntry((txnhash + "_Sender_Status"), "PENDING")] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(i) |
---|
21 | | - | func RemoveEntry (TransactionHash) = [DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] |
---|
| 21 | + | func RemoveEntry (TransactionHash) = { |
---|
| 22 | + | let sender = toBase58String(i.caller.bytes) |
---|
| 23 | + | [DeleteEntry(((sender + "_TxnID") + TransactionHash)), DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] |
---|
| 24 | + | } |
---|
22 | 25 | | |
---|
23 | 26 | | |
---|
24 | 27 | | @Verifier(tx) |
---|
25 | 28 | | func verify () = match tx { |
---|
26 | 29 | | case _ => |
---|
27 | 30 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
28 | 31 | | } |
---|
29 | 32 | | |
---|