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:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let a = "$Unique_Users" |
---|
| 5 | + | |
---|
| 6 | + | let b = "$Total_Calls" |
---|
| 7 | + | |
---|
| 8 | + | @Callable(c) |
---|
| 9 | + | func tradisysbot () = { |
---|
| 10 | + | let d = toBase58String(c.caller.bytes) |
---|
| 11 | + | let e = getInteger(this, d) |
---|
| 12 | + | let f = if (isDefined(e)) |
---|
| 13 | + | then (extract(e) + 1) |
---|
| 14 | + | else 1 |
---|
| 15 | + | let g = getInteger(this, a) |
---|
| 16 | + | let h = if (isDefined(g)) |
---|
| 17 | + | then extract(g) |
---|
| 18 | + | else 0 |
---|
| 19 | + | let i = if ((f == 1)) |
---|
| 20 | + | then (h + 1) |
---|
| 21 | + | else h |
---|
| 22 | + | let j = getInteger(this, b) |
---|
| 23 | + | let k = if (isDefined(j)) |
---|
| 24 | + | then extract(j) |
---|
| 25 | + | else 0 |
---|
| 26 | + | let l = (k + 1) |
---|
| 27 | + | WriteSet([DataEntry(b, l), DataEntry(a, i), DataEntry(d, f)]) |
---|
| 28 | + | } |
---|
| 29 | + | |
---|
| 30 | + | |
---|