tx · 6JmtJTPuNg22kLToY3wV6bhsrBdMc5iqeYdqbBwwrpd7

3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k:  -0.01000000 Waves

2023.01.24 09:14 [2418671] smart account 3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k > SELF 0.00000000 Waves

{ "type": 13, "id": "6JmtJTPuNg22kLToY3wV6bhsrBdMc5iqeYdqbBwwrpd7", "fee": 1000000, "feeAssetId": null, "timestamp": 1674540871279, "version": 2, "chainId": 84, "sender": "3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k", "senderPublicKey": "3VyXNqJY8HwfqLo6TUZ1V4BwE6NMZuq9XYEARYhktMPE", "proofs": [ "g5pbnxBYLtNnm38DiVbzGz7dsWdibnwcZogtJwaSvyQwzy2Wh12PetF1jBE4tD1SSgj9e8fmDQKSDyCYypB8E87" ], "script": "base64:BgIrCAISBAoCCAgSBAoCCAESBQoDCAEEEgMKAQgSBQoDCAEEEgMKAQgSAwoBCAgBDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgABD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAAtDT05GX0FNSU5fSwINQURNSU5fQUREUkVTUwAPQ09ORl9BUlRXT1JLU19LAg1BUlRXT1JLU19EQVBQAAxDT05GX1VTRVJTX0sCClVTRVJTX0RBUFAABWNocmlzCQEOZ2V0U3RyaW5nQnlLZXkBBQtDT05GX0FNSU5fSwAMYXJ0d29ya3NEYXBwCQEOZ2V0U3RyaW5nQnlLZXkBBQ9DT05GX0FSVFdPUktTX0sACXVzZXJzRGFwcAkBDmdldFN0cmluZ0J5S2V5AQUMQ09ORl9VU0VSU19LBwZpbnZva2UBB3NldENvbmYCA2tleQN2YWwEBmNhbGxlcgkApQgBCAUGaW52b2tlBmNhbGxlcgMJAQ9jb250YWluc0VsZW1lbnQCC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XIJAKUIAQkApwgBCAUBaQ9jYWxsZXJQdWJsaWNLZXkEBmFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzCQCsAgIFB2FkZHJlc3MCCV9mcmVlX3R4cwAAAwkAZwIAAAUGYW1vdW50CQACAQIUTm8gZnJlZSB0eCBhdmFpbGFibGUEAmlkCQDYBAEIBQFpDXRyYW5zYWN0aW9uSWQDCQEPY29udGFpbnNFbGVtZW50AgkAzAgCBQxhcnR3b3Jrc0RhcHAJAMwIAgUJdXNlcnNEYXBwBQNuaWwFBmNhbGxlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAglfZnJlZV90eHMJAGUCBQZhbW91bnQAAQkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQUGY2FsbGVyAKDCHgUEdW5pdAUDbmlsCQACAQIhWW91IGFyZSBub3QgYXV0aG9yaXplZCB0byBkbyB0aGlzAWkBC2RlbGV0ZUVudHJ5AQVlbnRyeQQGY2FsbGVyCQClCAEIBQFpBmNhbGxlcgMJAAACBQZjYWxsZXIFBWNocmlzCQDMCAIJAQtEZWxldGVFbnRyeQEFBWVudHJ5BQNuaWwJAAIBAgJubwADF9El", "height": 2418671, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BLUucQ6YZ6x2kDcFNYQu96ikhXDe8zoGwChZcvCazkXh Next: BP7tQSL54knaZ1zGaEwXFXDbZ1XobGFwghCPeuLH3o4V Diff:
OldNewDifferences
108108 }
109109
110110
111+
112+@Callable(m)
113+func deleteEntry (v) = {
114+ let l = toString(m.caller)
115+ if ((l == g))
116+ then [DeleteEntry(v)]
117+ else throw("no")
118+ }
119+
120+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = valueOrElse(getString(this, b), "")
55
66
77 func c (b) = valueOrElse(getInteger(this, b), 0)
88
99
1010 let d = "ADMIN_ADDRESS"
1111
1212 let e = "ARTWORKS_DAPP"
1313
1414 let f = "USERS_DAPP"
1515
1616 let g = a(d)
1717
1818 let h = a(e)
1919
2020 let i = a(f)
2121
2222 @Callable(j)
2323 func setConf (b,k) = {
2424 let l = toString(j.caller)
2525 if (containsElement([g, toString(this)], l))
2626 then [StringEntry(b, k)]
2727 else throw("You are not allowed to change this")
2828 }
2929
3030
3131
3232 @Callable(m)
3333 func whitelist (n,o) = {
3434 let l = toString(addressFromPublicKey(m.callerPublicKey))
3535 let p = toBase58String(m.transactionId)
3636 let q = if ((o == 0))
3737 then o
3838 else (height + (1440 * o))
3939 if (containsElement([g], l))
4040 then [IntegerEntry(n, q)]
4141 else throw("You are not authorized to whitelist artists")
4242 }
4343
4444
4545
4646 @Callable(m)
4747 func whitelistFreeDrop (n,r,s) = {
4848 let l = toString(addressFromPublicKey(m.callerPublicKey))
4949 let p = toBase58String(m.transactionId)
5050 if (containsElement([g], l))
5151 then {
5252 let t = valueOrElse(getInteger(this, (n + "_free_drops")), 0)
5353 let u = if (s)
5454 then (t + r)
5555 else r
5656 [IntegerEntry((n + "_free_drops"), u)]
5757 }
5858 else throw("You are not authorized to whitelist drops")
5959 }
6060
6161
6262
6363 @Callable(m)
6464 func useFreeDrop (n) = {
6565 let l = toString(addressFromPublicKey(m.callerPublicKey))
6666 let r = valueOrElse(getInteger(this, (n + "_free_drops")), 0)
6767 if ((0 >= r))
6868 then throw("No free drop available")
6969 else {
7070 let p = toBase58String(m.transactionId)
7171 if (containsElement([h], l))
7272 then [IntegerEntry((n + "_free_drops"), (r - 1))]
7373 else throw("You are not authorized to do this")
7474 }
7575 }
7676
7777
7878
7979 @Callable(m)
8080 func whitelistFreeTxs (n,r,s) = {
8181 let l = toString(addressFromPublicKey(m.callerPublicKey))
8282 let p = toBase58String(m.transactionId)
8383 if (containsElement([g], l))
8484 then {
8585 let t = valueOrElse(getInteger(this, (n + "_free_txq")), 0)
8686 let u = if (s)
8787 then (t + r)
8888 else r
8989 [IntegerEntry((n + "_free_txs"), u)]
9090 }
9191 else throw("You are not authorized to whitelist txs")
9292 }
9393
9494
9595
9696 @Callable(m)
9797 func useFreeTx (n) = {
9898 let l = toString(addressFromPublicKey(m.callerPublicKey))
9999 let r = valueOrElse(getInteger(this, (n + "_free_txs")), 0)
100100 if ((0 >= r))
101101 then throw("No free tx available")
102102 else {
103103 let p = toBase58String(m.transactionId)
104104 if (containsElement([h, i], l))
105105 then [IntegerEntry((n + "_free_txs"), (r - 1)), ScriptTransfer(Address(fromBase58String(l)), 500000, unit)]
106106 else throw("You are not authorized to do this")
107107 }
108108 }
109109
110110
111+
112+@Callable(m)
113+func deleteEntry (v) = {
114+ let l = toString(m.caller)
115+ if ((l == g))
116+ then [DeleteEntry(v)]
117+ else throw("no")
118+ }
119+
120+

github/deemru/w8io/169f3d6 
27.71 ms