File tree Expand file tree Collapse file tree 7 files changed +6
-10
lines changed
digit-recognition/frontend Expand file tree Collapse file tree 7 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1010 "preview" : " vite preview"
1111 },
1212 "dependencies" : {
13- "@gear-js/api" : " ^0.41.0" ,
1413 "@polkadot/types" : " 14.3.1" ,
1514 "@reown/appkit" : " ^1.6.0" ,
1615 "@reown/appkit-adapter-wagmi" : " ^1.6.0" ,
Original file line number Diff line number Diff line change 1- import { HexString } from "@gear-js/api " ;
1+ import { HexString } from "@/lib/types " ;
22
33export const PROJECT_ID = import . meta. env
44 . VITE_WALLET_CONNECT_PROJECT_ID as string ;
Original file line number Diff line number Diff line change 1- import { HexString } from "@gear-js/api" ;
21import { TypeRegistry } from "@polkadot/types" ;
32import { useQuery } from "@tanstack/react-query" ;
43import { useReadContract , useWatchContractEvent } from "wagmi" ;
54
5+ import { HexString } from "@/lib/types" ;
66import { catDogIdentifierAbi } from "./catDogIdentifierAbi" ;
77import { CAT_IDENTIFIER_CONTRACT_ADDRESS , GEAR_API_NODE } from "@/consts" ;
88import { CalcResult } from "../types" ;
Original file line number Diff line number Diff line change 1- import { HexString } from "@gear-js/api" ;
21import { TypeRegistry } from "@polkadot/types" ;
2+ import { HexString } from "@/lib/types" ;
33import { useReadContract , useWriteContract } from "wagmi" ;
44import { catDogIdentifierAbi } from "./catDogIdentifierAbi" ;
55import { CAT_IDENTIFIER_CONTRACT_ADDRESS } from "@/consts" ;
Original file line number Diff line number Diff line change 1- import { HexString } from "@gear-js/api" ;
21import { TypeRegistry } from "@polkadot/types" ;
32import { useQuery } from "@tanstack/react-query" ;
43import { useReadContract , useWatchContractEvent } from "wagmi" ;
54
5+ import { HexString } from "@/lib/types" ;
66import { digitRecognitionAbi } from "./DigitRecognitionAbi" ;
77import { DIGIT_RECOGNITION_CONTRACT_ADDRESS , GEAR_API_NODE } from "@/consts" ;
88import { Result } from "../types" ;
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ export type FixedPoint = {
22 num : number | string | bigint ;
33 scale : number ;
44} ;
5+
6+ export type HexString = `0x${string } `;
Original file line number Diff line number Diff line change 397397 ethereum-cryptography "^2.0.0"
398398 micro-ftch "^0.3.1"
399399
400- " @gear-js/api@^0.41.0 " :
401- version "0.41.0"
402- resolved "https://registry.yarnpkg.com/@gear-js/api/-/api-0.41.0.tgz#0610fb98f9d888ef2de65b5f448952592215caf0"
403- integrity sha512-Cg9qAIm1DGoqGqI4rJJv4Z9/UBAWGJ+E0nSds/C5QDJarFmWyz2bTRt4Oh4RROYitPUOHbGhw1guBx+Ze5Bt8A==
404-
405400" @humanfs/core@^0.19.1 " :
406401 version "0.19.1"
407402 resolved "https://registry.yarnpkg.com/@humanfs/core/-/core-0.19.1.tgz#17c55ca7d426733fe3c561906b8173c336b40a77"
You can’t perform that action at this time.
0 commit comments