1
1
import clsx from "clsx" ;
2
+ import { getSdkInstance } from "hooks" ;
2
3
import { useState } from "react" ;
3
4
import { Link } from "react-router-dom" ;
4
5
import { BurgerButton } from "./BurgerButton" ;
@@ -10,6 +11,14 @@ type ContainerProps = {
10
11
children : JSX . Element ;
11
12
} & React . ComponentPropsWithoutRef < "div" > ;
12
13
14
+ const vk =
15
+ "zvknam1qd2rnxg5qqqqpq8s3ejhum4mmr50puzyuuv8klj3" +
16
+ "uua76vevh2wnk4mlm7p65zvx9xaadwql4zp7m2vqwkm2yma" +
17
+ "jskms5zf8r8gsmmxqq8w43j77kcz69pkyzvsxnjurfhm6tl" +
18
+ "cst8wt8jqlw53n593p4ywswuu0058wsfrgjtaaxjh0acztk" +
19
+ "mav06dvh3jqslw3ncpcuruy6qsdxpar455d7sza4um75vvc" +
20
+ "s6h7sd96mxj6ghv29c6hrly5nh734r2vtpmyuy3rlacujs0l9" ;
21
+
13
22
export const AppContainer = ( {
14
23
header,
15
24
navigation,
@@ -18,6 +27,18 @@ export const AppContainer = ({
18
27
} : ContainerProps ) : JSX . Element => {
19
28
const [ displayNavigation , setDisplayNavigation ] = useState ( false ) ;
20
29
30
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
+ ( window as any ) [ "shieldedSync" ] = async ( ) => {
32
+ const { rpc } = await getSdkInstance ( ) ;
33
+ await rpc . shieldedSync ( [ vk ] ) ;
34
+ const asd = await rpc . queryBalance ( vk , [
35
+ "tnam1qxgfw7myv4dh0qna4hq0xdg6lx77fzl7dcem8h7e" ,
36
+ ] ) ;
37
+
38
+ // eslint-disable-next-line no-console
39
+ console . log ( asd ) ;
40
+ } ;
41
+
21
42
return (
22
43
< div className = "custom-container pb-2" { ...props } >
23
44
< header className = "flex justify-between flex-wrap font-medium pt-4 pb-5 pl-4" >
0 commit comments