tx · DAijscLWRz9y3XpuzTyYKeeKjLytuYmYfpQiuUPN1arY 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc: -0.05000000 Waves 2019.12.19 09:11 [815410] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves
{ "type": 13, "id": "DAijscLWRz9y3XpuzTyYKeeKjLytuYmYfpQiuUPN1arY", "fee": 5000000, "feeAssetId": null, "timestamp": 1576735981291, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "5dyjZ8w2Ea5bSxZEvG8qCXqsfgQAZ846oMeNP8HHcBCeb8PPAsADVJNVd6w3XEmB2tAh8sLVhLDJW1v7TCBFjS3e" ], "script": "base64:AAIDAAAAAAAAABMIARIAEgMKAQgSAwoBCBIDCgEIAAAADwAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAAARXQkVUAQAAACCGtDaoeNMOzNjwF61LLiwEHwefusq5FqlK128lrZvQdgAAAAAFUk9ZQUwBAAAAIEPpioLCJdl0nJV8IFJJxqOakLK2lV9iYl7KOImJDGkcAAAAAA9DT01NVU5JVFlXQUxMRVQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSokXbrXNtTilt+wsoFPXwsICOsMTcOEwMAAAAACldCRVRMT0NLRUQAAAAAAAAAAAAAAAAAC1JPWUFMTE9DS0VEAAAAAAAAAAABAAAAAAxXQkVUV0lUSERSQVcAAAAAAAAAAAIAAAAADVJPWUFMV0lUSERSQVcAAAAAAAAAAAMAAAAADVdBVkVTV0lUSERSQVcAAAAAAAAAAAQBAAAAFkV4dHJhY3RXQkVUUmVzZXJ2ZWRBbXQAAAAABAAAAAckbWF0Y2gwCQAEG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AAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAMJAAAAAAAAAggFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAObmV3V2F2ZXNBbW91bnQJAABkAAAAAgkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZ3YWxsZXQJAQAAABNGb3JtYXRQbGF5ZXJCYWxhbmNlAAAABQkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAApXQkVUTE9DS0VECQABkQAAAAIFAAAAB2JhbGFuY2UFAAAAC1JPWUFMTE9DS0VECQABkQAAAAIFAAAAB2JhbGFuY2UFAAAADFdCRVRXSVRIRFJBVwkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1ST1lBTFdJVEhEUkFXBQAAAA5uZXdXYXZlc0Ftb3VudAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwJAAACAAAAAQIAAAANSW52YWxpZCBhc3NldAkAAAIAAAABAgAAADRZb3UgZG8gbm90IGhhdmUgcGVybWlzc2lvbiB0byBwZXJmb3JtIHRoaXMgZnVuY3Rpb24uAAAAAJLWu0I=", "chainId": 84, "height": 815410, "spentComplexity": 0 } View: original | compacted Prev: FfBE2MCUnoFPqg9YDcYyK5UQDGRriN2CBUDBveq1Rd7G Next: 4A9xrrFaADHuZbAQV16QFgd9tEMJhGkMhfBB6g3DXS6N Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let | |
4 | + | let LOCKEDWBETKEY = "$WBET_LOCKED_AMOUNT" | |
5 | 5 | ||
6 | - | let | |
6 | + | let LOCKEDROYALKEY = "$ROYAL_LOCKER_AMOUNT" | |
7 | 7 | ||
8 | 8 | let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
9 | 9 | ||
21 | 21 | ||
22 | 22 | let WAVESWITHDRAW = 4 | |
23 | 23 | ||
24 | - | func ExtractWBETReservedAmt () = match getInteger(this, | |
24 | + | func ExtractWBETReservedAmt () = match getInteger(this, LOCKEDWBETKEY) { | |
25 | 25 | case a: Int => | |
26 | 26 | a | |
27 | 27 | case _ => | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | - | func ExtractROYALReservedAmt () = match getInteger(this, | |
32 | + | func ExtractROYALReservedAmt () = match getInteger(this, LOCKEDROYALKEY) { | |
33 | 33 | case a: Int => | |
34 | 34 | a | |
35 | 35 | case _ => | |
73 | 73 | then { | |
74 | 74 | let newWBETReservedAmount = (ExtractWBETReservedAmt() + payment.amount) | |
75 | 75 | let newPlayerWBETAmount = (balance[WBETLOCKED] + payment.amount) | |
76 | - | ScriptResult(WriteSet([DataEntry( | |
76 | + | ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil)) | |
77 | 77 | } | |
78 | 78 | else if ((payment.assetId == ROYAL)) | |
79 | 79 | then { | |
80 | 80 | let newROYALReservedAmount = (ExtractROYALReservedAmt() + payment.amount) | |
81 | 81 | let newPlayerRoyalAmount = (balance[ROYALLOCKED] + payment.amount) | |
82 | - | ScriptResult(WriteSet([DataEntry( | |
82 | + | ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil)) | |
83 | 83 | } | |
84 | 84 | else throw("error") | |
85 | 85 | } | |
96 | 96 | then throw("You dont have enough balance to withdraw the amount requested.") | |
97 | 97 | else { | |
98 | 98 | let newWBETReservedAmount = (ExtractWBETReservedAmt() - balance[WBETLOCKED]) | |
99 | - | ScriptResult(WriteSet([DataEntry( | |
99 | + | ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)])) | |
100 | 100 | } | |
101 | 101 | else if ((asset == "ROYAL")) | |
102 | 102 | then if ((0 >= balance[ROYALLOCKED])) | |
103 | 103 | then throw("You dont have enough balance to withdraw the amount requested.") | |
104 | 104 | else { | |
105 | 105 | let newROYALReservedAmount = (ExtractROYALReservedAmt() - balance[ROYALLOCKED]) | |
106 | - | ScriptResult(WriteSet([DataEntry( | |
106 | + | ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)])) | |
107 | 107 | } | |
108 | 108 | else throw("Invalid asset") | |
109 | 109 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let | |
4 | + | let LOCKEDWBETKEY = "$WBET_LOCKED_AMOUNT" | |
5 | 5 | ||
6 | - | let | |
6 | + | let LOCKEDROYALKEY = "$ROYAL_LOCKER_AMOUNT" | |
7 | 7 | ||
8 | 8 | let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
9 | 9 | ||
10 | 10 | let ROYAL = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy' | |
11 | 11 | ||
12 | 12 | let COMMUNITYWALLET = Address(base58'3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL') | |
13 | 13 | ||
14 | 14 | let WBETLOCKED = 0 | |
15 | 15 | ||
16 | 16 | let ROYALLOCKED = 1 | |
17 | 17 | ||
18 | 18 | let WBETWITHDRAW = 2 | |
19 | 19 | ||
20 | 20 | let ROYALWITHDRAW = 3 | |
21 | 21 | ||
22 | 22 | let WAVESWITHDRAW = 4 | |
23 | 23 | ||
24 | - | func ExtractWBETReservedAmt () = match getInteger(this, | |
24 | + | func ExtractWBETReservedAmt () = match getInteger(this, LOCKEDWBETKEY) { | |
25 | 25 | case a: Int => | |
26 | 26 | a | |
27 | 27 | case _ => | |
28 | 28 | 0 | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | - | func ExtractROYALReservedAmt () = match getInteger(this, | |
32 | + | func ExtractROYALReservedAmt () = match getInteger(this, LOCKEDROYALKEY) { | |
33 | 33 | case a: Int => | |
34 | 34 | a | |
35 | 35 | case _ => | |
36 | 36 | 0 | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func ExtractPlayerAmt (wallet) = match getString(this, wallet) { | |
41 | 41 | case str: String => | |
42 | 42 | str | |
43 | 43 | case _ => | |
44 | 44 | "0_0_0_0_0" | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func FormatPlayerBalance (wbet,royal,wbetWithdraw,royalWithdraw,wavesWithdraw) = ((((((((toString(wbet) + "_") + toString(royal)) + "_") + toString(wbetWithdraw)) + "_") + toString(royalWithdraw)) + "_") + toString(wavesWithdraw)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func ParsePlayerBalance (wallet) = { | |
52 | 52 | let amounts = split(ExtractPlayerAmt(wallet), "_") | |
53 | 53 | let wbetAmount = parseIntValue(amounts[WBETLOCKED]) | |
54 | 54 | let royalAmount = parseIntValue(amounts[ROYALLOCKED]) | |
55 | 55 | let wbetWithdraw = parseIntValue(amounts[WBETWITHDRAW]) | |
56 | 56 | let royalWithdraw = parseIntValue(amounts[ROYALWITHDRAW]) | |
57 | 57 | let wavesWithdraw = parseIntValue(amounts[WAVESWITHDRAW]) | |
58 | 58 | [wbetAmount, royalAmount, wbetWithdraw, royalWithdraw, wavesWithdraw] | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | @Callable(i) | |
63 | 63 | func lock () = { | |
64 | 64 | let payment = extract(i.payment) | |
65 | 65 | if (if ((payment.assetId != WBET)) | |
66 | 66 | then (payment.assetId != ROYAL) | |
67 | 67 | else false) | |
68 | 68 | then throw("The token should be in WBET or ROYAL.") | |
69 | 69 | else { | |
70 | 70 | let wallet = toString(i.caller) | |
71 | 71 | let balance = ParsePlayerBalance(wallet) | |
72 | 72 | if ((payment.assetId == WBET)) | |
73 | 73 | then { | |
74 | 74 | let newWBETReservedAmount = (ExtractWBETReservedAmt() + payment.amount) | |
75 | 75 | let newPlayerWBETAmount = (balance[WBETLOCKED] + payment.amount) | |
76 | - | ScriptResult(WriteSet([DataEntry( | |
76 | + | ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil)) | |
77 | 77 | } | |
78 | 78 | else if ((payment.assetId == ROYAL)) | |
79 | 79 | then { | |
80 | 80 | let newROYALReservedAmount = (ExtractROYALReservedAmt() + payment.amount) | |
81 | 81 | let newPlayerRoyalAmount = (balance[ROYALLOCKED] + payment.amount) | |
82 | - | ScriptResult(WriteSet([DataEntry( | |
82 | + | ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil)) | |
83 | 83 | } | |
84 | 84 | else throw("error") | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(i) | |
91 | 91 | func unlock (asset) = { | |
92 | 92 | let wallet = toString(i.caller) | |
93 | 93 | let balance = ParsePlayerBalance(wallet) | |
94 | 94 | if ((asset == "WBET")) | |
95 | 95 | then if ((0 >= balance[WBETLOCKED])) | |
96 | 96 | then throw("You dont have enough balance to withdraw the amount requested.") | |
97 | 97 | else { | |
98 | 98 | let newWBETReservedAmount = (ExtractWBETReservedAmt() - balance[WBETLOCKED]) | |
99 | - | ScriptResult(WriteSet([DataEntry( | |
99 | + | ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)])) | |
100 | 100 | } | |
101 | 101 | else if ((asset == "ROYAL")) | |
102 | 102 | then if ((0 >= balance[ROYALLOCKED])) | |
103 | 103 | then throw("You dont have enough balance to withdraw the amount requested.") | |
104 | 104 | else { | |
105 | 105 | let newROYALReservedAmount = (ExtractROYALReservedAmt() - balance[ROYALLOCKED]) | |
106 | - | ScriptResult(WriteSet([DataEntry( | |
106 | + | ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)])) | |
107 | 107 | } | |
108 | 108 | else throw("Invalid asset") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | ||
113 | 113 | @Callable(i) | |
114 | 114 | func withdraw (asset) = { | |
115 | 115 | let wallet = toString(i.caller) | |
116 | 116 | let balance = ParsePlayerBalance(wallet) | |
117 | 117 | if ((asset == "WBET")) | |
118 | 118 | then if ((0 >= balance[WBETWITHDRAW])) | |
119 | 119 | then throw("You dont have enough balance to withdraw the amount requested.") | |
120 | 120 | else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], 0, balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETWITHDRAW], WBET)])) | |
121 | 121 | else if ((asset == "ROYAL")) | |
122 | 122 | then if ((0 >= balance[ROYALWITHDRAW])) | |
123 | 123 | then throw("You dont have enough balance to withdraw the amount requested.") | |
124 | 124 | else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], 0, balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALWITHDRAW], ROYAL)])) | |
125 | 125 | else if ((asset == "WAVES")) | |
126 | 126 | then if ((0 >= balance[WAVESWITHDRAW])) | |
127 | 127 | then throw("You dont have enough balance to withdraw the amount requested.") | |
128 | 128 | else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[WBETWITHDRAW], 0))]), TransferSet([ScriptTransfer(i.caller, balance[WAVESWITHDRAW], unit)])) | |
129 | 129 | else throw("Invalid asset") | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | ||
134 | 134 | @Callable(i) | |
135 | 135 | func addWithdraw (wallet) = if ((i.caller == COMMUNITYWALLET)) | |
136 | 136 | then { | |
137 | 137 | let payment = extract(i.payment) | |
138 | 138 | let balance = ParsePlayerBalance(wallet) | |
139 | 139 | if ((payment.assetId == WBET)) | |
140 | 140 | then { | |
141 | 141 | let newWbetAmount = (balance[WBETWITHDRAW] + payment.amount) | |
142 | 142 | ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], newWbetAmount, balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil)) | |
143 | 143 | } | |
144 | 144 | else if ((payment.assetId == ROYAL)) | |
145 | 145 | then { | |
146 | 146 | let newRoyalAmount = (balance[ROYALWITHDRAW] + payment.amount) | |
147 | 147 | ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], newRoyalAmount, balance[WAVESWITHDRAW]))]), TransferSet(nil)) | |
148 | 148 | } | |
149 | 149 | else if ((payment.assetId == unit)) | |
150 | 150 | then { | |
151 | 151 | let newWavesAmount = (balance[WAVESWITHDRAW] + payment.amount) | |
152 | 152 | ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], newWavesAmount))]), TransferSet(nil)) | |
153 | 153 | } | |
154 | 154 | else throw("Invalid asset") | |
155 | 155 | } | |
156 | 156 | else throw("You do not have permission to perform this function.") | |
157 | 157 | ||
158 | 158 |
github/deemru/w8io/026f985 51.36 ms ◑