tx · 1SHEThSbMm22yGPpsmBjbAmHpoCYVUZYuyBEcS6HisH

3NA9EqBLzdqVk3HeXo8bCZps9Brxtyu9qB2:  -0.01400000 Waves

2020.04.07 11:02 [943601] smart account 3NA9EqBLzdqVk3HeXo8bCZps9Brxtyu9qB2 > SELF 0.00000000 Waves

{ "type": 13, "id": "1SHEThSbMm22yGPpsmBjbAmHpoCYVUZYuyBEcS6HisH", "fee": 1400000, "feeAssetId": null, "timestamp": 1586246602503, "version": 1, "sender": "3NA9EqBLzdqVk3HeXo8bCZps9Brxtyu9qB2", "senderPublicKey": "HiegtwzYYT7w7bmyj9gnGHmfXgGYCMBW6dKshoBik5b5", "proofs": [ "2KKdZJZof6DnbqYmEFmuCEUJ3JNw6C7rHHNhfLibr5XLjvtBZknKxjJc7XdmyeAhcwuVfHJR8xvYvuZSXHU8c9mZ" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIICBIHCgUBCAgIAQAAAAMAAAAABkFDVElWRQAAAAAAAAAAAQAAAAAJUkVDT1ZFUkVEAAAAAAAAAAACAAAAAAhERUNFQVNFRAAAAAAAAAAAAwAAAAIAAAABaQEAAAALdXBkYXRlSW5mb3MAAAACAAAABGNpdHkAAAAFaW50cm8EAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQUAAAAMb3duZXJBZGRyZXNzAgAAAAVfbmFtZQUAAAAEY2l0eQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGX2ludHJvBQAAAAVpbnRybwUAAAADbmlsAAAAAWkBAAAADWFkZFVwZGF0ZUNhc2UAAAAFAAAAAmlkAAAABmdlbmRlcgAAAANhZ2UAAAAIbG9jYXRpb24AAAAGc3RhdHVzBAAAAAxvd25lckFkZHJlc3MJAAQl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AAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADG93bmVyQWRkcmVzcwIAAAAJX3BhdGllbnRfCQABpAAAAAEFAAAACXBhdGllbnRJRAIAAAAHX2dlbmRlcgUAAAAGZ2VuZGVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAABF9hZ2UFAAAAA2FnZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMb3duZXJBZGRyZXNzAgAAAAlfcGF0aWVudF8JAAGkAAAAAQUAAAAJcGF0aWVudElEAgAAAAlfbG9jYXRpb24FAAAACGxvY2F0aW9uCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAACV9wYXRpZW50XwkAAaQAAAABBQAAAAlwYXRpZW50SUQCAAAAB19zdGF0dXMFAAAADHN0cmluZ1N0YXR1cwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAxvd25lckFkZHJlc3MCAAAAC19jb3VudGVyTnVtBQAAAAlwYXRpZW50SUQFAAAAA25pbAAAAABnzw99", "chainId": 84, "height": 943601, "spentComplexity": 0 } View: original | compacted Prev: 6cZP8G4rC591CipNZZxWwSmW5T21XgC2jAE2UDBSbbwq Next: none Diff:
OldNewDifferences
4545 else throw("Wrong status")
4646 if ((r == "Wrong status"))
4747 then throw("Wrong status")
48- else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), d.transactionId), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)])
48+ else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), toBase58String(d.transactionId)), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)])
4949 }
5050
5151
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1
55
66 let b = 2
77
88 let c = 3
99
1010 @Callable(d)
1111 func updateInfos (e,f) = {
1212 let g = d.caller
1313 WriteSet([DataEntry((toString(g) + "_name"), e), DataEntry((toString(g) + "_intro"), f)])
1414 }
1515
1616
1717
1818 @Callable(d)
1919 func addUpdateCase (h,i,j,k,l) = {
2020 let g = toString(d.caller)
2121 let m = {
2222 let n = getInteger(this, (g + "_counterNum"))
2323 if ($isInstanceOf(n, "Int"))
2424 then {
2525 let o = n
2626 o
2727 }
2828 else 0
2929 }
3030 let p = {
3131 let n = getInteger(this, (((g + "_patient_") + toString(h)) + "_ID"))
3232 if ($isInstanceOf(n, "Int"))
3333 then {
3434 let q = n
3535 q
3636 }
3737 else (m + 1)
3838 }
3939 let r = if ((l == a))
4040 then "active"
4141 else if ((l == b))
4242 then "recovered"
4343 else if ((l == c))
4444 then "deceased"
4545 else throw("Wrong status")
4646 if ((r == "Wrong status"))
4747 then throw("Wrong status")
48- else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), d.transactionId), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)])
48+ else WriteSet([DataEntry((((g + "_patient_") + toString(p)) + "_ID"), toBase58String(d.transactionId)), DataEntry((((g + "_patient_") + toString(p)) + "_gender"), i), DataEntry((((g + "_patient_") + toString(p)) + "_age"), j), DataEntry((((g + "_patient_") + toString(p)) + "_location"), k), DataEntry((((g + "_patient_") + toString(p)) + "_status"), r), DataEntry((g + "_counterNum"), p)])
4949 }
5050
5151

github/deemru/w8io/169f3d6 
37.52 ms