@truecarry/sandbox
Advanced tools
Comparing version 1.0.1 to 1.0.2
/// <reference types="node" /> | ||
import { AccountState, Address } from "@ton/core"; | ||
import { SmartContract } from "./SmartContract"; | ||
import { type BlockchainBase } from "./BlockchainBase"; | ||
import { type IBlockchain } from "./BlockchainBase"; | ||
export interface BlockchainStorage { | ||
getContract(blockchain: BlockchainBase, address: Address): Promise<SmartContract>; | ||
getContract(blockchain: IBlockchain, address: Address): Promise<SmartContract>; | ||
knownContracts(): SmartContract[]; | ||
@@ -12,3 +12,3 @@ clearKnownContracts(): void; | ||
private contracts; | ||
getContract(blockchain: BlockchainBase, address: Address): Promise<SmartContract>; | ||
getContract(blockchain: IBlockchain, address: Address): Promise<SmartContract>; | ||
knownContracts(): SmartContract[]; | ||
@@ -62,5 +62,5 @@ clearKnownContracts(): void; | ||
private getLastBlockSeqno; | ||
getContract(blockchain: BlockchainBase, address: Address): Promise<SmartContract>; | ||
getContract(blockchain: IBlockchain, address: Address): Promise<SmartContract>; | ||
knownContracts(): SmartContract[]; | ||
clearKnownContracts(): void; | ||
} |
/// <reference types="node" /> | ||
import type { BlockchainBase, IBlockchain } from "./BlockchainBase"; | ||
import type { IBlockchain } from "./BlockchainBase"; | ||
import { Address, Cell, Message, ShardAccount, Transaction, TupleItem, TupleReader } from "@ton/core"; | ||
@@ -84,3 +84,3 @@ import type { EmulationResult, RunCommonArgs, TickOrTock } from "../executor/Executor"; | ||
set account(account: ShardAccount); | ||
static create(blockchain: BlockchainBase, args: { | ||
static create(blockchain: IBlockchain, args: { | ||
address: Address; | ||
@@ -91,3 +91,3 @@ code: Cell; | ||
}): SmartContract; | ||
static empty(blockchain: BlockchainBase, address: Address): SmartContract; | ||
static empty(blockchain: IBlockchain, address: Address): SmartContract; | ||
protected createCommonArgs(params?: MessageParams): RunCommonArgs; | ||
@@ -94,0 +94,0 @@ receiveMessage(message: Message, params?: MessageParams): Promise<SmartContractTransaction>; |
{ | ||
"name": "@truecarry/sandbox", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TON transaction emulator", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
6296498