Skip to content

Commit 8a10563

Browse files
author
Travis Vachon
authored
Merge branch 'main' into feat/referral-program
2 parents e1bc9f6 + 5af26ab commit 8a10563

File tree

9 files changed

+36
-13
lines changed

9 files changed

+36
-13
lines changed

.env.tpl

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# set these to your upload API service URL and the DID your service is using as its service DID
22
NEXT_PUBLIC_W3UP_SERVICE_URL=https://staging.up.web3.storage
3+
NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://staging.up.web3.storage/receipt/
34
NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:staging.web3.storage
45
NEXT_PUBLIC_W3UP_PROVIDER=did:web:staging.web3.storage
56

.github/workflows/deploy-storacha.yml

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
# add vars configuring console frontend to use staging w3up as backend
3939
echo "NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:staging.web3.storage" >> .env
4040
echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://staging.up.storacha.network" >> .env
41+
echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://staging.up.storacha.network/receipt/" >> .env
4142
echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:staging.web3.storage" >> .env
4243
echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1NzhdvF6A5ufQX5vKNZuRhie" >> .env
4344
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC" >> .env
@@ -130,6 +131,7 @@ jobs:
130131
# add vars configuring console frontend to use staging w3up as backend
131132
echo "NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:web3.storage" >> .env
132133
echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.storacha.network" >> .env
134+
echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://up.storacha.network/receipt/" >> .env
133135
echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:web3.storage" >> .env
134136
echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCJ1qF6A5ufQX5vM5DWg4rA" >> .env
135137
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_live_51LO87hF6A5ufQX5vQTO5BHyz8y9ybJp4kg1GsBjYuqwluuwtQTkbeZzkoQweFQDlv7JaGjuIdUWAyuwXp3tmCfsM005lJK9aS8" >> .env

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
# add vars configuring console frontend to use staging w3up as backend
3939
echo "NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:staging.web3.storage" >> .env
4040
echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://staging.up.web3.storage" >> .env
41+
echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://staging.up.web3.storage/receipt/" >> .env
4142
echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:staging.web3.storage" >> .env
4243
echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1NzhdvF6A5ufQX5vKNZuRhie" >> .env
4344
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC" >> .env
@@ -125,6 +126,7 @@ jobs:
125126
# add vars configuring console frontend to use staging w3up as backend
126127
echo "NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:web3.storage" >> .env
127128
echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.web3.storage" >> .env
129+
echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://up.web3.storage/receipt/" >> .env
128130
echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:web3.storage" >> .env
129131
echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCJ1qF6A5ufQX5vM5DWg4rA" >> .env
130132
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_live_51LO87hF6A5ufQX5vQTO5BHyz8y9ybJp4kg1GsBjYuqwluuwtQTkbeZzkoQweFQDlv7JaGjuIdUWAyuwXp3tmCfsM005lJK9aS8" >> .env

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.15.2](https://github.com/storacha/console/compare/w3console-v1.15.1...w3console-v1.15.2) (2024-11-25)
4+
5+
6+
### Bug Fixes
7+
8+
* add missing receiptsEndpoint to W3UIProvider ([#144](https://github.com/storacha/console/issues/144)) ([eaa7e50](https://github.com/storacha/console/commit/eaa7e50386635723751af1fc7cb4cf4ff5cf6abc))
9+
310
## [1.15.1](https://github.com/storacha/console/compare/w3console-v1.15.0...w3console-v1.15.1) (2024-10-22)
411

512

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ By default, this app connects to `https://up.web3.storage`, and uses `did:web:we
2626
NEXT_PUBLIC_W3UP_SERVICE_URL=https://your.w3up.service
2727
NEXT_PUBLIC_W3UP_SERVICE_DID=did:your-service-did
2828
NEXT_PUBLIC_W3UP_PROVIDER=did:your-provider-did
29+
NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://your.w3up.service/receipt/
2930
```
3031

3132
An example `.env.local` file can be found in `.env.tpl`.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "w3console",
3-
"version": "1.15.1",
3+
"version": "1.15.2",
44
"private": true,
55
"packageManager": "[email protected]+sha256.7a4261e50d9a44d9240baf6c9d6e10089dcf0a79d0007f2a26985a6927324177",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
"@ucanto/core": "^10.0.1",
2424
"@ucanto/interface": "^10.0.1",
2525
"@ucanto/transport": "^9.1.1",
26-
"@w3ui/react": "2.5.0",
26+
"@w3ui/react": "2.5.1",
2727
"@web3-storage/access": "^19.0.0",
2828
"@web3-storage/capabilities": "^17.3.0",
2929
"@web3-storage/content-claims": "^3.2.1",

pnpm-lock.yaml

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/W3UIProvider.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
'use client'
22
import { Provider } from '@w3ui/react'
3-
import { serviceConnection, servicePrincipal } from '@/components/services'
3+
import { serviceConnection, servicePrincipal, receiptsURL } from '@/components/services'
44
import { ReactNode } from 'react'
55

66

77
export default function W3UIProvider ({ children }: { children: ReactNode }) {
88
return (
9-
<Provider connection={serviceConnection} servicePrincipal={servicePrincipal}>
9+
<Provider
10+
connection={serviceConnection}
11+
servicePrincipal={servicePrincipal}
12+
receiptsEndpoint={receiptsURL}
13+
>
1014
<>{children}</>
1115
</Provider>
1216
)

src/components/services.ts

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export const serviceURL = new URL(
88
// 'https://staging.up.web3.storage'
99
process.env.NEXT_PUBLIC_W3UP_SERVICE_URL ?? 'https://up.web3.storage'
1010
)
11+
12+
export const receiptsURL = new URL(
13+
// 'https://staging.up.web3.storage/receipt/'
14+
process.env.NEXT_PUBLIC_W3UP_RECEIPTS_URL ?? 'https://up.web3.storage/receipt/'
15+
)
16+
1117
export const servicePrincipal = DID.parse(
1218
// 'did:web:staging.web3.storage'
1319
process.env.NEXT_PUBLIC_W3UP_SERVICE_DID ?? 'did:web:web3.storage'

0 commit comments

Comments
 (0)