tx · 694CMwFvLpm9N9YnumFTHsybffYZWUY5y1Xw9GwNkNko 3N7eVUvoE25Tgxg1f2h4AZ8nVEiPoo7EAzj: -0.01000000 Waves 2022.04.17 19:36 [2012799] smart account 3N7eVUvoE25Tgxg1f2h4AZ8nVEiPoo7EAzj > SELF 0.00000000 Waves
{ "type": 13, "id": "694CMwFvLpm9N9YnumFTHsybffYZWUY5y1Xw9GwNkNko", "fee": 1000000, "feeAssetId": null, "timestamp": 1650213391489, "version": 2, "chainId": 84, "sender": "3N7eVUvoE25Tgxg1f2h4AZ8nVEiPoo7EAzj", "senderPublicKey": "28ZAWaX3rFUGypePJh2zRarRCCEKQbANeVAQqof3m4t2", "proofs": [ "EVBMjAV1UEPwU7YKSFWYKmKxB7Y691Gekn25ey8FatYciCeJdF7U1HBLnDSZX3CMFJByVfFZHFKELPNLUcv8Cut" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgkKBwgICAgBAQESCQoHCAgICAEBARIECgIICBIECgIICAAAAAgAAAAACW9yYWNsZUtleQIAAAAJb3JhY2xlS2V5AQAAAAZnZXRTdHIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAAZnZXRJbnQAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAApzY29uZXhEYXBwCQAEJgAAAAEJAQAAABN2YWx1ZU9yRXJy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tUmV3YXJkBQAAABJhZGRyZXNzMlRlYW1SZXdhcmQFAAAAEmFkZHJlc3MzVGVhbVJld2FyZAQAAAAUc2NyaXB0VHJhbnNmZXJTZWxsZXIDCQAAAAAAAAIFAAAABnNlbGxlcgIAAAAABQAAAANuaWwJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGc2VsbGVyBQAAAAxzZWxsZXJSZXdhcmQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAAA25pbAkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgUAAAAac2NyaXB0VHJhbnNmZXJBZGRyZXNzVGVhbTEFAAAAGnNjcmlwdFRyYW5zZmVyQWRkcmVzc1RlYW0yBQAAABpzY3JpcHRUcmFuc2ZlckFkZHJlc3NUZWFtMwUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMQUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMgUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMwUAAAAUc2NyaXB0VHJhbnNmZXJTZWxsZXIAAAAA5zd+YQ==", "height": 2012799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let oracleKey = "oracleKey" | |
5 | + | ||
6 | + | func getStr (key) = match getString(this, key) { | |
7 | + | case b: String => | |
8 | + | b | |
9 | + | case _ => | |
10 | + | "" | |
11 | + | } | |
12 | + | ||
13 | + | ||
14 | + | func getInt (key) = match getInteger(this, key) { | |
15 | + | case b: Int => | |
16 | + | b | |
17 | + | case _ => | |
18 | + | 0 | |
19 | + | } | |
20 | + | ||
21 | + | ||
22 | + | let oracle = getStr(oracleKey) | |
23 | + | ||
24 | + | let oracleFee = value(addressFromString(oracle)) | |
25 | + | ||
26 | + | let sconexDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "sconexDapp"), "sconexDapp not found")) | |
27 | + | ||
28 | + | let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found") | |
29 | + | ||
30 | + | let allowedDapps = [sconexDapp] | |
31 | + | ||
32 | + | @Callable(i) | |
33 | + | func initDapp (dappKey) = if ((i.caller != this)) | |
34 | + | then throw("You cannot do this action") | |
35 | + | else if ((oracle != "")) | |
36 | + | then throw("oracle already set, you can't override!") | |
37 | + | else [StringEntry(oracleKey, dappKey)] | |
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | @Callable(i) | |
42 | + | func teamSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller))) | |
43 | + | then throw("Not allowed") | |
44 | + | else if ((0 > address1Share)) | |
45 | + | then throw("Share 1 can't be negative") | |
46 | + | else if (if (if ((address1Share != 0)) | |
47 | + | then true | |
48 | + | else (address1 != "")) | |
49 | + | then !(isDefined(addressFromString(address1))) | |
50 | + | else false) | |
51 | + | then throw("Address 1 is invalid") | |
52 | + | else if ((0 > address2Share)) | |
53 | + | then throw("Share 2 can't be negative") | |
54 | + | else if (if (if ((address2Share != 0)) | |
55 | + | then true | |
56 | + | else (address2 != "")) | |
57 | + | then !(isDefined(addressFromString(address2))) | |
58 | + | else false) | |
59 | + | then throw("Address 2 is invalid") | |
60 | + | else if ((0 > address3Share)) | |
61 | + | then throw("Share 3 can't be negative") | |
62 | + | else if (if (if ((address3Share != 0)) | |
63 | + | then true | |
64 | + | else (address3 != "")) | |
65 | + | then !(isDefined(addressFromString(address3))) | |
66 | + | else false) | |
67 | + | then throw("Address 3 is invalid") | |
68 | + | else if ((((address1Share + address2Share) + address3Share) != 15)) | |
69 | + | then throw("Sum of shares should be equal to 15") | |
70 | + | else [StringEntry((artId + "_team_address1"), address1), StringEntry((artId + "_team_address2"), address2), StringEntry((artId + "_team_address3"), address3), IntegerEntry((artId + "_team_share1"), address1Share), IntegerEntry((artId + "_team_share2"), address2Share), IntegerEntry((artId + "_team_share3"), address3Share)] | |
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | @Callable(i) | |
75 | + | func creatorSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller))) | |
76 | + | then throw("Not allowed") | |
77 | + | else if ((0 > address1Share)) | |
78 | + | then throw("Share 1 can't be negative") | |
79 | + | else if (if (if ((address1Share != 0)) | |
80 | + | then true | |
81 | + | else (address1 != "")) | |
82 | + | then !(isDefined(addressFromString(address1))) | |
83 | + | else false) | |
84 | + | then throw("Address 1 is invalid") | |
85 | + | else if ((0 > address2Share)) | |
86 | + | then throw("Share 2 can't be negative") | |
87 | + | else if (if (if ((address2Share != 0)) | |
88 | + | then true | |
89 | + | else (address2 != "")) | |
90 | + | then !(isDefined(addressFromString(address2))) | |
91 | + | else false) | |
92 | + | then throw("Address 2 is invalid") | |
93 | + | else if ((0 > address3Share)) | |
94 | + | then throw("Share 3 can't be negative") | |
95 | + | else if (if (if ((address3Share != 0)) | |
96 | + | then true | |
97 | + | else (address3 != "")) | |
98 | + | then !(isDefined(addressFromString(address3))) | |
99 | + | else false) | |
100 | + | then throw("Address 3 is invalid") | |
101 | + | else if ((((address1Share + address2Share) + address3Share) > 85)) | |
102 | + | then throw("Sum of shares should be smaller or equal then 85") | |
103 | + | else [StringEntry((artId + "_creator_address1"), address1), StringEntry((artId + "_creator_address2"), address2), StringEntry((artId + "_creator_address3"), address3), IntegerEntry((artId + "_creator_share1"), address1Share), IntegerEntry((artId + "_creator_share2"), address2Share), IntegerEntry((artId + "_creator_share3"), address3Share)] | |
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | @Callable(i) | |
108 | + | func payFeeResell (txId,seller) = if (!(containsElement(allowedDapps, i.caller))) | |
109 | + | then throw("Not allowed") | |
110 | + | else { | |
111 | + | let sconexFeePercentage = 3 | |
112 | + | let amount = value(i.payments[0].amount) | |
113 | + | let assetId = value(i.payments[0].assetId) | |
114 | + | let address1ShareCreator = getInt((txId + "_creator_share1")) | |
115 | + | let address2ShareCreator = getInt((txId + "_creator_share2")) | |
116 | + | let address3ShareCreator = getInt((txId + "_creator_share3")) | |
117 | + | let address1Creator = getStr((txId + "_creator_address1")) | |
118 | + | let address2Creator = getStr((txId + "_creator_address2")) | |
119 | + | let address3Creator = getStr((txId + "_creator_address3")) | |
120 | + | let address1CreatorReward = if ((address1Creator == "")) | |
121 | + | then 0 | |
122 | + | else fraction(amount, address1ShareCreator, 100) | |
123 | + | let address2CreatorReward = if ((address2Creator == "")) | |
124 | + | then 0 | |
125 | + | else fraction(amount, address2ShareCreator, 100) | |
126 | + | let address3CreatorReward = if ((address3Creator == "")) | |
127 | + | then 0 | |
128 | + | else fraction(amount, address3ShareCreator, 100) | |
129 | + | let sconexFeeReward = fraction(amount, sconexFeePercentage, 100) | |
130 | + | let sellerReward = ((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - sconexFeeReward) | |
131 | + | let scriptTransferFeeReceiver = [ScriptTransfer(addressFromStringValue(feeReceiver), sconexFeeReward, i.payments[0].assetId)] | |
132 | + | let scriptTransferAddress1 = if ((address1Creator == "")) | |
133 | + | then nil | |
134 | + | else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)] | |
135 | + | let scriptTransferAddress2 = if ((address2Creator == "")) | |
136 | + | then nil | |
137 | + | else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)] | |
138 | + | let scriptTransferAddress3 = if ((address3Creator == "")) | |
139 | + | then nil | |
140 | + | else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)] | |
141 | + | let scriptTransferSeller = if ((seller == "")) | |
142 | + | then nil | |
143 | + | else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)] | |
144 | + | ((((scriptTransferAddress1 ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferFeeReceiver) ++ scriptTransferSeller) | |
145 | + | } | |
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | @Callable(i) | |
150 | + | func payFee (txId,seller) = if (!(containsElement(allowedDapps, i.caller))) | |
151 | + | then throw("Not allowed") | |
152 | + | else { | |
153 | + | let amount = value(i.payments[0].amount) | |
154 | + | let assetId = value(i.payments[0].assetId) | |
155 | + | let address1ShareTeam = getInt((txId + "_team_share1")) | |
156 | + | let address2ShareTeam = getInt((txId + "_team_share2")) | |
157 | + | let address3ShareTeam = getInt((txId + "_team_share3")) | |
158 | + | let address1Team = getStr((txId + "_team_address1")) | |
159 | + | let address2Team = getStr((txId + "_team_address2")) | |
160 | + | let address3Team = getStr((txId + "_team_address3")) | |
161 | + | let address1ShareCreator = getInt((txId + "_creator_address1")) | |
162 | + | let address2ShareCreator = getInt((txId + "_creator_address2")) | |
163 | + | let address3ShareCreator = getInt((txId + "_creator_address3")) | |
164 | + | let address1Creator = getStr((txId + "_creator_address1")) | |
165 | + | let address2Creator = getStr((txId + "_creator_address2")) | |
166 | + | let address3Creator = getStr((txId + "_creator_address3")) | |
167 | + | let address1TeamReward = if ((address1Team == "")) | |
168 | + | then 0 | |
169 | + | else fraction(amount, address1ShareTeam, 100) | |
170 | + | let address2TeamReward = if ((address2Team == "")) | |
171 | + | then 0 | |
172 | + | else fraction(amount, address2ShareTeam, 100) | |
173 | + | let address3TeamReward = if ((address3Team == "")) | |
174 | + | then 0 | |
175 | + | else fraction(amount, address3ShareTeam, 100) | |
176 | + | let address1CreatorReward = if ((address1Creator == "")) | |
177 | + | then 0 | |
178 | + | else fraction(amount, address1ShareCreator, 100) | |
179 | + | let address2CreatorReward = if ((address2Creator == "")) | |
180 | + | then 0 | |
181 | + | else fraction(amount, address2ShareCreator, 100) | |
182 | + | let address3CreatorReward = if ((address3Creator == "")) | |
183 | + | then 0 | |
184 | + | else fraction(amount, address3ShareCreator, 100) | |
185 | + | let scriptTransferAddressTeam1 = if ((address1Team == "")) | |
186 | + | then nil | |
187 | + | else [ScriptTransfer(addressFromStringValue(address1Team), address1TeamReward, i.payments[0].assetId)] | |
188 | + | let scriptTransferAddressTeam2 = if ((address2Team == "")) | |
189 | + | then nil | |
190 | + | else [ScriptTransfer(addressFromStringValue(address2Team), address2TeamReward, i.payments[0].assetId)] | |
191 | + | let scriptTransferAddressTeam3 = if ((address3Team == "")) | |
192 | + | then nil | |
193 | + | else [ScriptTransfer(addressFromStringValue(address3Team), address3TeamReward, i.payments[0].assetId)] | |
194 | + | let scriptTransferAddress1 = if ((address1Creator == "")) | |
195 | + | then nil | |
196 | + | else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)] | |
197 | + | let scriptTransferAddress2 = if ((address2Creator == "")) | |
198 | + | then nil | |
199 | + | else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)] | |
200 | + | let scriptTransferAddress3 = if ((address3Creator == "")) | |
201 | + | then nil | |
202 | + | else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)] | |
203 | + | let sellerReward = ((((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - address1TeamReward) - address2TeamReward) - address3TeamReward) | |
204 | + | let scriptTransferSeller = if ((seller == "")) | |
205 | + | then nil | |
206 | + | else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)] | |
207 | + | ((((((scriptTransferAddressTeam1 ++ scriptTransferAddressTeam2) ++ scriptTransferAddressTeam3) ++ scriptTransferAddress1) ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferSeller) | |
208 | + | } | |
209 | + | ||
210 | + |
github/deemru/w8io/026f985 35.33 ms ◑