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