tx · 8ajojxorujPma6QKdaDxTXsmqu8K4A59RHXCtMyjwiHT
3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP: -0.01400000 Waves
2019.12.14 19:22 [808783] smart account 3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP > SELF 0.00000000 Waves
{
"type": 13,
"id": "8ajojxorujPma6QKdaDxTXsmqu8K4A59RHXCtMyjwiHT",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1576340563323,
"version": 1,
"sender": "3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP",
"senderPublicKey": "GRSgAjHJFmqVyE1sdnUmweBHV962Q1MyURh4frCUS1My",
"proofs": [
"3RTheEsLYtfiF43opLYTFa25NXEPXXq7UUFS7jYTqiyNx1i2fayTdNbG6p5DBnrTWF459RcAwVvthEtdjSKXKWfc"
],
"script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAgIAAAAAAAAAAEAAAABaQEAAAAKYWRkRGVwb3NpdAAAAAQAAAAEaGFzaAAAAAdhY2NvdW50AAAABmFtb3VudAAAAANzZXEEAAAADmNhbGN1bGF0ZWRIYXNoCQAB9QAAAAEJAADLAAAAAgkAAMsAAAACCQACXQAAAAEFAAAAB2FjY291bnQJAAJdAAAAAQUAAAAGYW1vdW50CQACXQAAAAEFAAAAA3NlcQMJAQAAAAIhPQAAAAIFAAAADmNhbGN1bGF0ZWRIYXNoCQACXQAAAAEFAAAABGhhc2gJAAACAAAAAQIAAAANaGFzaCBtaXNtYXRjaAkBAAAACFdyaXRlU2V0AAAAAQUAAAADbmlsAAAAAB50HRE=",
"chainId": 84,
"height": 808783,
"spentComplexity": 0
}
View: original | compacted
Prev: 3NYcSNfdPJRCTLS4H8Nog6rkei4fCP71HSbgccH9ytEH
Next: 7MKFgvmDDmd2Sr8zDEah4APkATtBjFctCusmvvPfEuZ5
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 2 #-} |
---|
2 | | - | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | match tx { |
---|
4 | | - | case _ => |
---|
5 | | - | true |
---|
6 | | - | } |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func addDeposit (hash,account,amount,seq) = { |
---|
| 8 | + | let calculatedHash = keccak256(((fromBase16String(account) + fromBase16String(amount)) + fromBase16String(seq))) |
---|
| 9 | + | if ((calculatedHash != fromBase16String(hash))) |
---|
| 10 | + | then throw("hash mismatch") |
---|
| 11 | + | else WriteSet(nil) |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|