Skip to content

Commit

Permalink
chore(demo): add basic avm-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Aug 26, 2024
1 parent 3b683c5 commit 4a234df
Show file tree
Hide file tree
Showing 13 changed files with 400 additions and 287 deletions.
166 changes: 160 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion sites/dapp-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
"lint": "eslint \"{src,apps,libs,test}/**/*.{ts,tsx}\" --fix"
},
"dependencies": {
"@algorandfoundation/liquid-client": "github:algorandfoundation/liquid-auth-js#chore/switch-request-id-to-uuid",
"@algorandfoundation/algo-models": "github:awesome-algorand/algo-models",
"@algorandfoundation/liquid-client": "github:algorandfoundation/liquid-auth-js",
"@emotion/react": "^11.11.3",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.4",
"@mui/material": "^5.15.4",
"@tanstack/react-query": "^5.20.5",
"@tanstack/react-query-devtools": "^5.20.5",
"cbor-x": "^1.6.0",
"qr-code-styling": "^1.6.0-rc.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion sites/dapp-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Algodv2 } from 'algosdk';
import { AlgodContext } from '@/hooks';
import { SignalClientContext } from '@/hooks/useSignalClient.ts';
import { LinkMessage, SignalClient } from '@algorandfoundation/liquid-client';
import { useAddressStore } from '@/store';
import { useAddressStore } from '@/store.ts';
const queryClient = new QueryClient();

const algod = new Algodv2(
Expand Down
24 changes: 24 additions & 0 deletions sites/dapp-ui/src/components/ArcMessage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { MessageState } from "@/store.ts";
import Card from "@mui/material/Card";
import { CardHeader } from "@mui/material";
import Typography from "@mui/material/Typography";
import CardContent from "@mui/material/CardContent";

export function ArcMessage(state: MessageState) {
return (
<Card sx={{ flex: 1, margin: 1.25 }} raised>
<CardHeader
title={state.message.reference}
subheader={state.message.id}
/>
<CardContent>
<Typography variant="h5" color="text.secondary">
{state.status}
</Typography>
<Typography variant="body1" color="text.secondary">
{JSON.stringify(state.message)}
</Typography>
</CardContent>
</Card>
);
}
46 changes: 0 additions & 46 deletions sites/dapp-ui/src/components/MessageCard.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions sites/dapp-ui/src/components/TransactionCard.tsx

This file was deleted.

1 change: 0 additions & 1 deletion sites/dapp-ui/src/entry-main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import './index.css';
import * as ReactDOM from 'react-dom/client';
// import { StrictMode } from 'react';
import App from './App.tsx';

ReactDOM.createRoot(document.getElementById('root')!).render(
// <StrictMode>
<App />,
Expand Down
Loading

0 comments on commit 4a234df

Please sign in to comment.