tx · 2XVy7W7F4c4AucAxAEnM9VjqHr5MsW3svXvqKivYuPS4
3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ: -0.01400000 Waves
2021.06.04 05:42 [1555040] smart account 3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ > SELF 0.00000000 Waves
{
"type": 13,
"id": "2XVy7W7F4c4AucAxAEnM9VjqHr5MsW3svXvqKivYuPS4",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1622774598135,
"version": 2,
"chainId": 84,
"sender": "3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ",
"senderPublicKey": "8uKVzAZCurBgbPFEaE9HYgJBH3oZsefwxNMgj4srAFJ9",
"proofs": [
"T1QSw3Wy2FCBp41FwacnA2o3ZSYjPrP5m96Uk21UABVxboYqoKiBqkeuCathHjzTTv3dydxwB9h642h4epMTCC7"
],
"script": "base64:AAIFAAAAAAAAAAoIAhIGCgQBAQEIAAAAAgAAAAAHaGFuZGlJZAEAAAAgmQAVX3L5MYxyaOxZ0FMoThkZR49kvwgxlwjo6C/iIRcBAAAAGWhhbmRpY2FwSW5kZXhSZXF1aXJlbWVudHMAAAABAAAAA251bQMJAABmAAAAAgUAAAADbnVtAAAAAAAAAAA2AAAAAAAAAAA2AwkAAGYAAAACAAAAAAAAAAAABQAAAANudW0AAAAAAAAAAAAFAAAAA251bQAAAAEAAAABaQEAAAAOcmVzdWx0SGFuZGljYXAAAAAEAAAAEnNjb3JlRGlmZmVyZW50aWFsMQAAABJzY29yZURpZmZlcmVudGlhbDIAAAASc2NvcmVEaWZmZXJlbnRpYWwzAAAACmN1cnJlbnRLZXkEAAAABWNvdW50AAAAAAAAAAABBAAAABdzY29yZURpZmZlcmVudGlhbExvd2VzdAkAAZYAAAABCQAETAAAAAIFAAAAEnNjb3JlRGlmZmVyZW50aWFsMQkABEwAAAACBQAAABJzY29yZURpZmZlcmVudGlhbDIJAARMAAAAAgUAAAASc2NvcmVEaWZmZXJlbnRpYWwzBQAAAANuaWwEAAAABnJlc3VsdAkAAGUAAAACBQAAABdzY29yZURpZmZlcmVudGlhbExvd2VzdAAAAAAAAAAAAgQAAAANaGFuZGljYXBJbmRleAkBAAAAGWhhbmRpY2FwSW5kZXhSZXF1aXJlbWVudHMAAAABBQAAAAZyZXN1bHQDCQAAAAAAAAIFAAAABWNvdW50AAAAAAAAAAABCQAAAgAAAAEJAAGkAAAAAQUAAAANaGFuZGljYXBJbmRleAkABRQAAAACCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAAZyZXN1bHQGCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAACmN1cnJlbnRLZXkCAAAADl9oYW5kaWNhcEluZGV4BQAAAA1oYW5kaWNhcEluZGV4CQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAAHaGFuZGlJZAUAAAANaGFuZGljYXBJbmRleAcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1oYW5kaWNhcEluZGV4BQAAAAdoYW5kaUlkBQAAAANuaWwFAAAADWhhbmRpY2FwSW5kZXgAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlearfB5Y=",
"height": 1555040,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: T2DuyaA4XdGoMoZoc3iHGRCNCUyRGABVDcB2YYpZopZ
Next: 4rk7fDXFE1QCyJJNUejb5adTjkmsQ1NNuB7JDyUHBw3P
Diff:
Old | New | | Differences |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func resultHandicap (scoreDifferential1,scoreDifferential2,scoreDifferential3,currentKey) = { |
---|
| 15 | + | let count = 1 |
---|
15 | 16 | | let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3]) |
---|
16 | 17 | | let result = (scoreDifferentialLowest - 2) |
---|
17 | 18 | | let handicapIndex = handicapIndexRequirements(result) |
---|
18 | | - | $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex) |
---|
| 19 | + | if ((count == 1)) |
---|
| 20 | + | then throw(toString(handicapIndex)) |
---|
| 21 | + | else $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex) |
---|
19 | 22 | | } |
---|
20 | 23 | | |
---|
21 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let handiId = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ' |
---|
5 | 5 | | |
---|
6 | 6 | | func handicapIndexRequirements (num) = if ((num > 54)) |
---|
7 | 7 | | then 54 |
---|
8 | 8 | | else if ((0 > num)) |
---|
9 | 9 | | then 0 |
---|
10 | 10 | | else num |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func resultHandicap (scoreDifferential1,scoreDifferential2,scoreDifferential3,currentKey) = { |
---|
| 15 | + | let count = 1 |
---|
15 | 16 | | let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3]) |
---|
16 | 17 | | let result = (scoreDifferentialLowest - 2) |
---|
17 | 18 | | let handicapIndex = handicapIndexRequirements(result) |
---|
18 | | - | $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex) |
---|
| 19 | + | if ((count == 1)) |
---|
| 20 | + | then throw(toString(handicapIndex)) |
---|
| 21 | + | else $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex) |
---|
19 | 22 | | } |
---|
20 | 23 | | |
---|
21 | 24 | | |
---|
22 | 25 | | @Verifier(tx) |
---|
23 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 27 | | |
---|