tx · 5nWh7k2939e2MBBu8Ab669ddpewgn3BH9fAk5UazcPpe
3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG: -0.00100000 Waves
2022.08.22 17:39 [2195795] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves
{
"type": 13,
"id": "5nWh7k2939e2MBBu8Ab669ddpewgn3BH9fAk5UazcPpe",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1661179188629,
"version": 2,
"chainId": 84,
"sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG",
"senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu",
"proofs": [
"4ipnbAVRWwXFme4VnUGHhzW5Dpv3XoHmwdrENt1rLqxRwdYxByHV32XFnLLbttxj6AbkvVAntvwcGHynmVcPLnLu"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAwEAAAAJYXNBbnlMaXN0AAAAAQAAAAF2BAAAAAckbWF0Y2gwBQAAAAF2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAAAWwFAAAAByRtYXRjaDAFAAAAAWwJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAABdgQAAAAHJG1hdGNoMAUAAAABdgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFpBQAAAAckbWF0Y2gwBQAAAAFpCQAAAgAAAAECAAAAFWZhaWwgdG8gY2FzdCBpbnRvIEludAEAAAAFZ2V0QnIAAAAABAAAAAxtYXRoQ29udHJhY3QJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNON0xZZWZXazFXaHZDc1k1QTluVHEyNDRTYlZQbWhDeXBpBAAAAAdtZXRyaWNzCQEAAAAJYXNBbnlMaXN0AAAAAQkAA/wAAAAEBQAAAAxtYXRoQ29udHJhY3QCAAAAGmNhbGNOZXV0aW5vTWV0cmljc1JFQURPTkxZBQAAAANuaWwFAAAAA25pbAQAAAACYnIJAQAAAAVhc0ludAAAAAEJAAGRAAAAAgUAAAAHbWV0cmljcwAAAAAAAAAABwUAAAACYnIAAAABAAAAAWkBAAAABGNhbGwAAAABAAAABW5vbmNlBAAAAAxtYXRoQ29udHJhY3QJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNON0xZZWZXazFXaHZDc1k1QTluVHEyNDRTYlZQbWhDeXBpBAAAAAdtZXRyaWNzCQEAAAAJYXNBbnlMaXN0AAAAAQkAA/wAAAAEBQAAAAxtYXRoQ29udHJhY3QCAAAAGmNhbGNOZXV0aW5vTWV0cmljc1JFQURPTkxZBQAAAANuaWwFAAAAA25pbAQAAAACYnIJAQAAAAVnZXRCcgAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAACYnIJAAGkAAAAAQUAAAAFbm9uY2UFAAAAAmJyBQAAAANuaWwAAAAAWZJhFQ==",
"height": 2195795,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9MZymkE2iwap8vGRa2DHHB6aDK8MJ1obJ3EUQznn5TWB
Next: 2phCXR1eqtk6LoLrhdHwKpVFMpZM5XbJP7vYGBaLRfNj
Diff:
Old | New | | Differences |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Callable(i) |
---|
29 | | - | func call () = { |
---|
| 29 | + | func call (nonce) = { |
---|
30 | 30 | | let mathContract = addressFromStringValue("3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi") |
---|
31 | 31 | | let metrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) |
---|
32 | 32 | | let br = getBr() |
---|
33 | | - | throw(toString(br)) |
---|
| 33 | + | [IntegerEntry(("br" + toString(nonce)), br)] |
---|
34 | 34 | | } |
---|
35 | 35 | | |
---|
36 | 36 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func asAnyList (v) = match v { |
---|
5 | 5 | | case l: List[Any] => |
---|
6 | 6 | | l |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | throw("fail to cast into List[Any]") |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func asInt (v) = match v { |
---|
13 | 13 | | case i: Int => |
---|
14 | 14 | | i |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | throw("fail to cast into Int") |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | func getBr () = { |
---|
21 | 21 | | let mathContract = addressFromStringValue("3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi") |
---|
22 | 22 | | let metrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) |
---|
23 | 23 | | let br = asInt(metrics[7]) |
---|
24 | 24 | | br |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Callable(i) |
---|
29 | | - | func call () = { |
---|
| 29 | + | func call (nonce) = { |
---|
30 | 30 | | let mathContract = addressFromStringValue("3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi") |
---|
31 | 31 | | let metrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) |
---|
32 | 32 | | let br = getBr() |
---|
33 | | - | throw(toString(br)) |
---|
| 33 | + | [IntegerEntry(("br" + toString(nonce)), br)] |
---|
34 | 34 | | } |
---|
35 | 35 | | |
---|
36 | 36 | | |
---|