tx · G8qwy2y7vzbAaWo5iMunFZpqFCntGArhV8Hrx9JgRrEE 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id: -0.01000000 Waves 2022.01.28 19:06 [1899010] smart account 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id > SELF 0.00000000 Waves
{ "type": 13, "id": "G8qwy2y7vzbAaWo5iMunFZpqFCntGArhV8Hrx9JgRrEE", "fee": 1000000, "feeAssetId": null, "timestamp": 1643386011875, "version": 2, "chainId": 84, "sender": "3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id", "senderPublicKey": "8agr5kfwDL7NLuMetvciXCcd9TcDKZhRwYZPPTAShaCC", "proofs": [ "5midXXCwJsKZv9xED4KwgqATpemgH75SKULdcZbZQt5129HtENNZhcPWaVtt78B78b8SWVRAxoymfrdpBRqEqy9F" ], "script": "base64:AAIFAAAAAAAAACcIAhIFCgMICAgSBQoDCAgIEgUKAwgICBIAEgASABIAEgYKBAgICAgAAAAOAAAAAANTRVACAAAAAl9fAAAAAAljdXJyZW50VHMIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAA5rZXlCdXlVTFVTUmF0ZQIAAAANYnV5X1VMVVNfcmF0ZQAAAAAca2V5QnV5VUxVU1JhdGVTY2FsZURlbGltaXRlcgIAAAAdYnV5X1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAAD2tleVNlbGxVTFVTUmF0ZQIAAAAOc2VsbF9VTFVTX3JhdGUAAAAAHWtleVNlbGxVTFVTUmF0ZVNjYWxlRGVsaW1pdGVyAgAAAB5zZWxsX1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAADWtleU1ha2VORlRGZWUCAAAAEGtleV9tYWtlX05GVF9mZWUAAAAADWtleUNvbW1pc3Npb24CAAAACmNvbW1pc3Npb24AAAAAG2tleUNvbW1pc3Npb25TY2FsZURlbGltaXRlcgIAAAAaY29tbWlzc2lvbl9zY2FsZV9kZWxpbWl0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AAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAQcmVjaXBpZW50QWRkcmVzcwUAAAAXYW1vdW50V2l0aG91dENvbW1pc3Npb24FAAAACnBtdEFzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAARY29tbWlzc2lvbkFkZHJlc3MFAAAAEGFtb3VudENvbW1pc3Npb24FAAAACnBtdEFzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA5hbW91bnRDYXNoYmFjawUAAAAEVUxVUwUAAAADbmlsAAAAAK9GOak=", "height": 1899010, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYYZ3PpLe56naSv9wPApgZbgEzMG44UuQGXrQzogmEij Next: 2VvWq9Fr9nbGmRq7yLDfw6RW5DnCGJzFj68XiLqsJvbX Diff:
Old | New | Differences | |
---|---|---|---|
52 | 52 | ||
53 | 53 | @Callable(o) | |
54 | 54 | func getNFT (r,y,z) = { | |
55 | - | let A = (makeString([toString(this), z], ";") + ";") | |
55 | + | let A = (makeString([toString(this), "getNFT", r, z], ";") + ";") | |
56 | 56 | if (!(sigVerify_8Kb(toBytes(A), fromBase58String(y), n))) | |
57 | 57 | then throw("Invalid signature from backend.") | |
58 | 58 | else if (((b - parseIntValue(z)) > ((1000 * 60) * 15))) | |
72 | 72 | ||
73 | 73 | @Callable(o) | |
74 | 74 | func putNFT (r,y,z) = { | |
75 | - | let A = (makeString([toString(this), z], ";") + ";") | |
75 | + | let A = (makeString([toString(this), "putNFT", r, z], ";") + ";") | |
76 | 76 | let D = $Tuple2(o.payments[0].amount, o.payments[0].assetId) | |
77 | 77 | let t = D._1 | |
78 | 78 | let u = D._2 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = lastBlock.timestamp | |
7 | 7 | ||
8 | 8 | let c = "buy_ULUS_rate" | |
9 | 9 | ||
10 | 10 | let d = "buy_ULUS_rate_scale_delimiter" | |
11 | 11 | ||
12 | 12 | let e = "sell_ULUS_rate" | |
13 | 13 | ||
14 | 14 | let f = "sell_ULUS_rate_scale_delimiter" | |
15 | 15 | ||
16 | 16 | let g = "key_make_NFT_fee" | |
17 | 17 | ||
18 | 18 | let h = "commission" | |
19 | 19 | ||
20 | 20 | let i = "commission_scale_delimiter" | |
21 | 21 | ||
22 | 22 | let j = base58'GPi1Q6QVgUmuomtThbim81hBYBEUWyf5BVmE4Tnd3sNg' | |
23 | 23 | ||
24 | 24 | let k = base58'J74E8AHdZobVSkA3YboiRrxFUs4odMVxK8tGMg6QXA1n' | |
25 | 25 | ||
26 | 26 | let l = j | |
27 | 27 | ||
28 | 28 | let m = Address(base58'3N1yGG2mA3gTLxReAh84njeRvCBzvUbCccg') | |
29 | 29 | ||
30 | 30 | let n = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg' | |
31 | 31 | ||
32 | 32 | @Callable(o) | |
33 | 33 | func makeNFT (p,q,r) = { | |
34 | 34 | let s = $Tuple2(o.payments[0].amount, o.payments[0].assetId) | |
35 | 35 | let t = s._1 | |
36 | 36 | let u = s._2 | |
37 | 37 | let v = getIntegerValue(this, g) | |
38 | 38 | if ((u != l)) | |
39 | 39 | then throw("Asset must be USDN only") | |
40 | 40 | else if ((v > t)) | |
41 | 41 | then throw(("Fee for make NFT token is " + toString(v))) | |
42 | 42 | else if (isDefined(getString(this, r))) | |
43 | 43 | then throw("NFT for this productId is already issued.") | |
44 | 44 | else { | |
45 | 45 | let w = Issue(p, makeString([q, r, toString(o.caller)], a), 1, 0, false, unit, 0) | |
46 | 46 | let x = calculateAssetId(w) | |
47 | 47 | [w, StringEntry(r, toBase58String(x)), ScriptTransfer(m, t, u)] | |
48 | 48 | } | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Callable(o) | |
54 | 54 | func getNFT (r,y,z) = { | |
55 | - | let A = (makeString([toString(this), z], ";") + ";") | |
55 | + | let A = (makeString([toString(this), "getNFT", r, z], ";") + ";") | |
56 | 56 | if (!(sigVerify_8Kb(toBytes(A), fromBase58String(y), n))) | |
57 | 57 | then throw("Invalid signature from backend.") | |
58 | 58 | else if (((b - parseIntValue(z)) > ((1000 * 60) * 15))) | |
59 | 59 | then throw("The signature is expired. Repeat the operation again.") | |
60 | 60 | else if (!(isDefined(getString(this, r)))) | |
61 | 61 | then throw("Invalid productId.") | |
62 | 62 | else { | |
63 | 63 | let B = fromBase58String(getStringValue(this, r)) | |
64 | 64 | let C = assetBalance(this, B) | |
65 | 65 | if ((C == 0)) | |
66 | 66 | then throw("NFTasset doesn't exist.") | |
67 | 67 | else [ScriptTransfer(o.caller, 1, B)] | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | ||
73 | 73 | @Callable(o) | |
74 | 74 | func putNFT (r,y,z) = { | |
75 | - | let A = (makeString([toString(this), z], ";") + ";") | |
75 | + | let A = (makeString([toString(this), "putNFT", r, z], ";") + ";") | |
76 | 76 | let D = $Tuple2(o.payments[0].amount, o.payments[0].assetId) | |
77 | 77 | let t = D._1 | |
78 | 78 | let u = D._2 | |
79 | 79 | if (!(sigVerify_8Kb(toBytes(A), fromBase58String(y), n))) | |
80 | 80 | then throw("Invalid signature from backend.") | |
81 | 81 | else if (((b - parseIntValue(z)) > ((1000 * 60) * 15))) | |
82 | 82 | then throw("The signature is expired. Repeat the operation again.") | |
83 | 83 | else if (!(isDefined(getString(this, r)))) | |
84 | 84 | then throw("Invalid productId.") | |
85 | 85 | else { | |
86 | 86 | let B = fromBase58String(getStringValue(this, r)) | |
87 | 87 | if (if ((B != u)) | |
88 | 88 | then true | |
89 | 89 | else (t != 1)) | |
90 | 90 | then throw("Wrong NFTasset.") | |
91 | 91 | else nil | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(o) | |
98 | 98 | func setParams () = if ((o.caller != this)) | |
99 | 99 | then throw("Only the DApp itself can call this function") | |
100 | 100 | else [IntegerEntry(c, 150000), IntegerEntry(d, 1000), IntegerEntry(e, 100000), IntegerEntry(f, 1000), IntegerEntry(h, 30000), IntegerEntry(i, 1000000), IntegerEntry(g, 1000000)] | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(o) | |
105 | 105 | func clearOldParams () = if ((o.caller != this)) | |
106 | 106 | then throw("Only the DApp itself can call this function") | |
107 | 107 | else { | |
108 | 108 | let E = "buy_UWORLD_rate" | |
109 | 109 | let F = "buy_UWORLD_rate_scale_delimiter" | |
110 | 110 | let G = "sell_UWORLD_rate" | |
111 | 111 | let H = "sell_UWORLD_rate_scale_delimiter" | |
112 | 112 | [DeleteEntry(E), DeleteEntry(F), DeleteEntry(G), DeleteEntry(H)] | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(o) | |
118 | 118 | func buyULUS () = { | |
119 | 119 | let I = $Tuple2(o.payments[0].amount, o.payments[0].assetId) | |
120 | 120 | let t = I._1 | |
121 | 121 | let u = I._2 | |
122 | 122 | if ((u != l)) | |
123 | 123 | then throw("Asset must be USDN only") | |
124 | 124 | else { | |
125 | 125 | let J = getIntegerValue(this, c) | |
126 | 126 | let K = getIntegerValue(this, d) | |
127 | 127 | let L = fraction(t, K, J) | |
128 | 128 | let M = L | |
129 | 129 | [ScriptTransfer(o.caller, M, k)] | |
130 | 130 | } | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(o) | |
136 | 136 | func sellULUS () = { | |
137 | 137 | let N = $Tuple2(o.payments[0].amount, o.payments[0].assetId) | |
138 | 138 | let t = N._1 | |
139 | 139 | let u = N._2 | |
140 | 140 | if ((u != k)) | |
141 | 141 | then throw("Asset must be ULUS only") | |
142 | 142 | else { | |
143 | 143 | let J = getIntegerValue(this, e) | |
144 | 144 | let K = getIntegerValue(this, f) | |
145 | 145 | let L = fraction(t, J, K) | |
146 | 146 | let M = L | |
147 | 147 | [ScriptTransfer(o.caller, M, j)] | |
148 | 148 | } | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | ||
153 | 153 | @Callable(o) | |
154 | 154 | func makePayment (O,r,y,z) = { | |
155 | 155 | let P = addressFromStringValue(O) | |
156 | 156 | let Q = $Tuple2(o.payments[0].amount, o.payments[0].assetId) | |
157 | 157 | let t = Q._1 | |
158 | 158 | let u = Q._2 | |
159 | 159 | let A = (makeString([toString(this), z, toString(t)], ";") + ";") | |
160 | 160 | if (!(sigVerify_8Kb(toBytes(A), fromBase58String(y), n))) | |
161 | 161 | then throw("Invalid signature from backend.") | |
162 | 162 | else if (((b - parseIntValue(z)) > ((1000 * 60) * 15))) | |
163 | 163 | then throw("The signature is expired. Repeat the operation again.") | |
164 | 164 | else if (if ((u != j)) | |
165 | 165 | then (u != k) | |
166 | 166 | else false) | |
167 | 167 | then throw("Asset must be only USDN or ULUS") | |
168 | 168 | else { | |
169 | 169 | let R = getIntegerValue(this, h) | |
170 | 170 | let S = getIntegerValue(this, i) | |
171 | 171 | let T = fraction(t, R, S) | |
172 | 172 | let M = (t - T) | |
173 | 173 | let U = if ((u == j)) | |
174 | 174 | then 1000000 | |
175 | 175 | else 1000 | |
176 | 176 | let V = fraction(t, 100, U) | |
177 | 177 | if (isDefined(getString(this, r))) | |
178 | 178 | then { | |
179 | 179 | let B = fromBase58String(getStringValue(this, r)) | |
180 | 180 | let C = assetBalance(this, B) | |
181 | 181 | if ((C == 0)) | |
182 | 182 | then throw("NFTasset doesn't exist.") | |
183 | 183 | else { | |
184 | 184 | let W = split(value(assetInfo(B)).description, a)[2] | |
185 | 185 | let X = addressFromStringValue(W) | |
186 | 186 | let Y = fraction(t, 100000, 1000000) | |
187 | 187 | let Z = ((t - T) - Y) | |
188 | 188 | [ScriptTransfer(P, Z, u), ScriptTransfer(m, T, u), ScriptTransfer(X, Y, u), ScriptTransfer(o.caller, V, k), ScriptTransfer(o.caller, 1, B)] | |
189 | 189 | } | |
190 | 190 | } | |
191 | 191 | else [ScriptTransfer(P, M, u), ScriptTransfer(m, T, u), ScriptTransfer(o.caller, V, k)] | |
192 | 192 | } | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 |
github/deemru/w8io/026f985 31.55 ms ◑