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:AAIFAAAAAAAAACkIAhIGCgQICAgIEgwKCggBAQEBAQEBAQESBAoCCAgSBAoCCAESAwoBCAAAAAQAAAAADGFkbWluQWRkcmVzcwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAVhZG1pbgIAAAAAAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAQAAAAx3cml0ZUludGVnZXIAAAACAAAAA2tleQAAAAxpbnRlZ2VyVmFsdWUJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQEAAAAHaXNBZG1pbgAAAAEAAAANY2FsbGVyQWRkcmVzcwMJAAAAAAAAAgUAAAANY2FsbGVyQWRkcmVzcwkAAlkAAAABBQAAAAxhZG1pbkFkZHJlc3MGBwAAAAUAAAABaQEAAAAQc2V0dXBEQXBwQWRkcmVzcwAAAAQAAAAFYWRtaW4AAAALd2F2ZXR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ZWdlclZhbHVlAwkBAAAAB2lzQWRtaW4AAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAx3cml0ZUludGVnZXIAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQUAAAADbmlsCQAAAgAAAAECAAAAKkFkZHJlc3MgZG9lcyBub3QgbWF0Y2ggd2l0aCBhZG1pbiBhZGRyZXNzIQAAAAFpAQAAABJkZWxldGVTdG9yYWdlRW50cnkAAAABAAAAA2tleQMJAQAAAAdpc0FkbWluAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAkAAAIAAAABAgAAACpBZGRyZXNzIGRvZXMgbm90IG1hdGNoIHdpdGggYWRtaW4gYWRkcmVzcyEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTts0WQ=", "height": 1688492, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AkAEpmB9ze1NEKTjz92q83benVMw2Xb2kP2voPVsrT13 Next: 2T759xNkMH95AGDbZq9w8NR44c4J1NGwxkdF45tuxvSz Diff:
OldNewDifferences
1515
1616
1717 @Callable(i)
18-func setupDAppAddress (admin,wavetroller,liquidator) = if (!(isDefined(getString(this, "admin"))))
19- then [writeString("admin", admin), writeString("wavetroller", wavetroller), writeString("liquidator", liquidator)]
18+func setupDAppAddress (admin,wavetroller,liquidator,oracle) = if (!(isDefined(getString(this, "admin"))))
19+ then [writeString("admin", admin), writeString("wavetroller", wavetroller), writeString("liquidator", liquidator), writeString("oracle", oracle)]
2020 else throw("Dapp already setup!")
2121
2222
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminAddress = valueOrElse(getString(this, "admin"), "")
55
66 func writeString (key,stringValue) = StringEntry(key, stringValue)
77
88
99 func writeInteger (key,integerValue) = IntegerEntry(key, integerValue)
1010
1111
1212 func isAdmin (callerAddress) = if ((callerAddress == fromBase58String(adminAddress)))
1313 then true
1414 else false
1515
1616
1717 @Callable(i)
18-func setupDAppAddress (admin,wavetroller,liquidator) = if (!(isDefined(getString(this, "admin"))))
19- then [writeString("admin", admin), writeString("wavetroller", wavetroller), writeString("liquidator", liquidator)]
18+func setupDAppAddress (admin,wavetroller,liquidator,oracle) = if (!(isDefined(getString(this, "admin"))))
19+ then [writeString("admin", admin), writeString("wavetroller", wavetroller), writeString("liquidator", liquidator), writeString("oracle", oracle)]
2020 else throw("Dapp already setup!")
2121
2222
2323
2424 @Callable(i)
2525 func setupAssetParameter (assetId,decimals,collateralFactor,threshold,penalty,reserveFactor,multiplier,kink,jumpMultiplier,baseRate) = if (isAdmin(i.caller.bytes))
2626 then [writeInteger((assetId + "_Decimals"), decimals), writeInteger((assetId + "_CollateralFactor"), collateralFactor), writeInteger((assetId + "_Threshold"), threshold), writeInteger((assetId + "_Penalty"), penalty), writeInteger((assetId + "_ReserveFactor"), reserveFactor), writeInteger((assetId + "_Multiplier"), multiplier), writeInteger((assetId + "_Kink"), kink), writeInteger((assetId + "_JumpMultiplier"), jumpMultiplier), writeInteger((assetId + "_BaseRate"), baseRate)]
2727 else throw("Address does not match with admin address!")
2828
2929
3030
3131 @Callable(i)
3232 func updateStringEntry (key,stringValue) = if (isAdmin(i.caller.bytes))
3333 then [writeString(key, stringValue)]
3434 else throw("Address does not match with admin address!")
3535
3636
3737
3838 @Callable(i)
3939 func updateIntegerEntry (key,integerValue) = if (isAdmin(i.caller.bytes))
4040 then [writeInteger(key, integerValue)]
4141 else throw("Address does not match with admin address!")
4242
4343
4444
4545 @Callable(i)
4646 func deleteStorageEntry (key) = if (isAdmin(i.caller.bytes))
4747 then [DeleteEntry(key)]
4848 else throw("Address does not match with admin address!")
4949
5050
5151 @Verifier(tx)
5252 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5353

github/deemru/w8io/169f3d6 
31.00 ms