tx · 48CcZCKr9f2wTovVftd1gEt8z6q7n9PVbyUogFWhqNZg 3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM: -0.01400000 Waves 2020.04.07 13:01 [943721] smart account 3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM > SELF 0.00000000 Waves
{ "type": 13, "id": "48CcZCKr9f2wTovVftd1gEt8z6q7n9PVbyUogFWhqNZg", "fee": 1400000, "feeAssetId": null, "timestamp": 1586253672268, "version": 1, "sender": "3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM", "senderPublicKey": "DBaFJJsmpYsJTJHfqCaVLcZnbUjhBVHE4TwZKWGjLWJK", "proofs": [ "y3cvaQq3evRhpAroZttkEnuxeAkfjHCSmmEWUKYFSXCXKcBfABYa9umWGFGuSYELbtv8o3Lvn2Hibi1RsCMDnWa" ], "script": "base64:AAIDAAAAAAAAABIIARIECgIICBIICgYBCAgICAEAAAAAAAAAAgAAAAFpAQAAAAt1cGRhdGVJbmZvcwAAAAIAAAAEY2l0eQAAAAVpbnRybwQAAAAMb3duZXJBZGRyZXNzCAUAAAABaQAAAAZjYWxsZXIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAABV9uYW1lBQAAAARjaXR5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAZfaW50cm8FAAAABWludHJvBQAAAANuaWwAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAYAAAALaWRlbnRpZmlhbnQAAAAGZ2VuZGVyAAAAA2FnZQAAAAhsb2NhdGlvbgAAAANwZWMAAAAGc3RhdHVzBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAAApjb3VudGVyTnVtBAAAAAckbWF0Y2gw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lcgUAAAAGZ2VuZGVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABF9hZ2UFAAAAA2FnZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAARfcGVjBQAAAANwZWMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAJX2xvY2F0aW9uBQAAAAhsb2NhdGlvbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAdfc3RhdHVzBQAAAAZzdGF0dXMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAtfY291bnRlck51bQUAAAANdXBkYXRlQ291bnRlcgUAAAADbmlsAAAAAPP9JNQ=", "chainId": 84, "height": 943721, "spentComplexity": 0 } View: original | compacted Prev: none Next: Fv6mxww4PX7i3ysNEnNAe5cgxYVCsRNxpaBYTWCquPM7 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func updateInfos (city,intro) = { | |
8 | + | let ownerAddress = i.caller | |
9 | + | WriteSet([DataEntry((toString(ownerAddress) + "_name"), city), DataEntry((toString(ownerAddress) + "_intro"), intro)]) | |
10 | + | } | |
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | @Callable(i) | |
15 | + | func addUpdateCase (identifiant,gender,age,location,pec,status) = { | |
16 | + | let ownerAddress = toString(i.caller) | |
17 | + | let counterNum = match getInteger(this, (ownerAddress + "_counterNum")) { | |
18 | + | case c: Int => | |
19 | + | (c + 1) | |
20 | + | case _ => | |
21 | + | 1 | |
22 | + | } | |
23 | + | let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) { | |
24 | + | case p: Int => | |
25 | + | p | |
26 | + | case _ => | |
27 | + | counterNum | |
28 | + | } | |
29 | + | let updateCounter = if ((identifiant == 0)) | |
30 | + | then counterNum | |
31 | + | else patientID | |
32 | + | if (if (if ((status != 1)) | |
33 | + | then true | |
34 | + | else (status != 2)) | |
35 | + | then true | |
36 | + | else (status != 3)) | |
37 | + | then throw("Wrong status") | |
38 | + | else WriteSet([DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_identifiant"), patientID), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_gender"), gender), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_age"), age), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_pec"), pec), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_location"), location), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_status"), status), DataEntry((ownerAddress + "_counterNum"), updateCounter)]) | |
39 | + | } | |
40 | + | ||
41 | + |
github/deemru/w8io/026f985 18.87 ms ◑