tx · AdTtzUwqaiYQ2ECkLseTJvzMHWgx6adcC59dYrC84Pwe
3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox: -0.00100000 Waves
2022.09.07 18:10 [2218863] smart account 3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox > SELF 0.00000000 Waves
{
"type": 13,
"id": "AdTtzUwqaiYQ2ECkLseTJvzMHWgx6adcC59dYrC84Pwe",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1662563481591,
"version": 2,
"chainId": 84,
"sender": "3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox",
"senderPublicKey": "BWo83B6PcQR1GizwpfpUWz4UZno6YMqeLBSnZeNDyr3h",
"proofs": [
"31txKk3S8pWoUnqVEpuuPENyBzY1xaUNyxTpQ869uQdoZg2S3cjKjAAtZ3Nm6jX64SDcN2WVVSFri1u9cH9r1rh2"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAADAAAAAARVU0ROAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAALemVmdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRY2vGaOYstbjClKYntBJKB6k8Fq3GqdEwAAAAABldBVkVTMQIAAAAFV0FWRVMAAAACAAAAAWkBAAAACHVzZG5fMTAwAAAAAAQAAAAFYWRtaW4CAAAAIzNNeDF1WEhFY0VIV1lVTDh6UlY4ZGdWYUNUcnczS2RqZzZYAwkBAAAAAiE9AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAABWFkbWluCQAAAgAAAAECAAAAEW9ubHkgYWRtaW4gY2FuIGRvCQAAAgAAAAECAAAADGFjYzMgc3VjZXNzMwAAAAFpAQAAAAh1c2RuXzMwMAAAAAAEAAAABWFkbWluAgAAACMzTXgxdVhIRWNFSFdZVUw4elJWOGRnVmFDVHJ3M0tkamc2WAMJAQAAAAIhPQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAVhZG1pbgkAAAIAAAABAgAAABFvbmx5IGFkbWluIGNhbiBkbwkAAAIAAAABAgAAAAxhY2MzIHN1Y2VzczMAAAAAJlVvnA==",
"height": 2218863,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: B6qtNYFvikDiwcbZdeSURTK1DWDSZmzts1oGb7nzytMW
Next: 7WfuboDnGRJsJ7EMuEjzt2RL41cZNu7jM4AMLQ5LZd5U
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | | - | let zeftAddress = Address(base58'3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox') |
---|
| 6 | + | let zeftAddress = Address(base58'3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X') |
---|
7 | 7 | | |
---|
8 | | - | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
| 8 | + | let WAVES1 = "WAVES" |
---|
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 usdn_100 () = { |
---|
| 12 | + | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
| 13 | + | if ((toString(i.caller) != admin)) |
---|
| 14 | + | then throw("only admin can do") |
---|
| 15 | + | else throw("acc3 sucess3") |
---|
| 16 | + | } |
---|
19 | 17 | | |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|
22 | 20 | | @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 | | - | } |
---|
| 21 | + | func usdn_300 () = { |
---|
| 22 | + | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
| 23 | + | if ((toString(i.caller) != admin)) |
---|
| 24 | + | then throw("only admin can do") |
---|
| 25 | + | else throw("acc3 sucess3") |
---|
| 26 | + | } |
---|
31 | 27 | | |
---|
32 | 28 | | |
---|
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 | | - | let zeftAddress = Address(base58'3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox') |
---|
| 6 | + | let zeftAddress = Address(base58'3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X') |
---|
7 | 7 | | |
---|
8 | | - | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
| 8 | + | let WAVES1 = "WAVES" |
---|
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 usdn_100 () = { |
---|
| 12 | + | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
| 13 | + | if ((toString(i.caller) != admin)) |
---|
| 14 | + | then throw("only admin can do") |
---|
| 15 | + | else throw("acc3 sucess3") |
---|
| 16 | + | } |
---|
19 | 17 | | |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|
22 | 20 | | @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 | | - | } |
---|
| 21 | + | func usdn_300 () = { |
---|
| 22 | + | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
| 23 | + | if ((toString(i.caller) != admin)) |
---|
| 24 | + | then throw("only admin can do") |
---|
| 25 | + | else throw("acc3 sucess3") |
---|
| 26 | + | } |
---|
31 | 27 | | |
---|
32 | 28 | | |
---|