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:AAIFAAAAAAAAACgIAhIFCgMICAgSDAoKCAEBAQEBAQEBARIECgIICBIECgIIARIDCgEIAAAABAAAAAAMYWRtaW5BZGRyZXNzCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABWFkbWluAgAAAAABAAAAC3dyaXRlU3RyaW5nAAAAAgAAAANrZXkAAAALc3RyaW5nVmFsdWUJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAALc3RyaW5nVmFsdWUBAAAADHdyaXRlSW50ZWdlcgAAAAIAAAADa2V5AAAADGludGVnZXJWYWx1ZQkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQACWQAAAAEFAAAADGFkbWluQWRkcmVzcwYHAAAABQAAAAFpAQAAABBzZXR1cERBcHBBZGRyZXNzAAAAAwAAAAVhZG1pbgAAAAt3YXZldHJvbGxlcgAAAApsaXF1aWR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cgAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAAqQWRkcmVzcyBkb2VzIG5vdCBtYXRjaCB3aXRoIGFkbWluIGFkZHJlc3MhAAAAAWkBAAAAEmRlbGV0ZVN0b3JhZ2VFbnRyeQAAAAEAAAADa2V5AwkBAAAAB2lzQWRtaW4AAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsCQAAAgAAAAECAAAAKkFkZHJlc3MgZG9lcyBub3QgbWF0Y2ggd2l0aCBhZG1pbiBhZGRyZXNzIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5ozDu/g==", "height": 1683118, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: epVcQybkxkVmEzmeCyd9ZzbtNjFrtQH3i4mUbyNEFFD Next: AkAEpmB9ze1NEKTjz92q83benVMw2Xb2kP2voPVsrT13 Diff:
OldNewDifferences
1717 @Callable(i)
1818 func setupDAppAddress (admin,wavetroller,liquidator) = if (!(isDefined("admin")))
1919 then [writeString("admin", admin), writeString("wavetroller", wavetroller), writeString("liquidator", liquidator)]
20- else throw("Address does not match with admin address!")
20+ else throw("Dapp already setup!")
2121
2222
2323
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)
1818 func setupDAppAddress (admin,wavetroller,liquidator) = if (!(isDefined("admin")))
1919 then [writeString("admin", admin), writeString("wavetroller", wavetroller), writeString("liquidator", liquidator)]
20- else throw("Address does not match with admin address!")
20+ 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/026f985 
25.63 ms