v0.4.12
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
ppedziwiatr
2022-01-05 14:02:24 +01:00
parent eead2bd654
commit 166185d2e6
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "redstone-smartweave",
"version": "0.4.11",
"version": "0.4.12",
"description": "An implementation of the SmartWeave smart contract protocol.",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",

View File

@@ -10,8 +10,8 @@ import {
StateEvaluator
} from '@smartweave/core';
import Arweave from 'arweave';
import {Contract, HandlerBasedContract, PstContract, PstContractImpl} from '@smartweave/contract';
import {GQLNodeInterface} from '@smartweave/legacy';
import { Contract, HandlerBasedContract, PstContract, PstContractImpl } from '@smartweave/contract';
import { GQLNodeInterface } from '@smartweave/legacy';
/**
* The SmartWeave "motherboard" ;-).

View File

@@ -59,7 +59,7 @@ export class SmartWeaveWebFactory {
/**
* Returns a fully configured {@link SmartWeave} that is using mem cache for all layers.
*/
static memCached(arweave: Arweave, maxStoredBlockHeights: number = 10): SmartWeave {
static memCached(arweave: Arweave, maxStoredBlockHeights = 10): SmartWeave {
return this.memCachedBased(arweave, maxStoredBlockHeights).build();
}
@@ -69,7 +69,7 @@ export class SmartWeaveWebFactory {
*/
static memCachedBased(
arweave: Arweave,
maxStoredBlockHeights: number = 10,
maxStoredBlockHeights = 10,
stateCache?: MemBlockHeightSwCache<StateCache<unknown>>
): SmartWeaveBuilder {
const definitionLoader = new ContractDefinitionLoader(arweave, new MemCache());