Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

2e4c3284f5f8198ac6c87db2cc51c61bd84faf0c20ea853e86431fd0abf40de7
Timestamp (utc)
2021-01-13 05:41:42
Fee Paid
0.00001967 BSV
(
0.00998995 BSV
-
0.00997028 BSV
)
Fee Rate
518.4 sat/KB
Version
1
Confirmations
327,858
Size Stats
3,794 B

3 Outputs

Total Output:
0.00997028 BSV
  • jrun cryptofightsMÎ {"in":0,"ref":["fe51df7a52d15b7ca973d26e152c99a15ac0999c564cc02069e911c2de172645_o1","ed84a4072ce62b8b017bb1e853ee740341b6b2a7ed9229fbd2c153555b31f294_o1","0e660dbbccc19c47e388dbd07832821da0083f020eced33c3f49d195df5427bc_o1","b2ddb06a8acf4f6e7f594d812982ef6a924390d6e898a83140aa58606b1d2d05_o1","007070e69a3655887edb3eed06dc195223e449407b64dab309069d2508451155_o1","f97d4ac2a3d6f5ed09fad4a4f341619dc5a3773d9844ff95c99c5d4f8388de2f_o1"],"out":["ff90551a0400bd6019c38bd0bbfe15d8041d968b3dc37ec55b1d8e3299adc3ae"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class BotValidatorAgent extends ValidatorAgent {\n async _buildPlayers([message]) {\n return Promise.all([\n this._loadPlayer(message),\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 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 if(!this.battle) return;\n console.log('BOT: Update Battle');\n const { actor, status, turnCount } = this.battle;\n if (status === Constants.Status.Open && actor === this.pubkey) {\n const actionIndex = await this._selectAction();\n console.time(`BotAction - ${actionIndex}`);\n const timestamp = this.wallet.now;\n this.battle.resolve(\n this.hashchain[turnCount], \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":"1dd1d34293007da1571992c640f481d2a044b51c264be9576cd1b4f72946fea0","lobby":0,"playerCount":1,"reward":0,"sealed":false,"tier":0}]}]}
    https://whatsonchain.com/tx/2e4c3284f5f8198ac6c87db2cc51c61bd84faf0c20ea853e86431fd0abf40de7