tx · 2DBjVmWtwbwBDoHTV9qNeB4dU3tbVU1sxJxdpqy7MKtU
3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T: -0.01000000 Waves
2023.06.01 11:59 [2603385] smart account 3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T > SELF 0.00000000 Waves
{
"type": 13,
"id": "2DBjVmWtwbwBDoHTV9qNeB4dU3tbVU1sxJxdpqy7MKtU",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685610153230,
"version": 2,
"chainId": 84,
"sender": "3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T",
"senderPublicKey": "6FwWutvTDWVXuYEgsyB6W34RQ5pNvL1ButovpyfJdgfr",
"proofs": [
"57XVKAYJXoQxMks4xfk7CNvqD2RKSJp6rFSZgqTBjf1NXRpLHbNjvKznMFPfHxvieWnDNrwAwb1KFqYqephjAMsQ"
],
"script": "base64:BgIICAISBAoCAQEAAQFpAQt3aXRoZHJhd09sZAILcGxhdGZvcm1GZWUGYW1vdW50BAVvd25lcgEaAVTtUtIUU1Fri0FIWpfzmBNloogPBC0pwfQEBXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgMJAAACCAgFAWkGY2FsbGVyBWJ5dGVzBQVvd25lcgkAAgECGXNvcnJ5ICB5b3UgaGF2ZSBubyBhY2Nlc3MDAwkAZwIFC3BsYXRmb3JtRmVlAAAJAGcCBQtwbGF0Zm9ybUZlZQUGYW1vdW50BwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIJAGgCBQZhbW91bnQAZAUFdGVhbXMFA25pbAUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EC3NldFNjcmlwdFR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleacnRgw=",
"height": 2603385,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DqauuVjmy2ei1M6FtMbavoE8ZtrAHc1Y5cv2QvxkmhPY
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func withdrawAsimi (platformFee,amount) = { |
---|
| 7 | + | func withdrawOld (platformFee,amount) = { |
---|
| 8 | + | let owner = base58'3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw' |
---|
8 | 9 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
9 | | - | if ((i.caller == this)) |
---|
| 10 | + | if ((i.caller.bytes == owner)) |
---|
10 | 11 | | then throw("sorry you have no access") |
---|
11 | 12 | | else if (if ((platformFee >= 0)) |
---|
12 | 13 | | then (platformFee >= amount) |
---|
|
16 | 17 | | } |
---|
17 | 18 | | |
---|
18 | 19 | | |
---|
19 | | - | |
---|
20 | | - | @Callable(i) |
---|
21 | | - | func withdrawWaves (platformFee,amount) = if ((i.caller == this)) |
---|
22 | | - | then throw("sorry you have no access") |
---|
23 | | - | else if (if ((platformFee >= 0)) |
---|
24 | | - | then (platformFee >= amount) |
---|
25 | | - | else false) |
---|
26 | | - | then [ScriptTransfer(i.caller, amount, unit)] |
---|
27 | | - | else nil |
---|
28 | | - | |
---|
| 20 | + | @Verifier(tx) |
---|
| 21 | + | func verify () = match tx { |
---|
| 22 | + | case setScriptTx: SetScriptTransaction => |
---|
| 23 | + | false |
---|
| 24 | + | case _ => |
---|
| 25 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 26 | + | } |
---|
29 | 27 | | |
---|
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 withdrawAsimi (platformFee,amount) = { |
---|
| 7 | + | func withdrawOld (platformFee,amount) = { |
---|
| 8 | + | let owner = base58'3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw' |
---|
8 | 9 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
9 | | - | if ((i.caller == this)) |
---|
| 10 | + | if ((i.caller.bytes == owner)) |
---|
10 | 11 | | then throw("sorry you have no access") |
---|
11 | 12 | | else if (if ((platformFee >= 0)) |
---|
12 | 13 | | then (platformFee >= amount) |
---|
13 | 14 | | else false) |
---|
14 | 15 | | then [ScriptTransfer(i.caller, (amount * 100), teams)] |
---|
15 | 16 | | else nil |
---|
16 | 17 | | } |
---|
17 | 18 | | |
---|
18 | 19 | | |
---|
19 | | - | |
---|
20 | | - | @Callable(i) |
---|
21 | | - | func withdrawWaves (platformFee,amount) = if ((i.caller == this)) |
---|
22 | | - | then throw("sorry you have no access") |
---|
23 | | - | else if (if ((platformFee >= 0)) |
---|
24 | | - | then (platformFee >= amount) |
---|
25 | | - | else false) |
---|
26 | | - | then [ScriptTransfer(i.caller, amount, unit)] |
---|
27 | | - | else nil |
---|
28 | | - | |
---|
| 20 | + | @Verifier(tx) |
---|
| 21 | + | func verify () = match tx { |
---|
| 22 | + | case setScriptTx: SetScriptTransaction => |
---|
| 23 | + | false |
---|
| 24 | + | case _ => |
---|
| 25 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 26 | + | } |
---|
29 | 27 | | |
---|