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