Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
c327754
extract filesystem URI resolver and add interface, implement basic fi…
pileks Jun 10, 2022
57ff514
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 10, 2022
43bec22
move packages to prealpha.84
pileks Jun 10, 2022
5d8d59b
Add build step for interfaces, fix interface build, remove unused cod…
pileks Jun 10, 2022
ac4cd06
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 13, 2022
475b649
move fs plugin to all async methods where possible, introduce filesys…
pileks Jun 13, 2022
d96159a
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 13, 2022
472e676
fs uri resolver needs to use enums in wrapper
pileks Jun 13, 2022
a3c98dc
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 14, 2022
f9516bc
add missing package.json updates
pileks Jun 14, 2022
5ed082b
update package.json to prealpha.85
pileks Jun 14, 2022
ebf6541
separate ipfs plugin and ipfs-resolver plugin, add ipfs plugin interface
pileks Jun 17, 2022
32731d2
Merge branch 'prealpha-dev' into pileks-ipfs-plugin-separation-of-con…
pileks Jun 17, 2022
ff46e3f
fix up new plugins for polywrap rename
pileks Jun 17, 2022
b9db16b
Fix build issues introduced by new interface
pileks Jun 17, 2022
74d8d03
fix default-client-config
pileks Jun 19, 2022
924badb
fix lint
pileks Jun 19, 2022
e96b5e1
IPFS plugin basic tests
pileks Jun 20, 2022
5e04429
Remove redundant method in ipfs plugin, refactor
pileks Jun 20, 2022
1d76be3
fix test breaking in CI
pileks Jun 20, 2022
9378615
Increase jest timeout for CI
pileks Jun 20, 2022
ecaf297
IPFS URI Resolver basic test
pileks Jun 20, 2022
52643e1
add e2e test for ipfs-resolver-plugin-js
pileks Jun 21, 2022
fd936b3
increase timeout for ipfs-resolver tests
pileks Jun 21, 2022
17831a5
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 21, 2022
6f4ac63
Update filesystem and filesystem-resolver plugins with prealpha.86
pileks Jun 22, 2022
99cb98e
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 22, 2022
1f8c21e
fix w3 string
pileks Jun 22, 2022
7caad9f
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-ipfs-p…
pileks Jun 22, 2022
459cc2e
fix package.json
pileks Jun 22, 2022
11a2e9d
remove catToString from IPFS interface and plugin
pileks Jun 22, 2022
289a72f
resolve PR comments
pileks Jun 23, 2022
e9daeb5
resolve PR comments
pileks Jun 23, 2022
9fb62dc
rename filesystem to fileSystem etc
pileks Jun 23, 2022
89282ed
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 23, 2022
45d11dd
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-ipfs-p…
pileks Jun 23, 2022
28c5bc0
removed unused functions and types
nerfZael Jun 23, 2022
d1751eb
refactored ipfs client handling in tests
nerfZael Jun 23, 2022
e1aead0
locked dependencies and replaced the deprecated cids package with the…
nerfZael Jun 23, 2022
7fba2be
Merge pull request #949 from polywrap/nerfzael-uri-resolver-test-fixes
dOrgJelli Jun 23, 2022
0911d8c
chore: logger core interface updated
cbrzn Jun 22, 2022
85fe0de
chore: -half- fix of wasm assemblyscript template
cbrzn Jun 23, 2022
b4383d1
Rename ens plugin to ens-resolver, move folders
pileks Jun 23, 2022
fc355e2
Code style changes
pileks Jun 23, 2022
989a19f
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-ipfs-p…
pileks Jun 23, 2022
85f03ad
update yarn.lock
pileks Jun 23, 2022
59f3ee8
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-fs-plu…
pileks Jun 23, 2022
9b19fc1
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-ens-pl…
pileks Jun 23, 2022
14b9fd0
migrate uri-resolver interface
dOrgJelli Jun 24, 2022
b3b6d1e
merge prealpha-dev
dOrgJelli Jun 24, 2022
94d5210
Merge pull request #945 from polywrap/chore/update-logger-interface
dOrgJelli Jun 24, 2022
22c5d51
merge prealpha-dev
dOrgJelli Jun 24, 2022
9e71822
nvmrc + interface schema path fixes
dOrgJelli Jun 24, 2022
f735c59
fix build
dOrgJelli Jun 24, 2022
42ca397
remove Record<string, unknown> plugin config typing
dOrgJelli Jun 24, 2022
8e8fa58
fix schema bind tests
dOrgJelli Jun 24, 2022
4a6c39b
fix ethereum test
dOrgJelli Jun 24, 2022
29dfc6f
linter fixes
dOrgJelli Jun 24, 2022
1735166
Merge pull request #957 from polywrap/fix-plugin-config-typings
dOrgJelli Jun 24, 2022
0cffbf0
merge prealpha-dev
dOrgJelli Jun 24, 2022
134191f
file-system plugin no config
dOrgJelli Jun 24, 2022
63b7d26
minor fixes + remove merge files
dOrgJelli Jun 24, 2022
dff5995
fix file-system-resolver tests
dOrgJelli Jun 24, 2022
2606c1b
remove api + query terminology
dOrgJelli Jun 24, 2022
81f88f6
remove root package.json version
dOrgJelli Jun 24, 2022
35fb8db
fix file-system tests
dOrgJelli Jun 24, 2022
7b9d827
Merge pull request #912 from polywrap/pileks-fs-plugin-separation-of-…
dOrgJelli Jun 24, 2022
46621d4
Add test for ens resolver
pileks Jun 24, 2022
d231de1
feat(cli): improve tests for create command
Niraj-Kamdar Jun 24, 2022
8002df6
rename nullable to optional #937
fetsorn Jun 24, 2022
5528393
fix typos in comments
fetsorn Jun 24, 2022
539c77a
Merge remote-tracking branch 'origin/prealpha-dev' into pileks-ipfs-p…
pileks Jun 25, 2022
098b5d0
fix IPFS plugin manifest import redirect
pileks Jun 25, 2022
3b3d37d
IPFS Resolver manifest correct name
pileks Jun 25, 2022
0fb1ff0
fix(cli): command registration logic
Niraj-Kamdar Jun 26, 2022
4c07b00
finish renaming
dOrgJelli Jun 27, 2022
295c40e
linter fix
dOrgJelli Jun 27, 2022
1430526
fix codegen
dOrgJelli Jun 27, 2022
94c0c67
fix typo
dOrgJelli Jun 27, 2022
55c6ee7
fix bind test
dOrgJelli Jun 27, 2022
bebc291
Merge pull request #961 from polywrap/fetsorn/typo-fixes
dOrgJelli Jun 27, 2022
9f533da
Merge pull request #960 from polywrap/937-nullable-optional
dOrgJelli Jun 27, 2022
4eb6313
merge prealpha-dev
dOrgJelli Jun 27, 2022
2d94065
fix bind tests
dOrgJelli Jun 27, 2022
a380a20
Merge pull request #972 from polywrap/rename-input-to-args
dOrgJelli Jun 27, 2022
af44279
Merge pull request #959 from polywrap/nk/create-cmd-test
dOrgJelli Jun 27, 2022
48707c2
merge prealpha-dev
dOrgJelli Jun 27, 2022
b056f87
remove unnecessary .gitignore + .nvmrc files
dOrgJelli Jun 27, 2022
d501be0
Merge pull request #930 from polywrap/pileks-ipfs-plugin-separation-o…
dOrgJelli Jun 27, 2022
6660aa2
merge prealpha-dev
dOrgJelli Jun 27, 2022
22c2bce
rename to ens-resolver
dOrgJelli Jun 27, 2022
f370e88
update type codegen
dOrgJelli Jun 27, 2022
d60053b
Merge pull request #958 from polywrap/pileks-ens-plugin-separation-of…
dOrgJelli Jun 27, 2022
f481cfe
typo fixes
fetsorn Jun 27, 2022
21ffbfa
Merge pull request #975 from polywrap/fetsorn/typo-fixes
dOrgJelli Jun 27, 2022
4abeb2f
remove result-filter
dOrgJelli Jun 27, 2022
2fc194b
lint fix
dOrgJelli Jun 27, 2022
32a8eb1
remove tests involving filtering
dOrgJelli Jun 27, 2022
67da967
Merge pull request #976 from polywrap/remove-filter-result
dOrgJelli Jun 27, 2022
80db7b9
prep 0.0.1-prealpha.90
dOrgJelli Jun 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
],
format: ["camelCase"], leadingUnderscore: "allow"
},
//wrap host methods doesn"t satisfy neither camel or snake
//wrap host methods doesn't satisfy neither camel or snake
{selector: ["objectLiteralMethod", "typeMethod"], filter: {regex: "^_wrap_.*", match: true}, format: null},
//variable must be in camel or upper case
{selector: "variable", format: ["camelCase", "UPPER_CASE"], leadingUnderscore: "allow"},
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Polywrap 0.0.1-prealpha.90
## Features
* [PR-912](https://github.com/polywrap/monorepo/pull/912) [PR-930](https://github.com/polywrap/monorepo/pull/930) [PR-958](https://github.com/polywrap/monorepo/pull/958) All URI resolver extensions have been decoupled and moved into their own plugin packages:
* `@polywrap/fs-resolver-plugin-js`
* `@polywrap/ipfs-resolver-plugin-js`
* `@polywrap/ens-resolver-plugin-js`
* [PR-912](https://github.com/polywrap/monorepo/pull/912) `@polywrap/file-system-interface` has been created to help standardize FileSystem wrapper implementations.
* [PR-930](https://github.com/polywrap/monorepo/pull/930) `@polywrap/ipfs-interface` has been created to help standardize IPFS wrapper implementations.

## Bugs
* [PR-957](https://github.com/polywrap/monorepo/pull/957) `@polywrap/schema-bind`: `plugin/typescript` module config type interfaces no longer inherit from `Record<string, unknown>`, making them more type-safe and less generic.

## Breaking Changes
* [PR-937](https://github.com/polywrap/monorepo/issues/937) [PR-960](https://github.com/polywrap/monorepo/pull/960) The term `Nullable` has been changed to `Optional` within the `wasm` wrapper codegen. Additionally in `wasm/assemblyscript` the `Nullable<T>` type has been changed to a rust-style `Optional<T>` type.
* [PR-972](https://github.com/polywrap/monorepo/pull/972) The term `input` in the context of invocations has been renamed to `args`.
* [PR-976](https://github.com/polywrap/monorepo/pull/976) The invocation `resultFilter` option has been deprecated, as it is a needless & unused feature.

# Polywrap 0.0.1-prealpha.89
## Features
* [PR-903](https://github.com/polywrap/monorepo/pull/903) `polywrap` CLI: Recipes have been re-worked into composable workflows, and they can be run using CLI commands.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1-prealpha.89
0.0.1-prealpha.90
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@
"reset": "yarn clean && yarn && yarn build",
"clean": "npx rimraf ./**/node_modules ./**/yarn.lock ./**/build ./**/coverage ./**/.polywrap",
"dependencies:install": "cd dependencies && yarn",
"dependencies:link": "yarn link:schema:parse && yarn link:schema:bind",
"link:schema:parse": "cd packages/schema/parse && (yarn unlink || true) && yarn link && cd ../../../dependencies && yarn link @polywrap/schema-parse && cd ../",
"link:schema:bind": "cd packages/schema/bind && (yarn unlink || true) && yarn link && cd ../../../dependencies && yarn link @polywrap/schema-bind && cd ../",
"preinstall": "yarn dependencies:install",
"build": "yarn build:core && yarn build:plugins && yarn build:client && yarn build:test-env && yarn build:cli",
"build": "yarn build:core && yarn dependencies:link && yarn build:interfaces && yarn build:plugins && yarn build:client && yarn build:test-env && yarn build:cli",
"build:core": "lerna run build --no-private --ignore @polywrap/*-plugin-js --ignore polywrap --ignore @polywrap/client-js --ignore @polywrap/react --ignore @polywrap/test-env-js",
"build:interfaces": "lerna run build --scope @polywrap/*-interface --concurrency 1",
"build:plugins": "lerna run build --scope @polywrap/*-plugin-js --concurrency 1",
"build:client": "lerna run build --scope @polywrap/client-js --scope @polywrap/react",
"build:test-env": "lerna run build --scope @polywrap/test-env-js",
Expand Down Expand Up @@ -61,6 +65,5 @@
"resolutions": {
"@types/react": "16.9.0",
"@types/react-dom": "16.9.0"
},
"version": "0.0.1-prealpha.87"
}
}
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@polywrap/client-js": "0.0.1-prealpha.89",
"@polywrap/core-js": "0.0.1-prealpha.89",
"@polywrap/ens-plugin-js": "0.0.1-prealpha.89",
"@polywrap/ens-resolver-plugin-js": "0.0.1-prealpha.89",
"@polywrap/ethereum-plugin-js": "0.0.1-prealpha.89",
"@polywrap/ipfs-plugin-js": "0.0.1-prealpha.89",
"@polywrap/os-js": "0.0.1-prealpha.89",
Expand Down
149 changes: 81 additions & 68 deletions packages/cli/src/__tests__/e2e/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { clearStyle, polywrapCli } from "./utils";

import { runCLI } from "@polywrap/test-env-js";
import rimraf from "rimraf";
import { ProjectType, supportedLangs } from "../../commands";

const HELP = `Usage: polywrap create|c [options] [command]

Expand Down Expand Up @@ -32,7 +33,7 @@ describe("e2e tests for create command", () => {
expect(clearStyle(output)).toEqual(HELP);
});

test("Should throw error for missing parameter - type", async () => {
test("Should show help for no parameters", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create"],
cli: polywrapCli,
Expand All @@ -43,29 +44,7 @@ describe("e2e tests for create command", () => {
expect(output).toBe("");
});

test("Should throw error for missing parameter - lang", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", "type"],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain("error: unknown command 'type'");
expect(output).toBe("");
});

test("Should throw error for missing parameter - name", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", "type", "lang"],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain("error: unknown command 'type'");
expect(output).toBe("");
});

test("Should throw error for invalid parameter - type", async () => {
test("Should throw error for invalid project type", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", "unknown", "app", "name"],
cli: polywrapCli,
Expand All @@ -76,49 +55,83 @@ describe("e2e tests for create command", () => {
expect(output).toBe("");
});

test("Should throw error for invalid parameter - lang", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", "wasm", "unknown", "name"],
cli: polywrapCli,
for (const project of Object.keys(supportedLangs)) {
describe(project, () => {
test("Should throw error for missing required argument - language", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", project],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain("error: missing required argument 'language");
expect(output).toBe("");
});

test("Should throw error for missing required argument - name", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", project, "lang"],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain("error: missing required argument 'name'");
expect(output).toBe("");
});

test("Should throw error for invalid lang parameter", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", project, "lang", "demo"],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain(
`error: command-argument value 'lang' is invalid for argument 'language'. Allowed choices are ${supportedLangs[project as ProjectType].join(", ")}.`
);
expect(output).toBe("");
});

for (const lang of supportedLangs[project as ProjectType]) {
describe(lang, () => {
test("Should throw error for missing path argument for output-dir option", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", project, lang, "name", "-o"],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain(
"error: option '-o, --output-dir <path>' argument missing"
);
expect(output).toBe("");
});

test("Should successfully generate project", async () => {
rimraf.sync(`${__dirname}/test`);

const { exitCode: code, stdout: output } = await runCLI({
args: [
"create",
project,
lang,
"test",
"-o",
`${__dirname}/test`,
],
cwd: __dirname,
cli: polywrapCli,
});

expect(code).toEqual(0);
expect(clearStyle(output)).toMatch(
/🔥 You are ready to ([A-Za-z ]+) Polywrap 🔥/
);

rimraf.sync(`${__dirname}/test`);
}, 60000);
})
}
});

expect(code).toEqual(1);
expect(error).toContain("error: command-argument value 'unknown' is invalid for argument 'language'. Allowed choices are assemblyscript, interface.");
expect(output).toBe("");
});

test("Should throw error for invalid parameter - output-dir", async () => {
const { exitCode: code, stdout: output, stderr: error } = await runCLI({
args: ["create", "wasm", "assemblyscript", "name", "-o"],
cli: polywrapCli,
});

expect(code).toEqual(1);
expect(error).toContain("error: option '-o, --output-dir <path>' argument missing");
expect(output).toBe("");
});

test("Should successfully generate project", async () => {
rimraf.sync(`${__dirname}/test`);

const { exitCode: code, stdout: output } = await runCLI({
args: [
"create",
"wasm",
"assemblyscript",
"test",
"-o",
`${__dirname}/test`,
],
cwd: __dirname,
cli: polywrapCli,
});

expect(code).toEqual(0);
expect(clearStyle(output)).toContain(
`🔥 You are ready to turn your protocol into a Polywrap 🔥`
);

rimraf.sync(`${__dirname}/test`);
}, 60000);
}
});
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/e2e/deploy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const setup = async (domainNames: string[]) => {
const result = await client.invoke({
uri: ensWrapperUri,
method: "registerDomainAndSubdomainsRecursively",
input: {
args: {
domain: domainName,
owner: signer.address,
registrarAddress,
Expand Down
7 changes: 4 additions & 3 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

import * as Commands from "./commands";
import { Command } from "./commands/types";

import { executeMaybeAsyncFunction } from "@polywrap/core-js";
import { program } from "commander";

export const run = async (argv: string[]): Promise<void> => {
for (const command of Object.values(Commands) as Command[]) {
await executeMaybeAsyncFunction(command.setup, program);
for (const command of Object.values(Commands)) {
if ("setup" in command) {
await executeMaybeAsyncFunction(command.setup, program);
}
}

program.parse(argv);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const createAppStr = intlMsg.commands_create_options_createApp();
const createPluginStr = intlMsg.commands_create_options_createPlugin();
const pathStr = intlMsg.commands_create_options_o_path();

const supportedLangs = {
export const supportedLangs = {
wasm: ["assemblyscript", "interface"] as const,
app: ["typescript-node", "typescript-react"] as const,
plugin: ["typescript"] as const,
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/lib/defaults/deploy-modules/ens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ENSPublisher implements Deployer {
const { data: resolver } = await client.invoke<string>({
method: "getResolver",
uri: ensWrapperUri,
input: {
args: {
registryAddress: config.ensRegistryAddress,
domain: config.domainName,
connection: {
Expand All @@ -90,7 +90,7 @@ class ENSPublisher implements Deployer {
const { data: setContenthashData } = await client.invoke<{ hash: string }>({
method: "setContentHash",
uri: ensWrapperUri,
input: {
args: {
domain: config.domainName,
cid: hash,
resolverAddress: resolver,
Expand All @@ -107,7 +107,7 @@ class ENSPublisher implements Deployer {
await client.invoke({
method: "awaitTransaction",
uri: ethereumPluginUri,
input: {
args: {
txHash: setContenthashData.hash,
confirmations: 1,
timeout: 15000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LocalDevENSPublisher implements Deployer {
const { data: signer } = await client.invoke<string>({
method: "getSignerAddress",
uri: ethereumPluginUri,
input: {
args: {
connection: {
networkNameOrChainId: "testnet",
},
Expand All @@ -70,7 +70,7 @@ class LocalDevENSPublisher implements Deployer {
{
method: "registerDomainAndSubdomainsRecursively",
uri: ensWrapperUri,
input: {
args: {
domain: config.domainName,
owner: signer,
resolverAddress: ensAddresses.resolverAddress,
Expand All @@ -94,7 +94,7 @@ class LocalDevENSPublisher implements Deployer {
await client.invoke({
method: "awaitTransaction",
uri: ethereumPluginUri,
input: {
args: {
txHash: registerData.hash,
confirmations: 1,
timeout: 15000,
Expand All @@ -109,7 +109,7 @@ class LocalDevENSPublisher implements Deployer {
const { data: setContenthashData } = await client.invoke<{ hash: string }>({
method: "setContentHash",
uri: ensWrapperUri,
input: {
args: {
domain: config.domainName,
cid: hash,
resolverAddress: ensAddresses.resolverAddress,
Expand All @@ -126,7 +126,7 @@ class LocalDevENSPublisher implements Deployer {
await client.invoke({
method: "awaitTransaction",
uri: ethereumPluginUri,
input: {
args: {
txHash: setContenthashData.hash,
confirmations: 1,
timeout: 15000,
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/lib/helpers/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PluginRegistration } from "@polywrap/core-js";
import { ensPlugin } from "@polywrap/ens-plugin-js";
import { ensResolverPlugin } from "@polywrap/ens-resolver-plugin-js";
import { ethereumPlugin } from "@polywrap/ethereum-plugin-js";
import { ipfsPlugin } from "@polywrap/ipfs-plugin-js";
import { PolywrapClient, defaultIpfsProviders } from "@polywrap/client-js";
Expand All @@ -15,8 +15,8 @@ export function getSimpleClient(config: SimpleClientConfig): PolywrapClient {
const plugins: PluginRegistration[] = [];
if (ensAddress) {
plugins.push({
uri: "wrap://ens/ens.polywrap.eth",
plugin: ensPlugin({
uri: "wrap://ens/ens-resolver.polywrap.eth",
plugin: ensResolverPlugin({
addresses: {
testnet: ensAddress,
},
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/lib/helpers/validate-client-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
PolywrapClientConfig,
} from "@polywrap/client-js";

export function validateRedirects<TUri extends PluginPackage | Uri | string>(
redirects: UriRedirect<TUri>[]
): void {
export function validateRedirects<
TUri extends PluginPackage<unknown> | Uri | string
>(redirects: UriRedirect<TUri>[]): void {
if (!Array.isArray(redirects)) {
throw new Error(intlMsg.commands_run_error_redirectsExportNotArray());
}
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/lib/test-env/client-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PolywrapClientConfig,
defaultIpfsProviders,
} from "@polywrap/client-js";
import { ensPlugin } from "@polywrap/ens-plugin-js";
import { ensResolverPlugin } from "@polywrap/ens-resolver-plugin-js";
import { ethereumPlugin } from "@polywrap/ethereum-plugin-js";
import { ipfsPlugin } from "@polywrap/ipfs-plugin-js";
import { ensAddresses } from "@polywrap/test-env-js";
Expand Down Expand Up @@ -44,8 +44,8 @@ export async function getTestEnvClientConfig(): Promise<
}),
},
{
uri: "wrap://ens/ens.polywrap.eth",
plugin: ensPlugin({
uri: "wrap://ens/ens-resolver.polywrap.eth",
plugin: ensResolverPlugin({
addresses: {
testnet: ensAddress,
},
Expand Down
Loading