From 897ff22bf8c70077584012bbbadbead8ef79081e Mon Sep 17 00:00:00 2001 From: samooth Date: Tue, 18 Mar 2025 11:55:03 +0100 Subject: [PATCH] updating for LARS --- deployment-info.json | 6 +++--- frontend/package.json | 2 +- frontend/src/App.tsx | 5 +++-- package.json | 5 +++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/deployment-info.json b/deployment-info.json index 35b008d..ee996b7 100644 --- a/deployment-info.json +++ b/deployment-info.json @@ -10,8 +10,8 @@ "contracts": {}, "configs": [ { - "name": "Local LARS", - "network": "mainnet", + "name": "local", + "network": "testnet", "provider": "LARS", "run": [ "frontend" @@ -40,4 +40,4 @@ "frontendHostingMethod": "HTTPS" } ] -} \ No newline at end of file +} diff --git a/frontend/package.json b/frontend/package.json index d8a844c..fc9f720 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "type": "module", "scripts": { - "dev": "vite", + "start": "vite", "build": "vite build", "lint": "eslint .", "preview": "vite preview" diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index fb9f2b9..c0c6208 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -3,7 +3,7 @@ import { GithubIcon, ShieldCheck, Server, BookOpen, ArrowRight, Sparkles } from import { WalletClient } from '@bsv/sdk' function App() { - const [serverUrl, setServerUrl] = useState('https://prod-coolcert-921101068003.us-west1.run.app'); + const [serverUrl, setServerUrl] = useState('http://localhost:8080'); const [isLoading, setIsLoading] = useState(false); const handleGetCertificate = async (e: React.FormEvent) => { @@ -11,8 +11,9 @@ function App() { setIsLoading(true); // Simulate API call const walletClient = new WalletClient('json-api') + console.log(walletClient) const result = await walletClient.acquireCertificate({ - certifier: '0220529dc803041a83f4357864a09c717daa24397cf2f3fc3a5745ae08d30924fd', + certifier: '02cab461076409998157f05bb90f07886380186fd3d88b99c549f21de4d2511b83', certifierUrl: serverUrl, type: 'AGfk/WrT1eBDXpz3mcw386Zww2HmqcIn3uY6x4Af1eo=', acquisitionProtocol: 'issuance', diff --git a/package.json b/package.json index c9f659c..af74123 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ "lars": "lars", "cars": "cars", "lars:config": "lars config", - "start": "lars start", - "build": "cars build 1", + "start": "lars start local", + "build:cars": "cars build 1", + "build:lars": "lars build 1", "deploy": "cars deploy now 1" }, "keywords": [],