tx · BavWW3CBvgPi4EA7X5WV6LXNmVPR9JbJzoxtMBwjnovM

3NCUH4Z4WnFqmxZ27uSkiunPeupYQWU2iDT:  -0.01000000 Waves

2021.02.18 18:36 [1403768] smart account 3NCUH4Z4WnFqmxZ27uSkiunPeupYQWU2iDT > SELF 0.00000000 Waves

{ "type": 13, "id": "BavWW3CBvgPi4EA7X5WV6LXNmVPR9JbJzoxtMBwjnovM", "fee": 1000000, "feeAssetId": null, "timestamp": 1613662647051, "version": 2, "chainId": 84, "sender": "3NCUH4Z4WnFqmxZ27uSkiunPeupYQWU2iDT", "senderPublicKey": "CsUuPVM86RKRHrEvMoNutauau6EXq5eedcpHKySqsBUb", "proofs": [ "3FVQqJpzEUwyei4WnHFHxD6keMbwH6c6Zuyvjie4sCjVnJ7wVNQg3r3YtXe5FN2tUsd736ztWMs2LjVj3AZCtUBE" ], "script": "base64:AAIEAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAwEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdgUAAAAHJG1hdGNoMAUAAAABdgIAAAAAAQAAAApFdGhBZGRyZXNzAAAAAQAAAAJpZAkAASwAAAACAgAAAAxldGhfYWRkcmVzc18FAAAAAmlkAQAAAApVc2VySW1wYWN0AAAAAQAAAAJpZAkAASwAAAACAgAAAAx1c2VyX2ltcGFjdF8FAAAAAmlkAAAAAgAAAAFpAQAAAAVsb2dpbgAAAAIAAAAJZXRoQWRkZXNzAAAAC3dhdmVzQWRkZXNzAwMJAQAAAAIhPQAAAAIJAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEJAQAAAApFdGhBZGRyZXNzAAAAAQUAAAAJZXRoQWRkZXNzAgAAAAAGCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIJAAQmAAAAAQUAAAALd2F2ZXNBZGRlc3MJAAACAAAAAQIAAAAKaXMgZGVmaW5lZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAKRXRoQWRkcmVzcwAAAAEFAAAACWV0aEFkZGVzcwUAAAALd2F2ZXNBZGRlc3MJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAApVc2VySW1wYWN0AAAAAQUAAAALd2F2ZXNBZGRlc3MAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAABFzYXlIZWxsb0Zyb21XYXZlcwAAAAEAAAAKZXRoQWRkcmVzcwMJAAAAAAAAAgkABCYAAAABCQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABCQEAAAAKRXRoQWRkcmVzcwAAAAEFAAAACmV0aEFkZHJlc3MIBQAAAAFpAAAABmNhbGxlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0IGhlbGxvIG1zZwkAASwAAAACCQABLAAAAAICAAAAB2hlbGxvLCAJAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEJAQAAAApFdGhBZGRyZXNzAAAAAQUAAAAKZXRoQWRkcmVzcwIAAAABIQUAAAADbmlsCQAAAgAAAAECAAAADGFjY2VzcyBlcnJvcgAAAADq+tuI", "height": 1403768, "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 
34.04 ms