tx · 2VmMcdHo26tnp1JAaakP1VUMefPF8T2SkadYaHnuiZ4j

3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi:  -0.01400000 Waves

2019.10.05 00:24 [705538] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves

{ "type": 13, "id": "2VmMcdHo26tnp1JAaakP1VUMefPF8T2SkadYaHnuiZ4j", "fee": 1400000, "feeAssetId": null, "timestamp": 1570224377925, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "4KioSrGs6ConsgiotVcC4cVVgobExQCWyoYLjN4GjD74go69knSDKBohWokSBYX4dZanQYm1qhCYiNubx1pu1XrK" ], "script": "base64:AAIDAAAAAAAAAAAAAAAJAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAADFJhbmRvbWl6ZUtleQkAAlkAAAABAgAAACxCWlQ1Znp2OFplSFZuOHhBR1pWWFpIVXZvQWtkUk5DYnRFdUJuM3BDdVhFSAAAAAAKZGVwbG95SW5mbwIAAAAkYWRkZWQgZGF0YSBmdW5jdGlvbmFsaXR5ICh0ZXN0cGhhc2UpAQAAAAtlbmNyeXB0RGF0YQAAAAIAAAAHbWVzc2FnZQAAAARwS2V5BAAAAAZvdXRwdXQCAAAAJHJzYVZlcmlmeShTaGEyNTYgLG1lc3NhZ2UscEtleSxwS2V5KQUAAAAGb3V0cHV0AQAAAAlzZXNzaW9uSWQAAAAABAAAAANnaWQJAASxAAAAAQkAAfcAAAABCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0BQAAAANnaWQBAAAACXJhbmRvbWl6ZQAAAAIAAAAHcnNhU2lnbgAAAAt0aGlzU2Vzc2lvbgQAAAAGZ2FtZUlkBQAAAAt0aG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ttZXNzYWdlRGF0YQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALdG9rZW5BbW91bnQFAAAABWFzc2V0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5vd25lclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGB6QiFJ8=", "chainId": 84, "height": 705538, "spentComplexity": 0 } View: original | compacted Prev: 4zScMVSEjUomSn2qj2bXPS4G76F9gAEShBkrxsQwCRd3 Next: B6YvmJ7MjnZePVxTjX9aTeduJakUGFYNQx6bGdks5Jmy Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH'
55
66 let b = fromBase58String("BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH")
77
88 let c = "added data functionality (testphase)"
99
1010 func d (e,f) = {
1111 let g = "rsaVerify(Sha256 ,message,pKey,pKey)"
1212 g
1313 }
1414
1515
1616 func h () = {
1717 let i = toInt(sha256(toBytes(lastBlock.height)))
1818 i
1919 }
2020
2121
2222 func j (k,l) = {
2323 let m = l
2424 let n = sigVerify(toBytes(m), toBytes(k), b)
2525 if (n)
2626 then {
2727 let o = (toInt(sha256(toBytes(k))) % 6)
2828 if ((0 > o))
2929 then ((-1 * o) + 1)
3030 else (o + 1)
3131 }
3232 else throw("Invalid RSA signature")
3333 }
3434
3535
3636 func p (q,r) = {
3737 let s = "x"
3838 s
3939 }
4040
4141
4242 func t (u,v,w) = {
4343 let x = "placeholder"
4444 x
4545 }
4646
4747
4848 func y (z) = {
4949 let A = getStringValue(this, z)
5050 A
5151 }
5252
5353
5454 @Callable(B)
5555 func dispense () = {
5656 let m = toBase58String(B.transactionId)
5757 let C = extract(B.payment)
5858 let e = "default message for now"
5959 let D = toBase58String(extract(B.callerPublicKey))
6060 let E = toBase58String(extract(B.caller.bytes))
6161 let F = B.transactionId
6262 let G = base58'6khhQRn6E7dsLqxnkGHnEKoZZJv9U7bhadzprWvjAi6m'
6363 let H = if ((C.amount == 100000000))
6464 then "S"
6565 else if ((C.amount == 200000000))
6666 then "M"
6767 else if ((C.amount == 400000000))
6868 then "L"
6969 else "error"
7070 let I = ((((((((toBase58String(extract(B.callerPublicKey)) + ";") + toString(C.amount)) + ";") + toString(height)) + ";") + m) + ";") + H)
7171 if ((H == "error"))
7272 then throw("Prices are 1, 2, and 4 waves. Other amounts will be rejected by the smart contract")
7373 else {
7474 let J = (C.amount * 3)
7575 ScriptResult(WriteSet([DataEntry(D, I)]), TransferSet([ScriptTransfer(B.caller, J, G)]))
7676 }
7777 }
7878
7979
8080 @Verifier(K)
8181 func L () = {
8282 let M = K
8383 if ($isInstanceOf(M, "SetScriptTransaction"))
8484 then {
8585 let N = M
8686 sigVerify(K.bodyBytes, K.proofs[0], a)
8787 }
8888 else if ($isInstanceOf(M, "DataTransaction"))
8989 then {
9090 let N = M
9191 true
9292 }
9393 else if ($isInstanceOf(M, "TransferTransaction"))
9494 then {
9595 let N = M
9696 true
9797 }
9898 else if ($isInstanceOf(M, "IssueTransaction"))
9999 then {
100100 let N = M
101101 true
102102 }
103103 else if ($isInstanceOf(M, "ReissueTransaction"))
104104 then {
105105 let N = M
106106 true
107107 }
108108 else false
109109 }
110110

github/deemru/w8io/169f3d6 
42.53 ms