tx · H6oRCa1f4g9FNwMekmVMi7GwJJKWu9keasgyhNTwybRL 3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD: -0.01000000 Waves 2023.07.30 14:46 [2688558] smart account 3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD > SELF 0.00000000 Waves
{ "type": 13, "id": "H6oRCa1f4g9FNwMekmVMi7GwJJKWu9keasgyhNTwybRL", "fee": 1000000, "feeAssetId": null, "timestamp": 1690717644324, "version": 2, "chainId": 84, "sender": "3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD", "senderPublicKey": "G6PnkMn8MpXBkNwsQKMn1o1V7EKMgZyHCJRdFMQuouBC", "proofs": [ "5WXntXze5LTNeSWBnQav5pMyQDvf65dWz6k3o182WWQ76mCGS9BfagVfHDsan8ts6zomyp2FesjTse49pxESHaJY" ], "script": "base64:BgIHCAISAwoBCAgAEGNvbnRyYWN0RmlsZU5hbWUCAnAxAA10b2tlbl9hZGRyZXNzCQEHQWRkcmVzcwEBGgFUUevquKc82yLj6POP0d8MGx4c9yM7LkYsAANTRVACASAACGthc3NldElkAgdBc3NldElEAQZrZXlNc2cACQC5CQIJAMwIAgICJXMJAMwIAgIp0J/QtdGA0LXQtNCw0L3QvdC+0LUg0YHQvtC+0LHRidC10L3QuNC1OiAFA25pbAUDU0VQAQprZXlBc3NldElEAAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SUQFA25pbAUDU0VQAQd3cmFwRXJyAQNtc2cJALkJAgkAzAgCBRBjb250cmFjdEZpbGVOYW1lCQDMCAICAToJAMwIAgUDbXNnBQNuaWwCAAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQFpAQdtZXNzYWdlAQNtc2cEBXdvcmRzCQC1CQIFA21zZwUDU0VQBAl3b3JkQ291bnQJAJADAQUFd29yZHMEB3BheW1lbnQJAJEDAggFAWkIcGF5bWVudHMAAAQOcGF5bWVudF9hbW91bnQICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50AwkBAiE9AgUOcGF5bWVudF9hbW91bnQFCXdvcmRDb3VudAkBCHRocm93RXJyAQIy0JrQvtC7LdCy0L4g0YHQu9C+0LIgIT0g0LrQvtC7LdCy0YMg0YLQvtC60LXQvdC+0LIDCQAAAgEhETjui5BwgM7t2anpXm9A2pY3WzHpaxK8FWRPhw4Bo1GXCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQJAQh0aHJvd0VycgECLtCf0LvQsNGC0LXQtiDQtNC+0LvQttC10L0g0LHRi9GC0Ywg0LIgUFJBQ1RJQ0UJAMwIAgkBC1N0cmluZ0VudHJ5AgkBBmtleU1zZwAFA21zZwUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRwFSWg=", "height": 2688558, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DZvUv44d7MepV29V7XMH89rPWn4vCDLiR8axb57WeUXj Next: 9NpQXs6VfKqupPzdF43QYExgBqCdnFMLkmbqNd5s1okb Diff:
Old | New | Differences | |
---|---|---|---|
31 | 31 | then throwErr("Кол-во слов != кол-ву токенов") | |
32 | 32 | else if ((base58'67jd6w7KdYT8s2sPCfkP7B3jMoXXeSnM9UjwtvBPp19yQ' == i.payments[0].assetId)) | |
33 | 33 | then throwErr("Платеж должен быть в PRACTICE") | |
34 | - | else [StringEntry( | |
34 | + | else [StringEntry(keyMsg(), msg)] | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let contractFileName = "p1" | |
5 | 5 | ||
6 | 6 | let token_address = Address(base58'3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD') | |
7 | 7 | ||
8 | 8 | let SEP = " " | |
9 | 9 | ||
10 | 10 | let kassetId = "AssetID" | |
11 | 11 | ||
12 | 12 | func keyMsg () = makeString(["%s", "Переданное сообщение: "], SEP) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func keyAssetID () = makeString(["%s", "assetID"], SEP) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func wrapErr (msg) = makeString([contractFileName, ":", msg], "") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func throwErr (msg) = throw(wrapErr(msg)) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | 25 | func message (msg) = { | |
26 | 26 | let words = split(msg, SEP) | |
27 | 27 | let wordCount = size(words) | |
28 | 28 | let payment = i.payments[0] | |
29 | 29 | let payment_amount = i.payments[0].amount | |
30 | 30 | if ((payment_amount != wordCount)) | |
31 | 31 | then throwErr("Кол-во слов != кол-ву токенов") | |
32 | 32 | else if ((base58'67jd6w7KdYT8s2sPCfkP7B3jMoXXeSnM9UjwtvBPp19yQ' == i.payments[0].assetId)) | |
33 | 33 | then throwErr("Платеж должен быть в PRACTICE") | |
34 | - | else [StringEntry( | |
34 | + | else [StringEntry(keyMsg(), msg)] | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Verifier(tx) | |
39 | 39 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
40 | 40 |
github/deemru/w8io/026f985 38.40 ms ◑