Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

bccaf5e89fdb2503e71231a59873fd8b70bcc5116750ec24d5518296c080e59a
Timestamp (utc)
2021-02-17 21:25:10
Fee Paid
0.00002010 BSV
(
0.00443025 BSV
-
0.00441015 BSV
)
Fee Rate
517.9 sat/KB
Version
1
Confirmations
320,089
Size Stats
3,881 B

3 Outputs

Total Output:
0.00441015 BSV
  • jrun cryptofightsM${"in":0,"ref":["dd1c7a8f7b345801e14455cf2b2a6cd040d300302e4b101f9ad2b773daee814e_o1","12ca21ed0342d419eb4f6167f7f89f328d24f557ab4e2748a33ed866832dc871_o1","6939b560abd6d2031fc50417abea833a30c09080b5bd0766a19ea1489430a852_o1","b2ddb06a8acf4f6e7f594d812982ef6a924390d6e898a83140aa58606b1d2d05_o1","82926b699e8d0510ca4d52186956b0bab096f7bbb130df71e86f60584c26cd58_o1","f97d4ac2a3d6f5ed09fad4a4f341619dc5a3773d9844ff95c99c5d4f8388de2f_o1"],"out":["866a49b77aa0ed93256f4a9159ae168287f238282d816637d65a75c634f7f2c8"],"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":"bdddc81a800aa6b5f03ed1f2f1bf6f5f47b3cc163cac582a02e180de39d677a2","lobby":0,"playerCount":1,"reward":0,"sealed":false,"tier":0}]}]}
    https://whatsonchain.com/tx/bccaf5e89fdb2503e71231a59873fd8b70bcc5116750ec24d5518296c080e59a