tx · EPoJnYZQ2U27DKJrJe4JyN9jbtqPQauckucgxACZp1GW
3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X: -0.00100000 Waves
2022.09.07 18:14 [2218866] smart account 3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X > SELF 0.00000000 Waves
{
"type": 13,
"id": "EPoJnYZQ2U27DKJrJe4JyN9jbtqPQauckucgxACZp1GW",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1662563767689,
"version": 2,
"chainId": 84,
"sender": "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X",
"senderPublicKey": "7DRdJkCr5JgAyJLsUMLziE9ikak86Nwx7wG7iBySTcfT",
"proofs": [
"3ArWR6xLwuxbPEQfqY1q2m3mpSRYDbkSNshiGcoQc1dLm7RQKTdUuiabqoxS7m2p9RbDB2EyPsQDXevFKuZFaCR1"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAADAAAAAARVU0ROAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAALemVmdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR4DKZFQBSqlqss9mT9spGlh2iP+n6jV/MAAAAABWFkbWluAgAAACMzTXFqNUJUOXM2bjZnOTRteEQ5bXFBRUZ4QURwODRnNkEzcwAAAAIAAAABaQEAAAACSjEAAAABAAAACW15YWRkcmVzcwQAAAAJdG9BZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAlteWFkZHJlc3MDCQEAAAACIT0AAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAFYWRtaW4JAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAA2ludgkAA/wAAAAEBQAAAAl0b0FkZHJlc3MCAAAACHVzZG5fMTAwBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAADaW52BQAAAANpbnYFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAACSjIAAAABAAAACW15YWRkcmVzcwQAAAAJdG9BZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAlteWFkZHJlc3MDCQEAAAACIT0AAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAFYWRtaW4JAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAA2ludgkAA/wAAAAEBQAAAAl0b0FkZHJlc3MCAAAACHVzZG5fMzAwBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAADaW52BQAAAANpbnYFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAeyCqmg==",
"height": 2218866,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2FjA5SXFAAk9taiJYVuMps9aUhqd93z3Jw5UkEAfVqs9
Next: FFuyNeEvRz7peFhc3hdQmoEYsfbDTiTTw4RgCcrCFQ34
Diff:
Old | New | | Differences |
---|
8 | 8 | | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
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 | | - | } |
---|
| 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 | + | } |
---|
19 | 22 | | |
---|
20 | 23 | | |
---|
21 | 24 | | |
---|
22 | 25 | | @Callable(i) |
---|
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 | | - | } |
---|
| 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 | + | } |
---|
31 | 37 | | |
---|
32 | 38 | | |
---|
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) = 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 | | - | } |
---|
| 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 | + | } |
---|
19 | 22 | | |
---|
20 | 23 | | |
---|
21 | 24 | | |
---|
22 | 25 | | @Callable(i) |
---|
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 | | - | } |
---|
| 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 | + | } |
---|
31 | 37 | | |
---|
32 | 38 | | |
---|