tx · He1ZULkxXitzLNcGVSLhTpTFJmRb7QuJgUuEzD8rHQBN
3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww: -0.01400000 Waves
2020.10.06 15:59 [1208732] smart account 3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww > SELF 0.00000000 Waves
{
"type": 13,
"id": "He1ZULkxXitzLNcGVSLhTpTFJmRb7QuJgUuEzD8rHQBN",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1601989175332,
"version": 2,
"chainId": 84,
"sender": "3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww",
"senderPublicKey": "CNQtsB6HAGUVvb5L3NshmGW2pD94ysV6dzV6Zcf6BFCq",
"proofs": [
"5Hqgq8gCsf4BJKMZ2eTHgRJQBhqUAPuTsBtThp6sq1kXceHxH4XkoeaNBzsy3F7krLApRAdTicGGcUmiRBFq5bZT"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABpAAAAAEIBQAAAANwbXQAAAAGYW1vdW50AgAAAAFfCQABpAAAAAEJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAIAAAABXwkAAaQAAAABCQAAaQAAAAIJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAAAAAAAAAAAEgIAAAADXzBfCQABpAAAAAEFAAAAA2xiaAIAAAADXzEwBQAAAANuaWwEAAAAA2FhcwkABLUAAAACBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAADc3RyBQAAAAckbWF0Y2gwBQAAAANzdHIJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAABkdhbWU6IAUAAAAKY3VycmVudEtleQIAAAALIG5vdCBmb3VuZC4CAAAAAV8JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAZEAAAACBQAAAANhYXMAAAAAAAAAAAACAAAAAXwJAAGkAAAAAQkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AgAAAAFfCQABpAAAAAEJAABpAAAAAgkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AAAAAAAAAAASAgAAAANfMF8JAAGkAAAAAQUAAAADbGJoAgAAAANfMTAFAAAAA25pbAAAAAAzRW1v",
"height": 1208732,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CEqU3DyWQKgcnKDSjTxbq1ZrY49oZfdeQNhULVYVamUv
Next: HxK4CVx4JyFqgiiSMoat2PBzYQoxLfDFPkqpLLeQaYYr
Diff:
Old | New | | Differences |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
14 | 14 | | if (!(isDefined(getString(this, currentKey)))) |
---|
15 | | - | then WriteSet([DataEntry(currentKey, (((((((("new_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
16 | | - | else WriteSet([DataEntry(currentKey, (((((((("old_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 15 | + | then WriteSet([DataEntry(currentKey, (((((((toString(pmt.amount) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 16 | + | else { |
---|
| 17 | + | let aas = split( match getString(this, currentKey) { |
---|
| 18 | + | case str: String => |
---|
| 19 | + | str |
---|
| 20 | + | case _ => |
---|
| 21 | + | throw((("Game: " + currentKey) + " not found.")) |
---|
| 22 | + | }, "_") |
---|
| 23 | + | WriteSet([DataEntry(currentKey, (((((((aas[0] + "|") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 24 | + | } |
---|
17 | 25 | | } |
---|
18 | 26 | | } |
---|
19 | 27 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let pmt = extract(i.payment) |
---|
9 | 9 | | let lbh = lastBlock.height |
---|
10 | 10 | | if (isDefined(pmt.assetId)) |
---|
11 | 11 | | then throw("can hodl waves only at the moment") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
14 | 14 | | if (!(isDefined(getString(this, currentKey)))) |
---|
15 | | - | then WriteSet([DataEntry(currentKey, (((((((("new_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
16 | | - | else WriteSet([DataEntry(currentKey, (((((((("old_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 15 | + | then WriteSet([DataEntry(currentKey, (((((((toString(pmt.amount) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 16 | + | else { |
---|
| 17 | + | let aas = split( match getString(this, currentKey) { |
---|
| 18 | + | case str: String => |
---|
| 19 | + | str |
---|
| 20 | + | case _ => |
---|
| 21 | + | throw((("Game: " + currentKey) + " not found.")) |
---|
| 22 | + | }, "_") |
---|
| 23 | + | WriteSet([DataEntry(currentKey, (((((((aas[0] + "|") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 24 | + | } |
---|
17 | 25 | | } |
---|
18 | 26 | | } |
---|
19 | 27 | | |
---|
20 | 28 | | |
---|