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