@@ -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",
|
||||
|
||||
@@ -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" ;-).
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user