tx · 47QxGynQoF77KgZhB95gGWSdRsu5UyZbWUd3zqQWtvg4 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX: -0.01000000 Waves 2021.06.04 12:16 [1555439] smart account 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX > SELF 0.00000000 Waves
{ "type": 13, "id": "47QxGynQoF77KgZhB95gGWSdRsu5UyZbWUd3zqQWtvg4", "fee": 1000000, "feeAssetId": null, "timestamp": 1622798154077, "version": 2, "chainId": 84, "sender": "3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX", "senderPublicKey": "BLYPM7pr6zCdxj9zzANneoGVcDEwBnQApCEnR3BkNm68", "proofs": [ "354hVZ6Yu4itdTxWGDZGVSuujAMMtmkP2Co1j47p9k6iLRG3jYXk8pGuFh44b7Rt7XvuFpHpERrhuUpS3jDpAgKf" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAADYmFyAAAAAQAAAAFhBAAAAAVkYXBwMgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM040bzlVR2NGVER4Y0pwdEZHMnlpbVlwTHFMTG9ENDRkaVgEAAAADWJhbGFuY2VCZWZvcmUICQAD7wAAAAEFAAAABHRoaXMAAAAHcmVndWxhcgMJAAAAAAAAAgUAAAANYmFsYW5jZUJlZm9yZQUAAAANYmFsYW5jZUJlZm9yZQQAAAABegkAA/wAAAAEBQAAAAVkYXBwMgIAAAADYmFyBQAAAANuaWwJAARMAAAAAgkBAAAAD0F0dGFjaGVkUGF5bWVudAAAAAIFAAAABHVuaXQAAAAAAAX14QAFAAAAA25pbAMJAAAAAAAAAgUAAAABegUAAAABegQAAAAMYmFsYW5jZUFmdGVyCAkAA+8AAAABBQAAAAR0aGlzAAAAB3JlZ3VsYXIDCQAAAAAAAAIFAAAADGJhbGFuY2VBZnRlcgUAAAAMYmFsYW5jZUFmdGVyAwkAAGYAAAACBQAAAA1iYWxhbmNlQmVmb3JlBQAAAAxiYWxhbmNlQWZ0ZXIJAAACAAAAAQIAAAADWWVzCQAAAgAAAAECAAAAAk5vCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAMiPFNU=", "height": 1555439, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4wR4ZhNEV7uf7zU9L6UBB3aZ2cdmJjxTRb7R6BHjhjJM Next: 9c4rcya6Txm2b1n5Wzvgm3kZswub4Nn5FTuhjxxxXirC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func faucet () = { | |
8 | - | let isKnownCaller = match getBoolean(this, toBase58String(i.caller.bytes)) { | |
9 | - | case hist: Boolean => | |
10 | - | hist | |
11 | - | case _ => | |
12 | - | false | |
13 | - | } | |
14 | - | if (!(isKnownCaller)) | |
15 | - | then [BooleanEntry(toBase58String(i.caller.bytes), true), ScriptTransfer(i.caller, 100000000, unit)] | |
16 | - | else throw("Can be used only once") | |
7 | + | func bar (a) = { | |
8 | + | let dapp2 = addressFromStringValue("3N4o9UGcFTDxcJptFG2yimYpLqLLoD44diX") | |
9 | + | let balanceBefore = wavesBalance(this).regular | |
10 | + | if ((balanceBefore == balanceBefore)) | |
11 | + | then { | |
12 | + | let z = invoke(dapp2, "bar", nil, [AttachedPayment(unit, 100000000)]) | |
13 | + | if ((z == z)) | |
14 | + | then { | |
15 | + | let balanceAfter = wavesBalance(this).regular | |
16 | + | if ((balanceAfter == balanceAfter)) | |
17 | + | then if ((balanceBefore > balanceAfter)) | |
18 | + | then throw("Yes") | |
19 | + | else throw("No") | |
20 | + | else throw("Strict value is not equal to itself.") | |
21 | + | } | |
22 | + | else throw("Strict value is not equal to itself.") | |
23 | + | } | |
24 | + | else throw("Strict value is not equal to itself.") | |
17 | 25 | } | |
18 | 26 | ||
19 | 27 |
github/deemru/w8io/026f985 24.35 ms ◑