tx · 8LSkf6ZyTbPrQvhv8Dx5pnu24PmhhRbB3LLQk914w7SJ 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua: -0.01400000 Waves 2021.04.01 15:27 [1463375] smart account 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua > SELF 0.00000000 Waves
{ "type": 13, "id": "8LSkf6ZyTbPrQvhv8Dx5pnu24PmhhRbB3LLQk914w7SJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1617280070404, "version": 2, "chainId": 84, "sender": "3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua", "senderPublicKey": "CTyHhnVTxf16Z4CmGGneAK8WB5g2QyT4MB8kUn8vPPcu", "proofs": [ "5dmuLefnpiog9qm5HG6Y7Ms2AV4ZAUUEgo1MuSNmCFvXXZd9LympcQpGgizRQz6qTpAx1Y8Ax34VYUTjM9U99Swp" ], "script": "base64:AAIEAAAAAAAAAA4IAhIDCgEIEgMKAQgSAAAAAAIAAAAACXNlcGFyYXRvcgIAAAADX19fAAAAAAxrZXlQb29sc0xpc3QCAAAAClBPT0xTX0xJU1QAAAADAAAAAWkBAAAAB2FkZFBvb2wAAAABAAAAB2Fzc2V0SWQDCQEAAAACIT0AAAACBQAAAAR0aGlzCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAANQWNjZXNzIGRlbmllZAMJAAAAAAAAAgkBAAAACGNvbnRhaW5zAAAAAgUAAAAHYXNzZXRJZAUAAAAJc2VwYXJhdG9yBgkAAAIAAAABAgAAABlTZXBhcmF0b3IgZm91bmQgaW4gc3RyaW5nBAAAAAlhc3NldERhdGEJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkAA+wAAAABCQACWQAAAAEFAAAAB2Fzc2V0SWQCAAAADVVua25vd24gYXNzZXQEAAAACXBvb2xzTGlzdAkABLUAAAACCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAADGtleVBvb2xzTGlzdAI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FbnRyeQAAAAECAAAAClBPT0xTX0xJU1QJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAAARU1RBS0lOR19XSElURUxJU1QJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAAAaVE9LRU5fQ0lSQ1VMQVRJTkdfU1VQUExJRVMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAAAbVE9LRU5fVE9UQUxfSVNTVUVEX1NVUFBMSUVTCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAFlRPVEFMX0JVUk5FRF9DT05UUkFDVFMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAAAWVE9UQUxfSVNTVUVEX0NPTlRSQUNUUwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAABdUT1RBTF9PTkdPSU5HX0NPTlRSQUNUUwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAABdzaXplY29udHJhY3REZXNjcmlwdGlvbgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAAB5zaXpldG9CeXRlc2NvbnRyYWN0RGVzY3JpcHRpb24JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAAAEdGVzdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnSZ6Vn", "height": 1463375, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FeD28WiBv5pHQ3TpZnavaaLochRHMASqFnQ972Ai6hKM Next: 5KYorTZg5bxCd5joVYfTj1eAz3Qr31fAT9CPxotxC4eY Diff:
Old | New | Differences | |
---|---|---|---|
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | + | ||
34 | + | @Callable(i) | |
35 | + | func init () = [DeleteEntry("ASSET_BURNED_CONTRACTS_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("ASSET_ISSUED_CONTRACTS_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("ASSET_ONGOING_CONTRACTS_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("DAPP_NAME"), DeleteEntry("DAPP_URL"), DeleteEntry("FOKOFF_IssuedSContract_CHDDwQeTnZN9cVKczmpeirLx5jTC9KQz7kGNz3Hv8aF2"), DeleteEntry("FOKOFF_Nonce"), DeleteEntry("FOKOFF_SettingsAddress"), DeleteEntry("FOKOFF_StakingAmount_CHDDwQeTnZN9cVKczmpeirLx5jTC9KQz7kGNz3Hv8aF2"), DeleteEntry("LOCKED_AMOUNT_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("LOCKED_QUANTITY_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("NONCE"), DeleteEntry("NONCE_COUNT"), DeleteEntry("POOLS_LIST"), DeleteEntry("STAKING_WHITELIST"), DeleteEntry("TOKEN_CIRCULATING_SUPPLIES"), DeleteEntry("TOKEN_TOTAL_ISSUED_SUPPLIES"), DeleteEntry("TOTAL_BURNED_CONTRACTS"), DeleteEntry("TOTAL_ISSUED_CONTRACTS"), DeleteEntry("TOTAL_ONGOING_CONTRACTS"), DeleteEntry("sizecontractDescription"), DeleteEntry("sizetoBytescontractDescription"), DeleteEntry("test")] | |
36 | + | ||
37 | + | ||
33 | 38 | @Verifier(tx) | |
34 | 39 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
35 | 40 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "___" | |
5 | 5 | ||
6 | 6 | let keyPoolsList = "POOLS_LIST" | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func addPool (assetId) = if ((this != i.caller)) | |
10 | 10 | then throw("Access denied") | |
11 | 11 | else if ((contains(assetId, separator) == true)) | |
12 | 12 | then throw("Separator found in string") | |
13 | 13 | else { | |
14 | 14 | let assetData = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Unknown asset") | |
15 | 15 | let poolsList = split(valueOrElse(getString(this, keyPoolsList), ""), separator) | |
16 | 16 | let newPoolsList = makeString(assetId :: poolsList, separator) | |
17 | 17 | [StringEntry(keyPoolsList, assetData.name)] | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | ||
22 | 22 | @Callable(i) | |
23 | 23 | func removePool (assetId) = if ((this != i.caller)) | |
24 | 24 | then throw("Access denied") | |
25 | 25 | else { | |
26 | 26 | let poolsList = split(valueOrErrorMessage(getString(this, keyPoolsList), "No pools"), separator) | |
27 | 27 | let poolIndex = valueOrErrorMessage(indexOf(poolsList, assetId), "No pool for this asset") | |
28 | 28 | let newPoolsList = makeString(removeByIndex(poolsList, poolIndex), separator) | |
29 | 29 | [StringEntry(keyPoolsList, newPoolsList)] | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | + | ||
34 | + | @Callable(i) | |
35 | + | func init () = [DeleteEntry("ASSET_BURNED_CONTRACTS_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("ASSET_ISSUED_CONTRACTS_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("ASSET_ONGOING_CONTRACTS_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("DAPP_NAME"), DeleteEntry("DAPP_URL"), DeleteEntry("FOKOFF_IssuedSContract_CHDDwQeTnZN9cVKczmpeirLx5jTC9KQz7kGNz3Hv8aF2"), DeleteEntry("FOKOFF_Nonce"), DeleteEntry("FOKOFF_SettingsAddress"), DeleteEntry("FOKOFF_StakingAmount_CHDDwQeTnZN9cVKczmpeirLx5jTC9KQz7kGNz3Hv8aF2"), DeleteEntry("LOCKED_AMOUNT_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("LOCKED_QUANTITY_CyRPSWqSzLmynv4W4REGjqhEefZVg2ZobVbvTLi71UzN"), DeleteEntry("NONCE"), DeleteEntry("NONCE_COUNT"), DeleteEntry("POOLS_LIST"), DeleteEntry("STAKING_WHITELIST"), DeleteEntry("TOKEN_CIRCULATING_SUPPLIES"), DeleteEntry("TOKEN_TOTAL_ISSUED_SUPPLIES"), DeleteEntry("TOTAL_BURNED_CONTRACTS"), DeleteEntry("TOTAL_ISSUED_CONTRACTS"), DeleteEntry("TOTAL_ONGOING_CONTRACTS"), DeleteEntry("sizecontractDescription"), DeleteEntry("sizetoBytescontractDescription"), DeleteEntry("test")] | |
36 | + | ||
37 | + | ||
33 | 38 | @Verifier(tx) | |
34 | 39 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
35 | 40 |
github/deemru/w8io/169f3d6 44.42 ms ◑