tx · 8PQMVS7g9AV4RvoyuqYE7X3c3U9schEvwo9st7Tm1eiV 3Mx8MESRpWxe1HLaq6vZKWQ3JxhVtz9KGvk: -0.01000000 Waves 2019.12.24 17:24 [823202] smart account 3Mx8MESRpWxe1HLaq6vZKWQ3JxhVtz9KGvk > SELF 0.00000000 Waves
{ "type": 13, "id": "8PQMVS7g9AV4RvoyuqYE7X3c3U9schEvwo9st7Tm1eiV", "fee": 1000000, "feeAssetId": null, "timestamp": 1577197465585, "version": 1, "sender": "3Mx8MESRpWxe1HLaq6vZKWQ3JxhVtz9KGvk", "senderPublicKey": "HfRCF7ETeT9HDKjk3iecTofHFBahfZUL1Yen86uZfgBY", "proofs": [ "4FiXYfo3en2mbjEFKGmLUrNPYhszNLWuoVGV162h7YJjKruRb5o3KVgdTSWdWmJjyi7q8kzSGSmEtgKLjTfsWrb3" ], "script": "base64:AAIDAAAAAAAAABYIARIAEgQKAgEIEgQKAggBEgQKAggBAAAAFgEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAAAxnZXRCb29sQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2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IJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAXZ2V0QXJndW1lbnRzUHJvcG9zYWxLZXkAAAABBQAAAARoYXNoBQAAAAlhcmd1bWVudHMFAAAAA25pbAAAAADgL/l7", "chainId": 84, "height": 823202, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = getInteger(this, b) | |
6 | + | if ($isInstanceOf(c, "Int")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else 0 | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e (b) = { | |
16 | + | let c = getString(this, b) | |
17 | + | if ($isInstanceOf(c, "String")) | |
18 | + | then { | |
19 | + | let d = c | |
20 | + | d | |
21 | + | } | |
22 | + | else "" | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | func f (b) = { | |
27 | + | let c = getBoolean(this, b) | |
28 | + | if ($isInstanceOf(c, "Boolean")) | |
29 | + | then { | |
30 | + | let d = c | |
31 | + | d | |
32 | + | } | |
33 | + | else false | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func g (h,b) = { | |
38 | + | let c = getInteger(addressFromStringValue(h), b) | |
39 | + | if ($isInstanceOf(c, "Int")) | |
40 | + | then { | |
41 | + | let d = c | |
42 | + | d | |
43 | + | } | |
44 | + | else 0 | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | func i (h,b) = { | |
49 | + | let c = getString(h, b) | |
50 | + | if ($isInstanceOf(c, "String")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else "" | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | let j = "neutrino_asset_id" | |
60 | + | ||
61 | + | let k = "neutrino_contract" | |
62 | + | ||
63 | + | let l = "rpd_balance" | |
64 | + | ||
65 | + | func m (n,o) = ((((l + "_") + o) + "_") + n) | |
66 | + | ||
67 | + | ||
68 | + | func p (o) = ((l + "_") + o) | |
69 | + | ||
70 | + | ||
71 | + | func q (r) = (("proposal_expire" + "_") + r) | |
72 | + | ||
73 | + | ||
74 | + | func s (r) = (("proposal_owner" + "_") + r) | |
75 | + | ||
76 | + | ||
77 | + | func t (r) = (("proposal_arguments" + "_") + r) | |
78 | + | ||
79 | + | ||
80 | + | func u (n,r) = (((("proposal_vote" + "_") + n) + "_") + r) | |
81 | + | ||
82 | + | ||
83 | + | let v = addressFromStringValue(e(k)) | |
84 | + | ||
85 | + | let w = fromBase58String(i(v, j)) | |
86 | + | ||
87 | + | func x (o) = a(p(o)) | |
88 | + | ||
89 | + | ||
90 | + | func y (n,o) = a(m(n, o)) | |
91 | + | ||
92 | + | ||
93 | + | func z (r) = a(q(r)) | |
94 | + | ||
95 | + | ||
96 | + | func A (r) = e(s(r)) | |
97 | + | ||
98 | + | ||
99 | + | func B (r) = e(t(r)) | |
100 | + | ||
101 | + | ||
102 | + | func C (n,r) = e(u(n, r)) | |
103 | + | ||
104 | + | ||
105 | + | @Callable(D) | |
106 | + | func lockNeutrino () = { | |
107 | + | let E = extract(D.payment) | |
108 | + | if ((E.assetId != w)) | |
109 | + | then throw("can use neutrino") | |
110 | + | else { | |
111 | + | let F = toString(D.caller) | |
112 | + | let G = toBase58String(value(E.assetId)) | |
113 | + | WriteSet([DataEntry(p(G), (x(G) + E.amount)), DataEntry(m(F, G), (y(F, G) + E.amount))]) | |
114 | + | } | |
115 | + | } | |
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | @Callable(D) | |
120 | + | func unlockNeutrino (H,G) = { | |
121 | + | let F = toString(D.caller) | |
122 | + | let o = fromBase58String(G) | |
123 | + | let I = (y(F, G) - H) | |
124 | + | if ((0 > I)) | |
125 | + | then throw("invalid amount") | |
126 | + | else if ((o != w)) | |
127 | + | then throw("can use neutrino") | |
128 | + | else ScriptResult(WriteSet([DataEntry(p(G), (x(G) - H)), DataEntry(m(F, G), I)]), TransferSet([ScriptTransfer(addressFromStringValue(F), H, w)])) | |
129 | + | } | |
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | @Callable(D) | |
134 | + | func vote (r,J) = { | |
135 | + | let K = split(B(r), ",") | |
136 | + | let L = K[J] | |
137 | + | if ((height > z(r))) | |
138 | + | then throw("proposal is expired") | |
139 | + | else WriteSet([DataEntry(u(toString(D.caller), r), L)]) | |
140 | + | } | |
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | @Callable(D) | |
145 | + | func createProposal (K,M) = { | |
146 | + | let r = toBase58String(keccak256(((toBytes(K) + toBytes(M)) + D.callerPublicKey))) | |
147 | + | if ((A(r) != "")) | |
148 | + | then throw("proposal is exist") | |
149 | + | else WriteSet([DataEntry(q(r), M), DataEntry(s(r), toString(D.caller)), DataEntry(t(r), K)]) | |
150 | + | } | |
151 | + | ||
152 | + |
github/deemru/w8io/169f3d6 19.53 ms ◑