diff --git a/examples/README.md b/examples/README.md
new file mode 100644
index 0000000..d0d4bae
--- /dev/null
+++ b/examples/README.md
@@ -0,0 +1,34 @@
+# Examples
+
+The `examples/` directory is a growing & living folder, and open for contributions.
+
+
+- Epoch
+ - [ ] Fetching Epoch
+ - [ ] Watching Epoch
+- Clients
+ - [ ] Public (w/ HTTP, WebSocket, Fallback)
+ - [ ] Wallet – JSON-RPC Account (`window.fluent`)
+ - [ ] Wallet - JSON-RPC Account (WalletConnect v2)
+- Contracts
+ - [ ] Deploying
+ - [ ] Reading
+ - [ ] Writing
+ - [ ] Multicall
+ - [ ] Call
+ - [ ] Events
+ - [ ] Simulating Method Calls
+- Filters & Logs
+ - [ ] Blocks
+ - [ ] Pending Transactions
+ - [ ] Events
+- Signatures
+ - [ ] Sign typed data
+ - [ ] + verify/recover address
+ - [ ] Sign message (+ recover message address)
+ - [ ] + verify/recover address
+- Transactions
+ - [ ] Fetching Transactions & Receipts
+ - [ ] Transaction Types (EIP-1559, Legacy, etc)
+ - [ ] Simulating Transactions
+ - [ ] Sending Transactions (& Waiting for Receipt)
diff --git a/examples/_template/README.md b/examples/_template/README.md
new file mode 100644
index 0000000..c5f700b
--- /dev/null
+++ b/examples/_template/README.md
@@ -0,0 +1,3 @@
+# _REPLACE ME_ Example
+
+[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github.com/iosh/cive/tree/main/examples/PATH/TO/EXAMPLE/DIR)
\ No newline at end of file
diff --git a/examples/_template/index.html b/examples/_template/index.html
new file mode 100644
index 0000000..2db1827
--- /dev/null
+++ b/examples/_template/index.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+ _REPLACE ME_ Example
+ Loading...
+
+
+
diff --git a/examples/_template/index.ts b/examples/_template/index.ts
new file mode 100644
index 0000000..46daba8
--- /dev/null
+++ b/examples/_template/index.ts
@@ -0,0 +1,11 @@
+import { http, createPublicClient } from 'cive'
+import { mainnet } from 'cive/chains'
+
+const client = createPublicClient({
+ chain: mainnet,
+ transport: http(),
+})
+
+const epochNumber = await client.getEpochNumber()
+
+export default [`epoch number: ${epochNumber}`]
diff --git a/examples/_template/package.json b/examples/_template/package.json
new file mode 100644
index 0000000..4ce758e
--- /dev/null
+++ b/examples/_template/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "example-template",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "vite"
+ },
+ "dependencies": {
+ "cive": "latest"
+ },
+ "devDependencies": {
+ "typescript": "^5.0.3",
+ "vite": "^5.4.4"
+ }
+}
diff --git a/examples/_template/tsconfig.json b/examples/_template/tsconfig.json
new file mode 100644
index 0000000..eac16d1
--- /dev/null
+++ b/examples/_template/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "target": "ESNext",
+ "useDefineForClassFields": true,
+ "module": "ESNext",
+ "lib": ["ESNext", "DOM"],
+ "moduleResolution": "Node",
+ "strict": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "esModuleInterop": true,
+ "noEmit": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noImplicitReturns": true,
+ "skipLibCheck": true
+ },
+ "include": ["src"]
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ab3b372..7a568aa 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -47,6 +47,19 @@ importers:
specifier: ^3.23.8
version: 3.23.8
+ examples/_template:
+ dependencies:
+ cive:
+ specifier: latest
+ version: 0.3.1(typescript@5.6.2)(zod@3.23.8)
+ devDependencies:
+ typescript:
+ specifier: ^5.0.3
+ version: 5.6.2
+ vite:
+ specifier: ^5.4.4
+ version: 5.4.4(@types/node@20.14.10)
+
site:
dependencies:
'@types/react':
@@ -66,7 +79,7 @@ importers:
version: 5.5.4
vocs:
specifier: latest
- version: 1.0.0-alpha.55(@types/node@20.14.10)(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.18.0)(typescript@5.5.4)
+ version: 1.0.0-alpha.55(@types/node@20.14.10)(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.21.3)(typescript@5.5.4)
src:
dependencies:
@@ -84,10 +97,10 @@ importers:
version: 1.3.0
abitype:
specifier: 0.0.0-canary-20240628164201
- version: 0.0.0-canary-20240628164201(patch_hash=yiz5fjudrr2lf4j276yxiakvp4)(typescript@5.5.4)(zod@3.23.8)
+ version: 0.0.0-canary-20240628164201(patch_hash=yiz5fjudrr2lf4j276yxiakvp4)(typescript@5.6.2)(zod@3.23.8)
viem:
specifier: ^2.20.0
- version: 2.20.0(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.4)(zod@3.23.8)
+ version: 2.20.0(bufferutil@4.0.8)(typescript@5.6.2)(utf-8-validate@6.0.4)(zod@3.23.8)
test:
dependencies:
@@ -1104,83 +1117,83 @@ packages:
rollup:
optional: true
- '@rollup/rollup-android-arm-eabi@4.18.0':
- resolution: {integrity: sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==}
+ '@rollup/rollup-android-arm-eabi@4.21.3':
+ resolution: {integrity: sha512-MmKSfaB9GX+zXl6E8z4koOr/xU63AMVleLEa64v7R0QF/ZloMs5vcD1sHgM64GXXS1csaJutG+ddtzcueI/BLg==}
cpu: [arm]
os: [android]
- '@rollup/rollup-android-arm64@4.18.0':
- resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==}
+ '@rollup/rollup-android-arm64@4.21.3':
+ resolution: {integrity: sha512-zrt8ecH07PE3sB4jPOggweBjJMzI1JG5xI2DIsUbkA+7K+Gkjys6eV7i9pOenNSDJH3eOr/jLb/PzqtmdwDq5g==}
cpu: [arm64]
os: [android]
- '@rollup/rollup-darwin-arm64@4.18.0':
- resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==}
+ '@rollup/rollup-darwin-arm64@4.21.3':
+ resolution: {integrity: sha512-P0UxIOrKNBFTQaXTxOH4RxuEBVCgEA5UTNV6Yz7z9QHnUJ7eLX9reOd/NYMO3+XZO2cco19mXTxDMXxit4R/eQ==}
cpu: [arm64]
os: [darwin]
- '@rollup/rollup-darwin-x64@4.18.0':
- resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==}
+ '@rollup/rollup-darwin-x64@4.21.3':
+ resolution: {integrity: sha512-L1M0vKGO5ASKntqtsFEjTq/fD91vAqnzeaF6sfNAy55aD+Hi2pBI5DKwCO+UNDQHWsDViJLqshxOahXyLSh3EA==}
cpu: [x64]
os: [darwin]
- '@rollup/rollup-linux-arm-gnueabihf@4.18.0':
- resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==}
+ '@rollup/rollup-linux-arm-gnueabihf@4.21.3':
+ resolution: {integrity: sha512-btVgIsCjuYFKUjopPoWiDqmoUXQDiW2A4C3Mtmp5vACm7/GnyuprqIDPNczeyR5W8rTXEbkmrJux7cJmD99D2g==}
cpu: [arm]
os: [linux]
- '@rollup/rollup-linux-arm-musleabihf@4.18.0':
- resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==}
+ '@rollup/rollup-linux-arm-musleabihf@4.21.3':
+ resolution: {integrity: sha512-zmjbSphplZlau6ZTkxd3+NMtE4UKVy7U4aVFMmHcgO5CUbw17ZP6QCgyxhzGaU/wFFdTfiojjbLG3/0p9HhAqA==}
cpu: [arm]
os: [linux]
- '@rollup/rollup-linux-arm64-gnu@4.18.0':
- resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==}
+ '@rollup/rollup-linux-arm64-gnu@4.21.3':
+ resolution: {integrity: sha512-nSZfcZtAnQPRZmUkUQwZq2OjQciR6tEoJaZVFvLHsj0MF6QhNMg0fQ6mUOsiCUpTqxTx0/O6gX0V/nYc7LrgPw==}
cpu: [arm64]
os: [linux]
- '@rollup/rollup-linux-arm64-musl@4.18.0':
- resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==}
+ '@rollup/rollup-linux-arm64-musl@4.21.3':
+ resolution: {integrity: sha512-MnvSPGO8KJXIMGlQDYfvYS3IosFN2rKsvxRpPO2l2cum+Z3exiExLwVU+GExL96pn8IP+GdH8Tz70EpBhO0sIQ==}
cpu: [arm64]
os: [linux]
- '@rollup/rollup-linux-powerpc64le-gnu@4.18.0':
- resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==}
+ '@rollup/rollup-linux-powerpc64le-gnu@4.21.3':
+ resolution: {integrity: sha512-+W+p/9QNDr2vE2AXU0qIy0qQE75E8RTwTwgqS2G5CRQ11vzq0tbnfBd6brWhS9bCRjAjepJe2fvvkvS3dno+iw==}
cpu: [ppc64]
os: [linux]
- '@rollup/rollup-linux-riscv64-gnu@4.18.0':
- resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==}
+ '@rollup/rollup-linux-riscv64-gnu@4.21.3':
+ resolution: {integrity: sha512-yXH6K6KfqGXaxHrtr+Uoy+JpNlUlI46BKVyonGiaD74ravdnF9BUNC+vV+SIuB96hUMGShhKV693rF9QDfO6nQ==}
cpu: [riscv64]
os: [linux]
- '@rollup/rollup-linux-s390x-gnu@4.18.0':
- resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==}
+ '@rollup/rollup-linux-s390x-gnu@4.21.3':
+ resolution: {integrity: sha512-R8cwY9wcnApN/KDYWTH4gV/ypvy9yZUHlbJvfaiXSB48JO3KpwSpjOGqO4jnGkLDSk1hgjYkTbTt6Q7uvPf8eg==}
cpu: [s390x]
os: [linux]
- '@rollup/rollup-linux-x64-gnu@4.18.0':
- resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==}
+ '@rollup/rollup-linux-x64-gnu@4.21.3':
+ resolution: {integrity: sha512-kZPbX/NOPh0vhS5sI+dR8L1bU2cSO9FgxwM8r7wHzGydzfSjLRCFAT87GR5U9scj2rhzN3JPYVC7NoBbl4FZ0g==}
cpu: [x64]
os: [linux]
- '@rollup/rollup-linux-x64-musl@4.18.0':
- resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==}
+ '@rollup/rollup-linux-x64-musl@4.21.3':
+ resolution: {integrity: sha512-S0Yq+xA1VEH66uiMNhijsWAafffydd2X5b77eLHfRmfLsRSpbiAWiRHV6DEpz6aOToPsgid7TI9rGd6zB1rhbg==}
cpu: [x64]
os: [linux]
- '@rollup/rollup-win32-arm64-msvc@4.18.0':
- resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==}
+ '@rollup/rollup-win32-arm64-msvc@4.21.3':
+ resolution: {integrity: sha512-9isNzeL34yquCPyerog+IMCNxKR8XYmGd0tHSV+OVx0TmE0aJOo9uw4fZfUuk2qxobP5sug6vNdZR6u7Mw7Q+Q==}
cpu: [arm64]
os: [win32]
- '@rollup/rollup-win32-ia32-msvc@4.18.0':
- resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==}
+ '@rollup/rollup-win32-ia32-msvc@4.21.3':
+ resolution: {integrity: sha512-nMIdKnfZfzn1Vsk+RuOvl43ONTZXoAPUUxgcU0tXooqg4YrAqzfKzVenqqk2g5efWh46/D28cKFrOzDSW28gTA==}
cpu: [ia32]
os: [win32]
- '@rollup/rollup-win32-x64-msvc@4.18.0':
- resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==}
+ '@rollup/rollup-win32-x64-msvc@4.21.3':
+ resolution: {integrity: sha512-fOvu7PCQjAj4eWDEuD8Xz5gpzFqXzGlxHZozHP4b9Jxv9APtdxL6STqztDzMLuRXEc4UpXGGhx029Xgm91QBeA==}
cpu: [x64]
os: [win32]
@@ -1616,6 +1629,9 @@ packages:
cipher-base@1.0.4:
resolution: {integrity: sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==}
+ cive@0.3.1:
+ resolution: {integrity: sha512-mtV5EloFyJNlCkPKyHUj1ZxY38Ke0a2BtO0sCoARU1BViRxmJpYpw8o6woNYp4PPw8Nzn1mqxQhVoTeh5OtaIQ==}
+
cli-cursor@4.0.0:
resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -2895,8 +2911,8 @@ packages:
resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==}
engines: {node: ^10 || ^12 || >=14}
- postcss@8.4.39:
- resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==}
+ postcss@8.4.45:
+ resolution: {integrity: sha512-7KTLTdzdZZYscUc65XmjFiB73vBhBfbPztCYdUNvlaso9PrzjzcmjqBPR0lNGkcVlcO4BjiO5rK/qNz+XAen1Q==}
engines: {node: ^10 || ^12 || >=14}
preferred-pm@3.1.4:
@@ -3096,8 +3112,8 @@ packages:
resolution: {integrity: sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==}
hasBin: true
- rollup@4.18.0:
- resolution: {integrity: sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==}
+ rollup@4.21.3:
+ resolution: {integrity: sha512-7sqRtBNnEbcBtMeRVc6VRsJMmpI+JU1z9VTvW8D4gXIYQFz0aLcsE6rRkyghZkLfEgUZgVvOG7A5CVz/VW5GIA==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
@@ -3397,6 +3413,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ typescript@5.6.2:
+ resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
ua-parser-js@1.0.38:
resolution: {integrity: sha512-Aq5ppTOfvrCMgAPneW1HfWj66Xi7XL+/mIy996R1/CLS/rcyJQm6QZdsKrUeivDFQ+Oc9Wyuwor8Ze8peEoUoQ==}
@@ -3515,8 +3536,8 @@ packages:
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
- vite@5.3.3:
- resolution: {integrity: sha512-NPQdeCU0Dv2z5fu+ULotpuq5yfCS1BzKUIPhNbP3YBfAMGJXbt2nS+sbTFu+qchaqWTD+H3JK++nRwr6XIcp6A==}
+ vite@5.4.4:
+ resolution: {integrity: sha512-RHFCkULitycHVTtelJ6jQLd+KSAAzOgEYorV32R2q++M6COBjKJR6BxqClwp5sf0XaBDjVMuJ9wnNfyAJwjMkA==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@@ -3524,6 +3545,7 @@ packages:
less: '*'
lightningcss: ^1.21.0
sass: '*'
+ sass-embedded: '*'
stylus: '*'
sugarss: '*'
terser: ^5.4.0
@@ -3536,6 +3558,8 @@ packages:
optional: true
sass:
optional: true
+ sass-embedded:
+ optional: true
stylus:
optional: true
sugarss:
@@ -4287,11 +4311,11 @@ snapshots:
'@types/react': 18.3.4
react: 18.3.1
- '@mdx-js/rollup@3.0.1(rollup@4.18.0)':
+ '@mdx-js/rollup@3.0.1(rollup@4.21.3)':
dependencies:
'@mdx-js/mdx': 3.0.1
- '@rollup/pluginutils': 5.1.0(rollup@4.18.0)
- rollup: 4.18.0
+ '@rollup/pluginutils': 5.1.0(rollup@4.21.3)
+ rollup: 4.21.3
source-map: 0.7.4
vfile: 6.0.1
transitivePeerDependencies:
@@ -4644,60 +4668,60 @@ snapshots:
'@remix-run/router@1.17.1': {}
- '@rollup/pluginutils@5.1.0(rollup@4.18.0)':
+ '@rollup/pluginutils@5.1.0(rollup@4.21.3)':
dependencies:
'@types/estree': 1.0.5
estree-walker: 2.0.2
picomatch: 2.3.1
optionalDependencies:
- rollup: 4.18.0
+ rollup: 4.21.3
- '@rollup/rollup-android-arm-eabi@4.18.0':
+ '@rollup/rollup-android-arm-eabi@4.21.3':
optional: true
- '@rollup/rollup-android-arm64@4.18.0':
+ '@rollup/rollup-android-arm64@4.21.3':
optional: true
- '@rollup/rollup-darwin-arm64@4.18.0':
+ '@rollup/rollup-darwin-arm64@4.21.3':
optional: true
- '@rollup/rollup-darwin-x64@4.18.0':
+ '@rollup/rollup-darwin-x64@4.21.3':
optional: true
- '@rollup/rollup-linux-arm-gnueabihf@4.18.0':
+ '@rollup/rollup-linux-arm-gnueabihf@4.21.3':
optional: true
- '@rollup/rollup-linux-arm-musleabihf@4.18.0':
+ '@rollup/rollup-linux-arm-musleabihf@4.21.3':
optional: true
- '@rollup/rollup-linux-arm64-gnu@4.18.0':
+ '@rollup/rollup-linux-arm64-gnu@4.21.3':
optional: true
- '@rollup/rollup-linux-arm64-musl@4.18.0':
+ '@rollup/rollup-linux-arm64-musl@4.21.3':
optional: true
- '@rollup/rollup-linux-powerpc64le-gnu@4.18.0':
+ '@rollup/rollup-linux-powerpc64le-gnu@4.21.3':
optional: true
- '@rollup/rollup-linux-riscv64-gnu@4.18.0':
+ '@rollup/rollup-linux-riscv64-gnu@4.21.3':
optional: true
- '@rollup/rollup-linux-s390x-gnu@4.18.0':
+ '@rollup/rollup-linux-s390x-gnu@4.21.3':
optional: true
- '@rollup/rollup-linux-x64-gnu@4.18.0':
+ '@rollup/rollup-linux-x64-gnu@4.21.3':
optional: true
- '@rollup/rollup-linux-x64-musl@4.18.0':
+ '@rollup/rollup-linux-x64-musl@4.21.3':
optional: true
- '@rollup/rollup-win32-arm64-msvc@4.18.0':
+ '@rollup/rollup-win32-arm64-msvc@4.21.3':
optional: true
- '@rollup/rollup-win32-ia32-msvc@4.18.0':
+ '@rollup/rollup-win32-ia32-msvc@4.21.3':
optional: true
- '@rollup/rollup-win32-x64-msvc@4.18.0':
+ '@rollup/rollup-win32-x64-msvc@4.21.3':
optional: true
'@scure/base@1.1.7': {}
@@ -4888,7 +4912,7 @@ snapshots:
lodash: 4.17.21
mlly: 1.7.1
outdent: 0.8.0
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
vite-node: 1.6.0(@types/node@20.14.10)
transitivePeerDependencies:
- '@types/node'
@@ -4896,6 +4920,7 @@ snapshots:
- less
- lightningcss
- sass
+ - sass-embedded
- stylus
- sugarss
- supports-color
@@ -4903,33 +4928,34 @@ snapshots:
'@vanilla-extract/private@1.0.5': {}
- '@vanilla-extract/vite-plugin@3.9.5(@types/node@20.14.10)(vite@5.3.3(@types/node@20.14.10))':
+ '@vanilla-extract/vite-plugin@3.9.5(@types/node@20.14.10)(vite@5.4.4(@types/node@20.14.10))':
dependencies:
'@vanilla-extract/integration': 6.5.0(@types/node@20.14.10)
outdent: 0.8.0
postcss: 8.4.38
postcss-load-config: 4.0.2(postcss@8.4.38)
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
- less
- lightningcss
- sass
+ - sass-embedded
- stylus
- sugarss
- supports-color
- terser
- ts-node
- '@vitejs/plugin-react@4.3.1(vite@5.3.3(@types/node@20.14.10))':
+ '@vitejs/plugin-react@4.3.1(vite@5.4.4(@types/node@20.14.10))':
dependencies:
'@babel/core': 7.24.7
'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.7)
'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.7)
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
transitivePeerDependencies:
- supports-color
@@ -4965,14 +4991,14 @@ snapshots:
dependencies:
'@ethersproject/logger': 5.7.0
- abitype@0.0.0-canary-20240628164201(patch_hash=yiz5fjudrr2lf4j276yxiakvp4)(typescript@5.5.4)(zod@3.23.8):
+ abitype@0.0.0-canary-20240628164201(patch_hash=yiz5fjudrr2lf4j276yxiakvp4)(typescript@5.6.2)(zod@3.23.8):
optionalDependencies:
- typescript: 5.5.4
+ typescript: 5.6.2
zod: 3.23.8
- abitype@1.0.5(typescript@5.5.4)(zod@3.23.8):
+ abitype@1.0.5(typescript@5.6.2)(zod@3.23.8):
optionalDependencies:
- typescript: 5.5.4
+ typescript: 5.6.2
zod: 3.23.8
accepts@1.3.8:
@@ -5233,6 +5259,20 @@ snapshots:
inherits: 2.0.4
safe-buffer: 5.2.1
+ cive@0.3.1(typescript@5.6.2)(zod@3.23.8):
+ dependencies:
+ '@noble/curves': 1.4.2
+ '@noble/hashes': 1.4.0
+ '@scure/bip32': 1.4.0
+ '@scure/bip39': 1.3.0
+ abitype: 0.0.0-canary-20240628164201(patch_hash=yiz5fjudrr2lf4j276yxiakvp4)(typescript@5.6.2)(zod@3.23.8)
+ viem: 2.20.0(bufferutil@4.0.8)(typescript@5.6.2)(utf-8-validate@6.0.4)(zod@3.23.8)
+ transitivePeerDependencies:
+ - bufferutil
+ - typescript
+ - utf-8-validate
+ - zod
+
cli-cursor@4.0.0:
dependencies:
restore-cursor: 4.0.0
@@ -6879,7 +6919,7 @@ snapshots:
picocolors: 1.0.1
source-map-js: 1.2.0
- postcss@8.4.39:
+ postcss@8.4.45:
dependencies:
nanoid: 3.3.7
picocolors: 1.0.1
@@ -7140,26 +7180,26 @@ snapshots:
dependencies:
bn.js: 5.2.1
- rollup@4.18.0:
+ rollup@4.21.3:
dependencies:
'@types/estree': 1.0.5
optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.18.0
- '@rollup/rollup-android-arm64': 4.18.0
- '@rollup/rollup-darwin-arm64': 4.18.0
- '@rollup/rollup-darwin-x64': 4.18.0
- '@rollup/rollup-linux-arm-gnueabihf': 4.18.0
- '@rollup/rollup-linux-arm-musleabihf': 4.18.0
- '@rollup/rollup-linux-arm64-gnu': 4.18.0
- '@rollup/rollup-linux-arm64-musl': 4.18.0
- '@rollup/rollup-linux-powerpc64le-gnu': 4.18.0
- '@rollup/rollup-linux-riscv64-gnu': 4.18.0
- '@rollup/rollup-linux-s390x-gnu': 4.18.0
- '@rollup/rollup-linux-x64-gnu': 4.18.0
- '@rollup/rollup-linux-x64-musl': 4.18.0
- '@rollup/rollup-win32-arm64-msvc': 4.18.0
- '@rollup/rollup-win32-ia32-msvc': 4.18.0
- '@rollup/rollup-win32-x64-msvc': 4.18.0
+ '@rollup/rollup-android-arm-eabi': 4.21.3
+ '@rollup/rollup-android-arm64': 4.21.3
+ '@rollup/rollup-darwin-arm64': 4.21.3
+ '@rollup/rollup-darwin-x64': 4.21.3
+ '@rollup/rollup-linux-arm-gnueabihf': 4.21.3
+ '@rollup/rollup-linux-arm-musleabihf': 4.21.3
+ '@rollup/rollup-linux-arm64-gnu': 4.21.3
+ '@rollup/rollup-linux-arm64-musl': 4.21.3
+ '@rollup/rollup-linux-powerpc64le-gnu': 4.21.3
+ '@rollup/rollup-linux-riscv64-gnu': 4.21.3
+ '@rollup/rollup-linux-s390x-gnu': 4.21.3
+ '@rollup/rollup-linux-x64-gnu': 4.21.3
+ '@rollup/rollup-linux-x64-musl': 4.21.3
+ '@rollup/rollup-win32-arm64-msvc': 4.21.3
+ '@rollup/rollup-win32-ia32-msvc': 4.21.3
+ '@rollup/rollup-win32-x64-msvc': 4.21.3
fsevents: 2.3.3
run-parallel@1.2.0:
@@ -7498,6 +7538,8 @@ snapshots:
typescript@5.5.4: {}
+ typescript@5.6.2: {}
+
ua-parser-js@1.0.38: {}
ufo@1.5.3: {}
@@ -7621,19 +7663,19 @@ snapshots:
unist-util-stringify-position: 4.0.0
vfile-message: 4.0.2
- viem@2.20.0(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.4)(zod@3.23.8):
+ viem@2.20.0(bufferutil@4.0.8)(typescript@5.6.2)(utf-8-validate@6.0.4)(zod@3.23.8):
dependencies:
'@adraffy/ens-normalize': 1.10.0
'@noble/curves': 1.4.0
'@noble/hashes': 1.4.0
'@scure/bip32': 1.4.0
'@scure/bip39': 1.3.0
- abitype: 1.0.5(typescript@5.5.4)(zod@3.23.8)
+ abitype: 1.0.5(typescript@5.6.2)(zod@3.23.8)
isows: 1.0.4(ws@8.17.1(bufferutil@4.0.8)(utf-8-validate@6.0.4))
webauthn-p256: 0.0.5
ws: 8.17.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)
optionalDependencies:
- typescript: 5.5.4
+ typescript: 5.6.2
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -7645,12 +7687,13 @@ snapshots:
debug: 4.3.5
pathe: 1.1.2
picocolors: 1.0.1
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
transitivePeerDependencies:
- '@types/node'
- less
- lightningcss
- sass
+ - sass-embedded
- stylus
- sugarss
- supports-color
@@ -7662,22 +7705,23 @@ snapshots:
debug: 4.3.5
pathe: 1.1.2
picocolors: 1.0.1
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
transitivePeerDependencies:
- '@types/node'
- less
- lightningcss
- sass
+ - sass-embedded
- stylus
- sugarss
- supports-color
- terser
- vite@5.3.3(@types/node@20.14.10):
+ vite@5.4.4(@types/node@20.14.10):
dependencies:
esbuild: 0.21.5
- postcss: 8.4.39
- rollup: 4.18.0
+ postcss: 8.4.45
+ rollup: 4.21.3
optionalDependencies:
'@types/node': 20.14.10
fsevents: 2.3.3
@@ -7699,7 +7743,7 @@ snapshots:
std-env: 3.7.0
tinybench: 2.8.0
tinypool: 1.0.0
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
vite-node: 2.0.0(@types/node@20.14.10)
why-is-node-running: 2.3.0
optionalDependencies:
@@ -7708,17 +7752,18 @@ snapshots:
- less
- lightningcss
- sass
+ - sass-embedded
- stylus
- sugarss
- supports-color
- terser
- vocs@1.0.0-alpha.55(@types/node@20.14.10)(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.18.0)(typescript@5.5.4):
+ vocs@1.0.0-alpha.55(@types/node@20.14.10)(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.21.3)(typescript@5.5.4):
dependencies:
'@floating-ui/react': 0.26.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@hono/node-server': 1.12.0
'@mdx-js/react': 3.0.1(@types/react@18.3.4)(react@18.3.1)
- '@mdx-js/rollup': 3.0.1(rollup@4.18.0)
+ '@mdx-js/rollup': 3.0.1(rollup@4.21.3)
'@noble/hashes': 1.4.0
'@radix-ui/colors': 3.0.0
'@radix-ui/react-accordion': 1.2.0(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -7733,8 +7778,8 @@ snapshots:
'@shikijs/twoslash': 1.10.3(typescript@5.5.4)
'@vanilla-extract/css': 1.15.3
'@vanilla-extract/dynamic': 2.1.1
- '@vanilla-extract/vite-plugin': 3.9.5(@types/node@20.14.10)(vite@5.3.3(@types/node@20.14.10))
- '@vitejs/plugin-react': 4.3.1(vite@5.3.3(@types/node@20.14.10))
+ '@vanilla-extract/vite-plugin': 3.9.5(@types/node@20.14.10)(vite@5.4.4(@types/node@20.14.10))
+ '@vitejs/plugin-react': 4.3.1(vite@5.4.4(@types/node@20.14.10))
autoprefixer: 10.4.19(postcss@8.4.38)
cac: 6.7.14
chroma-js: 2.4.2
@@ -7777,7 +7822,7 @@ snapshots:
ua-parser-js: 1.0.38
unified: 11.0.5
unist-util-visit: 5.0.0
- vite: 5.3.3(@types/node@20.14.10)
+ vite: 5.4.4(@types/node@20.14.10)
transitivePeerDependencies:
- '@types/node'
- '@types/react'
@@ -7787,6 +7832,7 @@ snapshots:
- lightningcss
- rollup
- sass
+ - sass-embedded
- stylus
- sugarss
- supports-color
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 61e12d8..4ef3425 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,4 +1,5 @@
packages:
+ - 'examples/*'
- "src"
- "test"
- "site"
diff --git a/site/vocs.config.ts b/site/vocs.config.ts
index 30aa191..f448752 100644
--- a/site/vocs.config.ts
+++ b/site/vocs.config.ts
@@ -5,7 +5,13 @@ export default defineConfig({
baseUrl: 'https://cive.zyx.ee',
titleTemplate: '%s · Cive',
description: 'Build Conflux core space apps with Cive',
- topNav: [{ text: 'Docs', link: '/docs/getting-started', match: '/docs' }],
+ topNav: [
+ { text: 'Docs', link: '/docs/getting-started', match: '/docs' },
+ {
+ text: 'Examples',
+ link: 'https://github.com/iosh/cive/tree/main/examples',
+ },
+ ],
sidebar: {
'/docs/': [
{