tx · UnoRdY5N9CXDWmxqpTT8NpV2XSLfreuC7hmDXJehFco

3NB7gYiKko9aybm4jjEFdrTjTsvQWpcCdaS:  -0.01000000 Waves

2022.01.25 23:23 [1894913] smart account 3NB7gYiKko9aybm4jjEFdrTjTsvQWpcCdaS > SELF 0.00000000 Waves

{ "type": 13, "id": "UnoRdY5N9CXDWmxqpTT8NpV2XSLfreuC7hmDXJehFco", "fee": 1000000, "feeAssetId": null, "timestamp": 1643142311524, "version": 2, "chainId": 84, "sender": "3NB7gYiKko9aybm4jjEFdrTjTsvQWpcCdaS", "senderPublicKey": "CMZuFNW2DCrX1xFXYGgE6QrERYLGpncVxcAKhxyEsoAa", "proofs": [ "5CnfewahnPi7o2xU9oApjNLyrsJsrLUTc7pGUhczA6T9AfRTkJP1xed9qfk2btoDVGzfy3UYNUbshyEvPYD76zEe" ], "script": "base64:AAIFAAAAAAAAABkIAhIECgIICBIECgIICBIECgIIARIDCgEIAAAABAAAAAAMYWRtaW5BZGRyZXNzCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABWFkbWluAgAAAAABAAAAB2lzQWRtaW4AAAABAAAADWNhbGxlckFkZHJlc3MDCQAAAAAAAAIFAAAADWNhbGxlckFkZHJlc3MJAAJZAAAAAQUAAAAMYWRtaW5BZGRyZXNzBgcBAAAADHdyaXRlSW50ZWdlcgAAAAIAAAADa2V5AAAADGludGVnZXJWYWx1ZQkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAAAABAAAAAFpAQAAAAVzZXR1cAAAAAIAAAAMYWRtaW5BZGRyZXNzAAAAC21haW5BZGRyZXNzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQk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AAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleT0aBfI=", "height": 1894913, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BnrwJ2pAKoaXF3LgupZ4mMewYjtexM5oCaVjMN6wrdf1 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let adminAddress = valueOrElse(getString(this, "admin"), "")
5+
6+func isAdmin (callerAddress) = if ((callerAddress == fromBase58String(adminAddress)))
7+ then true
8+ else false
9+
10+
11+func writeInteger (key,integerValue) = IntegerEntry(key, integerValue)
12+
13+
14+func writeString (key,stringValue) = StringEntry(key, stringValue)
15+
16+
17+@Callable(i)
18+func setup (adminAddress,mainAddress) = if (!(isDefined(getString(this, "admin"))))
19+ then [writeString("admin", adminAddress), writeString("main", mainAddress)]
20+ else throw("Pool already setup!")
21+
22+
23+
24+@Callable(i)
25+func updateStringEntry (key,stringValue) = if (isAdmin(i.caller.bytes))
26+ then [writeString(key, stringValue)]
27+ else throw("Address does not match with admin address!")
28+
29+
30+
31+@Callable(i)
32+func updateIntegerEntry (key,integerValue) = if (isAdmin(i.caller.bytes))
33+ then [writeInteger(key, integerValue)]
34+ else throw("Address does not match with admin address!")
35+
36+
37+
38+@Callable(i)
39+func deleteStorageEntry (key) = if (isAdmin(i.caller.bytes))
40+ then [DeleteEntry(key)]
41+ else throw("Address does not match with admin address!")
42+
43+
44+@Verifier(tx)
45+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
46+

github/deemru/w8io/169f3d6 
21.49 ms