tx · CzxjTAPjUHpug2GKuFdA3ZrRWEoXQ7ZGouWJCXNaLYoC 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01400000 Waves 2022.03.17 13:28 [1967817] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "CzxjTAPjUHpug2GKuFdA3ZrRWEoXQ7ZGouWJCXNaLYoC", "fee": 1400000, "feeAssetId": null, "timestamp": 1647512944683, "version": 1, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "2mBdrJNjVhNXU6MMSSHzeDcveyTDnNeBRE21DFowGNT3HNuUUdt4VVHF84rKPMB356aJD3t9pm8AvyMzQemN3q79" ], "script": "base64:AAIFAAAAAAAAACAIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSAAAAACYAAAAAA1NFUAIAAAACX18BAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABFrZXlGYWN0b3J5QWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fZmFjdG9yeUFkZHJlc3MAAAAAGWtleVZvdGluZ1ZlcmlmaWVkQ29udHJhY3QCAAAAJCVzJXNfX2NvbmZpZ19fdm90aW5nVmVyaWZpZWRDb250cmFjdAAAAAAWdm90aW5nVmVyaWZpZWRDb250cmFjdAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAD2dldFN0cmluZ09yRmFpbAAAAAIFAAAABHRoa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hlY2tQTQUAAAAHY2hlY2tQTQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAACcG0JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5FJb2Og==", "chainId": 84, "height": 1967817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2oEYtpV1GB2GYFoYeaSTyv8sxojKkPfLjD7mcVLZoCGW Next: 7W58ExSwMiaKxKHAHt3gaJf3UaCtFdzuYNexDujfTNvi Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | ||
9 | 9 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
10 | 10 | ||
11 | + | ||
12 | + | let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract" | |
13 | + | ||
14 | + | let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract)) | |
11 | 15 | ||
12 | 16 | let IdxFactoryCfgStakingDapp = 1 | |
13 | 17 | ||
139 | 143 | ||
140 | 144 | ||
141 | 145 | @Callable(i) | |
146 | + | func constructorV2 (votingVerifiedContractPrm) = $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit) | |
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | @Callable(i) | |
142 | 151 | func emit (amount) = if ((0 >= amount)) | |
143 | 152 | then $Tuple2(nil, nil) | |
144 | 153 | else { | |
174 | 183 | let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1]) | |
175 | 184 | if ((assetId != wxAssetId)) | |
176 | 185 | then throw("invalid wxAssetId is passed") | |
177 | - | else if ((i.caller | |
186 | + | else if (!(containsElement([boostingContract, votingVerifiedContract], i.caller))) | |
178 | 187 | then throw("permissions denied") | |
179 | 188 | else [Burn(assetId, pmtAmount), StringEntry(("%s%s%s__history__burn__" + toBase58String(i.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(pmtAmount)], SEP))] | |
180 | 189 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
10 | 10 | ||
11 | + | ||
12 | + | let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract" | |
13 | + | ||
14 | + | let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract)) | |
11 | 15 | ||
12 | 16 | let IdxFactoryCfgStakingDapp = 1 | |
13 | 17 | ||
14 | 18 | let IdxFactoryCfgBoostingDapp = 2 | |
15 | 19 | ||
16 | 20 | let IdxFactoryCfgIdoDapp = 3 | |
17 | 21 | ||
18 | 22 | let IdxFactoryCfgTeamDapp = 4 | |
19 | 23 | ||
20 | 24 | let IdxFactoryCfgEmissionDapp = 5 | |
21 | 25 | ||
22 | 26 | let IdxFactoryCfgRestDapp = 6 | |
23 | 27 | ||
24 | 28 | let IdxFactoryCfgSlippageDapp = 7 | |
25 | 29 | ||
26 | 30 | let IdxFactoryCfgGwxRewardDapp = 10 | |
27 | 31 | ||
28 | 32 | func keyFactoryCfg () = "%s__factoryConfig" | |
29 | 33 | ||
30 | 34 | ||
31 | 35 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
32 | 36 | ||
33 | 37 | ||
34 | 38 | func keyFactoryLpList () = "%s__lpTokensList" | |
35 | 39 | ||
36 | 40 | ||
37 | 41 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
38 | 42 | ||
39 | 43 | ||
40 | 44 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
41 | 45 | ||
42 | 46 | ||
43 | 47 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress())) | |
44 | 48 | ||
45 | 49 | ||
46 | 50 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
47 | 51 | ||
48 | 52 | ||
49 | 53 | func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP) | |
50 | 54 | ||
51 | 55 | ||
52 | 56 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
53 | 57 | ||
54 | 58 | ||
55 | 59 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
56 | 60 | ||
57 | 61 | ||
58 | 62 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
59 | 63 | ||
60 | 64 | ||
61 | 65 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
62 | 66 | ||
63 | 67 | ||
64 | 68 | func keyConfig () = "%s__config" | |
65 | 69 | ||
66 | 70 | ||
67 | 71 | func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
68 | 72 | ||
69 | 73 | ||
70 | 74 | func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP) | |
71 | 75 | ||
72 | 76 | ||
73 | 77 | func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
74 | 78 | ||
75 | 79 | ||
76 | 80 | func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP) | |
77 | 81 | ||
78 | 82 | ||
79 | 83 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
80 | 84 | ||
81 | 85 | ||
82 | 86 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
83 | 87 | ||
84 | 88 | ||
85 | 89 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
86 | 90 | ||
87 | 91 | ||
88 | 92 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
89 | 93 | ||
90 | 94 | ||
91 | 95 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
92 | 96 | ||
93 | 97 | ||
94 | 98 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
95 | 99 | case s: String => | |
96 | 100 | fromBase58String(s) | |
97 | 101 | case _: Unit => | |
98 | 102 | unit | |
99 | 103 | case _ => | |
100 | 104 | throw("Match error") | |
101 | 105 | } | |
102 | 106 | ||
103 | 107 | ||
104 | 108 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
105 | 109 | case s: String => | |
106 | 110 | fromBase58String(s) | |
107 | 111 | case _: Unit => | |
108 | 112 | unit | |
109 | 113 | case _ => | |
110 | 114 | throw("Match error") | |
111 | 115 | } | |
112 | 116 | ||
113 | 117 | ||
114 | 118 | func mustManager (i) = { | |
115 | 119 | let pd = throw("Permission denied") | |
116 | 120 | match managerPublicKeyOrUnit() { | |
117 | 121 | case pk: ByteVector => | |
118 | 122 | if ((i.callerPublicKey == pk)) | |
119 | 123 | then true | |
120 | 124 | else pd | |
121 | 125 | case _: Unit => | |
122 | 126 | if ((i.caller == this)) | |
123 | 127 | then true | |
124 | 128 | else pd | |
125 | 129 | case _ => | |
126 | 130 | throw("Match error") | |
127 | 131 | } | |
128 | 132 | } | |
129 | 133 | ||
130 | 134 | ||
131 | 135 | @Callable(i) | |
132 | 136 | func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = { | |
133 | 137 | let checkCaller = mustManager(i) | |
134 | 138 | if ((checkCaller == checkCaller)) | |
135 | 139 | then [IntegerEntry(keyRatePerBlockMaxStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlockMax), IntegerEntry(keyRatePerBlockMaxCurrent(), ratePerBlockMax), IntegerEntry(keyRatePerBlockStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlock), IntegerEntry(keyRatePerBlockCurrent(), ratePerBlock), IntegerEntry(keyEmissionStartBlock(), emissionStartBlock), IntegerEntry(keyEmissionDurationInBlocks(), emissionDuration), IntegerEntry(keyEmissionEndBlock(), (emissionStartBlock + emissionDuration)), StringEntry(keyFactoryAddress(), factoryAddress), StringEntry(keyConfig(), ("%s__" + wxAssetIdStr))] | |
136 | 140 | else throw("Strict value is not equal to itself.") | |
137 | 141 | } | |
138 | 142 | ||
139 | 143 | ||
140 | 144 | ||
141 | 145 | @Callable(i) | |
146 | + | func constructorV2 (votingVerifiedContractPrm) = $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit) | |
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | @Callable(i) | |
142 | 151 | func emit (amount) = if ((0 >= amount)) | |
143 | 152 | then $Tuple2(nil, nil) | |
144 | 153 | else { | |
145 | 154 | let factoryContract = readFactoryAddressOrFail() | |
146 | 155 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
147 | 156 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
148 | 157 | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
149 | 158 | let caller = i.caller | |
150 | 159 | if (if ((caller != stakingContract)) | |
151 | 160 | then (caller != gwxRewardsContract) | |
152 | 161 | else false) | |
153 | 162 | then throw("permissions denied") | |
154 | 163 | else { | |
155 | 164 | let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1] | |
156 | 165 | let wxAssetId = fromBase58String(wxAssetIdStr) | |
157 | 166 | $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId]) | |
158 | 167 | } | |
159 | 168 | } | |
160 | 169 | ||
161 | 170 | ||
162 | 171 | ||
163 | 172 | @Callable(i) | |
164 | 173 | func burn () = { | |
165 | 174 | let factoryContract = readFactoryAddressOrFail() | |
166 | 175 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
167 | 176 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
168 | 177 | if ((size(i.payments) != 1)) | |
169 | 178 | then throw("exact one payment is allowed") | |
170 | 179 | else { | |
171 | 180 | let pmt = i.payments[0] | |
172 | 181 | let assetId = value(pmt.assetId) | |
173 | 182 | let pmtAmount = pmt.amount | |
174 | 183 | let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1]) | |
175 | 184 | if ((assetId != wxAssetId)) | |
176 | 185 | then throw("invalid wxAssetId is passed") | |
177 | - | else if ((i.caller | |
186 | + | else if (!(containsElement([boostingContract, votingVerifiedContract], i.caller))) | |
178 | 187 | then throw("permissions denied") | |
179 | 188 | else [Burn(assetId, pmtAmount), StringEntry(("%s%s%s__history__burn__" + toBase58String(i.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(pmtAmount)], SEP))] | |
180 | 189 | } | |
181 | 190 | } | |
182 | 191 | ||
183 | 192 | ||
184 | 193 | ||
185 | 194 | @Callable(i) | |
186 | 195 | func setManager (pendingManagerPublicKey) = { | |
187 | 196 | let checkCaller = mustManager(i) | |
188 | 197 | if ((checkCaller == checkCaller)) | |
189 | 198 | then { | |
190 | 199 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
191 | 200 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
192 | 201 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
193 | 202 | else throw("Strict value is not equal to itself.") | |
194 | 203 | } | |
195 | 204 | else throw("Strict value is not equal to itself.") | |
196 | 205 | } | |
197 | 206 | ||
198 | 207 | ||
199 | 208 | ||
200 | 209 | @Callable(i) | |
201 | 210 | func confirmManager () = { | |
202 | 211 | let pm = pendingManagerPublicKeyOrUnit() | |
203 | 212 | let hasPM = if (isDefined(pm)) | |
204 | 213 | then true | |
205 | 214 | else throw("No pending manager") | |
206 | 215 | if ((hasPM == hasPM)) | |
207 | 216 | then { | |
208 | 217 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
209 | 218 | then true | |
210 | 219 | else throw("You are not pending manager") | |
211 | 220 | if ((checkPM == checkPM)) | |
212 | 221 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
213 | 222 | else throw("Strict value is not equal to itself.") | |
214 | 223 | } | |
215 | 224 | else throw("Strict value is not equal to itself.") | |
216 | 225 | } | |
217 | 226 | ||
218 | 227 | ||
219 | 228 | @Verifier(tx) | |
220 | 229 | func verify () = { | |
221 | 230 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
222 | 231 | case pk: ByteVector => | |
223 | 232 | pk | |
224 | 233 | case _: Unit => | |
225 | 234 | tx.senderPublicKey | |
226 | 235 | case _ => | |
227 | 236 | throw("Match error") | |
228 | 237 | } | |
229 | 238 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
230 | 239 | } | |
231 | 240 |
github/deemru/w8io/026f985 37.67 ms ◑