tx · 8LRRaBqB5iKPiJnZWjkXbuvEEztc9EzY4b51V4thkf23 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi: -0.01400000 Waves 2020.04.24 00:31 [967840] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves
{ "type": 13, "id": "8LRRaBqB5iKPiJnZWjkXbuvEEztc9EzY4b51V4thkf23", "fee": 1400000, "feeAssetId": null, "timestamp": 1587677695210, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "5FvgmopMyxhkVbuJh4sjyvLK4AGQGbjpHy4tGzGH1w2BSfB24ZjfcZg7Yv94GQkGGc1ZanXsGDShHaxDBTDunboA" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQgAAAAJAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAADFJhbmRvbWl6ZUtleQkAAlkAAAABAgAAACxCWlQ1Znp2OFplSFZuOHhBR1pWWFpIVXZvQWtkUk5DYnRFdUJuM3BDdVhFSAAAAAAKZGVwbG95SW5mbwIAAAAkYWRkZWQgZGF0YSBmdW5jdGlvbmFsaXR5ICh0ZXN0cGhhc2UpAAAAAAVhc3NldAEAAAAgVXxs3EW2jBqsaGzTqhCj5Mw9QqAAJNYM2NtCErS5DvoBAAAAC2VuY3J5cHREYXRhAAAAAgAAAAdtZXNzYWdlAAAABHBLZXkEAAAABm91dHB1dAIAAAAkcnNhVmVyaWZ5KFNoYTI1NiAsbWVzc2FnZSxwS2V5LHBLZXkpBQAAAAZvdXRwdXQBAAAACXNlc3Npb25JZAAAAAAEAAAAA2dpZAkABLEAAAABCQAB9wAAAAEJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQFAAAAA2dpZAEAAAAHZ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bAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQSXNzdWVUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5vd25lclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAOb3duZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGB5VaPYo=", "chainId": 84, "height": 967840, "spentComplexity": 0 } View: original | compacted Prev: C1jjETDfmwrhBwxjmS64Z9r6acZC5FPVi63NJ7fFa4xP Next: 5oGg3zAc8DUCk4KmwViRcosNcuRGZWxnEjtPojZmfRGk Diff:
Old | New | Differences | |
---|---|---|---|
94 | 94 | @Verifier(T) | |
95 | 95 | func U () = { | |
96 | 96 | let V = T | |
97 | - | if (if ($isInstanceOf(V, " | |
97 | + | if (if ($isInstanceOf(V, "ReissueTransaction")) | |
98 | 98 | then true | |
99 | - | else if ($isInstanceOf(V, " | |
99 | + | else if ($isInstanceOf(V, "IssueTransaction")) | |
100 | 100 | then true | |
101 | - | else if ($isInstanceOf(V, "IssueTransaction")) | |
102 | - | then true | |
103 | - | else $isInstanceOf(V, "SetScriptTransaction")) | |
101 | + | else $isInstanceOf(V, "SetScriptTransaction")) | |
104 | 102 | then { | |
105 | 103 | let W = V | |
106 | 104 | sigVerify(T.bodyBytes, T.proofs[0], a) | |
110 | 108 | let W = V | |
111 | 109 | sigVerify(T.bodyBytes, T.proofs[0], a) | |
112 | 110 | } | |
113 | - | else false | |
111 | + | else if ($isInstanceOf(V, "TransferTransaction")) | |
112 | + | then { | |
113 | + | let W = V | |
114 | + | true | |
115 | + | } | |
116 | + | else false | |
114 | 117 | } | |
115 | 118 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH' | |
5 | 5 | ||
6 | 6 | let b = fromBase58String("BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH") | |
7 | 7 | ||
8 | 8 | let c = "added data functionality (testphase)" | |
9 | 9 | ||
10 | 10 | let d = base58'6khhQRn6E7dsLqxnkGHnEKoZZJv9U7bhadzprWvjAi6m' | |
11 | 11 | ||
12 | 12 | func e (f,g) = { | |
13 | 13 | let h = "rsaVerify(Sha256 ,message,pKey,pKey)" | |
14 | 14 | h | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func i () = { | |
19 | 19 | let j = toInt(sha256(toBytes(lastBlock.height))) | |
20 | 20 | j | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = getStringValue(this, l) | |
26 | 26 | m | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func n (o,p) = { | |
31 | 31 | let q = k(o) | |
32 | 32 | let r = ((p + ";") + q) | |
33 | 33 | let s = WriteSet([DataEntry(o, r)]) | |
34 | 34 | s | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func t (u,v,w,x) = { | |
39 | 39 | let y = size(u) | |
40 | 40 | if ((y >= w)) | |
41 | 41 | then if ((w == 0)) | |
42 | 42 | then { | |
43 | 43 | let z = x | |
44 | 44 | let A = extract(split(u, ";")[1]) | |
45 | 45 | let B = extract(split(u, ";")[2]) | |
46 | 46 | let C = extract(split(u, ";")[3]) | |
47 | 47 | let D = extract(split(u, ";")[4]) | |
48 | 48 | let E = extract(split(u, ";")[5]) | |
49 | 49 | let F = extract(split(u, ";")[6]) | |
50 | 50 | let G = extract(split(u, ";")[7]) | |
51 | 51 | let H = ((((((((((((((z + v) + A) + v) + B) + v) + C) + v) + D) + v) + E) + v) + F) + v) + G) | |
52 | 52 | H | |
53 | 53 | } | |
54 | 54 | else throw("error creating datastring") | |
55 | 55 | else throw(("field index out of range. Number of fields for string is: " + toString(y))) | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | @Callable(I) | |
60 | 60 | func initiate () = { | |
61 | 61 | let J = toBase58String(I.transactionId) | |
62 | 62 | let K = extract(I.payment) | |
63 | 63 | let f = "default message for now" | |
64 | 64 | let L = toBase58String(extract(I.callerPublicKey)) | |
65 | 65 | let o = toBase58String(extract(I.caller.bytes)) | |
66 | 66 | let M = I.transactionId | |
67 | 67 | let N = if ((K.amount == 100000000)) | |
68 | 68 | then "S" | |
69 | 69 | else if ((K.amount == 200000000)) | |
70 | 70 | then "M" | |
71 | 71 | else if ((K.amount == 400000000)) | |
72 | 72 | then "L" | |
73 | 73 | else "error" | |
74 | 74 | let O = (((((((("SUBMITTED" + ";") + toBase58String(extract(I.caller.bytes))) + ";") + toString(K.amount)) + ";") + toString(height)) + ";") + N) | |
75 | 75 | if ((N == "error")) | |
76 | 76 | then throw("Prices are 1, 2, and 4 waves. Other amounts will be rejected by the smart contract") | |
77 | 77 | else WriteSet([DataEntry(((L + ":tx:") + J), O)]) | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(I) | |
83 | 83 | func finalize (P) = if ((I.callerPublicKey != a)) | |
84 | 84 | then throw("Only owner can call finalize function") | |
85 | 85 | else { | |
86 | 86 | let Q = k(P) | |
87 | 87 | let R = parseIntValue(extract(split(Q, ";")[8])) | |
88 | 88 | let S = parseIntValue(extract(split(Q, ";")[0])) | |
89 | 89 | let O = t(Q, ";", 0, "COMPLETED") | |
90 | 90 | ScriptResult(WriteSet([DataEntry(P, O)]), TransferSet([ScriptTransfer(I.caller, R, d)])) | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | @Verifier(T) | |
95 | 95 | func U () = { | |
96 | 96 | let V = T | |
97 | - | if (if ($isInstanceOf(V, " | |
97 | + | if (if ($isInstanceOf(V, "ReissueTransaction")) | |
98 | 98 | then true | |
99 | - | else if ($isInstanceOf(V, " | |
99 | + | else if ($isInstanceOf(V, "IssueTransaction")) | |
100 | 100 | then true | |
101 | - | else if ($isInstanceOf(V, "IssueTransaction")) | |
102 | - | then true | |
103 | - | else $isInstanceOf(V, "SetScriptTransaction")) | |
101 | + | else $isInstanceOf(V, "SetScriptTransaction")) | |
104 | 102 | then { | |
105 | 103 | let W = V | |
106 | 104 | sigVerify(T.bodyBytes, T.proofs[0], a) | |
107 | 105 | } | |
108 | 106 | else if ($isInstanceOf(V, "DataTransaction")) | |
109 | 107 | then { | |
110 | 108 | let W = V | |
111 | 109 | sigVerify(T.bodyBytes, T.proofs[0], a) | |
112 | 110 | } | |
113 | - | else false | |
111 | + | else if ($isInstanceOf(V, "TransferTransaction")) | |
112 | + | then { | |
113 | + | let W = V | |
114 | + | true | |
115 | + | } | |
116 | + | else false | |
114 | 117 | } | |
115 | 118 |
github/deemru/w8io/169f3d6 68.85 ms ◑