tx · CAwvpc4nKLND1DSMzkNcaDhVQpVe1ijtyqTx2fVdDexm

3MsEYrugWRGMvdKBKChVCjg2qoKea8Ko9vY:  -0.00300000 Waves

2022.07.07 13:35 [2129155] smart account 3MsEYrugWRGMvdKBKChVCjg2qoKea8Ko9vY > SELF 0.00000000 Waves

{ "type": 13, "id": "CAwvpc4nKLND1DSMzkNcaDhVQpVe1ijtyqTx2fVdDexm", "fee": 300000, "feeAssetId": null, "timestamp": 1657190176796, "version": 2, "chainId": 84, "sender": "3MsEYrugWRGMvdKBKChVCjg2qoKea8Ko9vY", "senderPublicKey": "A8DvbFTEjyHFvpK57CmHu6QKczzymTB5sgqq8xxjNsXG", "proofs": [ "5ZarYsp8No4VJoaMFjo4UimTpnFdEpkzLGL25CjQABYPyGMfzMFPf9Gs2J9Kujhj8arxjynNEWsfnHnwFqHyMc7S" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAACAAAAAADU0VQAgAAAAJfXwAAAAAFTVVMVDgAAAAAAAX14QABAAAAFWtleUJlbmVmaWNpYXJ5QWRkcmVzcwAAAAACAAAAHSVzJXNfX2NmZ19fYmVuZWZpY2lhcnlBZGRyZXNzAQAAABZrZXlDb25zdHJ1Y3RvckludGVydmFsAAAAAAIAAAAhJXMlc19fY2ZnX19ub2RlQ29udHJ1Y3RvckludGVydmFsAQAAABNrZXlMYXN0VXBkYXRlSGVpZ2h0AAAAAAIAAAAVJXNfX2xhc3RVcGRhdGVkSGVpZ2h0AQAAABNrZXlTY3JpcHRVcGRhdGVIYXNoAAAAAAIAAAAdJXMlc19fbWluZXJfX3NjcmlwdFVwZGF0ZUhhc2gBAAAAGGtleVNjcmlwdFVwZGF0ZUFsbG93YW5jZQAAAAACAAAAIiVzJXNfX21pbmVyX19zY3JpcHRVcGRhdGVBbGxvd2FuY2UAAAAADG5vZGVSZWdpc3RyeQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01zVTkzNmJyaXFRMlhaTXBraF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N0eAAAAANmZWUJAABpAAAAAgkAAGgAAAACAAAAAAAAAAACBQAAAAVNVUxUOAAAAAAAAAAACgkAAAIAAAABCQABLAAAAAICAAAAP1NldFNjcmlwdFRyYW5zYWN0aW9uIC0gZmVlIGFtb3VudCBpcyBncmVhdGVyIHRoYW4gbWF4IGFsbG93ZWQ6IAkAAaQAAAABCAUAAAADc3R4AAAAA2ZlZQQAAAALc2NyaXB0Qnl0ZXMJAQAAAAV2YWx1ZQAAAAEIBQAAAANzdHgAAAAGc2NyaXB0BAAAAARoYXNoCQACWAAAAAEJAArxAAAAAQUAAAALc2NyaXB0Qnl0ZXMEAAAAC2FsbG93ZWRIYXNoCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAADG5vZGVSZWdpc3RyeQkBAAAAE2tleVNjcmlwdFVwZGF0ZUhhc2gAAAAAAgAAAAAEAAAAC3ZhbGlkQnlIYXNoAwkBAAAAAiE9AAAAAgUAAAALYWxsb3dlZEhhc2gCAAAAAAkAAAAAAAACBQAAAAthbGxvd2VkSGFzaAUAAAAEaGFzaAcEAAAADWFsbG93VG9VcGRhdGUJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAMbm9kZVJlZ2lzdHJ5CQEAAAAYa2V5U2NyaXB0VXBkYXRlQWxsb3dhbmNlAAAAAAcDBQAAAA1hbGxvd1RvVXBkYXRlBQAAAAt2YWxpZEJ5SGFzaAcJAAACAAAAAQIAAAALbm90IGFsbG93ZWQLxE0X", "height": 2129155, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CSBoRczciNow8QSq5YFuNwKweECUXb7joYJX41uGJvky Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 100000000
77
88 func c () = "%s%s__cfg__beneficiaryAddress"
99
1010
1111 func d () = "%s%s__cfg__nodeContructorInterval"
1212
1313
1414 func e () = "%s__lastUpdatedHeight"
1515
1616
1717 func f () = "%s%s__miner__scriptUpdateHash"
1818
1919
2020 func g () = "%s%s__miner__scriptUpdateAllowance"
2121
2222
2323 let h = addressFromStringValue("3MsU936briqQ2XZMpkhWdrV8EsNwm5iCuRY")
2424
2525 @Callable(i)
2626 func constructor (j) = if ((this != i.caller))
2727 then throw("permissions denied")
2828 else {
2929 let k = addressFromStringValue(j)
3030 if ((k == this))
3131 then throw("mining node address is not allowed as a beneficiaryAddress")
3232 else [StringEntry(c(), toString(k)), IntegerEntry(e(), height)]
3333 }
3434
3535
3636 @Verifier(l)
3737 func m () = {
3838 let n = l
3939 if ($isInstanceOf(n, "InvokeScriptTransaction"))
4040 then {
4141 let o = n
4242 if ((o.fee > ((5 * b) / 1000)))
4343 then throw(("InvokeScriptTransaction - fee amount is greater than max allowed: " + toString(o.fee)))
4444 else if (isDefined(o.feeAssetId))
4545 then throw("InvokeScriptTransaction - only WAVES is allowed as feeAssetId")
4646 else if ((addressFromRecipient(o.dApp) == h))
4747 then true
4848 else if ((addressFromRecipient(o.dApp) == this))
4949 then {
5050 let p = valueOrElse(getInteger(this, e()), 0)
5151 let q = valueOrElse(getInteger(h, d()), 43200)
5252 if ((q > (height - p)))
5353 then throw("InvokeScriptTransaction - impossible to call constructor very often")
5454 else sigVerify_32Kb(l.bodyBytes, l.proofs[0], l.senderPublicKey)
5555 }
5656 else throw("InvokeScriptTransaction - invalid dapp address")
5757 }
5858 else if ($isInstanceOf(n, "SetScriptTransaction"))
5959 then {
6060 let r = n
6161 if ((r.fee > ((2 * b) / 10)))
6262 then throw(("SetScriptTransaction - fee amount is greater than max allowed: " + toString(r.fee)))
6363 else {
6464 let s = value(r.script)
6565 let t = toBase58String(blake2b256_32Kb(s))
6666 let u = valueOrElse(getString(h, f()), "")
6767 let v = if ((u != ""))
6868 then (u == t)
6969 else false
7070 let w = valueOrElse(getBoolean(h, g()), false)
7171 if (w)
7272 then v
7373 else false
7474 }
7575 }
7676 else throw("not allowed")
7777 }
7878

github/deemru/w8io/169f3d6 
23.64 ms