tx · Bc3NeHf2UbmGWm2piEERq94ZSWDRr4qQs4TZed4QJmKP

3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6:  -0.01000000 Waves

2021.06.30 05:53 [1592528] smart account 3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6 > SELF 0.00000000 Waves

{ "type": 13, "id": "Bc3NeHf2UbmGWm2piEERq94ZSWDRr4qQs4TZed4QJmKP", "fee": 1000000, "feeAssetId": null, "timestamp": 1625021628809, "version": 2, "chainId": 84, "sender": "3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6", "senderPublicKey": "4f5Wt4MDH3Qt6DMuZQid3zoj463xCUkNdUWjUcChuedh", "proofs": [ "37b3T88e2fDsXn32CXtPUPz97X8sAiCodDkPeNmUnCPGteSXNoT1EExUgoYx8kk1Mma6RRUyD3queiCSNabBnkSh" ], "script": "base64:AAIFAAAAAAAAABEIAhIDCgEIEgMKAQgSAwoBCAAAAAIAAAAAA0pQTgEAAAAgRaixr43MFIJOvFHmv8KDH8qDJ3GoY5FnIsYNmRfojMUAAAAABEdPTEQBAAAAIC0eOAmkGWVMqSbVdH5jMxv+07wXTJsDIu8ke5NyDNC8AAAAAwAAAAFpAQAAAAdidXlVbml0AAAAAQAAAAdhc3NldElEBAAAAARjb3N0BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAFY29zdF8FAAAAB2Fzc2V0SUQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABV3b3JrcyB3aXRoIHdhdmVzIG9ubHkDCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAEY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odAIAAAASIGZvciBuZXcgYWR2ZW50dXJlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAehIAUAAAADSlBOCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAABXdhaXRfBQAAAAdhc3NldElEBQAAAAduZXdXYWl0BQAAAANuaWwAAAAAPBT1VA==", "height": 1592528, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 386oAaA4T3FBz85VR2qYeynsemNDHBPGBZVUbNnwsNSC Next: BmBn2N8FN3kBp5iCMvYuidkkwNoqVVAA1WywhH57VCL2 Diff:
OldNewDifferences
5353 then throw("You are not owner!")
5454 else if ((j > lastBlock.height))
5555 then throw((("Still wait block " + toString(lastBlock.height)) + " for forest-walking"))
56- else [ScriptTransfer(c.caller, m, a), IntegerEntry(("wait_" + d), l)]
56+ else [ScriptTransfer(c.caller, m, b), IntegerEntry(("wait_" + d), l)]
5757 }
5858
5959
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'5gvKrU3yetdPyMisTo8JiE737U9ZXLp4XkCy2aeE7BbA'
55
66 let b = base58'4385BhNBpLMpBM2Gdt8Z6edjdxYgV4Eb2eE5VvUmxrLK'
77
88 @Callable(c)
99 func buyUnit (d) = {
1010 let e = {
1111 let f = getInteger(this, ("cost_" + d))
1212 if ($isInstanceOf(f, "Int"))
1313 then {
1414 let g = f
1515 g
1616 }
1717 else 0
1818 }
1919 let h = value(c.payments[0])
2020 if (isDefined(h.assetId))
2121 then throw("works with waves only")
2222 else if ((h.amount != e))
2323 then throw("Wrong cost")
2424 else [ScriptTransfer(c.caller, 1, fromBase58String(d)), StringEntry(("owner_" + d), toBase58String(c.caller.bytes))]
2525 }
2626
2727
2828
2929 @Callable(c)
3030 func goToForest (d) = {
3131 let i = {
3232 let f = getString(this, ("owner_" + d))
3333 if ($isInstanceOf(f, "String"))
3434 then {
3535 let g = f
3636 g
3737 }
3838 else ""
3939 }
4040 let j = {
4141 let f = getInteger(this, ("wait_" + d))
4242 if ($isInstanceOf(f, "Int"))
4343 then {
4444 let g = f
4545 g
4646 }
4747 else 0
4848 }
4949 let k = toBase58String(c.caller.bytes)
5050 let l = (lastBlock.height + 100)
5151 let m = ((lastBlock.height % 100) + 1)
5252 if ((k != i))
5353 then throw("You are not owner!")
5454 else if ((j > lastBlock.height))
5555 then throw((("Still wait block " + toString(lastBlock.height)) + " for forest-walking"))
56- else [ScriptTransfer(c.caller, m, a), IntegerEntry(("wait_" + d), l)]
56+ else [ScriptTransfer(c.caller, m, b), IntegerEntry(("wait_" + d), l)]
5757 }
5858
5959
6060
6161 @Callable(c)
6262 func goToAdventure (d) = {
6363 let i = {
6464 let f = getString(this, ("owner_" + d))
6565 if ($isInstanceOf(f, "String"))
6666 then {
6767 let g = f
6868 g
6969 }
7070 else ""
7171 }
7272 let j = {
7373 let f = getInteger(this, ("wait_" + d))
7474 if ($isInstanceOf(f, "Int"))
7575 then {
7676 let g = f
7777 g
7878 }
7979 else 0
8080 }
8181 let k = toBase58String(c.caller.bytes)
8282 let l = (lastBlock.height + 100)
8383 if ((k != i))
8484 then throw("You are not owner!")
8585 else if ((j > lastBlock.height))
8686 then throw((("Still wait block " + toString(lastBlock.height)) + " for new adventure"))
8787 else [ScriptTransfer(c.caller, 500000, a), IntegerEntry(("wait_" + d), l)]
8888 }
8989
9090

github/deemru/w8io/169f3d6 
28.03 ms