Skip to main content
Module

x/clarigen/src/dev-deps.ts>ClarinetChain

Deno package for type-safe Clarinet tests
Go to Latest
class ClarinetChain
import { ClarinetChain } from "https://deno.land/x/clarigen@v0.4.9/src/dev-deps.ts";

Constructors

new
ClarinetChain(sessionId: number)

Properties

blockHeight: number
sessionId: number

Methods

callReadOnlyFn(
contract: string,
method: string,
args: Array<any>,
sender: string,
): ReadOnlyFn
getAssetsMaps(): AssetsMaps
mineBlock(transactions: Array<Tx>): Block
mineEmptyBlock(count: number): EmptyBlock
mineEmptyBlockUntil(targetBlockHeight: number): EmptyBlock

Constructors

new
ClarinetChain(sessionId: number)

Properties

blockHeight: number
sessionId: number

Methods

callReadOnlyFn(
contract: string,
method: string,
args: Array<any>,
sender: string,
): ReadOnlyFn
getAssetsMaps(): AssetsMaps
mineBlock(transactions: Array<Tx>): Block
mineEmptyBlock(count: number): EmptyBlock
mineEmptyBlockUntil(targetBlockHeight: number): EmptyBlock
interface ClarinetChain
import { type ClarinetChain } from "https://deno.land/x/clarigen@v0.4.9/src/dev-deps.ts";

Properties

sessionId: number
sessionId: number