tx · EXzUheFWnL8SopRFx29XiqEfy5YWeJ73AR8HJ6GjAqMV

3MsmgWBZKrHwbVbSQiqmStRiFyg5hkfxxa2:  -0.00300000 Waves

2022.08.17 11:20 [2188222] smart account 3MsmgWBZKrHwbVbSQiqmStRiFyg5hkfxxa2 > SELF 0.00000000 Waves

{ "type": 13, "id": "EXzUheFWnL8SopRFx29XiqEfy5YWeJ73AR8HJ6GjAqMV", "fee": 300000, "feeAssetId": null, "timestamp": 1660724359821, "version": 2, "chainId": 84, "sender": "3MsmgWBZKrHwbVbSQiqmStRiFyg5hkfxxa2", "senderPublicKey": "9TejtrnvgE7MvzMR4DcLbf3dqUzovyt4BKEmCsqha2z", "proofs": [ "3BmDBNZxwLACGx7NKWHXgQac4s8uZmtH8wBPjkJDff8hHXRttFowKafZxGafC4D8KL8J9WyrHGCovMDmsfMGkJsm" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAACQAAAAAJaGVpZ2h0RW5kCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwIAAAAKaGVpZ2h0X2VuZAIAAAAkaGVpZ2h0X2VuZCBpcyBub3Qgc3BlY2lmaWVkIGluIHN0YXRlAAAAAAxhc3NldHNTdHJpbmcJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAABBhdmFpbGFibGVfYXNzZXRzAgAAACVBc3NldHMgbGlzdCBpcyBub3Qgc3BlY2lmaWVkIGluIHN0YXRlAQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBA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XJLRVkFAAAAEm5ld1VzZXJWb3RpbmdQb3dlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABFwcmV2VXNlckNob2ljZUtFWQUAAAANbmV3VXNlckNob2ljZQUAAAADbmlsAAAAAGbnIx0=", "height": 2188222, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8DhSBHjrM1Ce9718nfVUbWj3hWfGMS51SQ5VoBUpZVHT Next: 313i8e9KiMVPaArpQ9HjvgdzfDhzDqFi9zEKs52w8pJh Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrErrorMessage(getInteger(this, "height_end"), "height_end is not specified in state")
55
66 let b = valueOrErrorMessage(getString(this, "available_assets"), "Assets list is not specified in state")
77
88 func c (d) = {
99 let e = d
1010 if ($isInstanceOf(e, "List[Any]"))
1111 then {
1212 let f = e
1313 f
1414 }
1515 else throw("fail to cast into List[Any]")
1616 }
1717
1818
1919 func g (d) = {
2020 let e = d
2121 if ($isInstanceOf(e, "Int"))
2222 then {
2323 let h = e
2424 h
2525 }
2626 else throw("fail to cast into Int")
2727 }
2828
2929
3030 let i = Address(base58'3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J')
3131
3232 let j = split(b, ",")
3333
3434 func k (l) = makeString(["balance", toString(l)], "_")
3535
3636
3737 func m (l,n) = makeString(["vote", l, n], "_")
3838
3939
4040 func o (l) = makeString(["last_vote", l], "_")
4141
4242
4343 @Callable(p)
4444 func castVote (q) = {
4545 let r = toString(p.caller)
4646 if ((containsElement(j, q) == false))
4747 then throw("Incorrect vote!")
4848 else if ((height >= a))
4949 then throw("vote finished")
5050 else {
5151 let s = c(invoke(i, "nsbtStakingSYSREADONLY", [r, 0], nil))
5252 let t = g(s[0])
5353 let u = makeString(["vote", q], "_")
5454 let v = valueOrElse(getInteger(this, u), 0)
5555 let w = m(r, q)
5656 let x = o(r)
5757 let y = valueOrElse(getString(this, x), q)
5858 let z = m(r, y)
5959 let A = valueOrElse(getInteger(this, z), 0)
6060 let B = makeString(["vote", y], "_")
6161 let C = valueOrElse(getInteger(this, B), 0)
6262 let D = if ((y != q))
6363 then [IntegerEntry(z, 0), IntegerEntry(B, (C - A)), IntegerEntry(u, (v + t))]
6464 else [IntegerEntry(u, ((v + t) - A))]
6565 (D ++ [IntegerEntry(w, t), StringEntry(x, q)])
6666 }
6767 }
6868
6969

github/deemru/w8io/026f985 
24.58 ms