tx · BQrtKotsWaGhURgWEwEs8DNndFczEwaaZLxeVi5MLCyV
3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16: -0.04000000 Waves
2020.09.24 20:04 [1191665] smart account 3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BQrtKotsWaGhURgWEwEs8DNndFczEwaaZLxeVi5MLCyV",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1600967126807,
"version": 2,
"chainId": 84,
"sender": "3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16",
"senderPublicKey": "5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u",
"proofs": [
"3GWquTz5ndBCH6142VUtRJoD3ajDYvCTLdemHVfTRqjXGZ4ooBiuWLaN2RiY9Lrj8Fs1oxgwq2YaW5H8hs2BpHSC"
],
"script": "base64:AAIEAAAAAAAAAAoIAhIECgIBARIAAAAAAgAAAAALbXlwdWJsaWNrZXkBAAAAIEKXKZcWm8ZroWw2Cu6o7ASQ+/gPHWPgTLEAY1sJ+g0wAQAAABlnZXRBYndhc3Nlck1lbmdlSHlkcmF1bGlrAAAAAQAAAAlQdWJsaWNLZXkEAAAABFdlcnQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAJUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAGAAAAAgAAAAFpAQAAAAhkaXZpc2lvbgAAAAIAAAABYQAAAAFiBAAAAAFjCQAAaQAAAAIJAABoAAAAAgkAAGgAAAACBQAAAAFhBQAAAAFiAAAAAAAAAABkAAAAAAAAAAH0BAAAAAZyZXN1bHQJAAGkAAAAAQUAAAABYwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5uZXcgZnJhY3Rpb24gOgUAAAAGcmVzdWx0BQAAAANuaWwAAAABaQEAAAAMZ2V0TXlNZXNzYWdlAAAAAAQAAAAKY3VycmVudEtleQkAASwAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQIAAAAFX3Rlc3QEAAAAA21zZwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAByRtYXRjaDAFAAAAA21zZwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF0BQAAAAckbWF0Y2gwCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACW15TWVzc2FnZQkAASwAAAACAgAAAA1yZWZlcmVuY2UgaXMgBQAAAAF0BQAAAANuaWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAJbXlNZXNzYWdlCQABLAAAAAICAAAABW5vbmUgCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAtteXB1YmxpY2tlec0uarQ=",
"height": 1191665,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BDpSiMNHDrRiRLy5WSFQ4988LHK8MPT7gCNLPugQC41n
Next: 2CqBRwhHoh2rb1bfPBp9BgTGUZZVAcfFMvg8STU3oC3s
Diff:
Old | New | | Differences |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func division (a,b) = { |
---|
19 | | - | let c = fraction(a, b, 500) |
---|
| 19 | + | let c = (((a * b) * 100) / 500) |
---|
20 | 20 | | let result = toString(c) |
---|
21 | 21 | | [StringEntry("new fraction :", result)] |
---|
22 | 22 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let mypublickey = base58'5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u' |
---|
5 | 5 | | |
---|
6 | 6 | | func getAbwasserMengeHydraulik (PublicKey) = { |
---|
7 | 7 | | let Wert = match getString(this, PublicKey) { |
---|
8 | 8 | | case a: String => |
---|
9 | 9 | | a |
---|
10 | 10 | | case _ => |
---|
11 | 11 | | 0 |
---|
12 | 12 | | } |
---|
13 | 13 | | true |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func division (a,b) = { |
---|
19 | | - | let c = fraction(a, b, 500) |
---|
| 19 | + | let c = (((a * b) * 100) / 500) |
---|
20 | 20 | | let result = toString(c) |
---|
21 | 21 | | [StringEntry("new fraction :", result)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Callable(i) |
---|
27 | 27 | | func getMyMessage () = { |
---|
28 | 28 | | let currentKey = (toBase58String(i.callerPublicKey) + "_test") |
---|
29 | 29 | | let msg = match getString(this, currentKey) { |
---|
30 | 30 | | case a: String => |
---|
31 | 31 | | a |
---|
32 | 32 | | case _ => |
---|
33 | 33 | | 0 |
---|
34 | 34 | | } |
---|
35 | 35 | | match msg { |
---|
36 | 36 | | case t: String => |
---|
37 | 37 | | [StringEntry("myMessage", ("reference is " + t))] |
---|
38 | 38 | | case _ => |
---|
39 | 39 | | [StringEntry("myMessage", ("none " + toBase58String(i.callerPublicKey)))] |
---|
40 | 40 | | } |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
44 | 44 | | @Verifier(tx) |
---|
45 | 45 | | func verify () = match tx { |
---|
46 | 46 | | case tx: SetScriptTransaction => |
---|
47 | 47 | | true |
---|
48 | 48 | | case _ => |
---|
49 | 49 | | sigVerify(tx.bodyBytes, tx.proofs[0], mypublickey) |
---|
50 | 50 | | } |
---|
51 | 51 | | |
---|