tx · Fv6mxww4PX7i3ysNEnNAe5cgxYVCsRNxpaBYTWCquPM7

3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM:  -0.01400000 Waves

2020.04.07 13:02 [943722] smart account 3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM > SELF 0.00000000 Waves

{ "type": 13, "id": "Fv6mxww4PX7i3ysNEnNAe5cgxYVCsRNxpaBYTWCquPM7", "fee": 1400000, "feeAssetId": null, "timestamp": 1586253822096, "version": 1, "sender": "3NBbHi3Vj5yt37Yv9XZtfwMy7KnZUWSY3uM", "senderPublicKey": "DBaFJJsmpYsJTJHfqCaVLcZnbUjhBVHE4TwZKWGjLWJK", "proofs": [ "u3WpJe1QDmP9jrr6WPca5zas8XNxbG4e6JymGSbpmhB83kW1c55Lq885CYGsr8sVY6s1Y9YwnQnHVw8Cw8NgCvr" ], "script": "base64:AAIDAAAAAAAAABIIARIECgIICBIICgYBCAgICAEAAAAAAAAAAgAAAAFpAQAAAAt1cGRhdGVJbmZvcwAAAAIAAAAEY2l0eQAAAAVpbnRybwQAAAAMb3duZXJBZGRyZXNzCAUAAAABaQAAAAZjYWxsZXIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAABV9uYW1lBQAAAARjaXR5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAZfaW50cm8FAAAABWludHJvBQAAAANuaWwAAAABaQEAAAANYWRkVXBkYXRlQ2FzZQAAAAYAAAALaWRlbnRpZmlhbnQAAAAGZ2VuZGVyAAAAA2FnZQAAAAhsb2NhdGlvbgAAAANwZWMAAAAGc3RhdHVzBAAAAAxvd25lckFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAAApjb3VudGVyTnVtBAAAAAckbW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QABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAAB19nZW5kZXIFAAAABmdlbmRlcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAARfYWdlBQAAAANhZ2UJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAEX3BlYwUAAAADcGVjCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAACV9sb2NhdGlvbgUAAAAIbG9jYXRpb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAHX3N0YXR1cwUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAALX2NvdW50ZXJOdW0FAAAADXVwZGF0ZUNvdW50ZXIFAAAAA25pbAAAAAAcLTIr", "chainId": 84, "height": 943722, "spentComplexity": 0 } View: original | compacted Prev: 48CcZCKr9f2wTovVftd1gEt8z6q7n9PVbyUogFWhqNZg Next: H3ZSDMGN1dgM7yXvooAtXsZ1qAymHLdbbK4QDkw47PHz Diff:
OldNewDifferences
2929 let updateCounter = if ((identifiant == 0))
3030 then counterNum
3131 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)])
32+ if ((status != 5))
33+ then throw(("status = " + toString(status)))
34+ else if (if (if ((status != 1))
35+ then true
36+ else (status != 2))
37+ then true
38+ else (status != 3))
39+ then throw("Wrong status")
40+ 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)])
3941 }
4042
4143
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func updateInfos (city,intro) = {
88 let ownerAddress = i.caller
99 WriteSet([DataEntry((toString(ownerAddress) + "_name"), city), DataEntry((toString(ownerAddress) + "_intro"), intro)])
1010 }
1111
1212
1313
1414 @Callable(i)
1515 func addUpdateCase (identifiant,gender,age,location,pec,status) = {
1616 let ownerAddress = toString(i.caller)
1717 let counterNum = match getInteger(this, (ownerAddress + "_counterNum")) {
1818 case c: Int =>
1919 (c + 1)
2020 case _ =>
2121 1
2222 }
2323 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(identifiant)) + "_identifiant")) {
2424 case p: Int =>
2525 p
2626 case _ =>
2727 counterNum
2828 }
2929 let updateCounter = if ((identifiant == 0))
3030 then counterNum
3131 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)])
32+ if ((status != 5))
33+ then throw(("status = " + toString(status)))
34+ else if (if (if ((status != 1))
35+ then true
36+ else (status != 2))
37+ then true
38+ else (status != 3))
39+ then throw("Wrong status")
40+ 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)])
3941 }
4042
4143

github/deemru/w8io/026f985 
29.34 ms