tx · GdKYjqyrrM5VTPh8yg7Uvt2VVCoxZXznGKZtqDpnZg6Y 3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8: -0.04000000 Waves 2021.09.04 18:35 [1688492] smart account 3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8 > SELF 0.00000000 Waves
{ "type": 13, "id": "GdKYjqyrrM5VTPh8yg7Uvt2VVCoxZXznGKZtqDpnZg6Y", "fee": 4000000, "feeAssetId": null, "timestamp": 1630769828823, "version": 2, "chainId": 84, "sender": "3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8", "senderPublicKey": "EUGSRsTjwWnuaJunshvtppK95VtPd811FAgEzJraTzXC", "proofs": [ "21wqDdJs52DcWu8VLL6YcdZVLkVLfbKn1UwC91THuvdZbc7o7YHvYoXvwKfR7DY3tBzywJETu5rvKicEzCV2oz11" ], "script": "base64:AAIFAAAAAAAAACkIAhIGCgQICAgIEgwKCggBAQEBAQEBAQESBAoCCAgSBAoCCAESAwoBCAAAAAQAAAAADGFkbWluQWRkcmVzcwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAVhZG1pbgIAAAAAAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAQAAAAx3cml0ZUludGVnZXIAAAACAAAAA2tleQAAAAxpbnRlZ2VyVmFsdWUJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQEAAAAHaXNBZG1pbgAAAAEAAAANY2FsbGVyQWRkcmVzcwMJAAAAAAAAAgUAAAANY2FsbGVyQWRkcmVzcwkAAlkAAAABBQAAAAxhZG1pbkFkZHJlc3MGBwAAAAUAAAABaQEAAAAQc2V0dXBEQXBwQWRkcmVzcwAAAAQAAAAFYWRtaW4AAAALd2F2ZXRy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ZWdlclZhbHVlAwkBAAAAB2lzQWRtaW4AAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAx3cml0ZUludGVnZXIAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQUAAAADbmlsCQAAAgAAAAECAAAAKkFkZHJlc3MgZG9lcyBub3QgbWF0Y2ggd2l0aCBhZG1pbiBhZGRyZXNzIQAAAAFpAQAAABJkZWxldGVTdG9yYWdlRW50cnkAAAABAAAAA2tleQMJAQAAAAdpc0FkbWluAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAkAAAIAAAABAgAAACpBZGRyZXNzIGRvZXMgbm90IG1hdGNoIHdpdGggYWRtaW4gYWRkcmVzcyEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTts0WQ=", "height": 1688492, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AkAEpmB9ze1NEKTjz92q83benVMw2Xb2kP2voPVsrT13 Next: 2T759xNkMH95AGDbZq9w8NR44c4J1NGwxkdF45tuxvSz Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(i) | |
18 | - | func setupDAppAddress (j,k,l) = if (!(isDefined(getString(this, "admin")))) | |
19 | - | then [b("admin", j), b("wavetroller", k), b("liquidator", l)] | |
18 | + | func setupDAppAddress (j,k,l,m) = if (!(isDefined(getString(this, "admin")))) | |
19 | + | then [b("admin", j), b("wavetroller", k), b("liquidator", l), b("oracle", m)] | |
20 | 20 | else throw("Dapp already setup!") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | - | func setupAssetParameter ( | |
26 | - | then [e(( | |
25 | + | func setupAssetParameter (n,o,p,q,r,s,t,u,v,w) = if (g(i.caller.bytes)) | |
26 | + | then [e((n + "_Decimals"), o), e((n + "_CollateralFactor"), p), e((n + "_Threshold"), q), e((n + "_Penalty"), r), e((n + "_ReserveFactor"), s), e((n + "_Multiplier"), t), e((n + "_Kink"), u), e((n + "_JumpMultiplier"), v), e((n + "_BaseRate"), w)] | |
27 | 27 | else throw("Address does not match with admin address!") | |
28 | 28 | ||
29 | 29 | ||
48 | 48 | else throw("Address does not match with admin address!") | |
49 | 49 | ||
50 | 50 | ||
51 | - | @Verifier( | |
52 | - | func | |
51 | + | @Verifier(x) | |
52 | + | func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey) | |
53 | 53 |
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 | - | func setupDAppAddress (j,k,l) = if (!(isDefined(getString(this, "admin")))) | |
19 | - | then [b("admin", j), b("wavetroller", k), b("liquidator", l)] | |
18 | + | func setupDAppAddress (j,k,l,m) = if (!(isDefined(getString(this, "admin")))) | |
19 | + | then [b("admin", j), b("wavetroller", k), b("liquidator", l), b("oracle", m)] | |
20 | 20 | else throw("Dapp already setup!") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | - | func setupAssetParameter ( | |
26 | - | then [e(( | |
25 | + | func setupAssetParameter (n,o,p,q,r,s,t,u,v,w) = if (g(i.caller.bytes)) | |
26 | + | then [e((n + "_Decimals"), o), e((n + "_CollateralFactor"), p), e((n + "_Threshold"), q), e((n + "_Penalty"), r), e((n + "_ReserveFactor"), s), e((n + "_Multiplier"), t), e((n + "_Kink"), u), e((n + "_JumpMultiplier"), v), e((n + "_BaseRate"), w)] | |
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 | - | @Verifier( | |
52 | - | func | |
51 | + | @Verifier(x) | |
52 | + | func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey) | |
53 | 53 |
github/deemru/w8io/169f3d6 28.19 ms ◑