tx · DAijscLWRz9y3XpuzTyYKeeKjLytuYmYfpQiuUPN1arY 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc: -0.05000000 Waves 2019.12.19 09:11 [815410] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves
{ "type": 13, "id": "DAijscLWRz9y3XpuzTyYKeeKjLytuYmYfpQiuUPN1arY", "fee": 5000000, "feeAssetId": null, "timestamp": 1576735981291, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "5dyjZ8w2Ea5bSxZEvG8qCXqsfgQAZ846oMeNP8HHcBCeb8PPAsADVJNVd6w3XEmB2tAh8sLVhLDJW1v7TCBFjS3e" ], "script": "base64:AAIDAAAAAAAAABMIARIAEgMKAQgSAwoBCBIDCgEIAAAADwAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAAARXQkVUAQAAACCGtDaoeNMOzNjwF61LLiwEHwefusq5FqlK128lrZvQdgAAAAAFUk9ZQUwBAAAAIEPpioLCJdl0nJV8IFJJxqOakLK2lV9iYl7KOImJDGkcAAAAAA9DT01NVU5JVFlXQUxMRVQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSokXbrXNtTilt+wsoFPXwsICOsMTcOEwMAAAAACldCRVRMT0NLRUQAAAAAAAAAAAAAAAAAC1JPWUFMTE9DS0VEAAAAAAAAAAABAAAAAAxXQkVUV0lUSERSQVcAAAAAAAAAAAIAAAAADVJPWUFMV0lUSERSQVcAAAAAAAAAAAMAAAAADVdBVkVTV0lUSERSQVcAAAAAAAAAAAQBAAAAFkV4dHJhY3RXQkVUUmVzZXJ2ZWRBbXQAAAAABAAAAAckbWF0Y2gwCQAEG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AAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAMJAAAAAAAAAggFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAObmV3V2F2ZXNBbW91bnQJAABkAAAAAgkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZ3YWxsZXQJAQAAABNGb3JtYXRQbGF5ZXJCYWxhbmNlAAAABQkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAApXQkVUTE9DS0VECQABkQAAAAIFAAAAB2JhbGFuY2UFAAAAC1JPWUFMTE9DS0VECQABkQAAAAIFAAAAB2JhbGFuY2UFAAAADFdCRVRXSVRIRFJBVwkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1ST1lBTFdJVEhEUkFXBQAAAA5uZXdXYXZlc0Ftb3VudAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwJAAACAAAAAQIAAAANSW52YWxpZCBhc3NldAkAAAIAAAABAgAAADRZb3UgZG8gbm90IGhhdmUgcGVybWlzc2lvbiB0byBwZXJmb3JtIHRoaXMgZnVuY3Rpb24uAAAAAJLWu0I=", "chainId": 84, "height": 815410, "spentComplexity": 0 } View: original | compacted Prev: FfBE2MCUnoFPqg9YDcYyK5UQDGRriN2CBUDBveq1Rd7G Next: 4A9xrrFaADHuZbAQV16QFgd9tEMJhGkMhfBB6g3DXS6N Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = "$WBET_ | |
4 | + | let a = "$WBET_LOCKED_AMOUNT" | |
5 | 5 | ||
6 | - | let b = "$ROYAL_ | |
6 | + | let b = "$ROYAL_LOCKER_AMOUNT" | |
7 | 7 | ||
8 | 8 | let c = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
9 | 9 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = "$WBET_ | |
4 | + | let a = "$WBET_LOCKED_AMOUNT" | |
5 | 5 | ||
6 | - | let b = "$ROYAL_ | |
6 | + | let b = "$ROYAL_LOCKER_AMOUNT" | |
7 | 7 | ||
8 | 8 | let c = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
9 | 9 | ||
10 | 10 | let d = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy' | |
11 | 11 | ||
12 | 12 | let e = Address(base58'3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL') | |
13 | 13 | ||
14 | 14 | let f = 0 | |
15 | 15 | ||
16 | 16 | let g = 1 | |
17 | 17 | ||
18 | 18 | let h = 2 | |
19 | 19 | ||
20 | 20 | let i = 3 | |
21 | 21 | ||
22 | 22 | let j = 4 | |
23 | 23 | ||
24 | 24 | func k () = { | |
25 | 25 | let l = getInteger(this, a) | |
26 | 26 | if ($isInstanceOf(l, "Int")) | |
27 | 27 | then { | |
28 | 28 | let m = l | |
29 | 29 | m | |
30 | 30 | } | |
31 | 31 | else 0 | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n () = { | |
36 | 36 | let l = getInteger(this, b) | |
37 | 37 | if ($isInstanceOf(l, "Int")) | |
38 | 38 | then { | |
39 | 39 | let m = l | |
40 | 40 | m | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func o (p) = { | |
47 | 47 | let l = getString(this, p) | |
48 | 48 | if ($isInstanceOf(l, "String")) | |
49 | 49 | then { | |
50 | 50 | let q = l | |
51 | 51 | q | |
52 | 52 | } | |
53 | 53 | else "0_0_0_0_0" | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func r (s,t,u,v,w) = ((((((((toString(s) + "_") + toString(t)) + "_") + toString(u)) + "_") + toString(v)) + "_") + toString(w)) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func x (p) = { | |
61 | 61 | let y = split(o(p), "_") | |
62 | 62 | let z = parseIntValue(y[f]) | |
63 | 63 | let A = parseIntValue(y[g]) | |
64 | 64 | let u = parseIntValue(y[h]) | |
65 | 65 | let v = parseIntValue(y[i]) | |
66 | 66 | let w = parseIntValue(y[j]) | |
67 | 67 | [z, A, u, v, w] | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(B) | |
72 | 72 | func lock () = { | |
73 | 73 | let C = extract(B.payment) | |
74 | 74 | if (if ((C.assetId != c)) | |
75 | 75 | then (C.assetId != d) | |
76 | 76 | else false) | |
77 | 77 | then throw("The token should be in WBET or ROYAL.") | |
78 | 78 | else { | |
79 | 79 | let p = toString(B.caller) | |
80 | 80 | let D = x(p) | |
81 | 81 | if ((C.assetId == c)) | |
82 | 82 | then { | |
83 | 83 | let E = (k() + C.amount) | |
84 | 84 | let F = (D[f] + C.amount) | |
85 | 85 | ScriptResult(WriteSet([DataEntry(a, E), DataEntry(p, r(F, D[g], D[h], D[i], D[j]))]), TransferSet(nil)) | |
86 | 86 | } | |
87 | 87 | else if ((C.assetId == d)) | |
88 | 88 | then { | |
89 | 89 | let G = (n() + C.amount) | |
90 | 90 | let H = (D[g] + C.amount) | |
91 | 91 | ScriptResult(WriteSet([DataEntry(b, G), DataEntry(p, r(D[f], H, D[h], D[i], D[j]))]), TransferSet(nil)) | |
92 | 92 | } | |
93 | 93 | else throw("error") | |
94 | 94 | } | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(B) | |
100 | 100 | func unlock (I) = { | |
101 | 101 | let p = toString(B.caller) | |
102 | 102 | let D = x(p) | |
103 | 103 | if ((I == "WBET")) | |
104 | 104 | then if ((0 >= D[f])) | |
105 | 105 | then throw("You dont have enough balance to withdraw the amount requested.") | |
106 | 106 | else { | |
107 | 107 | let E = (k() - D[f]) | |
108 | 108 | ScriptResult(WriteSet([DataEntry(a, E), DataEntry(p, r(0, D[g], D[h], D[i], D[j]))]), TransferSet([ScriptTransfer(B.caller, D[f], c)])) | |
109 | 109 | } | |
110 | 110 | else if ((I == "ROYAL")) | |
111 | 111 | then if ((0 >= D[g])) | |
112 | 112 | then throw("You dont have enough balance to withdraw the amount requested.") | |
113 | 113 | else { | |
114 | 114 | let G = (n() - D[g]) | |
115 | 115 | ScriptResult(WriteSet([DataEntry(b, G), DataEntry(p, r(D[f], 0, D[h], D[i], D[j]))]), TransferSet([ScriptTransfer(B.caller, D[g], d)])) | |
116 | 116 | } | |
117 | 117 | else throw("Invalid asset") | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | ||
122 | 122 | @Callable(B) | |
123 | 123 | func withdraw (I) = { | |
124 | 124 | let p = toString(B.caller) | |
125 | 125 | let D = x(p) | |
126 | 126 | if ((I == "WBET")) | |
127 | 127 | then if ((0 >= D[h])) | |
128 | 128 | then throw("You dont have enough balance to withdraw the amount requested.") | |
129 | 129 | else ScriptResult(WriteSet([DataEntry(p, r(D[f], D[g], 0, D[i], D[j]))]), TransferSet([ScriptTransfer(B.caller, D[h], c)])) | |
130 | 130 | else if ((I == "ROYAL")) | |
131 | 131 | then if ((0 >= D[i])) | |
132 | 132 | then throw("You dont have enough balance to withdraw the amount requested.") | |
133 | 133 | else ScriptResult(WriteSet([DataEntry(p, r(D[f], D[g], D[h], 0, D[j]))]), TransferSet([ScriptTransfer(B.caller, D[i], d)])) | |
134 | 134 | else if ((I == "WAVES")) | |
135 | 135 | then if ((0 >= D[j])) | |
136 | 136 | then throw("You dont have enough balance to withdraw the amount requested.") | |
137 | 137 | else ScriptResult(WriteSet([DataEntry(p, r(D[f], D[g], D[h], D[h], 0))]), TransferSet([ScriptTransfer(B.caller, D[j], unit)])) | |
138 | 138 | else throw("Invalid asset") | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | ||
143 | 143 | @Callable(B) | |
144 | 144 | func addWithdraw (p) = if ((B.caller == e)) | |
145 | 145 | then { | |
146 | 146 | let C = extract(B.payment) | |
147 | 147 | let D = x(p) | |
148 | 148 | if ((C.assetId == c)) | |
149 | 149 | then { | |
150 | 150 | let J = (D[h] + C.amount) | |
151 | 151 | ScriptResult(WriteSet([DataEntry(p, r(D[f], D[g], J, D[i], D[j]))]), TransferSet(nil)) | |
152 | 152 | } | |
153 | 153 | else if ((C.assetId == d)) | |
154 | 154 | then { | |
155 | 155 | let K = (D[i] + C.amount) | |
156 | 156 | ScriptResult(WriteSet([DataEntry(p, r(D[f], D[g], D[h], K, D[j]))]), TransferSet(nil)) | |
157 | 157 | } | |
158 | 158 | else if ((C.assetId == unit)) | |
159 | 159 | then { | |
160 | 160 | let L = (D[j] + C.amount) | |
161 | 161 | ScriptResult(WriteSet([DataEntry(p, r(D[f], D[g], D[h], D[i], L))]), TransferSet(nil)) | |
162 | 162 | } | |
163 | 163 | else throw("Invalid asset") | |
164 | 164 | } | |
165 | 165 | else throw("You do not have permission to perform this function.") | |
166 | 166 | ||
167 | 167 |
github/deemru/w8io/026f985 34.73 ms ◑