tx · FFuyNeEvRz7peFhc3hdQmoEYsfbDTiTTw4RgCcrCFQ34
3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X: -0.00100000 Waves
2022.09.07 18:17 [2218868] smart account 3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X > SELF 0.00000000 Waves
{
"type": 13,
"id": "FFuyNeEvRz7peFhc3hdQmoEYsfbDTiTTw4RgCcrCFQ34",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1662563860057,
"version": 2,
"chainId": 84,
"sender": "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X",
"senderPublicKey": "7DRdJkCr5JgAyJLsUMLziE9ikak86Nwx7wG7iBySTcfT",
"proofs": [
"5sVqSVvBhhJxUSG2t2GsQBxMmJo7iWsPA6MVWKSbocwXp4cm9xWkkShhsxbSsRAptZvh9T9ZkW1nGCaUq75DoNPp"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAADAAAAAARVU0ROAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAALemVmdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR4DKZFQBSqlqss9mT9spGlh2iP+n6jV/MAAAAABWFkbWluAgAAACMzTXFqNUJUOXM2bjZnOTRteEQ5bXFBRUZ4QURwODRnNkEzcwAAAAIAAAABaQEAAAACSjEAAAABAAAACW15YWRkcmVzcwMJAQAAAAIhPQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAVhZG1pbgkAAAIAAAABAgAAABFvbmx5IGFkbWluIGNhbiBkbwQAAAADaW52CQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAACW15YWRkcmVzcwIAAAAIdXNkbl8xMDAFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANpbnYFAAAAA2ludgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAFpAQAAAAJKMgAAAAEAAAAJbXlhZGRyZXNzAwkBAAAAAiE9AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAABWFkbWluCQAAAgAAAAECAAAAEW9ubHkgYWRtaW4gY2FuIGRvBAAAAANpbnYJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAJbXlhZGRyZXNzAgAAAAh1c2RuXzMwMAUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAA2ludgUAAAADaW52BQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAADar15s=",
"height": 2218868,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EPoJnYZQ2U27DKJrJe4JyN9jbtqPQauckucgxACZp1GW
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func J1 (myaddress) = { |
---|
12 | | - | let toAddress = addressFromStringValue(myaddress) |
---|
13 | | - | if ((toString(i.caller) != admin)) |
---|
14 | | - | then throw("only admin can do") |
---|
15 | | - | else { |
---|
16 | | - | let inv = invoke(toAddress, "usdn_100", nil, nil) |
---|
17 | | - | if ((inv == inv)) |
---|
18 | | - | then nil |
---|
19 | | - | else throw("Strict value is not equal to itself.") |
---|
20 | | - | } |
---|
21 | | - | } |
---|
| 11 | + | func J1 (myaddress) = if ((toString(i.caller) != admin)) |
---|
| 12 | + | then throw("only admin can do") |
---|
| 13 | + | else { |
---|
| 14 | + | let inv = invoke(addressFromStringValue(myaddress), "usdn_100", nil, nil) |
---|
| 15 | + | if ((inv == inv)) |
---|
| 16 | + | then nil |
---|
| 17 | + | else throw("Strict value is not equal to itself.") |
---|
| 18 | + | } |
---|
22 | 19 | | |
---|
23 | 20 | | |
---|
24 | 21 | | |
---|
25 | 22 | | @Callable(i) |
---|
26 | | - | func J2 (myaddress) = { |
---|
27 | | - | let toAddress = addressFromStringValue(myaddress) |
---|
28 | | - | if ((toString(i.caller) != admin)) |
---|
29 | | - | then throw("only admin can do") |
---|
30 | | - | else { |
---|
31 | | - | let inv = invoke(toAddress, "usdn_300", nil, nil) |
---|
32 | | - | if ((inv == inv)) |
---|
33 | | - | then nil |
---|
34 | | - | else throw("Strict value is not equal to itself.") |
---|
35 | | - | } |
---|
36 | | - | } |
---|
| 23 | + | func J2 (myaddress) = if ((toString(i.caller) != admin)) |
---|
| 24 | + | then throw("only admin can do") |
---|
| 25 | + | else { |
---|
| 26 | + | let inv = invoke(addressFromStringValue(myaddress), "usdn_300", nil, nil) |
---|
| 27 | + | if ((inv == inv)) |
---|
| 28 | + | then nil |
---|
| 29 | + | else throw("Strict value is not equal to itself.") |
---|
| 30 | + | } |
---|
37 | 31 | | |
---|
38 | 32 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | 6 | | let zeftAddress = Address(base58'3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox') |
---|
7 | 7 | | |
---|
8 | 8 | | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func J1 (myaddress) = { |
---|
12 | | - | let toAddress = addressFromStringValue(myaddress) |
---|
13 | | - | if ((toString(i.caller) != admin)) |
---|
14 | | - | then throw("only admin can do") |
---|
15 | | - | else { |
---|
16 | | - | let inv = invoke(toAddress, "usdn_100", nil, nil) |
---|
17 | | - | if ((inv == inv)) |
---|
18 | | - | then nil |
---|
19 | | - | else throw("Strict value is not equal to itself.") |
---|
20 | | - | } |
---|
21 | | - | } |
---|
| 11 | + | func J1 (myaddress) = if ((toString(i.caller) != admin)) |
---|
| 12 | + | then throw("only admin can do") |
---|
| 13 | + | else { |
---|
| 14 | + | let inv = invoke(addressFromStringValue(myaddress), "usdn_100", nil, nil) |
---|
| 15 | + | if ((inv == inv)) |
---|
| 16 | + | then nil |
---|
| 17 | + | else throw("Strict value is not equal to itself.") |
---|
| 18 | + | } |
---|
22 | 19 | | |
---|
23 | 20 | | |
---|
24 | 21 | | |
---|
25 | 22 | | @Callable(i) |
---|
26 | | - | func J2 (myaddress) = { |
---|
27 | | - | let toAddress = addressFromStringValue(myaddress) |
---|
28 | | - | if ((toString(i.caller) != admin)) |
---|
29 | | - | then throw("only admin can do") |
---|
30 | | - | else { |
---|
31 | | - | let inv = invoke(toAddress, "usdn_300", nil, nil) |
---|
32 | | - | if ((inv == inv)) |
---|
33 | | - | then nil |
---|
34 | | - | else throw("Strict value is not equal to itself.") |
---|
35 | | - | } |
---|
36 | | - | } |
---|
| 23 | + | func J2 (myaddress) = if ((toString(i.caller) != admin)) |
---|
| 24 | + | then throw("only admin can do") |
---|
| 25 | + | else { |
---|
| 26 | + | let inv = invoke(addressFromStringValue(myaddress), "usdn_300", nil, nil) |
---|
| 27 | + | if ((inv == inv)) |
---|
| 28 | + | then nil |
---|
| 29 | + | else throw("Strict value is not equal to itself.") |
---|
| 30 | + | } |
---|
37 | 31 | | |
---|
38 | 32 | | |
---|