Skip to content
Open

sync #11

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
3136473
onchfs-js > added resource resolution when preparing inscriptions
ciphrd Oct 5, 2023
5b4b560
[wip] onchfs uri parsing for caip-10 spec
ciphrd Oct 6, 2023
5171ce6
onchfs set version to 0.0.0 in the monorepo (to match release)
ciphrd Oct 7, 2023
6e867c3
Merge pull request #221 from fxhash/feat/onchfs-prepare-release
ciphrd Oct 7, 2023
fc264f3
[packages/onchfs-js] set version to 0.0.0
maerzhase Oct 7, 2023
af1a289
[scripts/fxrepo] Merge branch 'dev' into feature/streamline-boilerpla…
maerzhase Oct 9, 2023
fd26231
update ABNF spec on the doc
ciphrd Oct 9, 2023
4ce4ef4
add support for blockchain aliases for ease of use
ciphrd Oct 10, 2023
f0cef14
update onchfs proxy implementations w/ aliases
ciphrd Oct 10, 2023
a5516c7
better readme to onchfs js
ciphrd Oct 10, 2023
8d8df13
Merge pull request #125 from fxhash/feature/streamline-boilerplate-ad…
maerzhase Oct 10, 2023
fb58e3a
test-project-next for onchfs build error fix
ciphrd Oct 10, 2023
bdaa8ab
Merge branch 'dev' into feat/onchfs-inscriptions-opt
ciphrd Oct 11, 2023
181990c
Merge pull request #216 from fxhash/feat/onchfs-inscriptions-opt
ciphrd Oct 11, 2023
94a1d60
Merge pull request #283 from fxhash/feat/onchfs-caip-alignement
ciphrd Oct 11, 2023
c9d8314
Merge branch 'dev' into fix/build-errors
ciphrd Oct 11, 2023
db387a7
Merge pull request #289 from fxhash/fix/build-errors
ciphrd Oct 11, 2023
e95b4bc
updated contract addresses
ciphrd Oct 16, 2023
ac83393
fix onchfs-js proxy wrong address blockchain check
ciphrd Oct 16, 2023
400603b
added some logs to track the metadata onchfs generation
ciphrd Oct 16, 2023
90d92c0
Merge pull request #322 from fxhash/dev
ciphrd Oct 17, 2023
658885e
[onchfs/doc] feat: add new seo image for onchfs docs (#439)
pradel Nov 6, 2023
509f536
Merge pull request #451 from fxhash/dev
ciphrd Nov 7, 2023
345574d
Merge pull request #479 from fxhash/staging
ciphrd Nov 7, 2023
7924d9a
progress
ciphrd Nov 29, 2023
468b36f
onchfs working!!
ciphrd Nov 30, 2023
bd7b3c8
dump
ciphrd Nov 30, 2023
366e049
onchfs-proxy working
ciphrd Nov 30, 2023
e1def3b
removed some logs
ciphrd Nov 30, 2023
ee160c7
update onchfs file system address (final)
ciphrd Nov 30, 2023
0a4eea3
onchfs utils to compute upload summary
ciphrd Dec 5, 2023
bf3e5b0
show modal for library issues
ciphrd Dec 6, 2023
c96d975
Merge pull request #709 from fxhash/feat/improve-onchfs-flow
ciphrd Dec 8, 2023
284535c
[repo] feat: move prettier config to the root of the repo (#853)
pradel Jan 17, 2024
cba78a6
[repo] feat: add prettier check on the CI (#854)
pradel Jan 17, 2024
a7ace8c
dev -> staging (#872)
0x666c6f Jan 19, 2024
f53a2f5
add fallback mime lookup to onchfs file lib
louisholley Jan 22, 2024
92865ee
Merge pull request #882 from fxhash/feat/onchfs-custom-mimes
louisholley Jan 22, 2024
ceb028b
[repo] rename fxhash.js -> fxhash.min.js
maerzhase Jan 22, 2024
7bf6b1a
dev -> staging (#888)
0x666c6f Jan 23, 2024
7976bd1
Merge pull request #874 from fxhash/staging
louisholley Jan 25, 2024
83802fd
Revert "staging -> main (#872)"
louisholley Jan 25, 2024
7f0a0b6
Merge pull request #905 from fxhash/revert-874-staging
louisholley Jan 25, 2024
7291f57
Merge pull request #801 from fxhash/fix/eth-prng-precision
maerzhase Jan 29, 2024
72c4fa1
Merge branch 'main' into dev
louisholley Jan 29, 2024
b7478ca
Revert "Fix/eth prng precision"
maerzhase Jan 29, 2024
0b42830
Merge pull request #912 from fxhash/revert-801-fix/eth-prng-precision
maerzhase Jan 29, 2024
1040da3
Revert "Revert "Fix/eth prng precision""
maerzhase Jan 29, 2024
5ca91a8
Merge pull request #915 from fxhash/revert-912-revert-801-fix/eth-prn…
maerzhase Jan 29, 2024
a55541c
Dev -> staging (#911)
maerzhase Jan 29, 2024
729d4b7
Merge branch 'dev' into staging
louisholley Jan 29, 2024
45aa882
Merge pull request #916 from fxhash/staging
louisholley Jan 29, 2024
31f0807
[repo] feat: update viem to 1.21.4 for base (#967)
pradel Feb 8, 2024
054db1f
[packages/onchfs-js] migrate tsconfig to @fxhash/tsconfig
maerzhase Feb 9, 2024
8dbd1fd
Merge pull request #959 from fxhash/feat/tsconfig-package
maerzhase Feb 9, 2024
e281d86
dev -> staging (#971)
0x666c6f Feb 12, 2024
dec767c
staging -> main (#973)
0x666c6f Feb 12, 2024
13cddd4
Merge branch 'staging' of https://github.com/fxhash/monorepo into dev
0x666c6f Feb 12, 2024
9ea1634
Merge branch 'main' of https://github.com/fxhash/monorepo into staging
0x666c6f Feb 13, 2024
77f5c9c
Merge branch 'dev' of https://github.com/fxhash/monorepo into staging
0x666c6f Feb 13, 2024
73307f9
merge main
louisholley Feb 20, 2024
96b7217
sepolia + base onchfs (#1006)
louisholley Feb 20, 2024
894d053
Merge pull request #1026 from fxhash/dev
louisholley Feb 20, 2024
e23a49f
Refactor/packages names and eliminate dead code (#1025)
maerzhase Feb 21, 2024
dbbf788
Dev -> Staging (#1041)
louisholley Feb 22, 2024
e8821c5
Merge branch 'dev' into staging
louisholley Feb 26, 2024
d0738ed
Merge pull request #1042 from fxhash/staging
louisholley Feb 26, 2024
d9c3730
Merge pull request #1060 from fxhash/dev
louisholley Feb 29, 2024
f6263cf
[repo] fix: update prettier to 3.2.5 to produce valid JSON (#1115)
pradel Mar 18, 2024
57106a6
Merge branch 'staging' into dev
louisholley Mar 26, 2024
e0e3bde
dev -> staging (#1138)
louisholley Mar 26, 2024
36dea7b
Merge branch 'dev' into staging
louisholley Mar 26, 2024
494bb9e
staging -> main (#1139)
louisholley Mar 26, 2024
8170727
Merge branch 'main' into dev
louisholley Mar 26, 2024
efc7cf3
chore: viem wagmi upgrade (#1140)
0x666c6f Apr 2, 2024
f65e0b0
fix onchfs-tests package build
louisholley Apr 2, 2024
0025416
Merge branch 'dev' into chore/build-fixes
louisholley Apr 8, 2024
7314fa4
Merge pull request #1160 from fxhash/chore/build-fixes
louisholley Apr 8, 2024
fc42ffa
try all provided tezos rpcs before failing from the onchfs proxy reso…
louisholley Apr 16, 2024
69ce13d
add tezos service abstraction to simplify rpc shuffle/retry
louisholley Apr 17, 2024
7071a95
Merge branch 'dev' into feat/try-all-tez-rpcs-onchfs
louisholley Apr 23, 2024
c0ed28d
import js-sha3 for compatibility with esm consumers
louisholley Apr 23, 2024
9693d4b
remove duplicate shuffle definition
louisholley Apr 23, 2024
ef9fe3a
Merge pull request #1212 from fxhash/feat/try-all-tez-rpcs-onchfs
louisholley Apr 23, 2024
00b1880
dev -> staging (#1240)
maerzhase Apr 24, 2024
3e1b404
Merge branch 'dev' into staging
louisholley Apr 24, 2024
e89b326
Merge pull request #1241 from fxhash/staging
louisholley Apr 24, 2024
429821c
[repo] fix
pradel Apr 25, 2024
a263324
[repo] feat: upgrade onchfs to docusaurus v3 and react 18 (#1254)
pradel Apr 25, 2024
cf388ca
[repo] Merge branch 'dev' into feat/fix-website-dev
pradel Apr 25, 2024
9c1403e
[repo] some fixes
pradel Apr 26, 2024
97a7c3f
Merge pull request #1251 from fxhash/feat/fix-website-dev
maerzhase Apr 26, 2024
2db9992
Merge pull request #1229 from fxhash/feat/entangled-curated-page
maerzhase Jun 7, 2024
f647750
Merge pull request #1351 from fxhash/chore/staging-merge-10-jun-24
0x666c6f Jun 10, 2024
0467cba
Merge pull request #1350 from fxhash/dev
0x666c6f Jun 10, 2024
dba16d0
fix versions
maerzhase Jul 27, 2024
2714550
add syncpack; enfore exact in prod dependencies
maerzhase Jul 29, 2024
3a29930
enforce same versions of: react, connectkit, @types/react + @types/re…
maerzhase Jul 29, 2024
85942c5
ensure @types packages are in dev dependencies
maerzhase Jul 29, 2024
5324718
lint package.json files
maerzhase Jul 29, 2024
64a6a42
[repo] up viem
pradel Aug 12, 2024
d6135f7
Merge pull request #1525 from fxhash/feat/coinbase-smart-wallet-v1
pradel Aug 13, 2024
b1ccd1e
Merge pull request #1544 from fxhash/dev
louisholley Aug 14, 2024
2fc504e
Merge pull request #1545 from fxhash/staging
louisholley Aug 14, 2024
574cd71
Merge branch 'dev' into feat/wallets-v2
maerzhase Aug 20, 2024
7cbd634
bump @types/react to 18.3.3
maerzhase Aug 20, 2024
64183f6
fix onchfs-js module resolution
maerzhase Aug 20, 2024
7527b72
syncpack format + fix mismatches
maerzhase Aug 28, 2024
b60668f
update package.json files
maerzhase Sep 6, 2024
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
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,26 +271,28 @@ The ABNF specification for onchfs URIs, as defined in [RFC 5234](https://datatra
URI = "onchfs://" [ authority "/" ] cid [ "/" path ]
[ "?" query ] [ "#" fragment ]

; while the authority is blockchain-specific as different
; blockchains will have different strategies to identify
; its resources with URI, this provides a generic pattern
; for the authority as reference:
; the authority is based on the CAIP-2 & CAIP-10 specifications
; for identifying blockchains & blockchain accounts; terms have
; been adapted to fit to onchfs context

generic-authority = [ contract-address "." ] blockchain-name
[ ":" chainid ]
generic-authority = namespace [ ":" chain-id ]
[ ":" contract-address]

; this defines how the authority is constructed for the
; ethereum and tezos blockchains, currently supported

authority = authority-tez / authority-eth

authority-tez = [ tez-contract-addr "." ]
( "tezos" / "tez" / "xtz" )
[ ":" ( "mainnet" / "ghostnet" ) ]
authority-tez = "tezos"
[ ":" tez-chainid ]
[ ":" tez-contract-addr ]

authority-eth = [ eth-contract-addr "." ]
( "ethereum" / "eth" )
tez-chainid = "NetXdQprcVkpaWU" ; mainnet
/ "NetXnHfVqm9iesp" ; ghostnet

authority-eth = "eip155"
[ ":" eth-chainid ]
[ ":" eth-contract-addr ]

eth-chainid = 1*DIGIT
; ex: 1=mainnet, 5=goerli, 6=arbitrum
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Website

This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.

### Installation

Expand Down
4 changes: 2 additions & 2 deletions doc/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
}
2 changes: 1 addition & 1 deletion doc/docs/concepts/http-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ https://proxy-url.com/<goes-here>
━━━━━┻━━━━━
```

:::info URI<->Proxy URL compatibility
:::info[URI Proxy to URL compatibility]
Because of the design of its format, the _schema-specific part_ is fully compatible with URLs. Onchfs URIs also support URL path, search and fragment components, enabling as many use-cases as there are on the web for HTML documents. [Read more about the URI specification here](./uris)
:::

Expand Down
38 changes: 23 additions & 15 deletions doc/docs/concepts/uris.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Simply put, URIs are constructed as following:
onchfs://[<authority> /]<cid>[<path>][? <query>][# <fragment>]
```

- `authority`: the host of the resource (blockchain/contract). Optional and left out most often as implied by the context. Aligns on [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md) & [CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md) specs for identifying blockchains & accounts.
- `cid`: unique identifier of the root of the resource
- `path`: eventualy path inside the folder if the resource identified by the cid is a directory
- `query`: some query parameters to pass to the document to load
- `fragment`: anchor/arbitraty data to pass to the document to load

See at the bottom of the document for the [ABNF definition of onchfs uris](#abnf).

## Outside the protocol
Expand Down Expand Up @@ -64,7 +70,7 @@ Smart contracts provide a generic `get_inode_at(cid, paths[])` view which can re
onchfs://6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840
```

Point file object at `6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840` , where the context in which the URI was found defines the blockchain/network (for instance if a smart contract references this address, the resources will be found on the main file object smart contract of the ethereum mainnet)
Point file object at `6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840` , where the context in which the URI was found defines the blockchain/network (for instance if an ethereum smart contract references this address, the resources will be found on the main file object smart contract of the ethereum mainnet)

---

Expand All @@ -77,15 +83,15 @@ Point inode folder at `6db0...6840` , in its `folder` directory, in which `index
---

```
onchfs://ethereum:5/6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840
onchfs://eip155:5/6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840
```

Point file object at `6db0...6840` on the `ethereum` blockchain, goerli (`:5`) chain
Point file object at `6db0...6840` on the ethereum (`eip155`) blockchain, goerli (`:5`) chain

---

```
onchfs://68b75b4e8439a7099e53045bea850b3266e95906.eth/6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840
onchfs://eip155:1:68b75b4e8439a7099e53045bea850b3266e95906/6db0ff44176c6f1e9f471dc0c3f15194827d1129af94628a3a753c747f726840
```

Point file object `6db0...6840` on the contract `68b75b4e8439a7099e53045bea850b3266e95906` of the ethereum mainnet
Expand All @@ -98,26 +104,28 @@ The ABNF specification for onchfs URIs, as defined in [RFC 5234](https://datatra
URI = "onchfs://" [ authority "/" ] cid [ "/" path ]
[ "?" query ] [ "#" fragment ]

; while the authority is blockchain-specific as different
; blockchains will have different strategies to identify
; its resources with URI, this provides a generic pattern
; for the authority as reference:
; the authority is based on the CAIP-2 & CAIP-10 specifications
; for identifying blockchains & blockchain accounts; terms have
; been adapted to fit to onchfs context

generic-authority = [ contract-address "." ] blockchain-name
[ ":" chainid ]
generic-authority = namespace [ ":" chain-id ]
[ ":" contract-address]

; this defines how the authority is constructed for the
; ethereum and tezos blockchains, currently supported

authority = authority-tez / authority-eth

authority-tez = [ tez-contract-addr "." ]
( "tezos" / "tez" / "xtz" )
[ ":" ( "mainnet" / "ghostnet" ) ]
authority-tez = "tezos"
[ ":" tez-chainid ]
[ ":" tez-contract-addr ]

tez-chainid = "NetXdQprcVkpaWU" ; mainnet
/ "NetXnHfVqm9iesp" ; ghostnet

authority-eth = [ eth-contract-addr "." ]
( "ethereum" / "eth" )
authority-eth = "eip155"
[ ":" eth-chainid ]
[ ":" eth-contract-addr ]

eth-chainid = 1*DIGIT
; ex: 1=mainnet, 5=goerli, 6=arbitrum
Expand Down
10 changes: 5 additions & 5 deletions doc/docs/use-cases/generative-art.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ While previous projects leave an opiniated footprint on how code data is handled
├── style.css
├── main.js
└── libs/
├── fxhash.js
├── fxhash.min.js
├── colors.js
└── processing.min.js
```
Expand All @@ -131,7 +131,7 @@ While previous projects leave an opiniated footprint on how code data is handled
```html
<html>
<head>
<script src="./libs/fxhash.js"></script>
<script src="./libs/fxhash.min.js"></script>
<script src="./libs/colors.js"></script>
<script src="./libs/processing.min.js"></script>
<script src="./main.js"></script>
Expand All @@ -157,7 +157,7 @@ Onchfs also handles libraries elegantly, and so naturally by its design. Looking
├── style.css -> 0xaeaeaed2...
├── main.js -> 0xa2a2a2a9...
└── libs/ -> 0xd5d5d5d5...
├── fxhash.js -> 0xc6c6c6c6...
├── fxhash.min.js -> 0xc6c6c6c6...
├── colors.js -> 0xabcdef12...
└── processing.min.js -> 0x01010101...

Expand All @@ -169,7 +169,7 @@ inscriptions:
+ ...
+ DIRECTORY libs (0xd5d5d5d5...)
{
"fxhash.js": 0xc6c6c6c6...,
"fxhash.min.js": 0xc6c6c6c6...,
"colors.js": 0xabcdef12...,
"processing.min.js": 0x01010101...,
}
Expand All @@ -191,7 +191,7 @@ inscriptions:
+ ...
+ DIRECTORY libs (0xd5d5d5d5...)
{
"fxhash.js": 0xc6c6c6c6...,
"fxhash.min.js": 0xc6c6c6c6...,
"colors.js": 0xabcdef12...,
"processing.min.js": 0x01010101..., <- points to existing resource
}
Expand Down
154 changes: 0 additions & 154 deletions doc/docusaurus.config.js

This file was deleted.

Loading