4irelabs-blackchain-smart-contract
Advanced tools
Comparing version 0.0.29 to 0.0.30
/// <reference types="node" /> | ||
/// <reference types="bn.js" /> | ||
import { Character, PlayerAccount, Clas, Weapon, Armor, BCError, Dungeon, Difficulty, Shield, BattleLog, Potion } from "./types"; | ||
import { Character, PlayerAccount, Clas, Weapon, Armor, BCError, Dungeon, Difficulty, Shield, BattleLog, Potion, UpgradeStats } from "./types"; | ||
import * as Anchor from "@project-serum/anchor"; | ||
@@ -18,6 +18,8 @@ import { BlackchainProgram } from "../idl/blackchain_program"; | ||
hireCharacter(name: string, clas: Clas): Promise<Character | BCError>; | ||
upgradeStatsCharacter(character: PublicKey, stats: UpgradeStats): Promise<Buffer | BCError>; | ||
scoutDungeon(difficulty: Difficulty, character: PublicKey): Promise<Dungeon | BCError>; | ||
raid(dungeon: PublicKey, characterPubkey: PublicKey, potions?: Potion[]): Promise<Buffer | BCError>; | ||
blindRaid(difficulty: Difficulty, characterPubkey: PublicKey, potions?: Potion[]): Promise<Buffer | BCError>; | ||
blindRaid(difficulty: Difficulty, characterPubkey: PublicKey, potions?: Potion[]): Promise<[Buffer, PublicKey] | BCError>; | ||
getBattleLog(sign: string): Promise<BattleLog | BCError>; | ||
getInitialDungeon(sign: string): Promise<Dungeon | BCError>; | ||
sendTransaction(buffer: Buffer): Promise<string | BCError>; | ||
@@ -67,3 +69,11 @@ lockCharacter(character: PublicKey): Promise<Buffer | BCError>; | ||
scoutDungeonWithoutSending(difficulty: Difficulty, character: PublicKey): Promise<[Buffer, PublicKey] | BCError>; | ||
setWeaponWithoutSending(character: PublicKey, weapon: PublicKey): Promise<Buffer | BCError>; | ||
setArmorWithoutSending(character: PublicKey, armor: PublicKey): Promise<Buffer | BCError>; | ||
setShieldWithoutSending(character: PublicKey, shield: PublicKey): Promise<Buffer | BCError>; | ||
unsetWeaponWithoutSending(character: PublicKey, weapon: PublicKey): Promise<Buffer | BCError>; | ||
unsetArmorWithoutSending(character: PublicKey, armor: PublicKey): Promise<Buffer | BCError>; | ||
unsetShieldWithoutSending(character: PublicKey, shield: PublicKey): Promise<Buffer | BCError>; | ||
setCharacterWithoutSending(character: PublicKey): Promise<Buffer | BCError>; | ||
unsetCharacterWithoutSending(character: PublicKey): Promise<Buffer | BCError>; | ||
test(str: string): Promise<void>; | ||
} |
@@ -960,2 +960,6 @@ /// <reference types="bn.js" /> | ||
export declare type Potion = typeof PotionEnum[keyof typeof PotionEnum]; | ||
export declare type UpgradeCharacter = TypeDef<BlackchainProgram["types"]["4"], Anchor.IdlTypes<BlackchainProgram>>; | ||
export declare type UpgradeStats = { | ||
[k in keyof UpgradeCharacter]+?: UpgradeCharacter[keyof UpgradeCharacter]; | ||
}; | ||
export {}; |
{ | ||
"name": "4irelabs-blackchain-smart-contract", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"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
399008
12182