tx · 7okm9nmLJczhmmWFMgTLKNUdZcWkj2zJWvCGgwZH9uFe 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6: -0.09000000 Waves 2021.06.08 19:31 [1561627] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves
{ "type": 13, "id": "7okm9nmLJczhmmWFMgTLKNUdZcWkj2zJWvCGgwZH9uFe", "fee": 9000000, "feeAssetId": null, "timestamp": 1623169914819, "version": 2, "chainId": 84, "sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6", "senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1", "proofs": [ "86cshfe8wTt22cHTGNhWxUhv9Fzh2GwwqGWfrkNxz9QVUxmtfS63zdnmgwkKYUMHgKvFjT4k5H3iYt1BiksJGEB" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAAB2NoZWNrQlQAAAAABAAAAAlsd0FkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAALa29vcEFkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAGbAAAAAQIAAAAjM05CcHRMTDdoSmVORXZUVnhIQnFWdFcxY3laMkhuUXdROVYEAAAACXNlYXJjaEtleQIAAAAMdGVzdFNDc3RyaW5nBAAAAApzZWFyY2hLZXkyAgAAAAt0ZXN0U0NtdWx0aQQAAAAGbHdEYXRhCQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIFAAAACWx3QWRyZXNzZQUAAAAJc2VhcmNoS2V5BAAAAAhrb29wRGF0YQkBAAAAE2dldERhdGFGcm9tQ3VzdG9tZXIAAAACBQAAAAtrb29wQWRyZXNzZQUAAAAJc2VhcmNoS2V5BAAAAAVpbmRleAAAAAAAAAAAAAMJAAAAAAAAAgUAAAAGbHdEYXRhBQAAAAhrb29wRGF0YQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAp0ZXN0T3V0cHV0AgAAACVWZXJnbGVpY2hlIFN0cmluZ3dlcnRlIGF1cyAyIEFjY291bnRzCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWx3QWRyZXNzZQAAAAAAAA9CQAgFAAAAAWkAAAAKZmVlQXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAMXZlcmdsZWljaCBkZXIgRGF0ZW4gYXVzIDIgQWNjcyBoYXQgbmljaHQgZ2VrbGFwcHQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GBq6MWQI=", "height": 1561627, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6qAMzNwnuLoN2N2bBWcF6JTKU3P5KQHHGUpoNSD7Wi4B Next: B7JP1pK35WZBrnk2zivNjCUMwiK2WvarMyXDgy97UGgK Diff:
Old | New | Differences | |
---|---|---|---|
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func checkBT () = { | |
17 | - | let kundenAdresse = addressFromPublicKey(i.callerPublicKey) | |
17 | + | let lwAdresse = addressFromPublicKey(i.callerPublicKey) | |
18 | + | let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V")) | |
18 | 19 | let searchKey = "testSCstring" | |
19 | 20 | let searchKey2 = "testSCmulti" | |
20 | - | let testData = getDataFromCustomer(kundenAdresse, searchKey) | |
21 | - | let multi = getDataFromCustomer(kundenAdresse, searchKey2) | |
22 | - | if (if ((parseIntValue(testData) >= 15)) | |
23 | - | then (parseIntValue(multi) >= 5) | |
24 | - | else false) | |
25 | - | then [StringEntry("testOutput", "Vergleiche zwei Werte gleichzeitig mit Int hat geklappt(15&5)"), ScriptTransfer(kundenAdresse, 1000000, i.feeAssetId)] | |
26 | - | else throw("Vergleiche StringToInt mit Int hat nicht geklappt") | |
21 | + | let lwData = getDataFromCustomer(lwAdresse, searchKey) | |
22 | + | let koopData = getDataFromCustomer(koopAdresse, searchKey) | |
23 | + | let index = 0 | |
24 | + | if ((lwData == koopData)) | |
25 | + | then [StringEntry("testOutput", "Vergleiche Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
26 | + | else throw("vergleich der Daten aus 2 Accs hat nicht geklappt") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getDataFromCustomer (adr,key) = { | |
5 | 5 | let data = match getString(adr, key) { | |
6 | 6 | case a: String => | |
7 | 7 | a | |
8 | 8 | case _ => | |
9 | 9 | "" | |
10 | 10 | } | |
11 | 11 | data | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func checkBT () = { | |
17 | - | let kundenAdresse = addressFromPublicKey(i.callerPublicKey) | |
17 | + | let lwAdresse = addressFromPublicKey(i.callerPublicKey) | |
18 | + | let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V")) | |
18 | 19 | let searchKey = "testSCstring" | |
19 | 20 | let searchKey2 = "testSCmulti" | |
20 | - | let testData = getDataFromCustomer(kundenAdresse, searchKey) | |
21 | - | let multi = getDataFromCustomer(kundenAdresse, searchKey2) | |
22 | - | if (if ((parseIntValue(testData) >= 15)) | |
23 | - | then (parseIntValue(multi) >= 5) | |
24 | - | else false) | |
25 | - | then [StringEntry("testOutput", "Vergleiche zwei Werte gleichzeitig mit Int hat geklappt(15&5)"), ScriptTransfer(kundenAdresse, 1000000, i.feeAssetId)] | |
26 | - | else throw("Vergleiche StringToInt mit Int hat nicht geklappt") | |
21 | + | let lwData = getDataFromCustomer(lwAdresse, searchKey) | |
22 | + | let koopData = getDataFromCustomer(koopAdresse, searchKey) | |
23 | + | let index = 0 | |
24 | + | if ((lwData == koopData)) | |
25 | + | then [StringEntry("testOutput", "Vergleiche Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)] | |
26 | + | else throw("vergleich der Daten aus 2 Accs hat nicht geklappt") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Verifier(tx) | |
31 | 31 | func verify () = match tx { | |
32 | 32 | case _: DataTransaction => | |
33 | 33 | true | |
34 | 34 | case _: SetScriptTransaction => | |
35 | 35 | true | |
36 | 36 | case _ => | |
37 | 37 | true | |
38 | 38 | } | |
39 | 39 |
github/deemru/w8io/026f985 34.96 ms ◑