tx · 83PCAKtcuBfDmNfHBs4BPV8CgmGKVbELKkm9RyrFjkFv 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX: -0.05000000 Waves 2021.06.11 13:06 [1565551] smart account 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX > SELF 0.00000000 Waves
{ "type": 13, "id": "83PCAKtcuBfDmNfHBs4BPV8CgmGKVbELKkm9RyrFjkFv", "fee": 5000000, "feeAssetId": null, "timestamp": 1623405996185, "version": 2, "chainId": 84, "sender": "3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX", "senderPublicKey": "BLYPM7pr6zCdxj9zzANneoGVcDEwBnQApCEnR3BkNm68", "proofs": [ "61eYpBbH66FyQFLus7xbxfnR6e27KfV2zthjoEr6DnY7Yz8Y96YRQtkNCcEGN3u9jUypLkBdrZrRpQVjh7jpg5tg" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEBEgAAAAABAQAAAApsYXp5SXNHb29kAAAAAAQAAAABYwQAAAABZAAAAAAAAAAAAQYFAAAAAWMAAAACAAAAAWkBAAAACGdpdmVBd2F5AAAAAQAAAANhZ2UEAAAABWRhcHAyCQEAAAAHQWRkcmVzcwAAAAEBAAAACMqDZA3pbdvQBAAAAARhcmdzBQAAAANuaWwEAAAADWJhbGFuY2VCZWZvcmUICQAD7wAAAAEFAAAABHRoaXMAAAAHcmVndWxhcgMJAAAAAAAAAgUAAAANYmFsYW5jZUJlZm9yZQUAAAANYmFsYW5jZUJlZm9yZQQAAAABegkAA/wAAAAEBQAAAAVkYXBwMgIAAAADYmFyBQAAAARhcmdzCQAETAAAAAIJAQAAAA9BdHRhY2hlZFBheW1lbnQAAAACBQAAAAR1bml0AAAAAAAF9eEABQAAAANuaWwDCQAAAAAAAAIFAAAAAXoFAAAAAXoEAAAADGJhbGFuY2VBZnRlcggJAAPvAAAAAQUAAAAEdGhpcwAAAAdyZWd1bGFyAwkAAAAAAAACBQAAAAxiYWxhbmNlQWZ0ZXIFAAAADGJhbGFuY2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AAAA9zZW5kZXJQdWJsaWNLZXkE4wM3", "height": 1565551, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 72uVtNn9q39vpbyBsUge7svEeCGVWFeb6eG1SZ1ExJsx Next: EgZwzervRPnptApDxHdxPVDtYEL29KDhzVzZAFXuxPdQ Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func lazyIsGood () = { | |
5 | + | let c = { | |
6 | + | let d = 1 | |
7 | + | true | |
8 | + | } | |
9 | + | c | |
10 | + | } | |
4 | 11 | ||
5 | 12 | ||
6 | 13 | @Callable(i) | |
7 | - | func giveAway (age) = $Tuple2([ScriptTransfer(i.caller, age, unit), IntegerEntry(toBase58String(i.caller.bytes), age)], unit) | |
14 | + | func giveAway (age) = { | |
15 | + | let dapp2 = Address(base58'asdfasfasfd') | |
16 | + | let args = nil | |
17 | + | let balanceBefore = wavesBalance(this).regular | |
18 | + | if ((balanceBefore == balanceBefore)) | |
19 | + | then { | |
20 | + | let z = invoke(dapp2, "bar", args, [AttachedPayment(unit, 100000000)]) | |
21 | + | if ((z == z)) | |
22 | + | then { | |
23 | + | let balanceAfter = wavesBalance(this).regular | |
24 | + | if ((balanceAfter == balanceAfter)) | |
25 | + | then $Tuple2([ScriptTransfer(i.caller, age, unit), IntegerEntry(toBase58String(i.caller.bytes), age)], unit) | |
26 | + | else throw("Strict value is not equal to itself.") | |
27 | + | } | |
28 | + | else throw("Strict value is not equal to itself.") | |
29 | + | } | |
30 | + | else throw("Strict value is not equal to itself.") | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(i) | |
36 | + | func faucet () = { | |
37 | + | let isKnownCaller = match getBoolean(this, toBase58String(i.caller.bytes)) { | |
38 | + | case hist: Boolean => | |
39 | + | hist | |
40 | + | case _ => | |
41 | + | false | |
42 | + | } | |
43 | + | if (!(isKnownCaller)) | |
44 | + | then $Tuple2([BooleanEntry(toBase58String(i.caller.bytes), true), ScriptTransfer(i.caller, 100000000, unit)], unit) | |
45 | + | else throw("Can be used only once") | |
46 | + | } | |
8 | 47 | ||
9 | 48 | ||
10 | 49 | @Verifier(tx) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func lazyIsGood () = { | |
5 | + | let c = { | |
6 | + | let d = 1 | |
7 | + | true | |
8 | + | } | |
9 | + | c | |
10 | + | } | |
4 | 11 | ||
5 | 12 | ||
6 | 13 | @Callable(i) | |
7 | - | func giveAway (age) = $Tuple2([ScriptTransfer(i.caller, age, unit), IntegerEntry(toBase58String(i.caller.bytes), age)], unit) | |
14 | + | func giveAway (age) = { | |
15 | + | let dapp2 = Address(base58'asdfasfasfd') | |
16 | + | let args = nil | |
17 | + | let balanceBefore = wavesBalance(this).regular | |
18 | + | if ((balanceBefore == balanceBefore)) | |
19 | + | then { | |
20 | + | let z = invoke(dapp2, "bar", args, [AttachedPayment(unit, 100000000)]) | |
21 | + | if ((z == z)) | |
22 | + | then { | |
23 | + | let balanceAfter = wavesBalance(this).regular | |
24 | + | if ((balanceAfter == balanceAfter)) | |
25 | + | then $Tuple2([ScriptTransfer(i.caller, age, unit), IntegerEntry(toBase58String(i.caller.bytes), age)], unit) | |
26 | + | else throw("Strict value is not equal to itself.") | |
27 | + | } | |
28 | + | else throw("Strict value is not equal to itself.") | |
29 | + | } | |
30 | + | else throw("Strict value is not equal to itself.") | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(i) | |
36 | + | func faucet () = { | |
37 | + | let isKnownCaller = match getBoolean(this, toBase58String(i.caller.bytes)) { | |
38 | + | case hist: Boolean => | |
39 | + | hist | |
40 | + | case _ => | |
41 | + | false | |
42 | + | } | |
43 | + | if (!(isKnownCaller)) | |
44 | + | then $Tuple2([BooleanEntry(toBase58String(i.caller.bytes), true), ScriptTransfer(i.caller, 100000000, unit)], unit) | |
45 | + | else throw("Can be used only once") | |
46 | + | } | |
8 | 47 | ||
9 | 48 | ||
10 | 49 | @Verifier(tx) | |
11 | 50 | func verifier () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
12 | 51 |
github/deemru/w8io/026f985 38.62 ms ◑