tx · 7UtEem4mYnuxAFKZ2zrju2kqhLJbdKbj39zgmJG1hZzj 3MqgCpdZzscdwNQXNmzspxemhrtc38Hipza: -0.05000000 Waves 2023.07.12 15:24 [2662676] smart account 3MqgCpdZzscdwNQXNmzspxemhrtc38Hipza > SELF 0.00000000 Waves
{ "type": 13, "id": "7UtEem4mYnuxAFKZ2zrju2kqhLJbdKbj39zgmJG1hZzj", "fee": 5000000, "feeAssetId": null, "timestamp": 1689164703686, "version": 2, "chainId": 84, "sender": "3MqgCpdZzscdwNQXNmzspxemhrtc38Hipza", "senderPublicKey": "7VRwD8gH9dA3RmjtyeAXZFV36zMuvA91sWubL7p7XGu", "proofs": [ "4m3fSHxMyoMpEv1SK3Ps43Dbnuu3EKXGbNbkngD8ghmYL7ofPiidKtRL8gRQAooiHFhLvRpPyzuJZaZ7zUK7Kbsv" ], "script": "base64:BgJdCAISBAoCCAESBAoCCAESBQoDCAEBIgNTRVAiCGtleVByaWNlIgdfdGlja2VyIglrZXlIZWlnaHQiAWkiB19zeW1ib2wiBl9wcmljZSIGdGlja2VyIgdfaGVpZ2h0AwABYQICX18BAWIBAWMJALkJAgkAzAgCAgQlcyVzCQDMCAICBXByaWNlCQDMCAIFAWMFA25pbAUBYQEBZAEBYwkAuQkCCQDMCAICBCVzJXMJAMwIAgIKbGFzdEhlaWdodAkAzAgCBQFjBQNuaWwFAWEDAWUBCHNldFByaWNlAgFmAWcEAWgJAKwCAgUBZgIFLVVTRFQJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgkBAWIBBQFoBQFnBQNuaWwFBHVuaXQBZQEJc2V0SGVpZ2h0AgFmAWkEAWgJAKwCAgUBZgIFLVVTRFQJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgkBAWQBBQFoBQFpBQNuaWwFBHVuaXQBZQERc2V0UHJpY2VBbmRIZWlnaHQDAWYBZwFpBAFoCQCsAgIFAWYCBS1VU0RUCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAQFiAQUBaAUBZwkAzAgCCQEMSW50ZWdlckVudHJ5AgkBAWQBBQFoBQFpBQNuaWwFBHVuaXQAVway1g==", "height": 2662676, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SEP = "__" | |
5 | + | ||
6 | + | func keyPrice (_ticker) = makeString(["%s%s", "price", _ticker], SEP) | |
7 | + | ||
8 | + | ||
9 | + | func keyHeight (_ticker) = makeString(["%s%s", "lastHeight", _ticker], SEP) | |
10 | + | ||
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func setPrice (_symbol,_price) = { | |
14 | + | let ticker = (_symbol + "-USDT") | |
15 | + | $Tuple2([IntegerEntry(keyPrice(ticker), _price)], unit) | |
16 | + | } | |
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | @Callable(i) | |
21 | + | func setHeight (_symbol,_height) = { | |
22 | + | let ticker = (_symbol + "-USDT") | |
23 | + | $Tuple2([IntegerEntry(keyHeight(ticker), _height)], unit) | |
24 | + | } | |
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | @Callable(i) | |
29 | + | func setPriceAndHeight (_symbol,_price,_height) = { | |
30 | + | let ticker = (_symbol + "-USDT") | |
31 | + | $Tuple2([IntegerEntry(keyPrice(ticker), _price), IntegerEntry(keyHeight(ticker), _height)], unit) | |
32 | + | } | |
33 | + | ||
34 | + |
github/deemru/w8io/026f985 28.01 ms ◑