Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

de1bb680c328fe224343fca24e015049c5bb3b66de660bc69f66860639d58bb8
Timestamp (utc)
2021-04-16 17:41:58
Fee Paid
0.00005672 BSV
(
0.00955010 BSV
-
0.00949338 BSV
)
Fee Rate
506.6 sat/KB
Version
1
Confirmations
309,987
Size Stats
11,195 B

3 Outputs

Total Output:
0.00949338 BSV
  • jrun cryptofightsM·*{"in":0,"ref":["1e7dc1b5184c61c27d91ab737e40191c8d4497ba2025751abce9fe8cb7eca58d_o1","4daa0e81f90d52d9d6d80ba5ea78085f6cf61875977fd9f0beeb2b4e402c0d0a_o1","5eb8f2b7f148d0ad1dde94719757f97fafd1d64f36174ae21ac559a73b83256d_o1"],"out":["4b8fdb570cc39916db861d356a530c564b0b7f714f40d509c0337a2fa2f926f6"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Fighter extends FyxJig {\n init(owner, race, abilityScores, appearance, metadata = {}) {\n const {SkillType} = Constants;\n Fighter.validateStartingScores(race, abilityScores);\n this.race = race;\n this.abilityScores = abilityScores;\n this.appearance = appearance;\n this.metadata = {\n ...metadata,\n publisher: 'FYX'\n };\n\n this.xp = 0;\n this.hpBonus = 0;\n this.level = 1;\n\n this.satoshis = FyxConfig.minSatoshis;\n\n this.skills = [\n SkillType.Attack,\n SkillType.Focus,\n SkillType.Hide,\n Fighter.initialSkills[race]\n ];\n\n this.owner = owner;\n }\n\n setSatoshis(satoshis) {\n this.satoshis = satoshis < FyxConfig.minSatoshis ? FyxConfig.minSatoshis : satoshis;\n }\n\n static validateStartingScores(race, abilityScores) {\n const costs = {\n 1: 1,\n 2: 2,\n 3: 4,\n 4: 7,\n 5: 11,\n 6: 16\n };\n\n let cost = 0;\n abilityScores.forEach((score, ability) => {\n const start = Fighter.initialScores[race][ability];\n const upgrade = score - start;\n if (upgrade < 0) throw new Error('Invalid Ability Scores');\n if (upgrade > 0) {\n const points = costs[upgrade];\n if (!points) throw new Error('Invalid Ability Scores');\n cost += points;\n }\n });\n if (cost === 15) return true;\n throw new Error('Invalid Ability Scores');\n }\n\n transfer(recipient) {\n this.owner = recipient;\n }\n\n recordVictory(battle) {\n if (battle.constructor.owner !== Fighter.owner) throw new Error('Unauthorized battle');\n if(battle.victor.fighter !== this) throw new Error('Stolen Valor!');\n\n this.xp += battle.xp;\n battle.destroy();\n }\n\n levelUp(ability, skillType) {\n if (this.xp < Fighter.LevelUpXP[this.level]) {\n throw new Error('Indequite XP');\n }\n this.level++;\n if (Fighter.SkillLevels.includes(this.level)) {\n if (!skillType) {\n throw new Error('Requested skill at Index ' + skillType + ' is not found!');\n }\n let skillInfo = Fighter.SkillData[skillType];\n if ((this.level - 1) < skillInfo.requiredLevel) {\n throw new Error(`Player doesn't meet skill level up requirements to unlock ${skillType}. Player is low level`);\n }\n skillInfo.requiredSkills.forEach(st => {\n if (!this.skills.includes(st)) {\n throw new Error(`Player doesn't meet skill level up requirements unlock ${skillType}. Missing ${st}`);\n }\n });\n\n this._applySkill(skillType);\n skillInfo.unlockableSkills.forEach(st => {\n this._applySkill(st);\n });\n }\n\n if (Fighter.AbilityScoreLevels.includes(this.level)) {\n this.abilityScores[ability]++;\n }\n \n this.hpBonus += 4; \n }\n\n _applySkill(skillType) {\n // TODO validate prerequesite for skillType\n this.skills.push(skillType);\n }\n\n}",{"AbilityScoreLevels":[3,5,7,10,14,18],"LevelUpXP":[0,100,300,600,1200,2400,4800,9600,19200,38400,76800,128000,204800,332800,537600,870400,1408000,2278400,3686400,5964800,9651200],"LobbiesPerLevel":[{"lobbyIDs":[1]},{"lobbyIDs":[1,2]},{"lobbyIDs":[1,2,3]},{"lobbyIDs":[1,2,3,4]},{"lobbyIDs":[1,2,3,4,5]},{"lobbyIDs":[1,2,3,4,5,6]},{"lobbyIDs":[1,2,3,4,5,6,7]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]},{"lobbyIDs":[8]}],"SkillData":{"0":{"affectsOpponent":false,"isAttackAction":true,"origin":"attack","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"1":{"affectsOpponent":false,"origin":"focus","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"2":{"affectsOpponent":false,"origin":"hide","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"3":{"affectsOpponent":false,"isAttackAction":true,"origin":"burn","rank":0,"requiredLevel":0,"requiredSkills":[28],"unlockableSkills":[]},"4":{"affectsOpponent":false,"isAttackAction":true,"origin":"chill","rank":0,"requiredLevel":0,"requiredSkills":[28],"unlockableSkills":[]},"5":{"affectsOpponent":false,"origin":"coat-weapon","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"6":{"affectsOpponent":false,"isAttackAction":true,"origin":"dirty-fighting","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"7":{"affectsOpponent":false,"origin":"heal","rank":0,"requiredLevel":0,"requiredSkills":[20],"unlockableSkills":[]},"8":{"affectsOpponent":false,"origin":"hex","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"9":{"affectsOpponent":false,"origin":"mark","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"10":{"affectsOpponent":false,"origin":"meditate","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"11":{"affectsOpponent":false,"origin":"phase-shift","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"12":{"affectsOpponent":false,"isAttackAction":true,"origin":"pinning-strike","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"13":{"affectsOpponent":false,"isAttackAction":true,"origin":"power-attack","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"14":{"affectsOpponent":false,"isAttackAction":true,"origin":"shock","rank":0,"requiredLevel":0,"requiredSkills":[28],"unlockableSkills":[]},"15":{"affectsOpponent":false,"isAttackAction":true,"origin":"smite","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"16":{"affectsOpponent":false,"isAttackAction":true,"origin":"sneak-attack","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"17":{"affectsOpponent":true,"isAttackAction":true,"origin":"stun","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"18":{"affectsOpponent":false,"origin":"taunt","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"19":{"affectsOpponent":false,"origin":"battle-cry","rank":0,"requiredLevel":3,"requiredSkills":[],"unlockableSkills":[]},"20":{"affectsOpponent":false,"origin":"cleanse","rank":0,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"21":{"affectsOpponent":false,"origin":"Curse","rank":0,"requiredLevel":0,"requiredSkills":[8],"unlockableSkills":[]},"22":{"affectsOpponent":false,"isAttackAction":true,"origin":"fireball","rank":0,"requiredLevel":0,"requiredSkills":[28],"unlockableSkills":[]},"23":{"affectsOpponent":false,"isAttackAction":true,"origin":"freeze","rank":0,"requiredLevel":0,"requiredSkills":[28],"unlockableSkills":[]},"24":{"affectsOpponent":false,"isAttackAction":true,"origin":"gore","rank":0,"requiredLevel":0,"requiredSkills":[12],"unlockableSkills":[]},"25":{"affectsOpponent":false,"isAttackAction":true,"origin":"lightning-bolt","rank":0,"requiredLevel":0,"requiredSkills":[28],"unlockableSkills":[]},"26":{"affectsOpponent":false,"isAttackAction":true,"origin":"lock-and-load","rank":0,"requiredLevel":0,"requiredSkills":[30],"unlockableSkills":[]},"27":{"affectsOpponent":false,"origin":"second-wind","rank":0,"requiredLevel":0,"requiredSkills":[37],"unlockableSkills":[]},"28":{"affectsOpponent":false,"origin":"elementalist","rank":1,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[3,4,14]},"29":{"affectsOpponent":false,"origin":"runesmith","rank":1,"requiredLevel":0,"requiredSkills":[35],"unlockableSkills":[40,46]},"30":{"affectsOpponent":false,"origin":"sharpshooter","rank":1,"requiredLevel":0,"requiredSkills":[36],"unlockableSkills":[26,44]},"31":{"affectsOpponent":false,"origin":"dwarven","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"32":{"affectsOpponent":false,"origin":"elven","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"33":{"affectsOpponent":false,"origin":"human","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"34":{"affectsOpponent":false,"origin":"ambidextrous","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"35":{"affectsOpponent":false,"origin":"armored","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"36":{"affectsOpponent":false,"origin":"cirurgical","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"37":{"affectsOpponent":false,"origin":"durable","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"38":{"affectsOpponent":false,"origin":"strong","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"39":{"affectsOpponent":false,"origin":"unarmed","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]},"40":{"affectsOpponent":false,"origin":"improved-armored","rank":2,"requiredLevel":0,"requiredSkills":[29],"unlockableSkills":[]},"41":{"affectsOpponent":false,"origin":"improved-power-attack","rank":2,"requiredLevel":0,"requiredSkills":[13],"unlockableSkills":[]},"42":{"affectsOpponent":false,"origin":"improved-sneak-attack","rank":2,"requiredLevel":0,"requiredSkills":[16],"unlockableSkills":[]},"43":{"affectsOpponent":false,"origin":"opportunistic","rank":2,"requiredLevel":3,"requiredSkills":[],"unlockableSkills":[]},"44":{"affectsOpponent":false,"origin":"precise","rank":2,"requiredLevel":0,"requiredSkills":[30],"unlockableSkills":[]},"45":{"affectsOpponent":false,"origin":"vengeful","rank":2,"requiredLevel":3,"requiredSkills":[],"unlockableSkills":[]},"46":{"affectsOpponent":false,"origin":"warmongering","rank":2,"requiredLevel":0,"requiredSkills":[29],"unlockableSkills":[]},"47":{"affectsOpponent":false,"origin":"slippery","rank":2,"requiredLevel":0,"requiredSkills":[],"unlockableSkills":[]}},"SkillLevels":[2,4,6,8,12,16,20],"TierPerLobby":[1,1,2,2,3,3,3,3,4],"deps":{"Constants":{"$jig":0},"FyxConfig":{"$jig":1},"FyxJig":{"$jig":2}},"hash":"66f5164de2f5ce6120cdd3eee51f30714b4045d6a42dd2305ad34fc1bfb59ea2","initialScores":{"0":[8,8,8],"1":[9,7,7],"2":[7,7,7]},"initialSkills":{"0":33,"1":31,"2":32},"metadata":{"app":"Cryptofights","emoji":"👤","name":"Fighter","publisher":"FYX"},"transferrable":true}]}]}
    https://whatsonchain.com/tx/de1bb680c328fe224343fca24e015049c5bb3b66de660bc69f66860639d58bb8