tx · FnsZGczRfLRYUpQ5Pg9zjdd3JC9GNCVjWVP6Uq8Nk1b

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.04.18 14:06 [2539903] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "FnsZGczRfLRYUpQ5Pg9zjdd3JC9GNCVjWVP6Uq8Nk1b", "fee": 1000000, "feeAssetId": null, "timestamp": 1681815991243, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "2J1qsHWKapyAay5ytcGuHcvxPCNSm4pcEXnMoMt2xgT4cCz8MCgZAJBsBtG5JidALt6grrm6jZ4Xcj22iGmLgMKM" ], "script": "base64:BgIHCAISAwoBCBAAA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCCXRlc3QucmlkZQEIdGhyb3dFcnIBAXMJAAIBCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBGWtleUFjdGl2ZU1hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIQbWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleUN1cnJlbnRNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEWtleUN1cnJlbnRNYW5hZ2VyBQNuaWwFA1NFUAEaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIXcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlTZXROZXdNYW5hZ2VyVm90ZVByZWZpeAEQbWFuYWdlclB1YmxpY0tleQkAuQkCCQDMCAICBiVzJXMlcwkAzAgCAgpzZXRNYW5hZ2VyCQDMCAIFEG1hbmFnZXJQdWJsaWNLZ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mlsCQEIdGhyb3dFcnIBCQCsAgIFE2NhbGxlckFkZHJlc3NTdHJpbmcCEzogbm90IGluIEFkbWluIGxpc3QAiP69KQ==", "height": 2539903, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4RVQyaykC1p69SkvskeQPMW3Adudx1kM9scsdxQG6XsU Next: CKXTy7STEeMVoxfMEuiYmgDHtokpGxXWFtQuzRWWcqNK Diff:
OldNewDifferences
6868 }
6969
7070
71-@Callable(I)
72-func voteForNewManger (J) = {
73- let K = toBase58String(I.caller.bytes)
74- if (o(K))
71+func I (w,J) = (w + valueOrElse(getInteger(J), 0))
72+
73+
74+func K (x) = {
75+ let L = y(x)._1
76+ let B = L
77+ let C = size(B)
78+ let D = 0
79+ func E (F,G) = if ((G >= C))
80+ then F
81+ else I(F, B[G])
82+
83+ func H (F,G) = if ((G >= C))
84+ then F
85+ else throw("List size exceeds 10")
86+
87+ H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
88+ }
89+
90+
91+@Callable(M)
92+func voteForNewManger (N) = {
93+ let O = toBase58String(M.caller.bytes)
94+ if (o(O))
7595 then nil
76- else c((K + ": not in Admin list"))
96+ else c((O + ": not in Admin list"))
7797 }
7898
7999
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "test.ride"
77
88 func c (d) = throw(((b + ": ") + d))
99
1010
1111 func e () = makeString(["%s", "managerPublicKey"], a)
1212
1313
1414 func f () = makeString(["%s", "keyCurrentManager"], a)
1515
1616
1717 func g () = makeString(["%s", "pendingManagerPublicKey"], a)
1818
1919
2020 func h (i) = makeString(["%s%s%s", "setManager", i], a)
2121
2222
2323 func j (i,k) = makeString([h(i), k], a)
2424
2525
2626 func l (k,i) = valueOrElse(getInteger(j(k, i)), 0)
2727
2828
2929 func m () = makeString(["%s", "adminAddressList"], a)
3030
3131
3232 func n () = split(valueOrElse(getString(this, m()), ""), a)
3333
3434
3535 func o (p) = {
3636 let q = indexOf(n(), p)
3737 if ($isInstanceOf(q, "Int"))
3838 then {
3939 let r = q
4040 true
4141 }
4242 else false
4343 }
4444
4545
4646 func s (t,u) = {
4747 let v = t
4848 let w = v._1
4949 let x = v._2
5050 $Tuple2((w :+ makeString([x, u], a)), x)
5151 }
5252
5353
5454 func y (z) = {
5555 let A = m()
5656 let B = n()
5757 let C = size(B)
5858 let D = $Tuple2(nil, z)
5959 func E (F,G) = if ((G >= C))
6060 then F
6161 else s(F, B[G])
6262
6363 func H (F,G) = if ((G >= C))
6464 then F
6565 else throw("List size exceeds 10")
6666
6767 H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
6868 }
6969
7070
71-@Callable(I)
72-func voteForNewManger (J) = {
73- let K = toBase58String(I.caller.bytes)
74- if (o(K))
71+func I (w,J) = (w + valueOrElse(getInteger(J), 0))
72+
73+
74+func K (x) = {
75+ let L = y(x)._1
76+ let B = L
77+ let C = size(B)
78+ let D = 0
79+ func E (F,G) = if ((G >= C))
80+ then F
81+ else I(F, B[G])
82+
83+ func H (F,G) = if ((G >= C))
84+ then F
85+ else throw("List size exceeds 10")
86+
87+ H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
88+ }
89+
90+
91+@Callable(M)
92+func voteForNewManger (N) = {
93+ let O = toBase58String(M.caller.bytes)
94+ if (o(O))
7595 then nil
76- else c((K + ": not in Admin list"))
96+ else c((O + ": not in Admin list"))
7797 }
7898
7999

github/deemru/w8io/026f985 
25.35 ms