tx · 35qUx3vPoRmQvH4VBpw5xNGHEmdFgsY4FKkNiuqx4ioD 3N9yTGXanFbsgNb6JytjZVELKLY8yqfmiKP: -0.00100000 Waves 2024.09.24 00:02 [3296749] smart account 3N9yTGXanFbsgNb6JytjZVELKLY8yqfmiKP > SELF 0.00000000 Waves
{ "type": 13, "id": "35qUx3vPoRmQvH4VBpw5xNGHEmdFgsY4FKkNiuqx4ioD", "fee": 100000, "feeAssetId": null, "timestamp": 1727125349824, "version": 2, "chainId": 84, "sender": "3N9yTGXanFbsgNb6JytjZVELKLY8yqfmiKP", "senderPublicKey": "aYghTEAsnbjZGrxZsh3P5bRvez1eMaeNtCvb85MiDGQ", "proofs": [ "614ZwW6KttMdfwQNWZoKNuTx2gePB4z8RTyVnq48wxCZqbwy2ymEjQAaLpTb1buhYMiF58NYKYGtdJR5Skzcjc3F" ], "script": "base64:BgIPCAISBgoECAgEARIDCgEIBAEQd3JpdGVDb25zdFN0cmluZwIDa2V5BXZhbHVlAwkBASEBCQEJaXNEZWZpbmVkAQkAnQgCBQR0aGlzBQNrZXkJAQtTdHJpbmdFbnRyeQIFA2tleQUFdmFsdWUJAAIBCQCsAgICFWFscmVhZHkgaW5pdGlhbGl6ZWQ6IAUDa2V5ABJjb25maWdBZGRyZXNzU3RvcmUCBmNvbmZpZwAGY29uZmlnCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAKYIAQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCdCAIFBHRoaXMFEmNvbmZpZ0FkZHJlc3NTdG9yZQIhcmVzdWx0czogY29uZmlnIGFkZHJlc3Mgbm90IGZvdW5kAh9yZXN1bHRzOiBpbnZhbGlkIGNvbmZpZyBhZGRyZXNzAAZ2b3RpbmcJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkApggBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUGY29uZmlnAg9jb250cmFjdF92b3RpbmcCG3Jlc3VsdHM6IG5vIGNvbnRyYWN0X3ZvdGluZwIgcmVzdWx0czogaW52YWxpZCBjb250cmFjdF92b3RpbmcCAWkBCXNldFJlc3VsdAQHYWRkcmVzcwR0eElkB3N1Y2NlZWQPYnJvYWRjYXN0SGVpZ2h0AwkBAiE9AggFAWkGY2FsbGVyBQZ2b3RpbmcJAAIBAgZkZW5pZWQEBXN0b3JlCQCsAgIJAKwCAgkArAICAhlwcm9wb3NhbF9hbGxvd19icm9hZGNhc3RfBQdhZGRyZXNzAgFfBQR0eElkAwUHc3VjY2VlZAkAzAgCCQEMSW50ZWdlckVudHJ5AgUFc3RvcmUFD2Jyb2FkY2FzdEhlaWdodAUDbmlsCQDMCAIJAQtEZWxldGVFbnRyeQEFBXN0b3JlBQNuaWwBaQEEaW5pdAEEY29uZgkAzAgCCQEQd3JpdGVDb25zdFN0cmluZwIFEmNvbmZpZ0FkZHJlc3NTdG9yZQUEY29uZgUDbmlsAQJ0eAEGdmVyaWZ5AAQCaWQJANgEAQgFAnR4AmlkCQBnAgUGaGVpZ2h0CQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzCQCsAgIJAKwCAgkArAICAhlwcm9wb3NhbF9hbGxvd19icm9hZGNhc3RfCQClCAEFBHRoaXMCAV8FAmlk88+Ewg==", "height": 3296749, "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 | + | func a (b,c) = if (!(isDefined(getString(this, b)))) | |
5 | + | then StringEntry(b, c) | |
6 | + | else throw(("already initialized: " + b)) | |
7 | + | ||
8 | + | ||
9 | + | let d = "config" | |
10 | + | ||
11 | + | let e = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, d), "results: config address not found")), "results: invalid config address") | |
12 | + | ||
13 | + | let f = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(e, "contract_voting"), "results: no contract_voting")), "results: invalid contract_voting") | |
14 | + | ||
15 | + | @Callable(g) | |
16 | + | func setResult (h,i,j,k) = if ((g.caller != f)) | |
17 | + | then throw("denied") | |
18 | + | else { | |
19 | + | let l = ((("proposal_allow_broadcast_" + h) + "_") + i) | |
20 | + | if (j) | |
21 | + | then [IntegerEntry(l, k)] | |
22 | + | else [DeleteEntry(l)] | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | @Callable(g) | |
28 | + | func init (m) = [a(d, m)] | |
29 | + | ||
30 | + | ||
31 | + | @Verifier(n) | |
32 | + | func o () = { | |
33 | + | let p = toBase58String(n.id) | |
34 | + | (height >= getIntegerValue(this, ((("proposal_allow_broadcast_" + toString(this)) + "_") + p))) | |
35 | + | } | |
36 | + |
github/deemru/w8io/169f3d6 37.63 ms ◑