tx · 6ZtygHREtVKv4h92FPvxLcqS3EQpjf2CKv48ZExbgMpy

3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6:  -0.01000000 Waves

2021.06.29 21:32 [1592039] smart account 3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6 > SELF 0.00000000 Waves

{ "type": 13, "id": "6ZtygHREtVKv4h92FPvxLcqS3EQpjf2CKv48ZExbgMpy", "fee": 1000000, "feeAssetId": null, "timestamp": 1624991547861, "version": 2, "chainId": 84, "sender": "3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6", "senderPublicKey": "4f5Wt4MDH3Qt6DMuZQid3zoj463xCUkNdUWjUcChuedh", "proofs": [ "3We1n3gCGV85vxfeqZJp57nGAjSmku6AStP165CZuvBp1zker3mCVDky27j8SVH55TDapT9SquW7oKhKiDodjT4a" ], "script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAABAAAAAANKUE4BAAAAIEWosa+NzBSCTrxR5r/Cgx/KgydxqGORZyLGDZkX6IzFAAAAAgAAAAFpAQAAAAdidXlVbml0AAAAAQAAAAdhc3NldElEBAAAAARjb3N0BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAFY29zdF8FAAAAB2Fzc2V0SUQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABV3b3JrcyB3aXRoIHdhdmVzIG9ubHkDCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAEY29zdAkAAAIAAAABAgAAAApXcm9uZyBjb3N0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQkAAlkAAAABBQAAAAdhc3NldElECQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAGb3duZXJfBQAAAAdhc3NldElECQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAAAAAFpAQAAAApnb1RvRm9yZXN0AAAAAQAAAAdhc3NldElEBAAAAAVvd25lcgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABm93bmVyXwUAAAAHYXNzZXRJRAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAEAAAABmNhbGxlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAduZXdXYWl0CQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AAAAAAAAAABkAwkBAAAAAiE9AAAAAgUAAAAGY2FsbGVyBQAAAAVvd25lcgkAAAIAAAABAgAAABJZb3UgYXJlIG5vdCBvd25lciEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAB6EgBQAAAANKUE4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAIYmFsYW5jZV8JAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwAAAAAAAAehIAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAV3YWl0XwUAAAAHYXNzZXRJRAUAAAAHbmV3V2FpdAUAAAADbmlsAAAAAM3Y2tg=", "height": 1592039, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AqoeGjEuDZS3F8e1Boyv5h4GjYCi9hxp8DuRd5q8crDc Next: E1SzTx5SL3mgWPtnMiru63GEghY5uVcxR3HAgNqZCnLi Diff:
OldNewDifferences
3030 ""
3131 }
3232 let caller = toBase58String(i.caller.bytes)
33- let wait = (lastBlock.height + 100)
33+ let newWait = (lastBlock.height + 100)
3434 if ((caller != owner))
3535 then throw("You are not owner!")
36- else [ScriptTransfer(i.caller, 500000, JPN), IntegerEntry(("balance_" + toBase58String(i.caller.bytes)), 500000), IntegerEntry(("wait_" + toBase58String(i.caller.bytes)), wait)]
36+ else [ScriptTransfer(i.caller, 500000, JPN), IntegerEntry(("balance_" + toBase58String(i.caller.bytes)), 500000), IntegerEntry(("wait_" + assetID), newWait)]
3737 }
3838
3939
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let JPN = base58'5gvKrU3yetdPyMisTo8JiE737U9ZXLp4XkCy2aeE7BbA'
55
66 @Callable(i)
77 func buyUnit (assetID) = {
88 let cost = match getInteger(this, ("cost_" + assetID)) {
99 case a: Int =>
1010 a
1111 case _ =>
1212 0
1313 }
1414 let pmt = value(i.payments[0])
1515 if (isDefined(pmt.assetId))
1616 then throw("works with waves only")
1717 else if ((pmt.amount != cost))
1818 then throw("Wrong cost")
1919 else [ScriptTransfer(i.caller, 1, fromBase58String(assetID)), StringEntry(("owner_" + assetID), toBase58String(i.caller.bytes))]
2020 }
2121
2222
2323
2424 @Callable(i)
2525 func goToForest (assetID) = {
2626 let owner = match getString(this, ("owner_" + assetID)) {
2727 case a: String =>
2828 a
2929 case _ =>
3030 ""
3131 }
3232 let caller = toBase58String(i.caller.bytes)
33- let wait = (lastBlock.height + 100)
33+ let newWait = (lastBlock.height + 100)
3434 if ((caller != owner))
3535 then throw("You are not owner!")
36- else [ScriptTransfer(i.caller, 500000, JPN), IntegerEntry(("balance_" + toBase58String(i.caller.bytes)), 500000), IntegerEntry(("wait_" + toBase58String(i.caller.bytes)), wait)]
36+ else [ScriptTransfer(i.caller, 500000, JPN), IntegerEntry(("balance_" + toBase58String(i.caller.bytes)), 500000), IntegerEntry(("wait_" + assetID), newWait)]
3737 }
3838
3939

github/deemru/w8io/169f3d6 
31.23 ms