tx · BupNJR9wGy9gjweQhiTh1EY1dGDNxSCs9gKg3gSEQXSC
3NCukxG6cc7pqKoEwTZsr1CRrHMHfvGM7ok: -0.01000000 Waves
2023.11.10 15:52 [2837272] smart account 3NCukxG6cc7pqKoEwTZsr1CRrHMHfvGM7ok > SELF 0.00000000 Waves
{
"type": 13,
"id": "BupNJR9wGy9gjweQhiTh1EY1dGDNxSCs9gKg3gSEQXSC",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1699620719717,
"version": 2,
"chainId": 84,
"sender": "3NCukxG6cc7pqKoEwTZsr1CRrHMHfvGM7ok",
"senderPublicKey": "Ba1WX1ZypN1wFcFgVrXgam9NFbnD3XA1P62kc37wpxzA",
"proofs": [
"4JhoKXhQDnhMUPiZYPMv2dWZLkDDmu5xH14KzmDZNV8jmjazSW6nTMfuJAgLnDt4QUJVAHaXZBNRFWvwEsMsGmnp"
],
"script": "base64:BgIJCAISABIDCgEBAwAUd3hfc3Rha2VkX2Ftb3VudF9rZXkCEHd4X3N0YWtlZF9hbW91bnQAEHd4X21vY2tfYXNzZXRfaWQBIHptAsMqQB03rB/7u2vDLbTRVkUM0N3b1oUokuAcHZrjAQlhc1BheW1lbnQBAXYEByRtYXRjaDAFAXYDCQABAgUHJG1hdGNoMAIPQXR0YWNoZWRQYXltZW50BAFwBQckbWF0Y2gwBQFwCQACAQIhZmFpbCB0byBjYXN0IGludG8gQXR0YWNoZWRQYXltZW50AgFpARd1c2VyTWF4RHVyYXRpb25SRUFET05MWQAJAJQKAgUDbmlsCQCUCgICB3N0YWtlV1gA+AoBaQEHc3Rha2VXWAEPbWF4TG9ja0R1cmF0aW9uBAdwYXltZW50CQEJYXNQYXltZW50AQkAkQMCCAUBaQhwYXltZW50cwAABAZhbW91bnQIBQdwYXltZW50BmFtb3VudAQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAnwgBBRR3eF9zdGFrZWRfYW1vdW50X2tleQAACQDMCAIJAQxJbnRlZ2VyRW50cnkCBRR3eF9zdGFrZWRfYW1vdW50X2tleQkAZAIFDWN1cnJlbnRBbW91bnQFBmFtb3VudAUDbmlsAHGBfec=",
"height": 2837272,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7DUUirjHm6y5bvouFExGM4e8MgZcDpa2nL5id5qRQoua
Next: GUXQs7Se7u6moXNVAcV8rdvzUtVzFrDZWTQMPsUmGkVr
Diff:
Old | New | | Differences |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Callable(g) |
---|
25 | | - | func stakeWX () = { |
---|
26 | | - | let h = c(g.payments[0]) |
---|
27 | | - | let i = h.amount |
---|
28 | | - | let j = valueOrElse(getInteger(a), 0) |
---|
29 | | - | [IntegerEntry(a, (j + i))] |
---|
| 25 | + | func stakeWX (h) = { |
---|
| 26 | + | let i = c(g.payments[0]) |
---|
| 27 | + | let j = i.amount |
---|
| 28 | + | let k = valueOrElse(getInteger(a), 0) |
---|
| 29 | + | [IntegerEntry(a, (k + j))] |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "wx_staked_amount" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = base58'9Eu9de5GPPgLzY16bevCaxF4rFr4jA9wqyTfqcjksU82' |
---|
7 | 7 | | |
---|
8 | 8 | | func c (d) = { |
---|
9 | 9 | | let e = d |
---|
10 | 10 | | if ($isInstanceOf(e, "AttachedPayment")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let f = e |
---|
13 | 13 | | f |
---|
14 | 14 | | } |
---|
15 | 15 | | else throw("fail to cast into AttachedPayment") |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(g) |
---|
20 | 20 | | func userMaxDurationREADONLY () = $Tuple2(nil, $Tuple2("stakeWX", 1400)) |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Callable(g) |
---|
25 | | - | func stakeWX () = { |
---|
26 | | - | let h = c(g.payments[0]) |
---|
27 | | - | let i = h.amount |
---|
28 | | - | let j = valueOrElse(getInteger(a), 0) |
---|
29 | | - | [IntegerEntry(a, (j + i))] |
---|
| 25 | + | func stakeWX (h) = { |
---|
| 26 | + | let i = c(g.payments[0]) |
---|
| 27 | + | let j = i.amount |
---|
| 28 | + | let k = valueOrElse(getInteger(a), 0) |
---|
| 29 | + | [IntegerEntry(a, (k + j))] |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|