Skip to content

Commit ad2940c

Browse files
committed
fix: Frontend fixed
1 parent 56423d2 commit ad2940c

File tree

10 files changed

+4767
-15
lines changed

10 files changed

+4767
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ When you follow the steps above your application will use the already deployed b
5353

5454
| Name | Address | Explainer |
5555
|------------------|--------------------------------------------------|-------------------------------------|
56-
| BACKEND | https://aa-hc-example.onrender.com/hc | |
56+
| BACKEND | https://aa-hc-text2call.onrender.com/hc | |
5757
| FRONTEND | https://aa-hc-example-fe.onrender.com | |
5858
| HC_HELPER_ADDR | 0x1c64EC0A5E2C58295c3208a63209A2A719dF68D8 | HC Helper is system-wide available |
5959
| TOKEN_PRICE_ADDR | 0xcad49c0381c1B0779A318c2326Db43A6073adC1e |

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Of course you can use whichever cloud provider you like. But for demo purposes w
1717

1818
Our demo server will spin down with inactivity or due to exceeding the free monthly limit since we are using the free version. In this case your smart contract call will fail.
1919

20-
The demo server should still be available here: https://aa-hc-example.onrender.com/hc
20+
The demo server should still be available here: https://aa-hc-text2call.onrender.com/hc
2121

2222
If you want to setup your own server on Render, just follow these steps:
2323
1. Create account on [render.com](https://render.com)

contracts/.env-example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ HYBRID_ACCOUNT=0xd237e48bcf22af223e28283fb6d03a6e2bd34d31
22
ENTRY_POINT=0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789
33
SIMPLE_CONTRACT_ADDR=0x
44
HC_HELPER_ADDR=0x1c64EC0A5E2C58295c3208a63209A2A719dF68D8 # boba sepolia system wide helper address
5-
BACKEND_URL=https://aa-hc-example.onrender.com/hc
5+
BACKEND_URL=https://aa-hc-text2call.onrender.com/hc
66
# 0x...
77
PRIVATE_KEY=
88
RPC_URL=https://sepolia.boba.network

contracts/script/deploy-sepolia.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ async function main() {
7171
console.log('RPC_URL = ', RPC_URL)
7272
console.log('-------------------')
7373

74-
const finalBackendUrl = BACKEND_URL ?? "https://aa-hc-example.onrender.com/hc"
74+
const finalBackendUrl = BACKEND_URL ?? "https://aa-hc-text2call.onrender.com/hc"
7575
updateEnvVariable("BACKEND_URL", finalBackendUrl)
7676
updateEnvVariable("ENTRY_POINT", ENTRYPOINT_ADDR)
7777

7878
if (!BACKEND_URL) {
79-
console.warn('BACKEND_URL not defined. Using default public endpoint https://aa-hc-example.onrender.com/hc')
79+
console.warn('BACKEND_URL not defined. Using default public endpoint https://aa-hc-text2call.onrender.com/hc')
8080
}
8181
if (!HC_HELPER_ADDR || !hybridAccountAddress || !tokenPriceAddress || !PRIVATE_KEY || !RPC_URL) {
8282
throw Error("Configuration missing")

contracts/script/pushProduction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const PRIVATE_KEY = args[1];
77
const HC_HELPER_ADDR = args[2];
88
const HYBRID_ACCOUNT = args[3];
99
const TOKEN_PRICE_ACCOUNT_ADDR = args[4];
10-
const BACKEND_URL = args[5] ?? 'https://aa-hc-example.onrender.com/hc'; // use public backend by default
10+
const BACKEND_URL = args[5] ?? 'https://aa-hc-text2call.onrender.com/hc'; // use public backend by default
1111

1212
console.log('HCH = ', HC_HELPER_ADDR)
1313
console.log('HA = ', HYBRID_ACCOUNT);

frontend/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
# dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

frontend/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Our demo frontend will spin down with inactivity since we are using the free ver
2525
The demo frontend should be live here (free, so might have some delay on cold starts):
2626
https://aa-hc-example-fe.onrender.com
2727

28-
Also the backend is hosted as free version on Render. So make sure to open https://aa-hc-example.onrender.com/hc/ in Browser once to warm up the server. Otherwise the user operation might fail due to timeout.
28+
Also the backend is hosted as free version on Render. So make sure to open https://aa-hc-text2call.onrender.com/hc/ in Browser once to warm up the server. Otherwise the user operation might fail due to timeout.
2929

3030
If you want to setup your own server on Render, just follow these steps:
3131
1. Create account on [render.com](https://render.com)
@@ -62,4 +62,4 @@ Then you most likely have the wrong HybridAccount configured on your off-chain s
6262
An error like `Failed to fetch` indicates that your backend/offchain rpc server didn't respond in a timely manner.
6363

6464
Since we host our backend on the free tier on Render.com right now, you might need to wake the server up by opening this url in the browser:
65-
https://aa-hc-example.onrender.com/ (might take around 1 minute to load)
65+
https://aa-hc-text2call.onrender.com/ (might take around 1 minute to load)

0 commit comments

Comments
 (0)