tx · 3ZBXayPTm9ZUz9K3hjNoT4ztiF7DyjT82ZRuTPfFi7RA

3N1QJTUhZ6VWAFh4uQvEjtG9AFce38REuyX:  -0.01400000 Waves

2021.03.18 18:59 [1443387] smart account 3N1QJTUhZ6VWAFh4uQvEjtG9AFce38REuyX > SELF 0.00000000 Waves

{ "type": 13, "id": "3ZBXayPTm9ZUz9K3hjNoT4ztiF7DyjT82ZRuTPfFi7RA", "fee": 1400000, "feeAssetId": null, "timestamp": 1616083198180, "version": 2, "chainId": 84, "sender": "3N1QJTUhZ6VWAFh4uQvEjtG9AFce38REuyX", "senderPublicKey": "Dhv6VmiXeYBexgvExZwJaGUDv5PJQNU8QoLwPhVZXHfE", "proofs": [ "3a5z25t49qifjLqBFgPdixpx4MASf8oMnSc2eitP4auJUc8bubNroQhxzLECWgrRu7soCKJ5eD4csX7SBPMecD19" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAGBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQAAAAAAAAAAAEHCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHYXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5KOU8bg==", "height": 1443387, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6HvqjYAMt2LqQy4vHKNBrxUrcfBGGqykrcmE9f63YhuS Next: 6mabcnjvqRJNMjUAnXZtnqQjYVTTi67tsFahS5mCosNs Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "___"
5-
6-let b = 100
7-
8-let c = "FOKOFF"
9-
10-let d = "WAVES"
11-
12-let e = (c + "_AssetToStake_")
13-
14-let f = (c + "_AssetsToStakeList")
15-
16-let g = (c + "_DefaultDepositFee")
17-
18-let h = "_isEnabled"
19-
20-let i = "_minimumAmount"
21-
22-let j = "_allowStakingAfterBlockHeight"
23-
24-let k = "_BlocksDelayAfterDepositToStake"
25-
26-let l = "_enableSpecificDepositFee"
27-
28-let m = "_specificDepositFee"
29-
30-func n (o) = (this == o)
314
325
33-func p (q,r) = if ((1 > size(q)))
34- then r
35- else ((q + a) + r)
36-
37-
38-func s (t) = contains(getStringValue(this, f), t)
39-
40-
41-func u (v) = if (if ((v.decimals == 0))
42- then (v.quantity == 1)
43- else false)
44- then (v.reissuable == false)
45- else false
46-
47-
48-func w (t) = if ((t == d))
49- then true
50- else {
51- let x = assetInfo(fromBase58String(t))
52- if ($isInstanceOf(x, "Asset"))
53- then {
54- let y = x
55- if ((u(y) != true))
56- then true
57- else false
58- }
59- else false
60- }
61-
62-
63-func z (A) = {
64- let x = getString(this, A)
65- if ($isInstanceOf(x, "String"))
66- then {
67- let B = x
68- B
69- }
70- else ""
6+@Callable(a)
7+func call () = {
8+ let b = Issue("Asset", "", 1, 0, true, unit, 0)
9+ let c = calculateAssetId(b)
10+[BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), b, Reissue(c, 1, false), Burn(c, 1), ScriptTransfer(a.caller, 1, c)]
7111 }
7212
7313
74-@Callable(C)
75-func updateDefaultFee (D) = if ((n(C.caller) != true))
76- then throw("Acces denied")
77- else if (if ((0 > D))
78- then true
79- else (D > b))
80- then throw("New default fee range is not correct")
81- else [IntegerEntry(g, D)]
82-
83-
84-
85-@Callable(C)
86-func createAssetToStake (t,E,F,G,H,I,J) = if ((n(C.caller) != true))
87- then throw("Access denied")
88- else if ((w(t) != true))
89- then throw("Not an valid asset")
90- else if ((s(t) != false))
91- then throw("Asset is already listed")
92- else {
93- let K = p(z(f), t)
94- let L = (e + t)
95- let M = (L + h)
96- let N = (L + i)
97- let O = (L + j)
98- let P = (L + k)
99- let Q = (L + l)
100- let R = (L + m)
101-[StringEntry(f, K), BooleanEntry(M, E), IntegerEntry(N, F), IntegerEntry(O, G), IntegerEntry(P, H), BooleanEntry(Q, I), IntegerEntry(R, J)]
102- }
103-
104-
105-
106-@Callable(C)
107-func updateAssetToStakeOption (t,S,T) = if ((n(C.caller) != true))
108- then throw("Access denied")
109- else {
110- let U = ((e + t) + S)
111- let V = getIntegerValue(this, U)
112- if ((V == T))
113- then throw("Value to update == current value")
114- else [IntegerEntry(U, T)]
115- }
116-
117-
118-
119-@Callable(C)
120-func enableAssetToStakeOption (t,S,T) = if ((n(C.caller) != true))
121- then throw("Access denied")
122- else {
123- let U = ((e + t) + S)
124- let V = getBooleanValue(this, U)
125- if ((V == T))
126- then throw("Value to update == current value")
127- else [BooleanEntry(U, T)]
128- }
129-
130-
131-@Verifier(W)
132-func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
14+@Verifier(d)
15+func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
13316

github/deemru/w8io/169f3d6 
24.96 ms