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:AAIFAAAAAAAAACAIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSAAAAACYAAAAAA1NFUAIAAAACX18BAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABFrZXlGYWN0b3J5QWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fZmFjdG9yeUFkZHJlc3MAAAAAGWtleVZvdGluZ1ZlcmlmaWVkQ29udHJhY3QCAAAAJCVzJXNfX2NvbmZpZ19fdm90aW5nVmVyaWZpZWRDb250cmFjdAAAAAAWdm90aW5nVmVyaWZpZWRDb250cmFjdAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAD2dldFN0cmluZ09yRmFpbAAAAAIFAAAABHRo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2hlY2tQTQUAAAAHY2hlY2tQTQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAACcG0JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5FJb2Og==", "chainId": 84, "height": 1967817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2oEYtpV1GB2GYFoYeaSTyv8sxojKkPfLjD7mcVLZoCGW Next: 7W58ExSwMiaKxKHAHt3gaJf3UaCtFdzuYNexDujfTNvi Diff:
OldNewDifferences
88
99 func keyFactoryAddress () = "%s%s__config__factoryAddress"
1010
11+
12+let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract"
13+
14+let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract))
1115
1216 let IdxFactoryCfgStakingDapp = 1
1317
139143
140144
141145 @Callable(i)
146+func constructorV2 (votingVerifiedContractPrm) = $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
147+
148+
149+
150+@Callable(i)
142151 func emit (amount) = if ((0 >= amount))
143152 then $Tuple2(nil, nil)
144153 else {
174183 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
175184 if ((assetId != wxAssetId))
176185 then throw("invalid wxAssetId is passed")
177- else if ((i.caller != boostingContract))
186+ else if (!(containsElement([boostingContract, votingVerifiedContract], i.caller)))
178187 then throw("permissions denied")
179188 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))]
180189 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
77
88
99 func keyFactoryAddress () = "%s%s__config__factoryAddress"
1010
11+
12+let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract"
13+
14+let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract))
1115
1216 let IdxFactoryCfgStakingDapp = 1
1317
1418 let IdxFactoryCfgBoostingDapp = 2
1519
1620 let IdxFactoryCfgIdoDapp = 3
1721
1822 let IdxFactoryCfgTeamDapp = 4
1923
2024 let IdxFactoryCfgEmissionDapp = 5
2125
2226 let IdxFactoryCfgRestDapp = 6
2327
2428 let IdxFactoryCfgSlippageDapp = 7
2529
2630 let IdxFactoryCfgGwxRewardDapp = 10
2731
2832 func keyFactoryCfg () = "%s__factoryConfig"
2933
3034
3135 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
3236
3337
3438 func keyFactoryLpList () = "%s__lpTokensList"
3539
3640
3741 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
3842
3943
4044 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
4145
4246
4347 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
4448
4549
4650 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
4751
4852
4953 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
5054
5155
5256 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
5357
5458
5559 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
5660
5761
5862 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
5963
6064
6165 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
6266
6367
6468 func keyConfig () = "%s__config"
6569
6670
6771 func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
6872
6973
7074 func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP)
7175
7276
7377 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
7478
7579
7680 func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
7781
7882
7983 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
8084
8185
8286 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
8387
8488
8589 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
8690
8791
8892 func keyManagerPublicKey () = "%s__managerPublicKey"
8993
9094
9195 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
9296
9397
9498 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
9599 case s: String =>
96100 fromBase58String(s)
97101 case _: Unit =>
98102 unit
99103 case _ =>
100104 throw("Match error")
101105 }
102106
103107
104108 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
105109 case s: String =>
106110 fromBase58String(s)
107111 case _: Unit =>
108112 unit
109113 case _ =>
110114 throw("Match error")
111115 }
112116
113117
114118 func mustManager (i) = {
115119 let pd = throw("Permission denied")
116120 match managerPublicKeyOrUnit() {
117121 case pk: ByteVector =>
118122 if ((i.callerPublicKey == pk))
119123 then true
120124 else pd
121125 case _: Unit =>
122126 if ((i.caller == this))
123127 then true
124128 else pd
125129 case _ =>
126130 throw("Match error")
127131 }
128132 }
129133
130134
131135 @Callable(i)
132136 func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = {
133137 let checkCaller = mustManager(i)
134138 if ((checkCaller == checkCaller))
135139 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))]
136140 else throw("Strict value is not equal to itself.")
137141 }
138142
139143
140144
141145 @Callable(i)
146+func constructorV2 (votingVerifiedContractPrm) = $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
147+
148+
149+
150+@Callable(i)
142151 func emit (amount) = if ((0 >= amount))
143152 then $Tuple2(nil, nil)
144153 else {
145154 let factoryContract = readFactoryAddressOrFail()
146155 let factoryCfg = readFactoryCfgOrFail(factoryContract)
147156 let stakingContract = getStakingAddressOrFail(factoryCfg)
148157 let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
149158 let caller = i.caller
150159 if (if ((caller != stakingContract))
151160 then (caller != gwxRewardsContract)
152161 else false)
153162 then throw("permissions denied")
154163 else {
155164 let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1]
156165 let wxAssetId = fromBase58String(wxAssetIdStr)
157166 $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId])
158167 }
159168 }
160169
161170
162171
163172 @Callable(i)
164173 func burn () = {
165174 let factoryContract = readFactoryAddressOrFail()
166175 let factoryCfg = readFactoryCfgOrFail(factoryContract)
167176 let boostingContract = getBoostingAddressOrFail(factoryCfg)
168177 if ((size(i.payments) != 1))
169178 then throw("exact one payment is allowed")
170179 else {
171180 let pmt = i.payments[0]
172181 let assetId = value(pmt.assetId)
173182 let pmtAmount = pmt.amount
174183 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
175184 if ((assetId != wxAssetId))
176185 then throw("invalid wxAssetId is passed")
177- else if ((i.caller != boostingContract))
186+ else if (!(containsElement([boostingContract, votingVerifiedContract], i.caller)))
178187 then throw("permissions denied")
179188 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))]
180189 }
181190 }
182191
183192
184193
185194 @Callable(i)
186195 func setManager (pendingManagerPublicKey) = {
187196 let checkCaller = mustManager(i)
188197 if ((checkCaller == checkCaller))
189198 then {
190199 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
191200 if ((checkManagerPublicKey == checkManagerPublicKey))
192201 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
193202 else throw("Strict value is not equal to itself.")
194203 }
195204 else throw("Strict value is not equal to itself.")
196205 }
197206
198207
199208
200209 @Callable(i)
201210 func confirmManager () = {
202211 let pm = pendingManagerPublicKeyOrUnit()
203212 let hasPM = if (isDefined(pm))
204213 then true
205214 else throw("No pending manager")
206215 if ((hasPM == hasPM))
207216 then {
208217 let checkPM = if ((i.callerPublicKey == value(pm)))
209218 then true
210219 else throw("You are not pending manager")
211220 if ((checkPM == checkPM))
212221 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
213222 else throw("Strict value is not equal to itself.")
214223 }
215224 else throw("Strict value is not equal to itself.")
216225 }
217226
218227
219228 @Verifier(tx)
220229 func verify () = {
221230 let targetPublicKey = match managerPublicKeyOrUnit() {
222231 case pk: ByteVector =>
223232 pk
224233 case _: Unit =>
225234 tx.senderPublicKey
226235 case _ =>
227236 throw("Match error")
228237 }
229238 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
230239 }
231240

github/deemru/w8io/026f985 
37.67 ms