4irelabs-blackchain-smart-contract
Advanced tools
Comparing version 0.0.22 to 0.0.23
/// <reference types="node" /> | ||
/// <reference types="bn.js" /> | ||
import { Character, PlayerAccount, Clas, Weapon, Armor, BCError, Dungeon, Difficulty, Shield, BattleLog } from "./types"; | ||
import { Character, PlayerAccount, Clas, Weapon, Armor, BCError, Dungeon, Difficulty, Shield, BattleLog, Potion } from "./types"; | ||
import * as Anchor from "@project-serum/anchor"; | ||
@@ -19,3 +19,4 @@ import { BlackchainProgram } from "../idl/blackchain_program"; | ||
scoutDungeon(difficulty: Difficulty, character: PublicKey): Promise<Dungeon | BCError>; | ||
raid(dungeon: PublicKey, characterPubkey: PublicKey): Promise<Buffer | BCError>; | ||
raid(dungeon: PublicKey, characterPubkey: PublicKey, potions?: Potion[]): Promise<Buffer | BCError>; | ||
blindRaid(difficulty: Difficulty, characterPubkey: PublicKey, potions?: Potion[]): Promise<Buffer | BCError>; | ||
getBattleLog(sign: string): Promise<BattleLog | BCError>; | ||
@@ -22,0 +23,0 @@ sendTransaction(buffer: Buffer): Promise<string | BCError>; |
@@ -903,2 +903,59 @@ /// <reference types="bn.js" /> | ||
}; | ||
export declare const PotionEnum: { | ||
LesserHealingPotion: { | ||
lesserHealingPotion: {}; | ||
}; | ||
MinorHealingPotion: { | ||
minorHealingPotion: {}; | ||
}; | ||
CommonHealingPotion: { | ||
commonHealingPotion: {}; | ||
}; | ||
GreatHealingPotion: { | ||
greatHealingPotion: {}; | ||
}; | ||
FinestHealingPotion: { | ||
finestHealingPotion: {}; | ||
}; | ||
PotionOfClearMind: { | ||
potionOfClearMind: {}; | ||
}; | ||
PotionOfGiantStrength: { | ||
potionOfGiantStrength: {}; | ||
}; | ||
PotionOfSneakyCat: { | ||
potionOfSneakyCat: {}; | ||
}; | ||
PotionOfLuckyMan: { | ||
potionOfLuckyMan: {}; | ||
}; | ||
PotionOfElephant: { | ||
potionOfElephant: {}; | ||
}; | ||
HolyBlessing: { | ||
holyBlessing: {}; | ||
}; | ||
RejuvenationHoneydew: { | ||
rejuvenationHoneydew: {}; | ||
}; | ||
NotesOfForgottenSecrets: { | ||
notesOfForgottenSecrets: {}; | ||
}; | ||
TractateOfForgottenSecrets: { | ||
tractateOfForgottenSecrets: {}; | ||
}; | ||
TomeOfForgottenSecrets: { | ||
tomeOfForgottenSecrets: {}; | ||
}; | ||
PhilosophianStoneReplica: { | ||
philosophianStoneReplica: {}; | ||
}; | ||
SeekersStone: { | ||
seekersStone: {}; | ||
}; | ||
ArtisansPotion: { | ||
artisansPotion: {}; | ||
}; | ||
}; | ||
export declare type Potion = typeof PotionEnum[keyof typeof PotionEnum]; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EnemyTypeEnum = exports.EnemyRaceEnum = exports.ShieldsEnum = exports.MainStatEnum = exports.WeaponsWearingTypeEnum = exports.WorldEnum = exports.TrapTypeEnum = exports.DamageTypeEnum = exports.TurnWayEnum = exports.ArmorWearingTypeEnum = exports.StatusEnum = exports.ArmorTypeEnum = exports.WeaponTypeEnum = exports.BonusTypeEnum = exports.StatEnum = exports.DifficultyEnum = exports.BCErrorEnum = exports.ClassEnum = exports.RankEnum = exports.enumEq = void 0; | ||
exports.PotionEnum = exports.EnemyTypeEnum = exports.EnemyRaceEnum = exports.ShieldsEnum = exports.MainStatEnum = exports.WeaponsWearingTypeEnum = exports.WorldEnum = exports.TrapTypeEnum = exports.DamageTypeEnum = exports.TurnWayEnum = exports.ArmorWearingTypeEnum = exports.StatusEnum = exports.ArmorTypeEnum = exports.WeaponTypeEnum = exports.BonusTypeEnum = exports.StatEnum = exports.DifficultyEnum = exports.BCErrorEnum = exports.ClassEnum = exports.RankEnum = exports.enumEq = void 0; | ||
function enumEq(fst, snd) { | ||
@@ -333,1 +333,21 @@ return JSON.stringify(fst) === JSON.stringify(snd); | ||
}; | ||
exports.PotionEnum = { | ||
LesserHealingPotion: { lesserHealingPotion: {} }, | ||
MinorHealingPotion: { minorHealingPotion: {} }, | ||
CommonHealingPotion: { commonHealingPotion: {} }, | ||
GreatHealingPotion: { greatHealingPotion: {} }, | ||
FinestHealingPotion: { finestHealingPotion: {} }, | ||
PotionOfClearMind: { potionOfClearMind: {} }, | ||
PotionOfGiantStrength: { potionOfGiantStrength: {} }, | ||
PotionOfSneakyCat: { potionOfSneakyCat: {} }, | ||
PotionOfLuckyMan: { potionOfLuckyMan: {} }, | ||
PotionOfElephant: { potionOfElephant: {} }, | ||
HolyBlessing: { holyBlessing: {} }, | ||
RejuvenationHoneydew: { rejuvenationHoneydew: {} }, | ||
NotesOfForgottenSecrets: { notesOfForgottenSecrets: {} }, | ||
TractateOfForgottenSecrets: { tractateOfForgottenSecrets: {} }, | ||
TomeOfForgottenSecrets: { tomeOfForgottenSecrets: {} }, | ||
PhilosophianStoneReplica: { philosophianStoneReplica: {} }, | ||
SeekersStone: { seekersStone: {} }, | ||
ArtisansPotion: { artisansPotion: {} }, | ||
}; |
{ | ||
"name": "4irelabs-blackchain-smart-contract", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Integration with Solana API", | ||
@@ -5,0 +5,0 @@ "author": "", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
336519
10452