smartweave to warp renaming hell

This commit is contained in:
asiaziola
2022-05-19 15:57:44 +02:00
parent 5290e1e3b0
commit d552a6c13e
82 changed files with 425 additions and 461 deletions

View File

@@ -6,7 +6,7 @@ import {
GQLEdgeInterface,
InteractionsLoader,
LoggerFactory
} from '@smartweave';
} from '@warp';
/**
* This implementation of the {@link InteractionsLoader} tries to limit the amount of interactions

View File

@@ -1,7 +1,7 @@
import Arweave from 'arweave';
import { ContractDefinition, EvaluationOptions, ExecutorFactory } from '@smartweave/core';
import { SwCache } from '@smartweave/cache';
import { LoggerFactory } from '@smartweave/logging';
import { ContractDefinition, EvaluationOptions, ExecutorFactory } from '@warp/core';
import { SwCache } from '@warp/cache';
import { LoggerFactory } from '@warp/logging';
/**
* An implementation of ExecutorFactory that adds caching capabilities

View File

@@ -1,4 +1,4 @@
import { ContractDefinition, EvaluationOptions, ExecutorFactory } from '@smartweave/core';
import { ContractDefinition, EvaluationOptions, ExecutorFactory } from '@warp/core';
/**
* An ExecutorFactory that allows to substitute original contract's source code.

View File

@@ -6,9 +6,9 @@ import {
ExecutorFactory,
HandlerApi,
LoggerFactory,
SmartWeaveError,
SmartWeaveErrorType
} from '@smartweave';
WarpError,
WarpErrorType
} from '@warp';
/*
...I'm still not fully convinced to the whole "evolve" idea.
@@ -89,7 +89,7 @@ export class Evolve implements ExecutionContextModifier {
return executionContext;
} catch (e) {
throw new SmartWeaveError(SmartWeaveErrorType.CONTRACT_NOT_FOUND, {
throw new WarpError(WarpErrorType.CONTRACT_NOT_FOUND, {
message: `Contract having txId: ${contractTxId} not found`,
requestedTxId: contractTxId
});