tx · AV4HqVVf2sm8uic2AspYair65zJtTxSxqT15LGzBsUKL
3N3tDUvYTUkPj99XK6ahYY1seKQssSPSUxa: -0.00100000 Waves
2022.09.07 18:10 [2218863] smart account 3N3tDUvYTUkPj99XK6ahYY1seKQssSPSUxa > SELF 0.00000000 Waves
{
"type": 13,
"id": "AV4HqVVf2sm8uic2AspYair65zJtTxSxqT15LGzBsUKL",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1662563458436,
"version": 2,
"chainId": 84,
"sender": "3N3tDUvYTUkPj99XK6ahYY1seKQssSPSUxa",
"senderPublicKey": "uabndDFnsGq9PjWSXCTHbtJ6qRyJrTnAiV1p3iLLEBf",
"proofs": [
"2zia7u1bSgcriePMQBCDkp5gbmTjv9pDrAS4PAbzmqD1s4CzWATZjr64NdiAu6g6vKWd5eVjjpv6iwcV82UtvqYk"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAADAAAAAARVU0ROAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAALemVmdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR4DKZFQBSqlqss9mT9spGlh2iP+n6jV/MAAAAABWFkbWluAgAAACMzTXFqNUJUOXM2bjZnOTRteEQ5bXFBRUZ4QURwODRnNkEzcwAAAAIAAAABaQEAAAACSjEAAAABAAAACW15YWRkcmVzcwMJAQAAAAIhPQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAVhZG1pbgkAAAIAAAABAgAAABFvbmx5IGFkbWluIGNhbiBkbwQAAAADaW52CQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAACW15YWRkcmVzcwIAAAAIdXNkbl8xMDAFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANpbnYFAAAAA2ludgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAFpAQAAAAJKMgAAAAEAAAAJbXlhZGRyZXNzAwkBAAAAAiE9AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAABWFkbWluCQAAAgAAAAECAAAAEW9ubHkgYWRtaW4gY2FuIGRvBAAAAANpbnYJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAJbXlhZGRyZXNzAgAAAAh1c2RuXzMwMAUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAA2ludgUAAAADaW52BQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAADar15s=",
"height": 2218863,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Ep3fzB1vQPxkMRH6zf7d9mcaku3i3wkjCSFSnvrgSHmA
Next: E3ywmbomaigAVrnHk1NxYGXNCiZwC8UpN7p18kbWhoMx
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | | - | let zeftAddress = Address(base58'3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X') |
---|
| 6 | + | let zeftAddress = Address(base58'3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox') |
---|
7 | 7 | | |
---|
8 | | - | let WAVES1 = "WAVES" |
---|
| 8 | + | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func usdn_1 () = { |
---|
12 | | - | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
13 | | - | if ((toString(i.caller) != admin)) |
---|
14 | | - | then throw("only admin can do") |
---|
15 | | - | else [ScriptTransfer(zeftAddress, 1, USDN)] |
---|
16 | | - | } |
---|
| 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 | + | } |
---|
17 | 19 | | |
---|
18 | 20 | | |
---|
19 | 21 | | |
---|
20 | 22 | | @Callable(i) |
---|
21 | | - | func usdn_3 () = { |
---|
22 | | - | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
23 | | - | if ((toString(i.caller) != admin)) |
---|
24 | | - | then throw("only admin can do") |
---|
25 | | - | else [ScriptTransfer(zeftAddress, 2, USDN)] |
---|
26 | | - | } |
---|
| 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 | + | } |
---|
27 | 31 | | |
---|
28 | 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 | | - | let zeftAddress = Address(base58'3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X') |
---|
| 6 | + | let zeftAddress = Address(base58'3Mzrr1qpGsDw2YT1bepkhjumMcinDvCKmox') |
---|
7 | 7 | | |
---|
8 | | - | let WAVES1 = "WAVES" |
---|
| 8 | + | let admin = "3Mqj5BT9s6n6g94mxD9mqAEFxADp84g6A3s" |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func usdn_1 () = { |
---|
12 | | - | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
13 | | - | if ((toString(i.caller) != admin)) |
---|
14 | | - | then throw("only admin can do") |
---|
15 | | - | else [ScriptTransfer(zeftAddress, 1, USDN)] |
---|
16 | | - | } |
---|
| 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 | + | } |
---|
17 | 19 | | |
---|
18 | 20 | | |
---|
19 | 21 | | |
---|
20 | 22 | | @Callable(i) |
---|
21 | | - | func usdn_3 () = { |
---|
22 | | - | let admin = "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X" |
---|
23 | | - | if ((toString(i.caller) != admin)) |
---|
24 | | - | then throw("only admin can do") |
---|
25 | | - | else [ScriptTransfer(zeftAddress, 2, USDN)] |
---|
26 | | - | } |
---|
| 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 | + | } |
---|
27 | 31 | | |
---|
28 | 32 | | |
---|