tx · BnrwJ2pAKoaXF3LgupZ4mMewYjtexM5oCaVjMN6wrdf1

3NB7gYiKko9aybm4jjEFdrTjTsvQWpcCdaS:  -0.05000000 Waves

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

{ "type": 13, "id": "BnrwJ2pAKoaXF3LgupZ4mMewYjtexM5oCaVjMN6wrdf1", "fee": 5000000, "feeAssetId": null, "timestamp": 1643142538991, "version": 2, "chainId": 84, "sender": "3NB7gYiKko9aybm4jjEFdrTjTsvQWpcCdaS", "senderPublicKey": "CMZuFNW2DCrX1xFXYGgE6QrERYLGpncVxcAKhxyEsoAa", "proofs": [ "4jXqEvxxriMTMytzXSEj8CPYTcgY3xeWBQFysZA4VEYkrU3GyU1mYD97zY6WnVWU9UTWac6qKCguFVvGaFVTkhmW" ], "script": "base64:AAIFAAAAAAAAABgIAhIDCgEIEgQKAggIEgQKAggBEgMKAQgAAAAEAAAAAAxhZG1pbkFkZHJlc3MJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwIAAAAFYWRtaW4CAAAAAAEAAAAHaXNBZG1pbgAAAAEAAAANY2FsbGVyQWRkcmVzcwMJAAAAAAAAAgUAAAANY2FsbGVyQWRkcmVzcwkAAlkAAAABBQAAAAxhZG1pbkFkZHJlc3MGBwEAAAAMd3JpdGVJbnRlZ2VyAAAAAgAAAANrZXkAAAAMaW50ZWdlclZhbHVlCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAADa2V5BQAAAAxpbnRlZ2VyVmFsdWUBAAAAC3dyaXRlU3RyaW5nAAAAAgAAAANrZXkAAAALc3RyaW5nVmFsdWUJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAALc3RyaW5nVmFsdWUAAAAEAAAAAWkBAAAABXNldHVwAAAAAQAAAAttYWluQWRkcmVzcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZ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kbWluIGFkZHJlc3MhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkCRPcW", "height": 1894916, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: UnoRdY5N9CXDWmxqpTT8NpV2XSLfreuC7hmDXJehFco Next: CGobikNVzPpL5pwBeXERorsdL4a2scP7oqEweJgPLJ7 Diff:
OldNewDifferences
1515
1616
1717 @Callable(i)
18-func setup (a,j) = if (!(isDefined(getString(this, "admin"))))
19- then [g("admin", a), g("main", j)]
18+func setup (j) = if (!(isDefined(getString(this, "admin"))))
19+ then [g("admin", toBase58String(i.caller.bytes)), g("main", j)]
2020 else throw("Pool already setup!")
2121
2222
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getString(this, "admin"), "")
55
66 func b (c) = if ((c == fromBase58String(a)))
77 then true
88 else false
99
1010
1111 func d (e,f) = IntegerEntry(e, f)
1212
1313
1414 func g (e,h) = StringEntry(e, h)
1515
1616
1717 @Callable(i)
18-func setup (a,j) = if (!(isDefined(getString(this, "admin"))))
19- then [g("admin", a), g("main", j)]
18+func setup (j) = if (!(isDefined(getString(this, "admin"))))
19+ then [g("admin", toBase58String(i.caller.bytes)), g("main", j)]
2020 else throw("Pool already setup!")
2121
2222
2323
2424 @Callable(i)
2525 func updateStringEntry (e,h) = if (b(i.caller.bytes))
2626 then [g(e, h)]
2727 else throw("Address does not match with admin address!")
2828
2929
3030
3131 @Callable(i)
3232 func updateIntegerEntry (e,f) = if (b(i.caller.bytes))
3333 then [d(e, f)]
3434 else throw("Address does not match with admin address!")
3535
3636
3737
3838 @Callable(i)
3939 func deleteStorageEntry (e) = if (b(i.caller.bytes))
4040 then [DeleteEntry(e)]
4141 else throw("Address does not match with admin address!")
4242
4343
4444 @Verifier(k)
4545 func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
4646

github/deemru/w8io/169f3d6 
54.29 ms