Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions deployment-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"contracts": {},
"configs": [
{
"name": "Local LARS",
"network": "mainnet",
"name": "local",
"network": "testnet",
"provider": "LARS",
"run": [
"frontend"
Expand Down Expand Up @@ -40,4 +40,4 @@
"frontendHostingMethod": "HTTPS"
}
]
}
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview"
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ 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) => {
e.preventDefault();
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',
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down