tx · 6gc4bnV1j942jmAcfvX9aV2uxfs3RUimhwh9VnAB1oHU
3N1YKcwZLDXBpMV9xnAnygYwaYadkJGMjtW: -0.01000000 Waves
2023.08.11 22:57 [2706368] smart account 3N1YKcwZLDXBpMV9xnAnygYwaYadkJGMjtW > SELF 0.00000000 Waves
{
"type": 13,
"id": "6gc4bnV1j942jmAcfvX9aV2uxfs3RUimhwh9VnAB1oHU",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1691783830858,
"version": 2,
"chainId": 84,
"sender": "3N1YKcwZLDXBpMV9xnAnygYwaYadkJGMjtW",
"senderPublicKey": "CGY8FZGBmQsh3yyEEt5jG2wtqv6bzkn4m7vBhd6efkgc",
"proofs": [
"2BUFmxzb5jY9LgCz4iJjcvSoN7PQartSTxZkaWCpXcFJBrvNrZdsg7eQ6pSvTsFnmazygaPkzabheUHkHmhHgQth"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgAAAAAJc3RhcnRUc01zAAAAAXYp4U2AAQAAABdjYWxjdWxhdGVEYXlzU2luY2VTdGFydAAAAAAEAAAABGRpZmYJAABlAAAAAggFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAFAAAACXN0YXJ0VHNNcwQAAAAKZGF5c1Bhc3NlZAkAAGkAAAACBQAAAARkaWZmCQAAaAAAAAIAAAAAAAABUYAAAAAAAAAAA+gFAAAACmRheXNQYXNzZWQAAAABAAAAAWkBAAAACHB1c2hkYXlzAAAAAAQAAAAEZGF5cwkBAAAAF2NhbGN1bGF0ZURheXNTaW5jZVN0YXJ0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAERGF5cwUAAAAEZGF5cwUAAAADbmlsAAAAADAYmF0=",
"height": 2706368,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HxdEqK7CsGi8Z7Lj75WUVncuvv1ZwyK929cVGjExXdzG
Next: A9sbQrr1HPxLp1isDQvcggMJSPJFrMRRfM6uyYVMTkci
Diff:
Old | New | | Differences |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
| 13 | + | @Callable(i) |
---|
13 | 14 | | func pushdays () = { |
---|
14 | 15 | | let days = calculateDaysSinceStart() |
---|
15 | 16 | | [IntegerEntry("Days", days)] |
---|
16 | 17 | | } |
---|
17 | 18 | | |
---|
18 | 19 | | |
---|
19 | | - | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let startTsMs = 1607020400000 |
---|
5 | 5 | | |
---|
6 | 6 | | func calculateDaysSinceStart () = { |
---|
7 | 7 | | let diff = (lastBlock.timestamp - startTsMs) |
---|
8 | 8 | | let daysPassed = (diff / (86400 * 1000)) |
---|
9 | 9 | | daysPassed |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
| 13 | + | @Callable(i) |
---|
13 | 14 | | func pushdays () = { |
---|
14 | 15 | | let days = calculateDaysSinceStart() |
---|
15 | 16 | | [IntegerEntry("Days", days)] |
---|
16 | 17 | | } |
---|
17 | 18 | | |
---|
18 | 19 | | |
---|
19 | | - | |
---|