tx · CVeKDouLj3SmzWcSQpEDUvf6ad8Zj724m2d2MZ8yrun4 3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8: -0.04000000 Waves 2021.09.01 01:32 [1683118] smart account 3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8 > SELF 0.00000000 Waves
{ "type": 13, "id": "CVeKDouLj3SmzWcSQpEDUvf6ad8Zj724m2d2MZ8yrun4", "fee": 4000000, "feeAssetId": null, "timestamp": 1630449139622, "version": 2, "chainId": 84, "sender": "3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8", "senderPublicKey": "EUGSRsTjwWnuaJunshvtppK95VtPd811FAgEzJraTzXC", "proofs": [ "4eTtkY4wWiXMfjpZ4MjedHEHHj97gEtWwBszucqJiznAWcEUyuTjK6cKb8cGH8EMK7fBL8neijvDz2zZLa3JawdG" ], "script": "base64:AAIFAAAAAAAAACgIAhIFCgMICAgSDAoKCAEBAQEBAQEBARIECgIICBIECgIIARIDCgEIAAAABAAAAAAMYWRtaW5BZGRyZXNzCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABWFkbWluAgAAAAABAAAAC3dyaXRlU3RyaW5nAAAAAgAAAANrZXkAAAALc3RyaW5nVmFsdWUJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAALc3RyaW5nVmFsdWUBAAAADHdyaXRlSW50ZWdlcgAAAAIAAAADa2V5AAAADGludGVnZXJWYWx1ZQkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQACWQAAAAEFAAAADGFkbWluQWRkcmVzcwYHAAAABQAAAAFpAQAAABBzZXR1cERBcHBBZGRyZXNzAAAAAwAAAAVhZG1pbgAAAAt3YXZldHJvbGxlcgAAAApsaXF1aWRh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gAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAAqQWRkcmVzcyBkb2VzIG5vdCBtYXRjaCB3aXRoIGFkbWluIGFkZHJlc3MhAAAAAWkBAAAAEmRlbGV0ZVN0b3JhZ2VFbnRyeQAAAAEAAAADa2V5AwkBAAAAB2lzQWRtaW4AAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsCQAAAgAAAAECAAAAKkFkZHJlc3MgZG9lcyBub3QgbWF0Y2ggd2l0aCBhZG1pbiBhZGRyZXNzIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5ozDu/g==", "height": 1683118, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: epVcQybkxkVmEzmeCyd9ZzbtNjFrtQH3i4mUbyNEFFD Next: AkAEpmB9ze1NEKTjz92q83benVMw2Xb2kP2voPVsrT13 Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | @Callable(i) | |
18 | 18 | func setupDAppAddress (j,k,l) = if (!(isDefined("admin"))) | |
19 | 19 | then [b("admin", j), b("wavetroller", k), b("liquidator", l)] | |
20 | - | else throw(" | |
20 | + | else throw("Dapp already setup!") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = valueOrElse(getString(this, "admin"), "") | |
5 | 5 | ||
6 | 6 | func b (c,d) = StringEntry(c, d) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func e (c,f) = IntegerEntry(c, f) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func g (h) = if ((h == fromBase58String(a))) | |
13 | 13 | then true | |
14 | 14 | else false | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(i) | |
18 | 18 | func setupDAppAddress (j,k,l) = if (!(isDefined("admin"))) | |
19 | 19 | then [b("admin", j), b("wavetroller", k), b("liquidator", l)] | |
20 | - | else throw(" | |
20 | + | else throw("Dapp already setup!") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | 25 | func setupAssetParameter (m,n,o,p,q,r,s,t,u,v) = if (g(i.caller.bytes)) | |
26 | 26 | then [e((m + "_Decimals"), n), e((m + "_CollateralFactor"), o), e((m + "_Threshold"), p), e((m + "_Penalty"), q), e((m + "_ReserveFactor"), r), e((m + "_Multiplier"), s), e((m + "_Kink"), t), e((m + "_JumpMultiplier"), u), e((m + "_BaseRate"), v)] | |
27 | 27 | else throw("Address does not match with admin address!") | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(i) | |
32 | 32 | func updateStringEntry (c,d) = if (g(i.caller.bytes)) | |
33 | 33 | then [b(c, d)] | |
34 | 34 | else throw("Address does not match with admin address!") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Callable(i) | |
39 | 39 | func updateIntegerEntry (c,f) = if (g(i.caller.bytes)) | |
40 | 40 | then [e(c, f)] | |
41 | 41 | else throw("Address does not match with admin address!") | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | ||
45 | 45 | @Callable(i) | |
46 | 46 | func deleteStorageEntry (c) = if (g(i.caller.bytes)) | |
47 | 47 | then [DeleteEntry(c)] | |
48 | 48 | else throw("Address does not match with admin address!") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Verifier(w) | |
52 | 52 | func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey) | |
53 | 53 |
github/deemru/w8io/169f3d6 34.66 ms ◑