tx · 9duWMJTXyFbvAHsRjAdN3ADS9TnggGEwtjSjZL2YV6Cg 3N5DjBE9QxitMvDTPb1642DEpx41mQefLMn: -0.01000000 Waves 2022.11.07 01:51 [2305898] smart account 3N5DjBE9QxitMvDTPb1642DEpx41mQefLMn > SELF 0.00000000 Waves
{ "type": 13, "id": "9duWMJTXyFbvAHsRjAdN3ADS9TnggGEwtjSjZL2YV6Cg", "fee": 1000000, "feeAssetId": null, "timestamp": 1667775174542, "version": 2, "chainId": 84, "sender": "3N5DjBE9QxitMvDTPb1642DEpx41mQefLMn", "senderPublicKey": "HKoLLJ2d1CbCcD7ZaYai7Ffz4sY1TSRavfzkM5JRv7uG", "proofs": [ "4LDCjmbDMeqdXTZ55K7ZGSvGfywXzq4ZUg4MVPVdnFQkufYzbVDR8Mcy19ZjVtiCawASisWQtynCtGMwVWk52tu5" ], "script": "base64:BgIECAISAAQADHZpcmVzVmVzdGluZwkBB0FkZHJlc3MBARoBVL/ir8tEbTRcjsGgGdkQfLwXVQPRnyBZVAAGdXNkbklkASDDpy8VqhSBATBEclVloclAj27JVaxpWfYd8DIPt565KAAMYmVuZWZpY2lhcnkxCQEHQWRkcmVzcwEBGgFU1TP10FFvqZ+UyGuX4QCjYEUz/bEePbonAAxiZW5lZmljaWFyeTIJAQdBZGRyZXNzAQEaAVQ/i15WCiNWbMriwzfK6ain6NPdmgn+7dUBAWkBAWMAAwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQINQWNjZXNzIERlbmllZAQDcmVzCQD8BwQFDHZpcmVzVmVzdGluZwIVd2l0aGRyYXdWZXN0ZWRBbGxVU0ROCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwQKd2l0aGRyYXdlZAoAAUAFA3JlcwMJAAECBQFAAgNJbnQFAUAJAAIBCQCsAgIJAAMBBQFAAhggY291bGRuJ3QgYmUgY2FzdCB0byBJbnQDCQAAAgUKd2l0aGRyYXdlZAUKd2l0aGRyYXdlZAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQxiZW5lZmljaWFyeTEJAGsDBQp3aXRoZHJhd2VkAAQAZAUGdXNkbklkCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFDGJlbmVmaWNpYXJ5MgkAawMFCndpdGhkcmF3ZWQAAQBkBQZ1c2RuSWQFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBANpbnYFByRtYXRjaDADCQAAAgkApAgBCAUDaW52BGRBcHAFBHRoaXMGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5T7ZrHA==", "height": 2305898, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let viresVesting = Address(base58'3N7QgQ2a1RUrWusBmqVdt4eZsAa9JdEMY6f') | |
5 | + | ||
6 | + | let usdnId = base58'EAkMqw7H5XRt7zaoKPZyxAcHqf1QD1a1uvJ5xkuL8vxw' | |
7 | + | ||
8 | + | let beneficiary1 = Address(base58'3N9MPx3DnQPUkfTPyEebbbNmqrTk6k2GYN2') | |
9 | + | ||
10 | + | let beneficiary2 = Address(base58'3Mui5JVtyfqzfA3eW3N8j6UNiUkbgFZzyxQ') | |
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func c () = if ((i.caller != this)) | |
14 | + | then throw("Access Denied") | |
15 | + | else { | |
16 | + | let res = invoke(viresVesting, "withdrawVestedAllUSDN", [false, true], nil) | |
17 | + | if ((res == res)) | |
18 | + | then { | |
19 | + | let withdrawed = { | |
20 | + | let @ = res | |
21 | + | if ($isInstanceOf(@, "Int")) | |
22 | + | then @ | |
23 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
24 | + | } | |
25 | + | if ((withdrawed == withdrawed)) | |
26 | + | then [ScriptTransfer(beneficiary1, fraction(withdrawed, 4, 100), usdnId), ScriptTransfer(beneficiary2, fraction(withdrawed, 1, 100), usdnId)] | |
27 | + | else throw("Strict value is not equal to itself.") | |
28 | + | } | |
29 | + | else throw("Strict value is not equal to itself.") | |
30 | + | } | |
31 | + | ||
32 | + | ||
33 | + | @Verifier(tx) | |
34 | + | func verify () = match tx { | |
35 | + | case inv: InvokeScriptTransaction => | |
36 | + | if ((addressFromRecipient(inv.dApp) == this)) | |
37 | + | then true | |
38 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
39 | + | case _ => | |
40 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
41 | + | } | |
42 | + |
github/deemru/w8io/169f3d6 18.24 ms ◑