tx · Cj37SRgLmpc3Cd4gxDwYJUpmsweug62ivKf3bDJWwUL8
3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16: -0.04000000 Waves
2020.09.24 19:09 [1191607] smart account 3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16 > SELF 0.00000000 Waves
{
"type": 13,
"id": "Cj37SRgLmpc3Cd4gxDwYJUpmsweug62ivKf3bDJWwUL8",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1600963902891,
"version": 2,
"chainId": 84,
"sender": "3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16",
"senderPublicKey": "5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u",
"proofs": [
"5A6cD3ruxxJKhc3Ud5MoaMoVwUvuehgX6DKCncDhwTVxEnJKtyMdDQxyZCwMhVU43SuBrb7DmCHJTKW4sEerPWPJ"
],
"script": "base64:AAIEAAAAAAAAAAoIAhIECgIBARIAAAAAAgAAAAALbXlwdWJsaWNrZXkBAAAAIEKXKZcWm8ZroWw2Cu6o7ASQ+/gPHWPgTLEAY1sJ+g0wAQAAABlnZXRBYndhc3Nlck1lbmdlSHlkcmF1bGlrAAAAAQAAAAlQdWJsaWNLZXkEAAAABFdlcnQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAJUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAGAAAAAgAAAAFpAQAAAAhkaXZpc2lvbgAAAAIAAAABYQAAAAFiBAAAAAFjCQAAawAAAAMFAAAAAWEFAAAAAWIAAAAAAAAAAfQEAAAABnJlc3VsdAkAAaQAAAABBQAAAAFjCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmZyYWN0aW9uIDoFAAAABnJlc3VsdAUAAAADbmlsAAAAAWkBAAAADGdldE15TWVzc2FnZQAAAAAEAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkCAAAABV90ZXN0BAAAAANtc2cEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAckbWF0Y2gwBQAAAANtc2cDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAlteU1lc3NhZ2UJAAEsAAAAAgIAAAANcmVmZXJlbmNlIGlzIAUAAAABdAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACW15TWVzc2FnZQkAASwAAAACAgAAAAVub25lIAkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALbXlwdWJsaWNrZXmqL3k9",
"height": 1191607,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: C5voM3C8hiED2p9cWkJCwDXKVL7wyc2RW6pfFM7r4RwM
Next: BDpSiMNHDrRiRLy5WSFQ4988LHK8MPT7gCNLPugQC41n
Diff:
Old | New | | Differences |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func division (a,b) = { |
---|
19 | | - | let c = ((a * b) / 500) |
---|
| 19 | + | let c = fraction(a, b, 500) |
---|
20 | 20 | | let result = toString(c) |
---|
21 | 21 | | [StringEntry("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 = ((a * b) / 500) |
---|
| 19 | + | let c = fraction(a, b, 500) |
---|
20 | 20 | | let result = toString(c) |
---|
21 | 21 | | [StringEntry("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 | | |
---|