tx · 3SWxDxatWxYmrMebQghJuLBAVLxfVdXGS6NmS1AdJTcd

3N8qSbKKrQztCYcZyhcRqNkgxQ1gcv2gN1D:  -0.00100000 Waves

2022.07.13 22:38 [2138388] smart account 3N8qSbKKrQztCYcZyhcRqNkgxQ1gcv2gN1D > SELF 0.00000000 Waves

{ "type": 13, "id": "3SWxDxatWxYmrMebQghJuLBAVLxfVdXGS6NmS1AdJTcd", "fee": 100000, "feeAssetId": null, "timestamp": 1657740988680, "version": 2, "chainId": 84, "sender": "3N8qSbKKrQztCYcZyhcRqNkgxQ1gcv2gN1D", "senderPublicKey": "5Y54ygDeR7kKoUTD7MTiRm9VhShh4jyPhqyHznn4wFJ4", "proofs": [ "3WZA3TeAkN6YkTK3M8q1Y1vp3oKNtKtQ3uCsm5d4a1TQpXF433XomMPFBnCg8MnfrcpcH48aqNYjeJueJM8Wk9gb" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAgAAAAAHZ2dUb2tlbgEAAAAga1Tox7/3HEAXiWVv82Ao2SO9iJd/R/dNeL5vvO7cxZABAAAACnN0YXJ0TG90dG8AAAABAAAAA2ludgQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAANpbnYAAAAHcGF5bWVudAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAHZ2dUb2tlbgkAAAIAAAABAgAAAE5nZ1Rva2VuIDhEeWlkdnE4eWtXeG12NkN4WlpYUXRkajFha3Rpd1B2NGliZ0dXVGd4bzVoIHRva2VucyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAEAAAADaW52AQAAAAdkZXBvc2l0AAAAAAkBAAAACnN0YXJ0TG90dG8AAAABBQAAAANpbnYAAAAA3xVbfQ==", "height": 2138388, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: Eqoq9oCA2F4T66fveqxApo9aYaZAfVXZdCqdnA6dkzUi Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let ggToken = base58'8Dyidvq8ykWxmv6CxZZXQtdj1aktiwPv4ibgGWTgxo5h'
5+
6+func startLotto (inv) = {
7+ let pmt = extract(inv.payment)
8+ if ((pmt.assetId != ggToken))
9+ then throw("ggToken 8Dyidvq8ykWxmv6CxZZXQtdj1aktiwPv4ibgGWTgxo5h tokens only at the moment")
10+ else {
11+ let currentKey = toBase58String(inv.caller.bytes)
12+ let currentAmount = match getInteger(this, currentKey) {
13+ case a: Int =>
14+ a
15+ case _ =>
16+ 0
17+ }
18+ let newAmount = (currentAmount + pmt.amount)
19+ WriteSet([DataEntry(currentKey, newAmount)])
20+ }
21+ }
22+
23+
24+@Callable(inv)
25+func deposit () = startLotto(inv)
26+
27+

github/deemru/w8io/fabc49c 
13.23 ms