tx · 2oVz1zWkS44twHLxVoA5vh7GnVCVAGWe4D9ncLW95L9a

3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD:  -0.01000000 Waves

2023.07.30 13:21 [2688477] smart account 3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD > SELF 0.00000000 Waves

{ "type": 13, "id": "2oVz1zWkS44twHLxVoA5vh7GnVCVAGWe4D9ncLW95L9a", "fee": 1000000, "feeAssetId": null, "timestamp": 1690712482311, "version": 2, "chainId": 84, "sender": "3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD", "senderPublicKey": "G6PnkMn8MpXBkNwsQKMn1o1V7EKMgZyHCJRdFMQuouBC", "proofs": [ "5iW9bVRtsvLmYtMjxZ5tMqnNiCzaEeULLRjQL5Pdd64Fn2Pa9SQnVtcZkD18DvEr5EjVj6hZmLxr3UhKwNi2N5Ke" ], "script": "base64:BgIHCAISAwoBCAgAEGNvbnRyYWN0RmlsZU5hbWUCAnAxAA10b2tlbl9hZGRyZXNzCQEHQWRkcmVzcwEBGgFUUevquKc82yLj6POP0d8MGx4c9yM7LkYsAANTRVACASAACGthc3NldElkAgdBc3NldElEAQZrZXlNc2cACQC5CQIJAMwIAgICJXMJAMwIAgIp0J/QtdGA0LXQtNCw0L3QvdC+0LUg0YHQvtC+0LHRidC10L3QuNC1OiAFA25pbAUDU0VQAQprZXlBc3NldElEAAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SUQFA25pbAUDU0VQAQd3cmFwRXJyAQNtc2cJALkJAgkAzAgCBRBjb250cmFjdEZpbGVOYW1lCQDMCAICAToJAMwIAgUDbXNnBQNuaWwCAAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQFpAQdtZXNzYWdlAQNtc2cEBXdvcmRzCQC1CQIFA21zZwUDU0VQBAl3b3JkQ291bnQJAJADAQUFd29yZHMECmdldEFzc2V0SUQJARFAZXh0ck5hdGl2ZSgxMDUzKQIFDXRva2VuX2FkZHJlc3MFCGthc3NldElkBA90b0J5dGVzX2Fzc2V0SUQJAJsDAQUKZ2V0QXNzZXRJRAQHcGF5bWVudAkAkQMCCAUBaQhwYXltZW50cwAABA5wYXltZW50X2Ftb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQDAwkAAAIFDnBheW1lbnRfYW1vdW50BQl3b3JkQ291bnQJAAACBQ90b0J5dGVzX2Fzc2V0SUQICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAcJAMwIAgkBC1N0cmluZ0VudHJ5AgUIa2Fzc2V0SWQFCmdldEFzc2V0SUQJAMwIAgkBC1N0cmluZ0VudHJ5AgkBBmtleU1zZwAFA21zZwUDbmlsCQEIdGhyb3dFcnIBAnbQn9C70LDRgtC10LYg0LTQvtC70LbQtdC9INCx0YvRgtGMINGA0LDQstC10L0g0LrQvtC70LjRh9C10YHRgtCy0YMg0YHQu9C+0LIg0LIg0L/QtdGA0LXQtNCw0L3QvdC+0Lwg0YHQvtC+0LHRidC10L3QuNC4AQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQLsOug=", "height": 2688477, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BRL1G9DS9DZ8X2RUzwPjJchhgj8SWzug8jg5ip1Vsu12 Next: 2rewbW6DzYJ2m9TpMftnNiHdzay3kRDrHkuiiVbaMkQh Diff:
OldNewDifferences
55
66 let token_address = Address(base58'3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD')
77
8-let SEP = "__"
8+let SEP = " "
99
1010 let kassetId = "AssetID"
1111
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let contractFileName = "p1"
55
66 let token_address = Address(base58'3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD')
77
8-let SEP = "__"
8+let SEP = " "
99
1010 let kassetId = "AssetID"
1111
1212 func keyMsg () = makeString(["%s", "Переданное сообщение: "], SEP)
1313
1414
1515 func keyAssetID () = makeString(["%s", "assetID"], SEP)
1616
1717
1818 func wrapErr (msg) = makeString([contractFileName, ":", msg], "")
1919
2020
2121 func throwErr (msg) = throw(wrapErr(msg))
2222
2323
2424 @Callable(i)
2525 func message (msg) = {
2626 let words = split(msg, SEP)
2727 let wordCount = size(words)
2828 let getAssetID = getStringValue(token_address, kassetId)
2929 let toBytes_assetID = toBytes(getAssetID)
3030 let payment = i.payments[0]
3131 let payment_amount = i.payments[0].amount
3232 if (if ((payment_amount == wordCount))
3333 then (toBytes_assetID == i.payments[0].assetId)
3434 else false)
3535 then [StringEntry(kassetId, getAssetID), StringEntry(keyMsg(), msg)]
3636 else throwErr("Платеж должен быть равен количеству слов в переданном сообщении")
3737 }
3838
3939
4040 @Verifier(tx)
4141 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4242

github/deemru/w8io/169f3d6 
29.34 ms