Skip to content

Commit 5801737

Browse files
committed
v1.4.33
1 parent 0550773 commit 5801737

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "warp-contracts",
3-
"version": "1.4.32",
3+
"version": "1.4.33",
44
"description": "An implementation of the SmartWeave smart contract protocol.",
55
"types": "./lib/types/index.d.ts",
66
"main": "./lib/cjs/index.js",

src/__tests__/integration/basic/contract-loading.test.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { WarpGatewayContractDefinitionLoader } from '../../../core/modules/impl/
1313
import { DefaultEvaluationOptions } from '../../../core/modules/StateEvaluator';
1414
import { LexicographicalInteractionsSorter } from '../../../core/modules/impl/LexicographicalInteractionsSorter';
1515
import { DeployPlugin } from 'warp-contracts-plugin-deploy';
16-
import { CacheableContractDefinitionLoader } from "../../../core/modules/impl/CacheableContractDefinitionLoader";
16+
import { CacheableContractDefinitionLoader } from '../../../core/modules/impl/CacheableContractDefinitionLoader';
1717

1818
interface ExampleContractState {
1919
counter: number;
@@ -44,7 +44,10 @@ describe('Testing WarpGatewayContractDefinitionLoader', () => {
4444

4545
const { arweave } = warp;
4646

47-
loader = new CacheableContractDefinitionLoader(new WarpGatewayContractDefinitionLoader(arweave, 'local'), 'local', { ...defaultCacheOptions, inMemory: true });
47+
loader = new CacheableContractDefinitionLoader(new WarpGatewayContractDefinitionLoader(arweave, 'local'), 'local', {
48+
...defaultCacheOptions,
49+
inMemory: true
50+
});
4851
loader.warp = warp;
4952
sorter = new LexicographicalInteractionsSorter(arweave);
5053

src/__tests__/regression/arweave-sequenced-interaction-loader.test.ts

+12-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { ArweaveGatewayBundledContractDefinitionLoader } from '../../core/module
22
import { ArweaveGatewayBundledInteractionLoader } from '../../core/modules/impl/ArweaveGatewayBundledInteractionLoader';
33
import { SourceType, WarpGatewayInteractionsLoader } from '../../core/modules/impl/WarpGatewayInteractionsLoader';
44
import { EvaluationOptions } from '../../core/modules/StateEvaluator';
5-
import { defaultCacheOptions, WarpFactory } from "../../core/WarpFactory";
5+
import { defaultCacheOptions, WarpFactory } from '../../core/WarpFactory';
66
import { LoggerFactory } from '../../logging/LoggerFactory';
77
import { WarpGatewayContractDefinitionLoader } from '../../core/modules/impl/WarpGatewayContractDefinitionLoader';
88
import stringify from 'safe-stable-stringify';
99
import Arweave from 'arweave/node/common';
10-
import { CacheableContractDefinitionLoader } from "../../core/modules/impl/CacheableContractDefinitionLoader";
10+
import { CacheableContractDefinitionLoader } from '../../core/modules/impl/CacheableContractDefinitionLoader';
1111

1212
const EXAMPLE_CONTRACT_TX_ID = 'T8Fakv0Sol6ALQ4Mt6FTxEJVDJWT-HDUmcI3qIA49U4';
1313
const EXAMPLE_CONTRACT_SRC_TX_ID = 'QEIweYIpdMSer_E33VreYzmuTIx33FQ4Sq32XJqlLQw';
@@ -32,7 +32,11 @@ describe('Arweave Gateway interaction loader', () => {
3232
it('should load contract definition', async () => {
3333
const warp = WarpFactory.forMainnet();
3434

35-
const wrLoader = new CacheableContractDefinitionLoader(new WarpGatewayContractDefinitionLoader(warp.arweave, 'local'), 'local', { ...defaultCacheOptions, inMemory: true })
35+
const wrLoader = new CacheableContractDefinitionLoader(
36+
new WarpGatewayContractDefinitionLoader(warp.arweave, 'local'),
37+
'local',
38+
{ ...defaultCacheOptions, inMemory: true }
39+
);
3640
wrLoader.warp = warp;
3741

3842
const arLoader = new ArweaveGatewayBundledContractDefinitionLoader(warp.environment);
@@ -86,7 +90,11 @@ describe('Arweave Gateway interaction loader', () => {
8690
const arweave = Arweave.init({ host: 'arweave.net', port: 443, protocol: 'https' });
8791

8892
const arLoader = new ArweaveGatewayBundledInteractionLoader(arweave, 'mainnet');
89-
const wrLoader = new CacheableContractDefinitionLoader(new WarpGatewayContractDefinitionLoader(arweave, 'local'), 'local', { ...defaultCacheOptions, inMemory: true });
93+
const wrLoader = new CacheableContractDefinitionLoader(
94+
new WarpGatewayContractDefinitionLoader(arweave, 'local'),
95+
'local',
96+
{ ...defaultCacheOptions, inMemory: true }
97+
);
9098
const withArLoader = WarpFactory.custom(arweave, { inMemory: true, dbLocation: '' }, 'mainnet')
9199
.setInteractionsLoader(arLoader)
92100
.setDefinitionLoader(wrLoader)

0 commit comments

Comments
 (0)