tx · 3LCGotmvgzGVG8re391LBj54768XjY5GB1seE7a2on2H

3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc:  -0.05000000 Waves

2020.01.08 20:56 [845257] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves

{ "type": 13, "id": "3LCGotmvgzGVG8re391LBj54768XjY5GB1seE7a2on2H", "fee": 5000000, "feeAssetId": null, "timestamp": 1578506223842, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "5sz9K8DSYQKQP2N37hrrKmrJVZxEFm5Nc3JPPkqFmPpNcgYdA41GDYXwdaN1GDUSbbKgf1mzkZvd5KcbgeC67U9D" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAFAAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAABBXQUxMRVRDT1VOVEVSS0VZAgAAAAskV0FMTEVUX05VTQAAAAAPQ09NTVVOSVRZRkVFS0VZAgAAABQkQ09NTVVOSVRZRkVFX0FNT1VOVAAAAAAEV0JFVAEAAAAghrQ2qHjTDszY8BetSy4sBB8Hn7rKuRapStdvJa2b0HYAAAAABVJPWUFMAQAAACCbNjGl6sjFQai4ApeuQqCIF0KYeYQ2YB37uvrJElJLuwAAAAAPQ09NTVVOSVRZV0FMTEVUCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFULxHweE6v1pOfqW4iK2a1H7JT13jPO2j7AAAAAApXQkVUTE9DS0VEAAAAAAAAAAAAAAAAAAtST1lBTExPQ0tFRAAAAAAAAAAAAQAAAAAMV0JFVFdJVEhEUkFXAAAAAAAAAAACAAAAAA1ST1lBTFdJVEhEUkFXAAAAAAAAAAADAAAAAA1XQVZFU1d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zZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAdhbW91bnRzBQAAAA1XQVZFU1dJVEhEUkFXCQAETAAAAAIFAAAACndiZXRBbW91bnQJAARMAAAAAgUAAAALcm95YWxBbW91bnQJAARMAAAAAgUAAAAMd2JldFdpdGhkcmF3CQAETAAAAAIFAAAADXJveWFsV2l0aGRyYXcJAARMAAAAAgUAAAANd2F2ZXNXaXRoZHJhdwUAAAADbmlsAAAAAQAAAAFpAQAAAANmaXgAAAAACQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAjM041SFBaQ2JSZnZoMU5jRUxOck0xM0JYbzVrVDhUTHl1eUwCAAAAOjEyNTAwMDAwMDAwMF8xMjUwMDAwMDAwMDBfMzI5OTM0NjAxOTJfMTAwMDAwMDAwMDBfMTk0NTk0ODQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAIzNONTNTQ1EzV1J4eTg3REdCUTVDeXptWUNvQzZjMU5VM2ZtAgAAABkyNTAwMDAwMDAwMDAwMDAwMF8wXzBfMF8wBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAD2SRuz", "chainId": 84, "height": 845257, "spentComplexity": 0 } View: original | compacted Prev: AcQwYeqECaLRMMRkLKh2aJwGwodkbBYE1BryfkEgPcjm Next: none Diff:
OldNewDifferences
9191
9292
9393 @Callable(i)
94-func fix () = ScriptResult(WriteSet([DataEntry("3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL", "86385250000000000_13079000000_0_4366440102‬_0"), DataEntry("3N53SCQ3WRxy87DGBQ5CyzmYCoC6c1NU3fm", "11805011400000000_1786000000_754848482101_596735637_0")]), TransferSet(nil))
94+func fix () = ScriptResult(WriteSet([DataEntry("3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL", "125000000000_125000000000_32993460192_10000000000_19459484"), DataEntry("3N53SCQ3WRxy87DGBQ5CyzmYCoC6c1NU3fm", "25000000000000000_0_0_0_0")]), TransferSet(nil))
9595
9696
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let LOCKEDWBETKEY = "$WBET_LOCKED_AMOUNT"
55
66 let LOCKEDROYALKEY = "$ROYAL_LOCKER_AMOUNT"
77
88 let WALLETCOUNTERKEY = "$WALLET_NUM"
99
1010 let COMMUNITYFEEKEY = "$COMMUNITYFEE_AMOUNT"
1111
1212 let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
1313
1414 let ROYAL = base58'BSt87FHK4td7NvDuzKYeb2ETVersiZDr4QW6WMX1BaFU'
1515
1616 let COMMUNITYWALLET = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1717
1818 let WBETLOCKED = 0
1919
2020 let ROYALLOCKED = 1
2121
2222 let WBETWITHDRAW = 2
2323
2424 let ROYALWITHDRAW = 3
2525
2626 let WAVESWITHDRAW = 4
2727
2828 func IncrementWalletNum () = {
2929 let walletNum = match getInteger(this, WALLETCOUNTERKEY) {
3030 case num: Int =>
3131 num
3232 case _ =>
3333 0
3434 }
3535 (walletNum + 1)
3636 }
3737
3838
3939 func ExtractWBETReservedAmt () = match getInteger(this, LOCKEDWBETKEY) {
4040 case a: Int =>
4141 a
4242 case _ =>
4343 0
4444 }
4545
4646
4747 func ExtractROYALReservedAmt () = match getInteger(this, LOCKEDROYALKEY) {
4848 case a: Int =>
4949 a
5050 case _ =>
5151 0
5252 }
5353
5454
5555 func ExtractFEEReservedAmt () = match getInteger(this, COMMUNITYFEEKEY) {
5656 case a: Int =>
5757 a
5858 case _ =>
5959 0
6060 }
6161
6262
6363 func ExtractPlayerAmt (wallet) = match getString(this, wallet) {
6464 case str: String =>
6565 str
6666 case _ =>
6767 "0_0_0_0_0"
6868 }
6969
7070
7171 func WalletExist (wallet) = match getString(this, wallet) {
7272 case str: String =>
7373 true
7474 case _ =>
7575 false
7676 }
7777
7878
7979 func FormatPlayerBalance (wbet,royal,wbetWithdraw,royalWithdraw,wavesWithdraw) = ((((((((toString(wbet) + "_") + toString(royal)) + "_") + toString(wbetWithdraw)) + "_") + toString(royalWithdraw)) + "_") + toString(wavesWithdraw))
8080
8181
8282 func ParsePlayerBalance (wallet) = {
8383 let amounts = split(ExtractPlayerAmt(wallet), "_")
8484 let wbetAmount = parseIntValue(amounts[WBETLOCKED])
8585 let royalAmount = parseIntValue(amounts[ROYALLOCKED])
8686 let wbetWithdraw = parseIntValue(amounts[WBETWITHDRAW])
8787 let royalWithdraw = parseIntValue(amounts[ROYALWITHDRAW])
8888 let wavesWithdraw = parseIntValue(amounts[WAVESWITHDRAW])
8989 [wbetAmount, royalAmount, wbetWithdraw, royalWithdraw, wavesWithdraw]
9090 }
9191
9292
9393 @Callable(i)
94-func fix () = ScriptResult(WriteSet([DataEntry("3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL", "86385250000000000_13079000000_0_4366440102‬_0"), DataEntry("3N53SCQ3WRxy87DGBQ5CyzmYCoC6c1NU3fm", "11805011400000000_1786000000_754848482101_596735637_0")]), TransferSet(nil))
94+func fix () = ScriptResult(WriteSet([DataEntry("3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL", "125000000000_125000000000_32993460192_10000000000_19459484"), DataEntry("3N53SCQ3WRxy87DGBQ5CyzmYCoC6c1NU3fm", "25000000000000000_0_0_0_0")]), TransferSet(nil))
9595
9696

github/deemru/w8io/026f985 
33.80 ms