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:
OldNewDifferences
2222 }
2323
2424
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:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func deposit () = {
88 let pmt = extract(i.payment)
99 if (isDefined(pmt.assetId))
1010 then throw("DONT WANT TO WORK")
1111 else {
1212 let currentKey = toBase58String(i.caller.bytes)
1313 let currentAmount = match getInteger(this, currentKey) {
1414 case a: Int =>
1515 a
1616 case _ =>
1717 0
1818 }
1919 let newAmount = (currentAmount + pmt.amount)
2020 WriteSet([DataEntry(currentKey, newAmount)])
2121 }
2222 }
2323
2424
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+

github/deemru/w8io/026f985 
41.92 ms