tx · 5J4MdRVh8Qy2BD9w8nRptZmoqFbRQ5xc6X5yazpn9JTz

3NCfGdfNoHqTPZ1j43n14UNQ32V8CL2kSBn:  -0.01000000 Waves

2021.02.18 18:26 [1403760] smart account 3NCfGdfNoHqTPZ1j43n14UNQ32V8CL2kSBn > SELF 0.00000000 Waves

{ "type": 13, "id": "5J4MdRVh8Qy2BD9w8nRptZmoqFbRQ5xc6X5yazpn9JTz", "fee": 1000000, "feeAssetId": null, "timestamp": 1613661995013, "version": 2, "chainId": 84, "sender": "3NCfGdfNoHqTPZ1j43n14UNQ32V8CL2kSBn", "senderPublicKey": "7Vwiug8WQYg51MsPiMeA8A2WyRVv6u4ZqGTEKKBqN9bw", "proofs": [ "5giah9ddqoGEsAvzn1j4HgBrgfN5b9gDE9QVxq1RUk8ZPUKbAWPrN97i7ErepgM4B7UKiGBvxq71W8u1BCSiQTwP" ], "script": "base64:AAIEAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAwEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdgUAAAAHJG1hdGNoMAUAAAABdgIAAAAAAQAAAApFdGhBZGRyZXNzAAAAAQAAAAJpZAkAASwAAAACAgAAAAxldGhfYWRkcmVzc18FAAAAAmlkAQAAAApVc2VySW1wYWN0AAAAAQAAAAJpZAkAASwAAAACAgAAAAx1c2VyX2ltcGFjdF8FAAAAAmlkAAAAAgAAAAFpAQAAAAVsb2dpbgAAAAIAAAAJZXRoQWRkZXNzAAAAC3dhdmVzQWRkZXNzAwMJAQAAAAIhPQAAAAIJAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEJAQAAAApFdGhBZGRyZXNzAAAAAQUAAAAJZXRoQWRkZXNzAgAAAAAGCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIJAAQmAAAAAQUAAAALd2F2ZXNBZGRlc3MJAAACAAAAAQIAAAAKaXMgZGVmaW5lZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAKRXRoQWRkcmVzcwAAAAEFAAAACWV0aEFkZGVzcwUAAAALd2F2ZXNBZGRlc3MJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAApVc2VySW1wYWN0AAAAAQUAAAALd2F2ZXNBZGRlc3MAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAABFzYXlIZWxsb0Zyb21XYXZlcwAAAAEAAAAKZXRoQWRkcmVzcwMJAAAAAAAAAgkABCYAAAABCQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABCQEAAAAKRXRoQWRkcmVzcwAAAAEFAAAACmV0aEFkZHJlc3MIBQAAAAFpAAAABmNhbGxlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0IGhlbGxvIG1zZwkAASwAAAACCQABLAAAAAICAAAAB2hlbGxvLCAJAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEJAQAAAApFdGhBZGRyZXNzAAAAAQUAAAAKZXRoQWRkcmVzcwIAAAABIQUAAAADbmlsCQAAAgAAAAECAAAADGFjY2VzcyBlcnJvcgAAAADq+tuI", "height": 1403760, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getStringByKey (key) = match getString(this, key) {
5+ case v: String =>
6+ v
7+ case _ =>
8+ ""
9+}
10+
11+
12+func EthAddress (id) = ("eth_address_" + id)
13+
14+
15+func UserImpact (id) = ("user_impact_" + id)
16+
17+
18+@Callable(i)
19+func login (ethAddess,wavesAddess) = if (if ((getStringByKey(EthAddress(ethAddess)) != ""))
20+ then true
21+ else (i.caller != addressFromString(wavesAddess)))
22+ then throw("is defined")
23+ else [StringEntry(EthAddress(ethAddess), wavesAddess), IntegerEntry(UserImpact(wavesAddess), 0)]
24+
25+
26+
27+@Callable(i)
28+func sayHelloFromWaves (ethAddress) = if ((addressFromString(getStringByKey(EthAddress(ethAddress))) == i.caller))
29+ then [StringEntry("last hello msg", (("hello, " + getStringByKey(EthAddress(ethAddress))) + "!"))]
30+ else throw("access error")
31+
32+

github/deemru/w8io/169f3d6 
20.25 ms