tx · 9z49jvx6MfYwKayMkCdwB2s7bqVmqbekEZ5ywZUQAY9G
3Mu3a8ynAaCLMhS9KJRF6P7jF9MdSmkUsjs: -0.01000000 Waves
2020.01.13 23:04 [852725] smart account 3Mu3a8ynAaCLMhS9KJRF6P7jF9MdSmkUsjs > SELF 0.00000000 Waves
{
"type": 13,
"id": "9z49jvx6MfYwKayMkCdwB2s7bqVmqbekEZ5ywZUQAY9G",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1578945576827,
"version": 1,
"sender": "3Mu3a8ynAaCLMhS9KJRF6P7jF9MdSmkUsjs",
"senderPublicKey": "CMLTP12wehQXHoQ1rE9Ni7a2Tz1KTSRkN3AkXKaKm1zh",
"proofs": [
"22L2AzakPsGzgtxsRppVYLGC9uzoitELp7Z6AZ5waP9THLfFKCgJcE6MB9sG9PaGdvQkeBP2NBXaFWMmSvZqV3AU"
],
"script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAAAAAAAgAAAAFpAQAAAARwbGF5AAAAAQAAAAV2YWx1ZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKbGFzdF92YWx1ZQUAAAAFdmFsdWUFAAAAA25pbAAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIWNhbiBob2RsIHdhdmVzIG9ubHkgYXQgdGhlIG1vbWVudAQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAdiYWxhbmNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld0Ftb3VudAkAAGQAAAACBQAAAA1jdXJyZW50QW1vdW50CAUAAAADcG10AAAABmFtb3VudAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHYmFsYW5jZQUAAAAJbmV3QW1vdW50BQAAAANuaWwAAAAA8jfnyQ==",
"chainId": 84,
"height": 852725,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
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 play (value) = WriteSet([DataEntry("last_value", value)]) |
---|
| 8 | + | |
---|
| 9 | + | |
---|
| 10 | + | |
---|
| 11 | + | @Callable(i) |
---|
| 12 | + | func deposit () = { |
---|
| 13 | + | let pmt = extract(i.payment) |
---|
| 14 | + | if (isDefined(pmt.assetId)) |
---|
| 15 | + | then throw("can hodl waves only at the moment") |
---|
| 16 | + | else { |
---|
| 17 | + | let currentAmount = match getInteger(this, "balance") { |
---|
| 18 | + | case a: Int => |
---|
| 19 | + | a |
---|
| 20 | + | case _ => |
---|
| 21 | + | 0 |
---|
| 22 | + | } |
---|
| 23 | + | let newAmount = (currentAmount + pmt.amount) |
---|
| 24 | + | WriteSet([DataEntry("balance", newAmount)]) |
---|
| 25 | + | } |
---|
| 26 | + | } |
---|
| 27 | + | |
---|
| 28 | + | |
---|