tx · 75eR7X6jpKmSv8CiW8NvcdG8rTxSaHzbutTtphBdwiMQ 3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds: -0.01400000 Waves 2022.03.05 19:40 [1950928] smart account 3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds > SELF 0.00000000 Waves
{ "type": 13, "id": "75eR7X6jpKmSv8CiW8NvcdG8rTxSaHzbutTtphBdwiMQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1646498405737, "version": 2, "chainId": 84, "sender": "3N8oGmoNZRYR4iA9586cGgVoFPTPnbKcNds", "senderPublicKey": "CcnrRKYzgAP4VNysQhGczok7xWdHDnijupPd8nTfV8BE", "proofs": [ "2Bq6AxX51fScGx3uB4nVfFNTnTx5G4844TqjiLAmt4PKZJNVVgQGXmJ2eeCY7rpc2oaHaCzWrnbmrGiGn8LnuuhU" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAAAAAAAgAAAAFpAQAAAARTZW5kAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPc2VuZGVycHVibGlja2V5CQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAGYXNzZXQxAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAQAAAAHdHhuaGFzaAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAZhc3NldDEJAAACAAAAAQIAAABSSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCBabjNjTEhXN2FBVlBtNWFBQ2NUanZnN2U3aUV5MmNLRHRib3dvazVxYTlILgkABEwAAAACCQEAAAALU3RyaW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0ZUVudHJ5AAAAAQkAASwAAAACBQAAAA9UcmFuc2FjdGlvbkhhc2gCAAAADl9TZW5kZXJfU3RhdHVzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAPVHJhbnNhY3Rpb25IYXNoAgAAAA5fU2VuZGVyX2Ftb3VudAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAD1RyYW5zYWN0aW9uSGFzaAIAAAAOX1NlbmRlcl9wdWJrZXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledqFaIs=", "height": 1950928, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7Vh9TmTyH3Bcema1jJWoFjRNSoinMDcWChKu1fSdmNZ2 Next: 6kyLNCt1NYsmW3CapFxMBob4cnBZ1FvoL9mGmhCoCxJZ Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | ||
19 | 19 | ||
20 | 20 | @Callable(i) | |
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 | - | } | |
21 | + | func RemoveEntry (TransactionHash) = [DeleteEntry(("TxnID_" + TransactionHash)), DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] | |
25 | 22 | ||
26 | 23 | ||
27 | 24 | @Verifier(tx) |
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 | 15 | else [StringEntry(("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) = { | |
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 | - | } | |
21 | + | func RemoveEntry (TransactionHash) = [DeleteEntry(("TxnID_" + TransactionHash)), DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] | |
25 | 22 | ||
26 | 23 | ||
27 | 24 | @Verifier(tx) | |
28 | 25 | func verify () = match tx { | |
29 | 26 | case _ => | |
30 | 27 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
31 | 28 | } | |
32 | 29 |
github/deemru/w8io/169f3d6 30.68 ms ◑