Skip to content

Commit b28c1a8

Browse files
authored
feat: use wrapscan.io uri everywhere (#251)
1 parent 45bc6d7 commit b28c1a8

35 files changed

Lines changed: 1330 additions & 1101 deletions

File tree

packages/config-bundles/polywrap-sys-config-bundle/poetry.lock

Lines changed: 34 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/config-bundles/polywrap-sys-config-bundle/polywrap_sys_config_bundle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
~~~~~~~~~~~~~~~~~~~~~~~~~~
3737
3838
>>> response = client.invoke(
39-
... uri=Uri.from_str("ens/wraps.eth:http@1.1.0"),
39+
... uri=Uri.from_str("wrapscan.io/polywrap/http@1.0"),
4040
... method="get",
4141
... args={"url": "https://www.google.com"},
4242
... )

packages/config-bundles/polywrap-sys-config-bundle/polywrap_sys_config_bundle/bundle.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,20 @@
2020
package=http_plugin(),
2121
implements=[
2222
Uri.from_str("wrapscan.io/polywrap/http@1.0"),
23-
Uri.from_str("ens/wraps.eth:http@1.1.0"),
24-
Uri.from_str("ens/wraps.eth:http@1.0.0"),
2523
],
2624
redirects_from=[
2725
Uri.from_str("wrapscan.io/polywrap/http@1.0"),
28-
Uri.from_str("ens/wraps.eth:http@1.1.0"),
29-
Uri.from_str("ens/wraps.eth:http@1.0.0"),
3026
],
3127
),
3228
"http_resolver": BundlePackage(
3329
uri=Uri.from_str("embed/http-uri-resolver-ext@1.0.1"),
3430
package=get_embedded_wrap("http-resolver"),
3531
implements=[
36-
Uri.from_str("ens/wraps.eth:http-uri-resolver-ext@1.0.1"),
32+
Uri.from_str("wrapscan.io/polywrap/http-uri-resolver@1.0"),
3733
*ExtendableUriResolver.DEFAULT_EXT_INTERFACE_URIS,
3834
],
3935
redirects_from=[
40-
Uri.from_str("ens/wraps.eth:http-uri-resolver-ext@1.0.1"),
36+
Uri.from_str("wrapscan.io/polywrap/http-uri-resolver@1.0"),
4137
],
4238
),
4339
"wrapscan_resolver": BundlePackage(
@@ -51,18 +47,18 @@
5147
"ipfs_http_client": BundlePackage(
5248
uri=Uri.from_str("embed/ipfs-http-client@1.0.0"),
5349
package=get_embedded_wrap("ipfs-http-client"),
54-
implements=[Uri.from_str("ens/wraps.eth:ipfs-http-client@1.0.0")],
55-
redirects_from=[Uri.from_str("ens/wraps.eth:ipfs-http-client@1.0.0")],
50+
implements=[Uri.from_str("wrapscan.io/polywrap/ipfs-http-client@1.0")],
51+
redirects_from=[Uri.from_str("wrapscan.io/polywrap/ipfs-http-client@1.0")],
5652
),
5753
"ipfs_resolver": BundlePackage(
5854
uri=Uri.from_str("embed/sync-ipfs-uri-resolver-ext@1.0.1"),
5955
package=get_embedded_wrap("ipfs-sync-resolver"),
6056
implements=[
61-
Uri.from_str("ens/wraps.eth:sync-ipfs-uri-resolver-ext@1.0.1"),
57+
Uri.from_str("wrapscan.io/polywrap/sync-ipfs-uri-resolver@1.0"),
6258
*ExtendableUriResolver.DEFAULT_EXT_INTERFACE_URIS,
6359
],
6460
redirects_from=[
65-
Uri.from_str("ens/wraps.eth:sync-ipfs-uri-resolver-ext@1.0.1"),
61+
Uri.from_str("wrapscan.io/polywrap/sync-ipfs-uri-resolver@1.0"),
6662
],
6763
env={
6864
"provider": ipfs_providers[0],
@@ -77,18 +73,18 @@
7773
"file_system": BundlePackage(
7874
uri=Uri.from_str("plugin/file-system@1.0.0"),
7975
package=file_system_plugin(),
80-
implements=[Uri.from_str("ens/wraps.eth:file-system@1.0.0")],
81-
redirects_from=[Uri.from_str("ens/wraps.eth:file-system@1.0.0")],
76+
implements=[Uri.from_str("wrapscan.io/polywrap/file-system@1.0")],
77+
redirects_from=[Uri.from_str("wrapscan.io/polywrap/file-system@1.0")],
8278
),
8379
"file_system_resolver": BundlePackage(
8480
uri=Uri.from_str("embed/file-system-uri-resolver-ext@1.0.1"),
8581
package=get_embedded_wrap("file-system-resolver"),
8682
implements=[
87-
Uri.from_str("ens/wraps.eth:file-system-uri-resolver-ext@1.0.1"),
83+
Uri.from_str("wrapscan.io/polywrap/file-system-uri-resolver@1.0"),
8884
*ExtendableUriResolver.DEFAULT_EXT_INTERFACE_URIS,
8985
],
9086
redirects_from=[
91-
Uri.from_str("ens/wraps.eth:file-system-uri-resolver-ext@1.0.1")
87+
Uri.from_str("wrapscan.io/polywrap/file-system-uri-resolver@1.0")
9288
],
9389
),
9490
}
Binary file not shown.

packages/config-bundles/polywrap-sys-config-bundle/tests/test_sanity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test_http_plugin():
1010
client = PolywrapClient(config)
1111

1212
response = client.invoke(
13-
uri=Uri.from_str("ens/wraps.eth:http@1.1.0"),
13+
uri=Uri.from_str("wrapscan.io/polywrap/http@1.0"),
1414
method="get",
1515
args={"url": "https://www.google.com"},
1616
)
@@ -26,7 +26,7 @@ def test_file_system_resolver():
2626
path_to_resolve = str(Path(__file__).parent.parent / "polywrap_sys_config_bundle" / "embeds" / "http-resolver")
2727

2828
response = client.invoke(
29-
uri=Uri.from_str("ens/wraps.eth:file-system-uri-resolver-ext@1.0.1"),
29+
uri=Uri.from_str("wrapscan.io/polywrap/file-system-uri-resolver@1.0"),
3030
method="tryResolveUri",
3131
args={"authority": "fs", "path": path_to_resolve},
3232
)
@@ -46,7 +46,7 @@ def test_http_resolver():
4646
http_path = "wraps.wrapscan.io/r/polywrap/wrapscan-uri-resolver@1.0"
4747

4848
response = client.invoke(
49-
uri=Uri.from_str("ens/wraps.eth:http-uri-resolver-ext@1.0.1"),
49+
uri=Uri.from_str("wrapscan.io/polywrap/http-uri-resolver@1.0"),
5050
method="tryResolveUri",
5151
args={"authority": "https", "path": http_path},
5252
)

0 commit comments

Comments
 (0)