tx · 82QTVuYdDdcBQRVWGqbuoUk3o5hNAeGN7vKFb4nZ3pEG

3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ:  -0.01000000 Waves

2022.05.11 16:20 [2047061] smart account 3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ > SELF 0.00000000 Waves

{ "type": 13, "id": "82QTVuYdDdcBQRVWGqbuoUk3o5hNAeGN7vKFb4nZ3pEG", "fee": 1000000, "feeAssetId": null, "timestamp": 1652275299478, "version": 2, "chainId": 84, "sender": "3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ", "senderPublicKey": "BhRnrwd6wVHSkSaWXCjQRjaoXcpCdUW2hkJD6V7uVDxN", "proofs": [ "2PyKfr9zait2zNhhHMiveF9hcH1fLNz4NFYAU2RyPWJ8yXHPt3FtHqzkfSCyCrD2F4D9g1DVCfYv3CkfC7cDBXjM" ], "script": "base64:AAIFAAAAAAAAADYIAhIAEgQKAggBEgMKAQESBQoDCAgBEgQKAggBEgQKAggBEgASBAoCCAESBAoCCAESBAoCCAEAAAAMAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAMYWRtaW5BZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXBOdGlQU1JTcTZObmFRWWszOEJmV1N6WmNnQVlUeXJROQAAAAANYXNzZXRzQWRkcmVzcwEAAAAaAVTL5rTBd9cdJy1rFhBLypFI6ymLChqVp5oAAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAAA10cnlHZX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atus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 71MsKjrx7rDqJ9qwAxhKeY59D7SuaycTWjPuHvBz2e57 Next: 5A6T118BKsE1cgCirdCjgbpXvEQctyqoTynXcath5y4X Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf'
55
66 let b = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
77
88 let c = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb'
99
1010 let d = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy'
1111
1212 func e (f) = {
1313 let g = getInteger(this, f)
1414 if ($isInstanceOf(g, "Int"))
1515 then {
1616 let h = g
1717 h
1818 }
1919 else 0
2020 }
2121
2222
2323 func i (f) = {
2424 let g = getBoolean(this, f)
2525 if ($isInstanceOf(g, "Boolean"))
2626 then {
2727 let h = g
2828 h
2929 }
3030 else false
3131 }
3232
3333
3434 func j (k) = (k + "_Treasury")
3535
3636
3737 func l (m,n) = {
3838 let o = e((m + "_Deposit"))
3939 [IntegerEntry((m + "_Deposit"), (o + n))]
4040 }
4141
4242
4343 func p (m,o) = {
4444 let q = e((m + "_Deposit"))
4545 if ((0 > (q - o)))
4646 then throw("Not enough deposit.")
4747 else if (((q - o) == 0))
4848 then [DeleteEntry((m + "_Deposit"))]
4949 else [IntegerEntry((m + "_Deposit"), (q - o))]
5050 }
5151
5252
5353 func r (m,o) = {
5454 let s = e((m + "_Reserved"))
5555 [IntegerEntry((m + "_Reserved"), (s + o))]
5656 }
5757
5858
5959 func t (u,v,o) = (p(u, o) ++ l(v, o))
6060
6161
6262 func w (x) = if (if (if ((x == b))
6363 then true
6464 else (x == this))
6565 then true
6666 else (x.bytes == d))
6767 then true
6868 else (x.bytes == c)
6969
7070
7171 @Callable(y)
7272 func Deposit () = {
7373 let m = toString(y.originCaller)
7474 let z = y.payments[0]
7575 if ((z == z))
7676 then {
7777 let n = value(y.payments[0].amount)
7878 if ((n == n))
7979 then {
8080 let A = z.assetId
8181 if ((A == A))
8282 then if ((A != a))
8383 then throw("Only $HEG payments allowed")
8484 else {
8585 let o = e((m + "_Deposit"))
8686 $Tuple2(l(m, (o + n)), (o + n))
8787 }
8888 else throw("Strict value is not equal to itself.")
8989 }
9090 else throw("Strict value is not equal to itself.")
9191 }
9292 else throw("Strict value is not equal to itself.")
9393 }
9494
9595
9696
9797 @Callable(y)
9898 func Pay (m,o) = if (!(w(y.caller)))
9999 then throw("you are not authorized to perform this operation")
100100 else $Tuple2(p(m, o), o)
101101
102102
103103
104104 @Callable(y)
105105 func CallerPay (o) = {
106106 let B = toString(y.caller)
107107 p(B, o)
108108 }
109109
110110
111111
112112 @Callable(y)
113113 func transferCoins (u,v,o) = if (if ((y.caller != b))
114114 then (y.caller.bytes != c)
115115 else false)
116116 then throw("you are not authorized to perform this operation")
117117 else $Tuple2(t(u, v, o), o)
118118
119119
120120
121121 @Callable(y)
122122 func callerTransferCoins (v,o) = t(toString(y.caller), v, o)
123123
124124
125125
126126 @Callable(y)
127127 func arbitraryAddCoins (v,o) = if (if (if ((y.caller != b))
128128 then (y.caller.bytes != c)
129129 else false)
130130 then (y.caller.bytes != d)
131131 else false)
132132 then throw("you are not authorized to perform this operation")
133133 else $Tuple2(l(v, o), o)
134134
135135
136136
137137 @Callable(y)
138138 func Redeem () = {
139139 let m = toString(y.caller)
140140 let s = e((m + "_Reserved"))
141141 if ((s == 0))
142142 then throw("Nothing to redeem")
143143 else [DeleteEntry((m + "_Reserved")), ScriptTransfer(y.caller, s, a)]
144144 }
145145
146146
147147
148148 @Callable(y)
149149 func addReward (m,o) = if (!(w(y.caller)))
150150 then throw("you are not authorized to perform this operation")
151151 else {
152152 let s = e((m + "_Reserved"))
153153 $Tuple2([IntegerEntry((m + "_Reserved"), (s + o))], (s + o))
154154 }
155155
156156
157157
158158 @Callable(y)
159159 func increaseNationWallet (C,o) = if (!(w(y.caller)))
160160 then throw("you are not authorized to perform this operation")
161161 else {
162162 let f = j(C)
163163 let s = e(f)
164164 $Tuple2([IntegerEntry(f, (s + o))], (s + o))
165165 }
166166
167167
168168
169169 @Callable(y)
170170 func decreaseNationWallet (C,o) = if (!(w(y.caller)))
171171 then throw("you are not authorized to perform this operation")
172172 else {
173173 let f = j(C)
174174 let s = e(f)
175175 $Tuple2([IntegerEntry(f, (s - o))], (s - o))
176176 }
177177
178178

github/deemru/w8io/169f3d6 
32.66 ms