Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Constructors

new
ClarinetChain(sessionId: number)

Properties

blockHeight: number
sessionId: number

Methods

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

Constructors

new
ClarinetChain(sessionId: number)

Properties

blockHeight: number
sessionId: number

Methods

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

Properties

sessionId: number
sessionId: number