tx · 7HLmgs7soVGbJuBBGnKh3ysjUCPKqJBXS9FUHCbuaS3Q

3N6byYJBwNaJDa9NUBmQYstQPP8X6ptwrZK:  -0.01000000 Waves

2019.07.29 18:22 [607553] smart account 3N6byYJBwNaJDa9NUBmQYstQPP8X6ptwrZK > SELF 0.00000000 Waves

{ "type": 13, "id": "7HLmgs7soVGbJuBBGnKh3ysjUCPKqJBXS9FUHCbuaS3Q", "fee": 1000000, "feeAssetId": null, "timestamp": 1564413765241, "version": 1, "sender": "3N6byYJBwNaJDa9NUBmQYstQPP8X6ptwrZK", "senderPublicKey": "BD9RTwX7ErjGsVj4SFJrKa4HyLsqRB7CErAc16wCCwUH", "proofs": [ "24aFDYo7tB2APUnkVArJ8wa35msiS8KdCBMnGH6qsfFekEUaieeTeqYZ92GLH9jaijjjYPYDvh93hivUYvNB587E" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAlVTklRVUVLRVkCAAAADSRVbmlxdWVfVXNlcnMAAAAACFRPVEFMS0VZAgAAAAwkVG90YWxfQ2FsbHMAAAABAAAAAWkBAAAAC3RyYWRpc3lzYm90AAAAAAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAd0cmFja2VkCQAEGgAAAAIFAAAABHRoaXMFAAAAB2FkZHJlc3MEAAAACm5ld1RyYWNrZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAHdHJhY2tlZAkAAGQAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAAB3RyYWNrZWQAAAAAAAAAAAEAAAAAAAAAAAEEAAAACXVuaXF1ZU9wdAkABBoAAAACBQAAAAR0aGlzBQAAAAlVTklRVUVLRVkEAAAABnVuaXF1ZQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAl1bmlxdWVPcHQJAQAAAAdleHRyYWN0AAAAAQUAAAAJdW5pcXVlT3B0AAAAAAAAAAAABAAAAAluZXdVbmlxdWUDCQAAAAAAAAIFAAAACm5ld1RyYWNrZWQAAAAAAAAAAAEJAABkAAAAAgUAAAAGdW5pcXVlAAAAAAAAAAABBQAAAAZ1bmlxdWUEAAAACHRvdGFsT3B0CQAEGgAAAAIFAAAABHRoaXMFAAAACFRPVEFMS0VZBAAAAAV0b3RhbAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAh0b3RhbE9wdAkBAAAAB2V4dHJhY3QAAAABBQAAAAh0b3RhbE9wdAAAAAAAAAAAAAQAAAAIbmV3VG90YWwJAABkAAAAAgUAAAAFdG90YWwAAAAAAAAAAAEJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACFRPVEFMS0VZBQAAAAhuZXdUb3RhbAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAJVU5JUVVFS0VZBQAAAAluZXdVbmlxdWUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAB2FkZHJlc3MFAAAACm5ld1RyYWNrZWQFAAAAA25pbAAAAABBma3L", "chainId": 84, "height": 607553, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let UNIQUEKEY = "$Unique_Users"
5+
6+let TOTALKEY = "$Total_Calls"
7+
8+@Callable(i)
9+func tradisysbot () = {
10+ let address = toBase58String(i.caller.bytes)
11+ let tracked = getInteger(this, address)
12+ let newTracked = if (isDefined(tracked))
13+ then (extract(tracked) + 1)
14+ else 1
15+ let uniqueOpt = getInteger(this, UNIQUEKEY)
16+ let unique = if (isDefined(uniqueOpt))
17+ then extract(uniqueOpt)
18+ else 0
19+ let newUnique = if ((newTracked == 1))
20+ then (unique + 1)
21+ else unique
22+ let totalOpt = getInteger(this, TOTALKEY)
23+ let total = if (isDefined(totalOpt))
24+ then extract(totalOpt)
25+ else 0
26+ let newTotal = (total + 1)
27+ WriteSet([DataEntry(TOTALKEY, newTotal), DataEntry(UNIQUEKEY, newUnique), DataEntry(address, newTracked)])
28+ }
29+
30+

github/deemru/w8io/169f3d6 
22.32 ms