tx · BypPR9VgXKjr9LKFr1LS1JnRz79o8gxExHSsqRUwre1n

3Ms1tCCM1iMN7Ri2iAmmRfTzGpQpCxSKpxt:  -0.01400000 Waves

2020.04.07 11:27 [943623] smart account 3Ms1tCCM1iMN7Ri2iAmmRfTzGpQpCxSKpxt > SELF 0.00000000 Waves

{ "type": 13, "id": "BypPR9VgXKjr9LKFr1LS1JnRz79o8gxExHSsqRUwre1n", "fee": 1400000, "feeAssetId": null, "timestamp": 1586248116480, "version": 1, "sender": "3Ms1tCCM1iMN7Ri2iAmmRfTzGpQpCxSKpxt", "senderPublicKey": "A9oqCj1ciUvMLSEBPJsmGSsq5xdZUsYgZ8rT9dwpymM6", "proofs": [ "45qLirRvsaiPJppancGK2ZquSLmhvkZKzcksU975cBqSokzbpSUGFGTbcL3HChusWTPJgudRcmUQhzRUj1ZTCpcd" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIICBIHCgUBCAgIAQAAAAMAAAAABkFDVElWRQAAAAAAAAAAAQAAAAAJUkVDT1ZFUkVEAAAAAAAAAAACAAAAAAhERUNFQVNFRAAAAAAAAAAAAwAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABGNpdHkAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEY2l0eQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAFAAAAAmlkAAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAAGc3RhdHVzBAAAAAxvd25lckFkZHJlc3MJAAQl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hdGllbnRJRAIAAAADX0lEBQAAAAlwYXRpZW50SUQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAHX2dlbmRlcgUAAAAGZ2VuZGVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABF9hZ2UFAAAAA2FnZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAlfbG9jYXRpb24FAAAACGxvY2F0aW9uCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAAB19zdGF0dXMFAAAADHN0cmluZ1N0YXR1cwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAAC19jb3VudGVyTnVtBQAAAA11cGRhdGVDb3VudGVyBQAAAANuaWwAAAAAQaWP+A==", "chainId": 84, "height": 943623, "spentComplexity": 0 } View: original | compacted Prev: GHB29YhiK4KNfBwmLjvZrZg39auhwpgf7vN3opR1efFR Next: none Diff:
OldNewDifferences
2222 case c: Int =>
2323 (c + 1)
2424 case _ =>
25- 0
25+ 1
2626 }
2727 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(id)) + "_ID")) {
2828 case p: Int =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ACTIVE = 1
55
66 let RECOVERED = 2
77
88 let DECEASED = 3
99
1010 @Callable(i)
1111 func updateInfos (city,intro) = {
1212 let ownerAddress = i.caller
1313 WriteSet([DataEntry((toString(ownerAddress) + "_name"), city), DataEntry((toString(ownerAddress) + "_intro"), intro)])
1414 }
1515
1616
1717
1818 @Callable(i)
1919 func addUpdateCase (id,gender,age,location,status) = {
2020 let ownerAddress = toString(i.caller)
2121 let counterNum = match getInteger(this, (ownerAddress + "_counterNum")) {
2222 case c: Int =>
2323 (c + 1)
2424 case _ =>
25- 0
25+ 1
2626 }
2727 let patientID = match getInteger(this, (((ownerAddress + "_patient_") + toString(id)) + "_ID")) {
2828 case p: Int =>
2929 p
3030 case _ =>
3131 counterNum
3232 }
3333 let updateCounter = if ((id == 0))
3434 then counterNum
3535 else patientID
3636 let stringStatus = if ((status == ACTIVE))
3737 then "active"
3838 else if ((status == RECOVERED))
3939 then "recovered"
4040 else if ((status == DECEASED))
4141 then "deceased"
4242 else throw("Wrong status")
4343 if ((stringStatus == "Wrong status"))
4444 then throw("Wrong status")
4545 else WriteSet([DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_ID"), patientID), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_gender"), gender), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_age"), age), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_location"), location), DataEntry((((ownerAddress + "_patient_") + toString(patientID)) + "_status"), stringStatus), DataEntry((ownerAddress + "_counterNum"), updateCounter)])
4646 }
4747
4848

github/deemru/w8io/026f985 
32.77 ms