Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

4irelabs-blackchain-smart-contract

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

4irelabs-blackchain-smart-contract - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

14

dist/src/blackchainApi.d.ts
/// <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 {};

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc