tx · CMD6FsRM6Udesn4qqf3s9KTy5WQAgk4GBonxFUjkjYfG
3MxUEQMLCQy92vWyDRLx3fNfbo5VveAy7Mv: -0.01400000 Waves
2019.09.07 18:37 [665850] smart account 3MxUEQMLCQy92vWyDRLx3fNfbo5VveAy7Mv > SELF 0.00000000 Waves
{
"type": 13,
"id": "CMD6FsRM6Udesn4qqf3s9KTy5WQAgk4GBonxFUjkjYfG",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567870627396,
"version": 1,
"sender": "3MxUEQMLCQy92vWyDRLx3fNfbo5VveAy7Mv",
"senderPublicKey": "FcA9vD3Fad2Dn3vyDJLgcWLWxyAGL1Wy3Fjim9w3M2q6",
"proofs": [
"4hAmYMHZmGB9EDsfLALiHJimsdB2i4NoxvX6GmazfE37ovV2YbhLk8tHqsS2ZemvSEpxoMzaJCqYKJxZQLAzxgiz"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAEURPTlQgV0FOVCBUTyBXT1JLBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAANY3VycmVudEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAUAAAADbmlsAAAAAWkBAAAABnRlbGxtZQAAAAEAAAAIcXVlc3Rpb24EAAAADWNhbGxlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAGYW5zd2VyBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAADWNhbGxlckFkZHJlc3MDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAANfYW0FAAAABmFuc3dlcgUAAAADbmlsAAAAANnZO9k=",
"chainId": 84,
"height": 665850,
"spentComplexity": 0
}
View: original | compacted
Prev: 7WfgNjobT61uLuN4f1ezS6GQaKNZPALR5uUoKMN2ffyb
Next: 2CwtxtppEG8K9zkBmwddsh7XxfhQ5J4hBwLG7anGFfAh
Diff:
Old | New | | Differences |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
| 25 | + | |
---|
| 26 | + | @Callable(i) |
---|
| 27 | + | func tellme (question) = { |
---|
| 28 | + | let callerAddress = toBase58String(i.caller.bytes) |
---|
| 29 | + | let answer = match getInteger(this, callerAddress) { |
---|
| 30 | + | case a: Int => |
---|
| 31 | + | a |
---|
| 32 | + | case _ => |
---|
| 33 | + | 0 |
---|
| 34 | + | } |
---|
| 35 | + | WriteSet([DataEntry((callerAddress + "_am"), answer)]) |
---|
| 36 | + | } |
---|
| 37 | + | |
---|
| 38 | + | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let pmt = extract(i.payment) |
---|
9 | 9 | | if (isDefined(pmt.assetId)) |
---|
10 | 10 | | then throw("DONT WANT TO WORK") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let currentKey = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let currentAmount = match getInteger(this, currentKey) { |
---|
14 | 14 | | case a: Int => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let newAmount = (currentAmount + pmt.amount) |
---|
20 | 20 | | WriteSet([DataEntry(currentKey, newAmount)]) |
---|
21 | 21 | | } |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
| 25 | + | |
---|
| 26 | + | @Callable(i) |
---|
| 27 | + | func tellme (question) = { |
---|
| 28 | + | let callerAddress = toBase58String(i.caller.bytes) |
---|
| 29 | + | let answer = match getInteger(this, callerAddress) { |
---|
| 30 | + | case a: Int => |
---|
| 31 | + | a |
---|
| 32 | + | case _ => |
---|
| 33 | + | 0 |
---|
| 34 | + | } |
---|
| 35 | + | WriteSet([DataEntry((callerAddress + "_am"), answer)]) |
---|
| 36 | + | } |
---|
| 37 | + | |
---|
| 38 | + | |
---|