aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-resolver/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:33:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:41:49 +0800
commit0abf1c71f64e90aba3e3bac55c8c24dc984bf80d (patch)
tree706164fe8eb0f002cdce55629a14a0092a5c40de /packages/sol-resolver/src
parent85be2fbf19ef937709f747b0c9169a2cf3e6697e (diff)
downloaddexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.tar
dexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.tar.gz
dexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.tar.bz2
dexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.tar.lz
dexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.tar.xz
dexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.tar.zst
dexon-sol-tools-0abf1c71f64e90aba3e3bac55c8c24dc984bf80d.zip
Add a comment for SpyResolver
Diffstat (limited to 'packages/sol-resolver/src')
-rw-r--r--packages/sol-resolver/src/resolvers/spy_resolver.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/sol-resolver/src/resolvers/spy_resolver.ts b/packages/sol-resolver/src/resolvers/spy_resolver.ts
index b31ecfe1d..5582d771a 100644
--- a/packages/sol-resolver/src/resolvers/spy_resolver.ts
+++ b/packages/sol-resolver/src/resolvers/spy_resolver.ts
@@ -4,6 +4,10 @@ import { ContractSource } from '../types';
import { Resolver } from './resolver';
+/**
+ * This resolver is a passthrough proxy to any resolver that records all the resolved contracts sources.
+ * You can access them later using the `resolvedContractSources` public field.
+ */
export class SpyResolver extends Resolver {
public resolvedContractSources: ContractSource[] = [];
private readonly _resolver: Resolver;