tx · FJm2mXh7QqjoWrWwb63FbPXYWxTdpkX2uUyt4ug4WnMn
3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt: -0.01000000 Waves
2023.05.22 10:48 [2588895] smart account 3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt > SELF 0.00000000 Waves
{
"type": 13,
"id": "FJm2mXh7QqjoWrWwb63FbPXYWxTdpkX2uUyt4ug4WnMn",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684741756363,
"version": 2,
"chainId": 84,
"sender": "3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt",
"senderPublicKey": "6VehQ4nhpSn9EW76xuyThbHcUFYhjEbb4sJDrys5ZEx5",
"proofs": [
"4j6wAjeGkxMnEaaZze5yUmjG5vEw28zcAUjKD3wzYUuh67PoYec98S2QsYxJw3ufXSJ6iuqgow9FBWz8mXWhv7fm"
],
"script": "base64:BgIOCAISABIDCgEBEgMKAQEAAwFpAQZnZXROdW0ACQCUCgIFA25pbAABAWkBEmNoYW5nZVJhdGVJTlRFUk5BTAEBbgQFY2hlY2sDCQAAAggFAWkGY2FsbGVyBQR0aGlzBgkAAgECB0VSUk9SIDEDCQAAAgUFY2hlY2sFBWNoZWNrBAZ0aW1lc3QEByRtYXRjaDAJAO0HAQUGaGVpZ2h0AwkAAQIFByRtYXRjaDACCUJsb2NrSW5mbwQCYmkFByRtYXRjaDAIBQJiaQl0aW1lc3RhbXAJAAIBAgdFUlJPUiAyCQDMCAIJAQxJbnRlZ2VyRW50cnkCAghudW1WYWx1ZQUBbgkAzAgCCQEMSW50ZWdlckVudHJ5AgIBaAUGaGVpZ2h0CQDMCAIJAQxJbnRlZ2VyRW50cnkCAgF0BQZ0aW1lc3QFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQpjaGFuZ2VSYXRlAQFuBA1vdGhlckNvbnRyYWN0CQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTXBNdUdOOHJXOUVwUHd6RVRBUXo4OFBlOVRRaFN3aXJpcQQCdGMJAPwHBAUEdGhpcwISY2hhbmdlUmF0ZUlOVEVSTkFMCQDMCAIFAW4FA25pbAUDbmlsAwkAAAIFAnRjBQJ0YwQCb2MJAP0HBAUNb3RoZXJDb250cmFjdAIGdXBkYXRlBQNuaWwFA25pbAkAlAoCBQNuaWwFAm9jCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAFfrDQ4=",
"height": 2588895,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8cTTKCu9mNNEmPMnZGfWW83a2WK5TKZ8N7RrBh3rjAcS
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func getNum () = $Tuple2(nil, 7) |
---|
| 7 | + | func getNum () = $Tuple2(nil, 1) |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | @Callable(i) |
---|
12 | | - | func setterINTERNAL (n) = { |
---|
| 12 | + | func changeRateINTERNAL (n) = { |
---|
13 | 13 | | let check = if ((i.caller == this)) |
---|
14 | 14 | | then true |
---|
15 | 15 | | else throw("ERROR 1") |
---|
|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | @Callable(i) |
---|
32 | | - | func setter (n) = { |
---|
| 32 | + | func changeRate (n) = { |
---|
33 | 33 | | let otherContract = addressFromStringValue("3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq") |
---|
34 | | - | let tc = invoke(this, "setterINTERNAL", [n], nil) |
---|
| 34 | + | let tc = invoke(this, "changeRateINTERNAL", [n], nil) |
---|
35 | 35 | | if ((tc == tc)) |
---|
36 | 36 | | then { |
---|
37 | 37 | | let oc = reentrantInvoke(otherContract, "update", nil, nil) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func getNum () = $Tuple2(nil, 7) |
---|
| 7 | + | func getNum () = $Tuple2(nil, 1) |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | @Callable(i) |
---|
12 | | - | func setterINTERNAL (n) = { |
---|
| 12 | + | func changeRateINTERNAL (n) = { |
---|
13 | 13 | | let check = if ((i.caller == this)) |
---|
14 | 14 | | then true |
---|
15 | 15 | | else throw("ERROR 1") |
---|
16 | 16 | | if ((check == check)) |
---|
17 | 17 | | then { |
---|
18 | 18 | | let timest = match blockInfoByHeight(height) { |
---|
19 | 19 | | case bi: BlockInfo => |
---|
20 | 20 | | bi.timestamp |
---|
21 | 21 | | case _ => |
---|
22 | 22 | | throw("ERROR 2") |
---|
23 | 23 | | } |
---|
24 | 24 | | [IntegerEntry("numValue", n), IntegerEntry("h", height), IntegerEntry("t", timest)] |
---|
25 | 25 | | } |
---|
26 | 26 | | else throw("Strict value is not equal to itself.") |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | @Callable(i) |
---|
32 | | - | func setter (n) = { |
---|
| 32 | + | func changeRate (n) = { |
---|
33 | 33 | | let otherContract = addressFromStringValue("3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq") |
---|
34 | | - | let tc = invoke(this, "setterINTERNAL", [n], nil) |
---|
| 34 | + | let tc = invoke(this, "changeRateINTERNAL", [n], nil) |
---|
35 | 35 | | if ((tc == tc)) |
---|
36 | 36 | | then { |
---|
37 | 37 | | let oc = reentrantInvoke(otherContract, "update", nil, nil) |
---|
38 | 38 | | $Tuple2(nil, oc) |
---|
39 | 39 | | } |
---|
40 | 40 | | else throw("Strict value is not equal to itself.") |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|