tx · 5cGy6dLsfzKVT3fwzPY7JS5nwhc3DPMJBnh8x4dT8ErC

3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua:  -0.01400000 Waves

2021.03.17 13:11 [1441582] smart account 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua > SELF 0.00000000 Waves

{ "type": 13, "id": "5cGy6dLsfzKVT3fwzPY7JS5nwhc3DPMJBnh8x4dT8ErC", "fee": 1400000, "feeAssetId": null, "timestamp": 1615975874763, "version": 2, "chainId": 84, "sender": "3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua", "senderPublicKey": "CTyHhnVTxf16Z4CmGGneAK8WB5g2QyT4MB8kUn8vPPcu", "proofs": [ "52EkK4fH2nTe4CXCkuQdCL5KzJ6K6YDTcYYkYwFwdSw4vikD9xY46ZbiAvLq2rCpmRWop8UjGrGFJqrWMfwZoQyq" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAEAAAAAAlzZXBhcmF0b3ICAAAAA19fXwAAAAARa2V5TG9ja2FibGVBc3NldHMCAAAAE2RBcHBfTG9ja2FibGVBc3NldHMBAAAADWdldEFzc2V0SW5mb3MAAAABAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAJAAPsAAAAAQUAAAAHYXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFQXNzZXQEAAAAB2lzQXNzZXQFAAAAByRtYXRjaDAFAAAAB2lzQXNzZXQJAAACAAAAAQIAAAAVTm90IGFuIGV4aXN0aW5nIGFzc2V0AQAAABFnZXRMb2NrYWJsZUFzc2V0cwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAARa2V5TG9ja2FibGVBc3NldHMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAADc3RyBQAAAAckbWF0Y2gwCQAEtQAAAAIFAAAAA3N0cgUAAAAJc2VwYXJhdG9yCQAAAgAAAAECAAAAG01pc3NpbmcgJ2tleUxvY2thYmxlQXNzZXRzJwAAAAIAAAABaQEAAAAEaW5pdAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAARa2V5TG9ja2FibGVBc3NldHMCAAAAAAUAAAADbmlsAAAAAWkBAAAAEm9wQWRkTG9ja2FibGVBc3NldAAAAAEAAAAKYXNzZXRJZFN0cgMJAQAAAAIhPQAAAAIFAAAABHRoaXMIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAA1BY2Nlc3MgZGVuaWVkBAAAAAdhc3NldElkCQACWQAAAAEFAAAACmFzc2V0SWRTdHIEAAAACmFzc2V0SW5mb3MJAQAAAA1nZXRBc3NldEluZm9zAAAAAQUAAAAHYXNzZXRJZAQAAAAObG9ja2FibGVBc3NldHMJAQAAABFnZXRMb2NrYWJsZUFzc2V0cwAAAAADCQAAAAAAAAIJAQAAAA9jb250YWluc0VsZW1lbnQAAAACBQAAAA5sb2NrYWJsZUFzc2V0cwUAAAAKYXNzZXRJZFN0cgYJAAACAAAAAQIAAAAWQXNzZXQgYWxyZWFkeSBsb2NrYWJsZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABFrZXlMb2NrYWJsZUFzc2V0cwkABLkAAAACCQAETAAAAAIFAAAACmFzc2V0SWRTdHIFAAAADmxvY2thYmxlQXNzZXRzBQAAAAlzZXBhcmF0b3IFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5WDK23Q==", "height": 1441582, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJ4QGsjfitAkeu2y69JUDyzH73787obAtH4nagBcHHUJ Next: EQo1RE32saFNforZA4FDPBjNY1VsVtUGMZxPV1Lgt9LD Diff:
OldNewDifferences
1313 }
1414
1515
16-func getLockableAssets () = split(getStringValue(this, keyLockableAssets), separator)
16+func getLockableAssets () = match getString(this, keyLockableAssets) {
17+ case str: String =>
18+ split(str, separator)
19+ case _ =>
20+ throw("Missing 'keyLockableAssets'")
21+}
1722
1823
1924 @Callable(i)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "___"
55
66 let keyLockableAssets = "dApp_LockableAssets"
77
88 func getAssetInfos (assetId) = match assetInfo(assetId) {
99 case isAsset: Asset =>
1010 isAsset
1111 case _ =>
1212 throw("Not an existing asset")
1313 }
1414
1515
16-func getLockableAssets () = split(getStringValue(this, keyLockableAssets), separator)
16+func getLockableAssets () = match getString(this, keyLockableAssets) {
17+ case str: String =>
18+ split(str, separator)
19+ case _ =>
20+ throw("Missing 'keyLockableAssets'")
21+}
1722
1823
1924 @Callable(i)
2025 func init () = [StringEntry("keyLockableAssets", "")]
2126
2227
2328
2429 @Callable(i)
2530 func opAddLockableAsset (assetIdStr) = if ((this != i.caller))
2631 then throw("Access denied")
2732 else {
2833 let assetId = fromBase58String(assetIdStr)
2934 let assetInfos = getAssetInfos(assetId)
3035 let lockableAssets = getLockableAssets()
3136 if ((containsElement(lockableAssets, assetIdStr) == true))
3237 then throw("Asset already lockable")
3338 else [StringEntry(keyLockableAssets, makeString(assetIdStr :: lockableAssets, separator))]
3439 }
3540
3641
3742 @Verifier(tx)
3843 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3944

github/deemru/w8io/169f3d6 
33.57 ms