tx · Y3doXeR5u2zALiBoPsWi4BgY2HeAKnzswisL26VA49A 3MqqcLhm76wiWz5KLfLDST8MXPufuunLUMN: -0.01000000 Waves 2024.09.17 11:12 [3287412] smart account 3MqqcLhm76wiWz5KLfLDST8MXPufuunLUMN > SELF 0.00000000 Waves
{ "type": 13, "id": "Y3doXeR5u2zALiBoPsWi4BgY2HeAKnzswisL26VA49A", "fee": 1000000, "feeAssetId": null, "timestamp": 1726560734493, "version": 2, "chainId": 84, "sender": "3MqqcLhm76wiWz5KLfLDST8MXPufuunLUMN", "senderPublicKey": "7Ho7tSsDi1wFzsLjrEXbGRtsfps2kpEqLkQiDtJ1KbUf", "proofs": [ "3t97tLtwZMopooAyqckAEdV96MjLr3rJ9vVR9RPGGrkU8jC2EfmmX3BDbBVjJYMcuKwD1QFF95pEy4ETSiwztPFv" ], "script": "base64:AAIFAAAAAAAAAB8IAhIECgIICBIECgIECBIECgIICBIECgIICBIDCgEIAAAADwEAAAAJZ2V0U3RyQnlLAAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AgAAAAABAAAACWdldEludEJ5SwAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAAAAAALYmFpX2Fzc2V0aWQBAAAAIJPhcjhxBJtq6JpjHwQkt2RTlyw+vGYLg3SvaLskjeJCAAAAAAphZG1pbl9hZGRyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUTLfve1EjrcSTZbnarq+rhHq1VvziySxAAAAAAA9ub25fY2lyY3VsYXRpbmcJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTsajDaiz3SDMXD/foB97kPVKepkwKDR7sAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWF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AAAAKYWRtaW5fYWRkcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmNHANw", "height": 3287412, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HR3VJzg7N3QWFDbpsPgTB9Ee6AM5z28TBrBMjgaA7kW7 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = valueOrElse(getString(this, b), "") | |
5 | + | ||
6 | + | ||
7 | + | func c (b) = valueOrElse(getInteger(this, b), 0) | |
8 | + | ||
9 | + | ||
10 | + | let d = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1' | |
11 | + | ||
12 | + | let e = Address(base58'3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm') | |
13 | + | ||
14 | + | let f = Address(base58'3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx') | |
15 | + | ||
16 | + | let g = "conf_dapp_is_running" | |
17 | + | ||
18 | + | let h = "conf_maintenance_msg" | |
19 | + | ||
20 | + | let i = valueOrElse(getBoolean(this, g), true) | |
21 | + | ||
22 | + | let j = valueOrElse(getString(this, h), "") | |
23 | + | ||
24 | + | let k = "PENDING" | |
25 | + | ||
26 | + | let l = "PROCESSED" | |
27 | + | ||
28 | + | let m = split(valueOrElse(a("supported_recipients"), "bnb_base"), "_") | |
29 | + | ||
30 | + | let n = valueOrElse(c("confirmations_required"), 5) | |
31 | + | ||
32 | + | func o (p) = if ((size(p.payments) == 0)) | |
33 | + | then throw("No payment attached") | |
34 | + | else { | |
35 | + | let q = value(p.payments[0]) | |
36 | + | let r = value(q.amount) | |
37 | + | let s = value(q.assetId) | |
38 | + | $Tuple2(r, s) | |
39 | + | } | |
40 | + | ||
41 | + | ||
42 | + | func t (p) = if (!(i)) | |
43 | + | then throw(j) | |
44 | + | else $Tuple3(toBase58String(p.transactionId), toBase58String(p.caller.bytes), lastBlock.timestamp) | |
45 | + | ||
46 | + | ||
47 | + | @Callable(u) | |
48 | + | func setConf (b,v) = { | |
49 | + | let w = toString(u.caller) | |
50 | + | if (containsElement([toString(e), toString(this)], w)) | |
51 | + | then [StringEntry(b, v)] | |
52 | + | else throw("You are not allowed to change this") | |
53 | + | } | |
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | @Callable(p) | |
58 | + | func appRunning (x,y) = { | |
59 | + | let z = t(p) | |
60 | + | let A = z._1 | |
61 | + | let w = z._2 | |
62 | + | let B = z._3 | |
63 | + | if (containsElement([toString(e), toString(this)], w)) | |
64 | + | then [BooleanEntry(g, x), StringEntry(h, y)] | |
65 | + | else throw("You are not allowed to change this") | |
66 | + | } | |
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | @Callable(p) | |
71 | + | func deposit (C,D) = { | |
72 | + | let E = o(p) | |
73 | + | let r = E._1 | |
74 | + | let s = E._2 | |
75 | + | if ((s != d)) | |
76 | + | then throw("Only BAI token accepted") | |
77 | + | else { | |
78 | + | let F = t(p) | |
79 | + | let A = F._1 | |
80 | + | let w = F._2 | |
81 | + | let B = F._3 | |
82 | + | if (!(containsElement(m, D))) | |
83 | + | then throw("Recipient network not supported") | |
84 | + | else [StringEntry(((((((((A + "_") + w) + "_") + C) + "_") + D) + "_") + k), ((((((((w + "_") + toString(r)) + "_") + C) + "_") + D) + "_") + toString(height)))] | |
85 | + | } | |
86 | + | } | |
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | @Callable(p) | |
91 | + | func finalize (G,H) = { | |
92 | + | let I = t(p) | |
93 | + | let A = I._1 | |
94 | + | let w = I._2 | |
95 | + | let B = I._3 | |
96 | + | if (containsElement([toString(e), toString(this)], w)) | |
97 | + | then { | |
98 | + | let J = a(((G + "_") + k)) | |
99 | + | if ((J == "")) | |
100 | + | then throw("Request not found") | |
101 | + | else { | |
102 | + | let r = valueOrElse(parseInt(split(J, "_")[1]), 0) | |
103 | + | if ((0 > r)) | |
104 | + | then throw("Cannot transfer non positive amount") | |
105 | + | else { | |
106 | + | let K = valueOrElse(parseInt(split(J, "_")[4]), 0) | |
107 | + | if ((n > (height - K))) | |
108 | + | then throw("Required confirmation not reached.") | |
109 | + | else [DeleteEntry(((G + "_") + k)), StringEntry(((G + "_") + l), ((J + "_") + H)), ScriptTransfer(f, r, d)] | |
110 | + | } | |
111 | + | } | |
112 | + | } | |
113 | + | else throw("You are not allowed to change this") | |
114 | + | } | |
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | @Callable(p) | |
119 | + | func deleteEntry (L) = { | |
120 | + | let M = t(p) | |
121 | + | let A = M._1 | |
122 | + | let w = M._2 | |
123 | + | let B = M._3 | |
124 | + | if ((w == toString(e))) | |
125 | + | then [DeleteEntry(L)] | |
126 | + | else throw("no") | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | @Verifier(N) | |
131 | + | func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey) | |
132 | + |
github/deemru/w8io/026f985 24.39 ms ◑