Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

7ab853a5e57a3ef43ce873eda3581273dad7b19657ff05a2e04549b70db07c05
Timestamp (utc)
2021-02-17 17:16:37
Fee Paid
0.00002010 BSV
(
0.00499230 BSV
-
0.00497220 BSV
)
Fee Rate
518 sat/KB
Version
1
Confirmations
318,216
Size Stats
3,880 B

3 Outputs

Total Output:
0.00497220 BSV
  • jrun cryptofightsM${"in":0,"ref":["dd1c7a8f7b345801e14455cf2b2a6cd040d300302e4b101f9ad2b773daee814e_o1","12ca21ed0342d419eb4f6167f7f89f328d24f557ab4e2748a33ed866832dc871_o1","6939b560abd6d2031fc50417abea833a30c09080b5bd0766a19ea1489430a852_o1","b2ddb06a8acf4f6e7f594d812982ef6a924390d6e898a83140aa58606b1d2d05_o1","7f9cebec583583ce2dca2dd51af3ddffbadd436173cf9e47a816ac8b64263570_o1","f97d4ac2a3d6f5ed09fad4a4f341619dc5a3773d9844ff95c99c5d4f8388de2f_o1"],"out":["65db1d7df7bce5fa857651967816a09a14f63f71a36dd617afd128972377cdd1"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class BotValidatorAgent extends ValidatorAgent {\n async _buildPlayers([message]) {\n return Promise.all([\n this.constructor.loadPlayer(message, this.wallet),\n this.loadBot()\n ]);\n }\n\n async loadBot() {\n console.time('loadBot');\n const [fighter, items, skills] = await Promise.all([\n this._selectFighter(),\n this._selectItems(),\n this._selectSkills()\n ]);\n\n console.timeEnd('loadBot');\n return {\n pubkey: this.pubkey,\n owner: this.address,\n fighter,\n items,\n skills,\n coins: [],\n tags: ['bot']\n };\n }\n\n async _selectFighter() {\n // TODO: We are filtering fighters by name because at the fighter level we don't know which lobby the bot\n // fighter belongs to. We should be able to do this at the agent level (we have different agents per bot)\n const tierToDisplayNameMap = {\n 1 : 'Boggart',\n 2 : 'Gnoll',\n 3 : 'Quasit',\n 4 : 'Ogre',\n 5 : 'Doppelganger',\n 6 : 'Orc War Chief',\n };\n const fighters = await this.wallet.loadJigIndex({\n criteria: {\n kind: BotFighter.origin, \n 'value.displayName': tierToDisplayNameMap[this.constructor.lobby]\n },\n project: {value: false}\n });\n console.log('Fighters:', fighters.length);\n const fighter = await this.pickAndLock(fighters, 120);\n if (!fighter) throw new Error('no bot fighters');\n return fighter;\n }\n\n async _selectItems() {\n return [];\n }\n\n async _selectSkills() {\n return [Attack];\n }\n\n async _selectAction() {\n return 0;\n }\n\n async updateBattle() {\n await super.updateBattle();\n console.log('BOT: Update Battle');\n const { id, actor, status, turnCount } = this.battle;\n if (status === Constants.Status.Open && actor === this.pubkey) {\n const actionIndex = await this._selectAction(this.battle);\n console.time(`BotAction - ${actionIndex}`);\n const random = await this.storage.lindex(`hash:${id}`, turnCount);\n const timestamp = this.wallet.now;\n this.battle.resolve(\n random, \n timestamp, \n timestamp + this.constructor.timeout,\n actionIndex\n );\n await this.battle.sync();\n console.timeEnd(`BotAction - ${actionIndex}`);\n await this.updateBattle();\n }\n }\n}",{"deps":{"Attack":{"$jig":0},"BotFighter":{"$jig":1},"Constants":{"$jig":2},"KronoItem":{"$jig":3},"ValidatorAgent":{"$jig":4},"expect":{"$jig":5}},"fee":0,"hash":"2f6180fd8be6537e8b60eccb58a78795667ce1fc56c42b8b0194d8b6544e15f9","lobby":0,"playerCount":1,"reward":0,"sealed":false,"tier":0}]}]}
    https://whatsonchain.com/tx/7ab853a5e57a3ef43ce873eda3581273dad7b19657ff05a2e04549b70db07c05