Transaction

e521625eaf7226f7c3aa0b32c9db48721e3f787bbb71db46fdf6d4f724df9bbf
( - )
179,091
2021-06-25 12:25:23
1
1,833 B

3 Outputs

Total Output:
  • jrun cryptofightsM%{"in":0,"ref":["28c4bdad0c774d557a7a3a9ba68c92108851a148a2b3de980edd88f2a11683e2_o1","49932fba5a7a47d91cd61007a993eaefaf12b99344ab1240419aab2ab0eed6db_o1","aa2ebcab82c10e20f2f8cb0751fc5e1692252ce71fe3ba62c75a984da7d8e1f9_o1","a0be9f0ae4aac2c5a075a143860f16a40842ec98d948072d51158562d0a5bdac_o1"],"out":["da85a8c468f14316743543a83a0a8003c0060097c78b3634e1d3c5994758d246"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class TestClientAgent extends ClientAgent {\n async init() {\n await super.init();\n this.eventHandlers.set('RedeemXP', this.RedeemXP);\n }\n\n async RedeemXP(request) {\n const { fighterLocation, amount } = request;\n const fighter = await this.wallet.loadJig(fighterLocation);\n const location = await this.blockchain.sendMessage(this.wallet.buildMessage({\n subject: 'RedeemXP',\n payload: JSON.stringify({\n fighterLocation, \n amount\n })\n }) , `${Config.baseUrl}/cryptofights`);\n\n console.log('XPTest:', JSON.stringify(location));\n const xp = await this.wallet.loadJig(location);\n console.log('XPTest loaded:', xp && xp.toObject());\n fighter.recordVictory(xp);\n await fighter.sync();\n this.onFighter(fighter);\n return fighter.toObject();\n }\n}",{"deps":{"ClientAgent":{"$jig":0},"Config":{"$jig":1},"FyxItem":{"$jig":2},"XpTest":{"$jig":3}},"hash":"b9b08aceb1d92ff257d2b33bf46371dd5458127d3d7f50fbfe24504c3f2c61ac","sealed":false}]}]}
    https://whatsonchain.com/tx/e521625eaf7226f7c3aa0b32c9db48721e3f787bbb71db46fdf6d4f724df9bbf