tx · ATAhTN26fwbamafXakXP4DcRktppmUXGbtgBRYyikoQF
3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx: -0.01000000 Waves
2023.08.18 16:57 [2716139] smart account 3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx > SELF 0.00000000 Waves
{
"type": 13,
"id": "ATAhTN26fwbamafXakXP4DcRktppmUXGbtgBRYyikoQF",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1692367011573,
"version": 2,
"chainId": 84,
"sender": "3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx",
"senderPublicKey": "81tRXAgqfPdSG8kxEMcAuyLeBBRRrzyqQLXCtCj1dpk2",
"proofs": [
"59oUmpmQLkJrFJyZBP7mpEVMWhKupT2DTkDtSFUDsZe7KuNQeXkfsFCVBp3uE886oAx72TGfGajCB17yFe1Mbxuz"
],
"script": "base64:BgIJCAISAwoBCBIAAgANYXNzZXRJZFN0cmluZwIsRU1BTUx4RG52M3hpejhSWGc4QnRqMzNqY0V3M3dMY3pMM0pLWVltdXVicGMABWFzc2V0CQDZBAEFDWFzc2V0SWRTdHJpbmcCAWkBDmNvbW1pdEZvck1pbmVyAQ1hZGRyZXNzU3RyaW5nBANrZXkJAKwCAgUNYWRkcmVzc1N0cmluZwIIX3N0YWtlZF8EBnN0YWtlZAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQNrZXkAAAkAzAgCCQEMSW50ZWdlckVudHJ5AgUDa2V5CQBkAgUGc3Rha2VkCAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAUDbmlsAWkBCHdpdGhkcmF3AAQDa2V5CQCsAgIJAKUIAQgFAWkGY2FsbGVyAghfc3Rha2VkXwQGYW1vdW50CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUEdGhpcwUDa2V5AgFhCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUGYW1vdW50BQVhc3NldAkAzAgCCQEMSW50ZWdlckVudHJ5AgUDa2V5AAAFA25pbAAxj51R",
"height": 2716139,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Fe9uF1r4M6msbjMyKYUNfjPtj9iCXV2p9ju58Btw5dcT
Next: none
Diff:
Old | New | | Differences |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func commitForMiner (d) = { |
---|
10 | | - | let e = valueOrElse(getInteger(this, "index"), 0) |
---|
11 | | - | let f = (d + "_staked_") |
---|
12 | | - | let g = valueOrElse(getInteger(this, f), 0) |
---|
13 | | - | [IntegerEntry(f, (g + c.payments[0].amount)), IntegerEntry(("index" + toString(e)), (e + 1)), IntegerEntry("index", (e + 1))] |
---|
| 10 | + | let e = (d + "_staked_") |
---|
| 11 | + | let f = valueOrElse(getInteger(this, e), 0) |
---|
| 12 | + | [IntegerEntry(e, (f + c.payments[0].amount))] |
---|
14 | 13 | | } |
---|
15 | 14 | | |
---|
16 | 15 | | |
---|
17 | 16 | | |
---|
18 | 17 | | @Callable(c) |
---|
19 | 18 | | func withdraw () = { |
---|
20 | | - | let f = (toString(c.caller) + "_staked_") |
---|
21 | | - | let h = valueOrErrorMessage(getInteger(this, f), "a") |
---|
22 | | - | [ScriptTransfer(c.caller, h, b), IntegerEntry(f, 0)] |
---|
| 19 | + | let e = (toString(c.caller) + "_staked_") |
---|
| 20 | + | let g = valueOrErrorMessage(getInteger(this, e), "a") |
---|
| 21 | + | [ScriptTransfer(c.caller, g, b), IntegerEntry(e, 0)] |
---|
23 | 22 | | } |
---|
24 | 23 | | |
---|
25 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = fromBase58String(a) |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func commitForMiner (d) = { |
---|
10 | | - | let e = valueOrElse(getInteger(this, "index"), 0) |
---|
11 | | - | let f = (d + "_staked_") |
---|
12 | | - | let g = valueOrElse(getInteger(this, f), 0) |
---|
13 | | - | [IntegerEntry(f, (g + c.payments[0].amount)), IntegerEntry(("index" + toString(e)), (e + 1)), IntegerEntry("index", (e + 1))] |
---|
| 10 | + | let e = (d + "_staked_") |
---|
| 11 | + | let f = valueOrElse(getInteger(this, e), 0) |
---|
| 12 | + | [IntegerEntry(e, (f + c.payments[0].amount))] |
---|
14 | 13 | | } |
---|
15 | 14 | | |
---|
16 | 15 | | |
---|
17 | 16 | | |
---|
18 | 17 | | @Callable(c) |
---|
19 | 18 | | func withdraw () = { |
---|
20 | | - | let f = (toString(c.caller) + "_staked_") |
---|
21 | | - | let h = valueOrErrorMessage(getInteger(this, f), "a") |
---|
22 | | - | [ScriptTransfer(c.caller, h, b), IntegerEntry(f, 0)] |
---|
| 19 | + | let e = (toString(c.caller) + "_staked_") |
---|
| 20 | + | let g = valueOrErrorMessage(getInteger(this, e), "a") |
---|
| 21 | + | [ScriptTransfer(c.caller, g, b), IntegerEntry(e, 0)] |
---|
23 | 22 | | } |
---|
24 | 23 | | |
---|
25 | 24 | | |
---|