tx · CxgUKFM6S9NtitXyL3etQnGHcRmafhyKe8YFm6ZAamLT 3N2XQFM4qkFgyveR3Jw6ipGMenhXWqvSzin: -0.05000000 Waves 2023.10.06 13:21 [2786633] smart account 3N2XQFM4qkFgyveR3Jw6ipGMenhXWqvSzin > SELF 0.00000000 Waves
{ "type": 13, "id": "CxgUKFM6S9NtitXyL3etQnGHcRmafhyKe8YFm6ZAamLT", "fee": 5000000, "feeAssetId": null, "timestamp": 1696587694465, "version": 1, "sender": "3N2XQFM4qkFgyveR3Jw6ipGMenhXWqvSzin", "senderPublicKey": "8G6QoxxTMbrHohbMTFrCyXp8BNEXTWX11du5i8EAyCF7", "proofs": [ "2ohKTEb8vVto3ZJPWoMux3NQermqvnRHB6gG77DqmLMCa8garfDfLeuzpbvjeNvz2sQsnwZokzgVmxGyBX6ekVJQ" ], "script": "base64:BgIHCAISAwoBCAYAEmNvbmZpZ0FkZHJlc3NTdG9yZQIGY29uZmlnAA1jb25maWdBZGRyZXNzCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAKYIAQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCdCAIFBHRoaXMFEmNvbmZpZ0FkZHJlc3NTdG9yZQIfY2hpbGQ6IGNvbmZpZyBhZGRyZXNzIG5vdCBmb3VuZAIWaW52YWxpZCBjb25maWcgYWRkcmVzcwAGSEVJR0hUBQZoZWlnaHQBEHdyaXRlQ29uc3RTdHJpbmcCA2tleQV2YWx1ZQMJAQEhAQkBCWlzRGVmaW5lZAEJAJ0IAgUEdGhpcwUDa2V5CQELU3RyaW5nRW50cnkCBQNrZXkFBXZhbHVlCQACAQkArAICAhVhbHJlYWR5IGluaXRpYWxpemVkOiAFA2tleQEOb3BBbGxvd2VkU3RvcmUBAm9wCQCsAgIJAKwCAgIDb3BfBQJvcAIIX2FsbG93ZWQADXZvdGluZ1Jlc3VsdHMJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkApggBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUNY29uZmlnQWRkcmVzcwIWY29udHJhY3Rfdm90aW5nX3Jlc3VsdAIZbm8gY29udHJhY3Rfdm90aW5nX3Jlc3VsdAIeaW52YWxpZCBjb250cmFjdF92b3RpbmdfcmVzdWx0AQFpAQRpbml0AQRjb25mCQDMCAIJARB3cml0ZUNvbnN0U3RyaW5nAgUSY29uZmlnQWRkcmVzc1N0b3JlBQRjb25mBQNuaWwBAnR4AQZ2ZXJpZnkABAdlbmFibGVkCQELdmFsdWVPckVsc2UCCQCbCAIFDWNvbmZpZ0FkZHJlc3MJAQ5vcEFsbG93ZWRTdG9yZQECGWNoaWxkX2dvdmVybmFuY2VfYXBwbHlfdHgGAwkBASEBBQdlbmFibGVkCQACAQIrdHggYXBwbGljYXRpb24gdGhyb3cgZ292ZXJuYW5jZSBub3QgZW5hYmxlZAQCaWQJANgEAQgFAnR4AmlkCQBnAgUGSEVJR0hUCQERQGV4dHJOYXRpdmUoMTA1MCkCBQ12b3RpbmdSZXN1bHRzCQCsAgIJAKwCAgkArAICAhlwcm9wb3NhbF9hbGxvd19icm9hZGNhc3RfCQClCAEFBHRoaXMCAV8FAmlkghj2bg==", "chainId": 84, "height": 2786633, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let configAddressStore = "config" | |
5 | + | ||
6 | + | let configAddress = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, configAddressStore), "child: config address not found")), "invalid config address") | |
7 | + | ||
8 | + | let HEIGHT = height | |
9 | + | ||
10 | + | func writeConstString (key,value) = if (!(isDefined(getString(this, key)))) | |
11 | + | then StringEntry(key, value) | |
12 | + | else throw(("already initialized: " + key)) | |
13 | + | ||
14 | + | ||
15 | + | func opAllowedStore (op) = (("op_" + op) + "_allowed") | |
16 | + | ||
17 | + | ||
18 | + | let votingResults = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(configAddress, "contract_voting_result"), "no contract_voting_result")), "invalid contract_voting_result") | |
19 | + | ||
20 | + | @Callable(i) | |
21 | + | func init (conf) = [writeConstString(configAddressStore, conf)] | |
22 | + | ||
23 | + | ||
24 | + | @Verifier(tx) | |
25 | + | func verify () = { | |
26 | + | let enabled = valueOrElse(getBoolean(configAddress, opAllowedStore("child_governance_apply_tx")), true) | |
27 | + | if (!(enabled)) | |
28 | + | then throw("tx application throw governance not enabled") | |
29 | + | else { | |
30 | + | let id = toBase58String(tx.id) | |
31 | + | (HEIGHT >= getIntegerValue(votingResults, ((("proposal_allow_broadcast_" + toString(this)) + "_") + id))) | |
32 | + | } | |
33 | + | } | |
34 | + |
github/deemru/w8io/169f3d6 16.88 ms ◑