tx · 3Y11GyzmvTuRLiC1QKmh6Zh2tpvGi4HaLgVJ4eCMGyYs

3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi:  -0.01400000 Waves

2020.04.24 07:16 [968245] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves

{ "type": 13, "id": "3Y11GyzmvTuRLiC1QKmh6Zh2tpvGi4HaLgVJ4eCMGyYs", "fee": 1400000, "feeAssetId": null, "timestamp": 1587701994450, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "3GCYjSdivtaV8zvzQ9WSFyB691msdVpMVbxvVZqG8K3RcvjJ9yyBHo8mXpCYGZMxKaNJ1T1f2qcSgrorwoyvYjc6" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQgAAAAJAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAADFJhbmRvbWl6ZUtleQkAAlkAAAABAgAAACxCWlQ1Znp2OFplSFZuOHhBR1pWWFpIVXZvQWtkUk5DYnRFdUJuM3BDdVhFSAAAAAAKZGVwbG95SW5mbwIAAAAkYWRkZWQgZGF0YSBmdW5jdGlvbmFsaXR5ICh0ZXN0cGhhc2UpAAAAAAVhc3NldAEAAAAgVXxs3EW2jBqsaGzTqhCj5Mw9QqAAJNYM2NtCErS5DvoBAAAAC2VuY3J5cHREYXRhAAAAAgAAAAdtZXNzYWdlAAAABHBLZXkEAAAABm91dHB1dAIAAAAkcnNhVmVyaWZ5KFNoYTI1NiAsbWVzc2FnZSxwS2V5LHBLZXkpBQAAAAZvdXRwdXQBAAAACXNlc3Npb25JZAAAAAAEAAAAA2dpZAkABLEAAAABCQAB9wAAAAEJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQFAA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50BQAAAAVhc3NldAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAOb3duZXJQdWJsaWNLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5vd25lclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAOb3duZXJQdWJsaWNLZXkHhg5FAQ==", "chainId": 84, "height": 968245, "spentComplexity": 0 } View: original | compacted Prev: 581VNWi5k6yiCovC6CRACbiCAvHcKFLMsQzXz65gVtz3 Next: HmTT9WZ91LiEz2c4nmiHcE4ddpa3WNCA8jstqGEXJYWu Diff:
OldNewDifferences
9494 @Verifier(T)
9595 func U () = {
9696 let V = T
97- if ($isInstanceOf(V, "TransferTransaction"))
97+ if ($isInstanceOf(V, "SetScriptTransaction"))
9898 then {
9999 let W = V
100100 sigVerify(T.bodyBytes, T.proofs[0], a)
101101 }
102- else if ($isInstanceOf(V, "SetScriptTransaction"))
102+ else if (if ($isInstanceOf(V, "ReissueTransaction"))
103+ then true
104+ else $isInstanceOf(V, "IssueTransaction"))
103105 then {
104106 let W = V
105107 sigVerify(T.bodyBytes, T.proofs[0], a)
106108 }
107- else if (if ($isInstanceOf(V, "ReissueTransaction"))
108- then true
109- else $isInstanceOf(V, "IssueTransaction"))
109+ else if ($isInstanceOf(V, "DataTransaction"))
110110 then {
111111 let W = V
112112 sigVerify(T.bodyBytes, T.proofs[0], a)
113113 }
114- else if ($isInstanceOf(V, "DataTransaction"))
115- then {
116- let W = V
117- sigVerify(T.bodyBytes, T.proofs[0], a)
118- }
119- else false
114+ else false
120115 }
121116
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 let d = base58'6khhQRn6E7dsLqxnkGHnEKoZZJv9U7bhadzprWvjAi6m'
1111
1212 func e (f,g) = {
1313 let h = "rsaVerify(Sha256 ,message,pKey,pKey)"
1414 h
1515 }
1616
1717
1818 func i () = {
1919 let j = toInt(sha256(toBytes(lastBlock.height)))
2020 j
2121 }
2222
2323
2424 func k (l) = {
2525 let m = getStringValue(this, l)
2626 m
2727 }
2828
2929
3030 func n (o,p) = {
3131 let q = k(o)
3232 let r = ((p + ";") + q)
3333 let s = WriteSet([DataEntry(o, r)])
3434 s
3535 }
3636
3737
3838 func t (u,v,w,x) = {
3939 let y = size(u)
4040 if ((y >= w))
4141 then if ((w == 0))
4242 then {
4343 let z = x
4444 let A = extract(split(u, ";")[1])
4545 let B = extract(split(u, ";")[2])
4646 let C = extract(split(u, ";")[3])
4747 let D = extract(split(u, ";")[4])
4848 let E = extract(split(u, ";")[5])
4949 let F = extract(split(u, ";")[6])
5050 let G = extract(split(u, ";")[7])
5151 let H = ((((((((((((((z + v) + A) + v) + B) + v) + C) + v) + D) + v) + E) + v) + F) + v) + G)
5252 H
5353 }
5454 else throw("error creating datastring")
5555 else throw(("field index out of range. Number of fields for string is: " + toString(y)))
5656 }
5757
5858
5959 @Callable(I)
6060 func initiate () = {
6161 let J = toBase58String(I.transactionId)
6262 let K = extract(I.payment)
6363 let f = "default message for now"
6464 let L = toBase58String(extract(I.callerPublicKey))
6565 let o = toBase58String(extract(I.caller.bytes))
6666 let M = I.transactionId
6767 let N = if ((K.amount == 100000000))
6868 then "S"
6969 else if ((K.amount == 200000000))
7070 then "M"
7171 else if ((K.amount == 400000000))
7272 then "L"
7373 else "error"
7474 let O = (((((((("SUBMITTED" + ";") + toBase58String(extract(I.caller.bytes))) + ";") + toString(K.amount)) + ";") + toString(height)) + ";") + N)
7575 if ((N == "error"))
7676 then throw("Prices are 1, 2, and 4 waves. Other amounts will be rejected by the smart contract")
7777 else WriteSet([DataEntry(((L + ":tx:") + J), O)])
7878 }
7979
8080
8181
8282 @Callable(I)
8383 func finalize (P) = if ((I.callerPublicKey != a))
8484 then throw("Only owner can call finalize function")
8585 else {
8686 let Q = k(P)
8787 let R = parseIntValue(extract(split(Q, ";")[5]))
8888 let S = addressFromStringValue(split(Q, ";")[1])
8989 let O = t(Q, ";", 0, "COMPLETED")
9090 ScriptResult(WriteSet([DataEntry(P, O)]), TransferSet([ScriptTransfer(S, R, d)]))
9191 }
9292
9393
9494 @Verifier(T)
9595 func U () = {
9696 let V = T
97- if ($isInstanceOf(V, "TransferTransaction"))
97+ if ($isInstanceOf(V, "SetScriptTransaction"))
9898 then {
9999 let W = V
100100 sigVerify(T.bodyBytes, T.proofs[0], a)
101101 }
102- else if ($isInstanceOf(V, "SetScriptTransaction"))
102+ else if (if ($isInstanceOf(V, "ReissueTransaction"))
103+ then true
104+ else $isInstanceOf(V, "IssueTransaction"))
103105 then {
104106 let W = V
105107 sigVerify(T.bodyBytes, T.proofs[0], a)
106108 }
107- else if (if ($isInstanceOf(V, "ReissueTransaction"))
108- then true
109- else $isInstanceOf(V, "IssueTransaction"))
109+ else if ($isInstanceOf(V, "DataTransaction"))
110110 then {
111111 let W = V
112112 sigVerify(T.bodyBytes, T.proofs[0], a)
113113 }
114- else if ($isInstanceOf(V, "DataTransaction"))
115- then {
116- let W = V
117- sigVerify(T.bodyBytes, T.proofs[0], a)
118- }
119- else false
114+ else false
120115 }
121116

github/deemru/w8io/169f3d6 
45.34 ms