tx · DEUtrj42Tk2c1F2bXKzdrtexzYbfF8dRygvYJwwRo8XF

3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi:  -0.01400000 Waves

2019.08.28 04:50 [650411] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves

{ "type": 13, "id": "DEUtrj42Tk2c1F2bXKzdrtexzYbfF8dRygvYJwwRo8XF", "fee": 1400000, "feeAssetId": null, "timestamp": 1566957105155, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "5mKkpKFFiWT3hi1Dv4Fuza6sKjbKkdfUBLQroLCzMdDHGiecTASipe9gqCMemqAh195ghW3QJ1We2yNWbLLM4Gzq" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAAD3ZiRGVwbG95TWVzc2FnZQIAAAAIZGVwbG95ZWQAAAABAAAAAWkBAAAACGRpc3BlbnNlAAAAAAQAAAAEcGFpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAZzaXppbmcDCQAAAAAAAAIIBQAAAARwYWlkAAAABmFtb3VudAAAAAAABfXhAAIAAAABUwMJAAAAAAAAAggFAAAABHBhaWQAAAAGYW1vdW50AAAAAAAL68IAAgAAAAFNAwkAAAAAAAACCAUAAAAEcGFpZAAAAAZhbW91bnQAAAAAABfXhAACAAAAAUwCAAAABWVycm9yAwkAAAAAAAACBQAAAAZzaXppbmcCAAAABWVycm9yCQAAAgAAAAECAAAAE1VucmVjb2duaXplZCBzaXppbmcJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAAEcGFpZAAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQSXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYHcNP+0w==", "chainId": 84, "height": 650411, "spentComplexity": 0 } View: original | compacted Prev: FSVtayiE8kx7MN1pmrf4sPKkaWjKaTvDeEKDhjhtkefP Next: DdBzQrF2G2LHPC117WTU4wYnEkVyhHKy36VCvs2cRDLP Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerPublicKey = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH'
55
6-let vbDeploy = "deployed"
6+let vbDeployMessage = "deployed"
77
88 @Callable(i)
9-func dispense (boxSize) = {
10- let x = "nothing"
11- if ((x != "nothing"))
12- then throw("x is not nothing")
13- else throw("x is something")
9+func dispense () = {
10+ let paid = extract(i.payment)
11+ let sizing = if ((paid.amount == 100000000))
12+ then "S"
13+ else if ((paid.amount == 200000000))
14+ then "M"
15+ else if ((paid.amount == 400000000))
16+ then "L"
17+ else "error"
18+ if ((sizing == "error"))
19+ then throw("Unrecognized sizing")
20+ else TransferSet([ScriptTransfer(i.caller, paid.amount, unit)])
1421 }
1522
1623
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerPublicKey = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH'
55
6-let vbDeploy = "deployed"
6+let vbDeployMessage = "deployed"
77
88 @Callable(i)
9-func dispense (boxSize) = {
10- let x = "nothing"
11- if ((x != "nothing"))
12- then throw("x is not nothing")
13- else throw("x is something")
9+func dispense () = {
10+ let paid = extract(i.payment)
11+ let sizing = if ((paid.amount == 100000000))
12+ then "S"
13+ else if ((paid.amount == 200000000))
14+ then "M"
15+ else if ((paid.amount == 400000000))
16+ then "L"
17+ else "error"
18+ if ((sizing == "error"))
19+ then throw("Unrecognized sizing")
20+ else TransferSet([ScriptTransfer(i.caller, paid.amount, unit)])
1421 }
1522
1623
1724 @Verifier(tx)
1825 func verify () = match tx {
1926 case d: SetScriptTransaction =>
2027 sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey)
2128 case d: DataTransaction =>
2229 true
2330 case d: TransferTransaction =>
2431 true
2532 case d: IssueTransaction =>
2633 true
2734 case d: ReissueTransaction =>
2835 true
2936 case _ =>
3037 false
3138 }
3239

github/deemru/w8io/169f3d6 
23.29 ms