tx · 21yrU9gEojno6nyXtMHKa59ozXHdx3qd7vyF2CDSHJFK 3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3: -0.01000000 Waves 2023.11.19 16:58 [2850352] smart account 3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3 > SELF 0.00000000 Waves
{ "type": 13, "id": "21yrU9gEojno6nyXtMHKa59ozXHdx3qd7vyF2CDSHJFK", "fee": 1000000, "feeAssetId": null, "timestamp": 1700402354428, "version": 2, "chainId": 84, "sender": "3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3", "senderPublicKey": "5TXMdPyvDNfxhdixe86fk7Ya8FScpZGfZ6XNawu8sYK4", "proofs": [ "2FmNgEQMsrk1uUSodeea5vThbLaqjQ19ahDpFsbL6f1oT1EtGzRHmh82x6UTrTHreMMKNLMSuXMgG5VaSSyDKrSp" ], "script": "base64:AAIFAAAAAAAAACIIAhIHCgUREQgIARIGCgQICAgIEgUKAwgBCBIGCgQBCAgIAAAAAQAAAAATdmlhYmxlQ2FsbGVyQWRkcmVzcwIAAAAjM043M2RjdjJqa1RvYmRROVRSTFNYNFB0dnFIYmpzaUt4aVAAAAAEAAAAAWkBAAAADHJlZ2lzdGVyRGF0YQAAAAUAAAALY2xpZW50SW5wdXQAAAANb3Bwb25lbnRJbnB1dAAAAAJpZAAAAApvcHBBZGRyZXNzAAAAB2xndENvbmQEAAAABmNsaWVudAkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAABHR4SWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAJpZAUAAAAEdHhJZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEdHhJZAIAAAABXwUAAAAGY2xpZW50AgAAAARfYWdlCQABkQAAAAIFAAAAC2NsaWVudElucHV0AAAAAAAAAAAACQAETAAAAAIJA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saWNLZXn3YzhE", "height": 2850352, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BJ8XMx67DMxUxAWV8mMvRGcbSvKPYoL81BMcPP8vRria Next: G9e3ZfJKs3pNpcezCchX2r46KcsgZKWiKs7UutUrXJT4 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "3N73dcv2jkTobdQ9TRLSX4PtvqHbjsiKxiP" | |
4 | 5 | ||
5 | - | ||
6 | - | @Callable(a) | |
7 | - | func registerData (b,c,d,e,f) = { | |
8 | - | let g = toString(a.caller) | |
9 | - | let h = toBase58String(a.transactionId) | |
10 | - | [StringEntry(d, h), IntegerEntry((((h + "_") + g) + "_age"), b[0]), IntegerEntry((((h + "_") + g) + "_sex"), b[1]), IntegerEntry((((h + "_") + g) + "_damage"), b[2]), IntegerEntry((((h + "_") + g) + "_fac1"), b[3]), IntegerEntry((((h + "_") + g) + "_fac2"), b[4]), IntegerEntry((((h + "_") + g) + "_fac3"), b[5]), IntegerEntry((((h + "_") + g) + "_fac4"), b[6]), IntegerEntry((((h + "_") + g) + "_vio1"), b[7]), IntegerEntry((((h + "_") + g) + "_vio2"), b[8]), IntegerEntry((((h + "_") + g) + "_vio3"), b[9]), IntegerEntry((((h + "_") + g) + "_vio4"), b[10]), IntegerEntry((((h + "_") + e) + "_age"), c[0]), IntegerEntry((((h + "_") + e) + "_sex"), c[1]), IntegerEntry((((h + "_") + e) + "_damage"), c[2]), IntegerEntry((((h + "_") + e) + "_fac1"), c[3]), IntegerEntry((((h + "_") + e) + "_fac2"), c[4]), IntegerEntry((((h + "_") + e) + "_fac3"), c[5]), IntegerEntry((((h + "_") + e) + "_fac4"), c[6]), IntegerEntry((((h + "_") + e) + "_vio1"), c[7]), IntegerEntry((((h + "_") + e) + "_vio2"), c[8]), IntegerEntry((((h + "_") + e) + "_vio3"), c[9]), IntegerEntry((((h + "_") + e) + "_vio4"), c[10]), IntegerEntry((h + "_lgt"), f)] | |
6 | + | @Callable(b) | |
7 | + | func registerData (c,d,e,f,g) = { | |
8 | + | let h = toString(b.caller) | |
9 | + | let i = toBase58String(b.transactionId) | |
10 | + | [StringEntry(e, i), IntegerEntry((((i + "_") + h) + "_age"), c[0]), IntegerEntry((((i + "_") + h) + "_sex"), c[1]), IntegerEntry((((i + "_") + h) + "_damage"), c[2]), IntegerEntry((((i + "_") + h) + "_fac1"), c[3]), IntegerEntry((((i + "_") + h) + "_fac2"), c[4]), IntegerEntry((((i + "_") + h) + "_fac3"), c[5]), IntegerEntry((((i + "_") + h) + "_fac4"), c[6]), IntegerEntry((((i + "_") + h) + "_vio1"), c[7]), IntegerEntry((((i + "_") + h) + "_vio2"), c[8]), IntegerEntry((((i + "_") + h) + "_vio3"), c[9]), IntegerEntry((((i + "_") + h) + "_vio4"), c[10]), IntegerEntry((((i + "_") + f) + "_age"), d[0]), IntegerEntry((((i + "_") + f) + "_sex"), d[1]), IntegerEntry((((i + "_") + f) + "_damage"), d[2]), IntegerEntry((((i + "_") + f) + "_fac1"), d[3]), IntegerEntry((((i + "_") + f) + "_fac2"), d[4]), IntegerEntry((((i + "_") + f) + "_fac3"), d[5]), IntegerEntry((((i + "_") + f) + "_fac4"), d[6]), IntegerEntry((((i + "_") + f) + "_vio1"), d[7]), IntegerEntry((((i + "_") + f) + "_vio2"), d[8]), IntegerEntry((((i + "_") + f) + "_vio3"), d[9]), IntegerEntry((((i + "_") + f) + "_vio4"), d[10]), IntegerEntry((i + "_lgt"), g)] | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | - | @Callable( | |
16 | - | func evaluatedData ( | |
17 | - | let | |
18 | - | [StringEntry( | |
15 | + | @Callable(b) | |
16 | + | func evaluatedData (j,k,l,m) = { | |
17 | + | let i = toBase58String(b.transactionId) | |
18 | + | [StringEntry(j, i), StringEntry((i + "_guilty"), m)] | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | - | @Verifier(m) | |
23 | - | func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey) | |
22 | + | ||
23 | + | @Callable(b) | |
24 | + | func requestPayout (n,o,e) = { | |
25 | + | let h = toString(b.caller) | |
26 | + | let i = toBase58String(b.transactionId) | |
27 | + | [StringEntry((e + "_request_payout"), i), IntegerEntry((i + "_amount"), o), StringEntry((e + "_prediction_id"), n)] | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | @Callable(b) | |
33 | + | func PayoutUser (o,p,e,q) = { | |
34 | + | let r = toString(b.caller) | |
35 | + | let i = toBase58String(b.transactionId) | |
36 | + | let s = toBytes(q) | |
37 | + | if ((p == "error")) | |
38 | + | then throw("There is an error with the data") | |
39 | + | else if ((r != a)) | |
40 | + | then throw("You are not allowed to authorize payouts") | |
41 | + | else [StringEntry((e + "_payout"), i), IntegerEntry((i + "_amount"), o), ScriptTransfer(Address(s), 1000000, unit)] | |
42 | + | } | |
43 | + | ||
44 | + | ||
45 | + | @Verifier(t) | |
46 | + | func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) | |
24 | 47 |
github/deemru/w8io/026f985 26.84 ms ◑