Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

133092124cd4cffdeb5bd2671e75ff8bd07d8e015dadeb04051d5c18dc780d4e
Timestamp (utc)
2021-02-17 02:37:50
Fee Paid
0.00001989 BSV
(
0.00829961 BSV
-
0.00827972 BSV
)
Fee Rate
518.2 sat/KB
Version
1
Confirmations
316,919
Size Stats
3,838 B

3 Outputs

Total Output:
0.00827972 BSV
  • jrun cryptofightsMú {"in":0,"ref":["3330fb6b3396b9d44a2e6fe33e8ec2b10ad4e624eb3e1a41ebc733ab12cd676f_o1","12ca21ed0342d419eb4f6167f7f89f328d24f557ab4e2748a33ed866832dc871_o1","6939b560abd6d2031fc50417abea833a30c09080b5bd0766a19ea1489430a852_o1","b2ddb06a8acf4f6e7f594d812982ef6a924390d6e898a83140aa58606b1d2d05_o1","a1749054c1165be2b55fefddf2d8ba284bdbfa6a6169f92ac173100d27b5094b_o1","f97d4ac2a3d6f5ed09fad4a4f341619dc5a3773d9844ff95c99c5d4f8388de2f_o1"],"out":["65c6849bd24c7684a91b276d1786a2c050b5c1ac6e784c50867ad34598418459"],"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 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":"2b9c83355299ff5e4973fb12d4a2b67cdcc796bdf24bb2bf70e93805ce673a22","lobby":0,"playerCount":1,"reward":0,"sealed":false,"tier":0}]}]}
    https://whatsonchain.com/tx/133092124cd4cffdeb5bd2671e75ff8bd07d8e015dadeb04051d5c18dc780d4e