tx · 9XmyoZX9kKrufdPmLa62mMkjLb7EHfeTWxP5pdFtAoor 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw: -0.01000000 Waves 2023.02.10 09:40 [2443173] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves
{ "type": 13, "id": "9XmyoZX9kKrufdPmLa62mMkjLb7EHfeTWxP5pdFtAoor", "fee": 1000000, "feeAssetId": null, "timestamp": 1676011338483, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "5McCPaLxCGNerhy2tgTkhwEbJYPLNDayBEDEqCvnRMkWGYPpSwAsGybUXsYmdTKDMYtZbbCouQ2RobA14cZasrRL" ], "script": "base64:BgIUCAISBAoCCAgSBQoDCAEIEgMKAQECAAV0ZWFtcwEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4ABVdBVkVTAQADAWkBDUFjY2VwdFJlcXVlc3QCDXJlY2VwaWVudEFkZHIHbWVzc2FnZQQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQDCQAAAggJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBQV0ZWFtcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQV0ZWFtcwUDbmlsBQNuaWwBaQELc2VuZFJlcXVlc3QDDXJlY2VwaWVudEFkZHIGYW1vdW50B21lc3NhZ2UEBmNhbGxlcggIBQFpBmNhbGxlcgVieXRlcwQHcmVjaXZlcgkA2QQBBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIAAAUEdW5pdAUDbmlsAWkBCGdpdmVBd2F5AQNhZ2UJAJQKAgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFA2FnZQUEdW5pdAkAzAgCCQEMSW50ZWdlckVudHJ5AgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBQNhZ2UFA25pbAUEdW5pdABP7WKT", "height": 2443173, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6BpNP9T3XG3ab4H7ass4wNCrjUqoRhiWC5om1i7TXAoh Next: GNWVVbBeb9vLpWmqqbJrDBWVV1htNhJeKUNJZSgMN1y9 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
5 | + | ||
6 | + | let WAVES = base58'' | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func AcceptRequest (recepientAddr,message) = { | |
10 | + | let caller = i.caller.bytes | |
11 | + | let reciver = fromBase58String(recepientAddr) | |
12 | + | let amount = i.payments[0].amount | |
13 | + | if ((i.payments[0].assetId == teams)) | |
14 | + | then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)] | |
15 | + | else nil | |
16 | + | } | |
17 | + | ||
4 | 18 | ||
5 | 19 | ||
6 | 20 | @Callable(i) | |
7 | - | func mintNft (ipfs_id,nft_name,nft_description) = { | |
8 | - | let recipient = i.caller | |
9 | - | let asset1 = Issue(nft_name, nft_description, 1, 0, false) | |
10 | - | let assetId1 = calculateAssetId(asset1) | |
11 | - | [asset1, StringEntry((toBase58String(assetId1) + "_ipfs"), ((ipfs_id + nft_description) + nft_name)), ScriptTransfer(recipient, 1, assetId1)] | |
21 | + | func sendRequest (recepientAddr,amount,message) = { | |
22 | + | let caller = i.caller.bytes | |
23 | + | let reciver = fromBase58String(recepientAddr) | |
24 | + | [StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), 0, unit)] | |
12 | 25 | } | |
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | @Callable(i) | |
30 | + | func giveAway (age) = $Tuple2([ScriptTransfer(i.caller, age, unit), IntegerEntry(toBase58String(i.caller.bytes), age)], unit) | |
13 | 31 | ||
14 | 32 |
github/deemru/w8io/169f3d6 25.03 ms ◑