tx · 54csVY23WAJMRoqbDYLfz15rMm5hxFVHUvtSFB5HJ4Ys

3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY:  -0.01400000 Waves

2019.09.24 13:56 [690331] smart account 3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY > SELF 0.00000000 Waves

{ "type": 13, "id": "54csVY23WAJMRoqbDYLfz15rMm5hxFVHUvtSFB5HJ4Ys", "fee": 1400000, "feeAssetId": null, "timestamp": 1569322566111, "version": 1, "sender": "3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY", "senderPublicKey": "6VdgiscuZ9B1c2urnAVPPVaCS5afNjzf1RpG2SS3GUy6", "proofs": [ "5cjmQMyAaGLywcz98dWRGgiwtJQyaLCvCLZEkqUG1hkPKVByLnpdxUK32cYmtRhMEquPxazDGZB6iamjsTz3w5yU" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAFF9oCwAAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAEAAAAGaW52b2tlAQAAABFmaWxlQ2VydGlmaWNhdGlvbgAAAAUAAAAEaGFzaAAAAAV0aXRsZQAAAAl0aW1lc3RhbXAAAAAEdXVpZAAAAARkYXRhBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAAplbnRyeUV4aXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEaGFzaAUA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AAAAQgIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAARkYXRhBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAARiYW5rBQAAAAZhbW91bnQFAAAADWFjY2VwdGVkVG9rZW4FAAAAA25pbAAAAAD/+2v6", "chainId": 84, "height": 690331, "spentComplexity": 0 } View: original | compacted Prev: FEk9msLoL427N7WUswhi2Vs6RigY8qsfokn4F3jS13v5 Next: Bex6VNYgGDyaAPGa7912Gx3KBTR8apychwGeVwJxqewK Diff:
OldNewDifferences
1212 let payment = extract(invoke.payment)
1313 let amount = extract(payment.amount)
1414 let id = extract(invoke.transactionId)
15- let entryExist = match getString(this, ((hash + "_") + uuid)) {
15+ let entryExist = match getString(this, (hash + uuid)) {
1616 case a: String =>
1717 a
1818 case _ =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
66 let currentPrice = 350000000000
77
88 let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
99
1010 @Callable(invoke)
1111 func fileCertification (hash,title,timestamp,uuid,data) = {
1212 let payment = extract(invoke.payment)
1313 let amount = extract(payment.amount)
1414 let id = extract(invoke.transactionId)
15- let entryExist = match getString(this, ((hash + "_") + uuid)) {
15+ let entryExist = match getString(this, (hash + uuid)) {
1616 case a: String =>
1717 a
1818 case _ =>
1919 "NONE"
2020 }
2121 if ((entryExist != "NONE"))
2222 then throw("This entry already exist")
2323 else {
2424 let paymentAssetId = if (isDefined(payment.assetId))
2525 then extract(payment.assetId)
2626 else throw("Waves is not accepted as payment")
2727 if ((paymentAssetId != acceptedToken))
2828 then throw("Only payments in SIGN are allowed at the moment")
2929 else if ((amount != currentPrice))
3030 then throw("The price is wrong")
3131 else ScriptResult(WriteSet([DataEntry((hash + uuid), toBase58String(id)), DataEntry(((("title_fc_" + toBase58String(id)) + "_") + toBase58String(invoke.caller.bytes)), title), DataEntry(((("data_fc_" + toBase58String(id)) + "_") + toBase58String(invoke.caller.bytes)), data)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)]))
3232 }
3333 }
3434
3535

github/deemru/w8io/169f3d6 
79.76 ms