Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ton_access_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyakir committed Dec 18, 2023
2 parents f7d4b90 + 1af1108 commit 5bf54a4
Show file tree
Hide file tree
Showing 13 changed files with 532 additions and 252 deletions.
2 changes: 0 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ VITE_SHOW_MANUAL_VERIFICATION=true

VITE_VERIFIER_ID=orbs.com
VITE_BACKEND_URL=https://ton-source-prod-1.herokuapp.com,https://ton-source-prod-2.herokuapp.com,https://ton-source-prod-3.herokuapp.com
VITE_VERIFIER_REGISTRY=EQDS0AW7NV1w3nFwx-mmryfpH4OGQ3PXnoFGOJA_8PTHuLrw
VITE_SOURCES_REGISTRY=EQD-BJSVUJviud_Qv7Ymfd3qzXdrmV525e3YDzWQoHIAiInL

VITE_VERIFIER_ID_TESTNET=orbs-testnet
VITE_BACKEND_URL_TESTNET=https://ton-source-prod-testnet-1.herokuapp.com
VITE_VERIFIER_REGISTRY_TESTNET=EQB--CRXUbqYbqJKScEWeOrnk0TKJxB071M-WwvMpMEvq6Ed
VITE_SOURCES_REGISTRY_TESTNET=EQCsdKYwUaXkgJkz2l0ol6qT_WxeRbE_wBCwnEybmR0u5TO8
34 changes: 34 additions & 0 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"func-js-bin-0.4.1": "npm:@ton-community/func-js-bin@^0.4.1",
"func-js-bin-0.4.2": "npm:@ton-community/func-js-bin@^0.4.2",
"func-js-bin-0.4.3": "npm:@ton-community/func-js-bin@^0.4.3",
"func-js-bin-0.4.4": "npm:@ton-community/func-js-bin@^0.4.4",
"immer": "^9.0.17",
"javascript-time-ago": "^2.5.7",
"jszip": "^3.10.1",
Expand All @@ -43,12 +44,13 @@
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-ga4": "^1.4.1",
"react-hook-form": "^7.48.2",
"react-qr-code": "^2.0.8",
"react-router-dom": "^6.4.2",
"source-map-explorer": "^2.5.3",
"tvm-disassembler": "^2.0.2",
"ton": "^13.4.1",
"ton-core": "^0.49.0",
"tvm-disassembler": "^2.0.2",
"web-tree-sitter": "^0.20.7",
"zustand": "^4.1.3"
},
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This app is deployed via github actions on github pages for this repository.

### Environment variables

- `VITE_VERIFIER_REGISTRY` / `VITE_VERIFIER_REGISTRY_TESTNET` - the address of the verifier registry contract to interact with when sending the signed message received from backend
- `VITE_VERIFIER_ID` - id of the verifier registered with the verifier registry
- `VITE_SOURCES_REGISTRY` / `VITE_SOURCES_REGISTRY_TESTNET` - sources registry to fetch data from
- `VITE_BACKEND_URL` / `VITE_BACKEND_URL_TESTNET` - urls for backend (split by comma)
Expand Down
14 changes: 5 additions & 9 deletions src/components/admin/Admin.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import { Box } from "@mui/material";
import { Box, Stack } from "@mui/material";
import { TestnetBar } from "../TestnetBar";
import SourcesRegistry from "./SourcesRegistry";
import { VerifierRegistry } from "./VerifierRegistry";
import { FlexBoxRow } from "../Getters.styled";
import { Footer } from "../Footer";
import ConnectButton from "../ConnectButton";
import { StyledTonConnectButton } from "../../styles";

export function Admin() {
return (
<div>
{window.isTestnet && <TestnetBar />}
<FlexBoxRow
sx={{
gap: 30,
px: 4,
}}>
<Stack direction="row" justifyContent="space-between" alignItems="center" p={4}>
<h1>Admin</h1>
<ConnectButton />
</FlexBoxRow>
<StyledTonConnectButton />
</Stack>
<SourcesRegistry />
<VerifierRegistry />
<Footer />
Expand Down
Loading

0 comments on commit 5bf54a4

Please sign in to comment.