tx · CBD85x1fz4TZLifsgXrmLFcSd2EMRNotpMkUUn8WEUsB

3NC5QpzN3kuCjekUHVfM5tzvPLrSVTq4o9G:  -0.01400000 Waves

2021.09.14 07:55 [1702268] smart account 3NC5QpzN3kuCjekUHVfM5tzvPLrSVTq4o9G > SELF 0.00000000 Waves

{ "type": 13, "id": "CBD85x1fz4TZLifsgXrmLFcSd2EMRNotpMkUUn8WEUsB", "fee": 1400000, "feeAssetId": null, "timestamp": 1631595473123, "version": 2, "chainId": 84, "sender": "3NC5QpzN3kuCjekUHVfM5tzvPLrSVTq4o9G", "senderPublicKey": "EFpp3VNqhjvnpPsShyboT3xqWaBexXqqnGR9F2FZzRKV", "proofs": [ "4zZkFmXvnmUGG2khdaTg26fxhHD7bVZceTN22n5KJ7exeU4ezEZEpd8TwRQyRL4RTksXCwTQCoc6z1iW8Z3yjkF2" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIICBIJCgcBCAEICAEBAAAAAAAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABG5hbWUAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEbmFtZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAHAAAAC2lkZW50aWZpYW50AAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAADcGVjAAAABnN0YXR1cwAAAARkYXRlBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAABFjdXJyZW50Q291bnRl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wAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAHX3N0YXR1cwUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABV9kYXRlBQAAAARkYXRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABV9qc29uBQAAAARqc29uCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAALX2NvdW50ZXJOdW0FAAAADXVwZGF0ZUNvdW50ZXIFAAAAA25pbAAAAACZbz6k", "height": 1702268, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GRY75dBskpa2C33A45Z3hoEp2JDu8nMqFQ63Se9pQN4B Next: AXLfE2daBeL16moAzSs7CjmyTMXbBJkx9KdDgawbNQik Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func updateInfos (name,intro) = {
88 let ownerAddress = i.caller
99 WriteSet([DataEntry((toString(ownerAddress) + "_name"), name), DataEntry((toString(ownerAddress) + "_intro"), intro)])
1010 }
1111
1212
1313
1414 @Callable(i)
1515 func addUpdateCase (identifiant,gender,age,location,pec,status,date) = {
1616 let ownerAddress = toString(i.caller)
1717 let currentCounterNum = match getInteger(this, (ownerAddress + "_counterNum")) {
1818 case c: Int =>
1919 c
2020 case _ =>
2121 0
2222 }
2323 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) {
2424 case p: Int =>
2525 p
2626 case _ =>
2727 (currentCounterNum + 1)
2828 }
2929 let json = (((((((((((((("{\"identifiant\":\"" + toString(patientID)) + "\",\"gender\":\"") + gender) + "\",\"age\":\"") + toString(age)) + "\",\"pec\":\"") + pec) + "\",\"location\":\"") + location) + "\",\"date\":\"") + toString(date)) + "\",\"status\":\"") + toString(status)) + "\"}")
3030 let updateCounter = if ((identifiant == 0))
3131 then (currentCounterNum + 1)
3232 else currentCounterNum
3333 if (if (if ((status != 1))
3434 then (status != 2)
3535 else false)
3636 then (status != 3)
3737 else false)
3838 then throw("Wrong status")
3939 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 + "_patient_") + toString(patientID)) + "_date"), date), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_json"), json), DataEntry((ownerAddress + "_counterNum"), updateCounter)])
4040 }
4141
4242

github/deemru/w8io/026f985 
31.66 ms