File tree Expand file tree Collapse file tree 16 files changed +133
-138
lines changed
Expand file tree Collapse file tree 16 files changed +133
-138
lines changed Original file line number Diff line number Diff line change 1111 "@polkadot/keyring" : " ^13.5.5" ,
1212 "@polkadot/types" : " ^16.4.4" ,
1313 "@polkadot/util-crypto" : " ^13.5.6" ,
14- "dedot" : " ^0.16 .0" ,
14+ "dedot" : " ^0.17 .0" ,
1515 "happy-dom" : " ^15.11.7" ,
1616 "typink" : " workspace:*"
1717 },
Original file line number Diff line number Diff line change 1616 "@dedot/react-identicon" : " ^0.1.0" ,
1717 "@emotion/react" : " ^11.14.0" ,
1818 "@emotion/styled" : " ^11.14.0" ,
19- "dedot" : " ^0.16 .0" ,
19+ "dedot" : " ^0.17 .0" ,
2020 "framer-motion" : " ^10.18.0" ,
2121 "react" : " ^18.3.1" ,
2222 "react-dom" : " ^18.3.1" ,
Original file line number Diff line number Diff line change 1616 "@chakra-ui/system" : " ^2.6.2" ,
1717 "@emotion/react" : " ^11.14.0" ,
1818 "@emotion/styled" : " ^11.14.0" ,
19- "dedot" : " ^0.16 .0" ,
19+ "dedot" : " ^0.17 .0" ,
2020 "framer-motion" : " ^10.18.0" ,
2121 "react" : " ^18.3.1" ,
2222 "react-dom" : " ^18.3.1" ,
Original file line number Diff line number Diff line change 1616 "@chakra-ui/system" : " ^2.6.2" ,
1717 "@emotion/react" : " ^11.14.0" ,
1818 "@emotion/styled" : " ^11.14.0" ,
19- "dedot" : " ^0.16 .0" ,
19+ "dedot" : " ^0.17 .0" ,
2020 "framer-motion" : " ^10.18.0" ,
2121 "react" : " ^18.3.1" ,
2222 "react-dom" : " ^18.3.1" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { toEvmAddress } from 'dedot/contracts';
88
99export default function Psp22Board ( ) {
1010 const { contract } = useContract < Psp22ContractApi > ( ContractId . PSP22 ) ;
11- const { connectedAccount, network } = useTypink ( ) ;
11+ const { connectedAccount } = useTypink ( ) ;
1212 const mintTx = useContractTx ( contract , 'psp22MintableMint' ) ;
1313 const { data : tokenName , isLoading : loadingTokenName } = useContractQuery ( {
1414 contract,
@@ -74,6 +74,8 @@ export default function Psp22Board() {
7474 }
7575 } ;
7676
77+ const tokenFormatOptions = { symbol : tokenSymbol , decimals : tokenDecimal } ;
78+
7779 return (
7880 < Box >
7981 < Heading size = 'md' > PSP22 Contract</ Heading >
@@ -99,15 +101,15 @@ export default function Psp22Board() {
99101 < Box mb = { 2 } >
100102 Total Supply:{ ' ' }
101103 < PendingText fontWeight = '600' isLoading = { loadingTotalSupply } >
102- { formatBalance ( totalSupply , network ) }
104+ { formatBalance ( totalSupply , tokenFormatOptions ) }
103105 </ PendingText >
104106 </ Box >
105107 < Divider my = { 4 } />
106108 < Box >
107109 My Balance:{ ' ' }
108110 { connectedAccount ? (
109111 < PendingText fontWeight = '600' isLoading = { loadingBalance } >
110- { formatBalance ( myBalance , network ) }
112+ { formatBalance ( myBalance , tokenFormatOptions ) }
111113 </ PendingText >
112114 ) : (
113115 < WalletSelection buttonProps = { { size : 'xs' } } />
Original file line number Diff line number Diff line change 1616 "@dedot/react-identicon" : " ^0.1.0" ,
1717 "@emotion/react" : " ^11.14.0" ,
1818 "@emotion/styled" : " ^11.14.0" ,
19- "dedot" : " ^0.16 .0" ,
19+ "dedot" : " ^0.17 .0" ,
2020 "framer-motion" : " ^10.18.0" ,
2121 "react" : " ^18.3.1" ,
2222 "react-dom" : " ^18.3.1" ,
Original file line number Diff line number Diff line change 2121 "@subwallet-connect/react" : " ^1.0.8" ,
2222 "@subwallet-connect/subwallet-polkadot" : " ^1.0.8" ,
2323 "@subwallet-connect/talisman" : " ^1.0.8" ,
24- "dedot" : " ^0.16 .0" ,
24+ "dedot" : " ^0.17 .0" ,
2525 "framer-motion" : " ^10.18.0" ,
2626 "react" : " ^18.3.1" ,
2727 "react-dom" : " ^18.3.1" ,
Original file line number Diff line number Diff line change 1919 "@talismn/connect-components" : " ^1.1.9" ,
2020 "@talismn/connect-ui" : " ^1.1.4" ,
2121 "@talismn/connect-wallets" : " ^1.2.8" ,
22- "dedot" : " ^0.16 .0" ,
22+ "dedot" : " ^0.17 .0" ,
2323 "framer-motion" : " ^10.18.0" ,
2424 "react" : " ^18.3.1" ,
2525 "react-dom" : " ^18.3.1" ,
Original file line number Diff line number Diff line change 1717 },
1818 "bin" : " ./bin/create-typink.mjs" ,
1919 "dependencies" : {
20- "@dedot/utils" : " ^0.16 .0" ,
20+ "@dedot/utils" : " ^0.17 .0" ,
2121 "arg" : " ^5.0.2" ,
2222 "chalk" : " ^5.6.2" ,
2323 "execa" : " ^9.6.0" ,
Original file line number Diff line number Diff line change 1717 "@radix-ui/react-slot" : " ^1.2.3" ,
1818 "class-variance-authority" : " ^0.7.1" ,
1919 "clsx" : " ^2.1.1" ,
20- "dedot" : " ^0.16 .0" ,
20+ "dedot" : " ^0.17 .0" ,
2121 "lucide-react" : " ^0.544.0" ,
2222 "next" : " ^15.5.3" ,
2323 "next-themes" : " ^0.4.6" ,
You can’t perform that action at this time.
0 commit comments