@@ -200,7 +200,7 @@ export const AccountDialog = ({
 | 
			
		||||
                    .toUnit()
 | 
			
		||||
                    .toLocaleString(undefined, {
 | 
			
		||||
                      style: 'currency',
 | 
			
		||||
                      currency: 'XRP',
 | 
			
		||||
                      currency: 'XAH',
 | 
			
		||||
                      currencyDisplay: 'name'
 | 
			
		||||
                    })}
 | 
			
		||||
                  <Button
 | 
			
		||||
@@ -459,7 +459,7 @@ const Accounts: FC<AccountProps> = props => {
 | 
			
		||||
                        .toUnit()
 | 
			
		||||
                        .toLocaleString(undefined, {
 | 
			
		||||
                          style: 'currency',
 | 
			
		||||
                          currency: 'XRP',
 | 
			
		||||
                          currency: 'XAH',
 | 
			
		||||
                          currencyDisplay: 'name'
 | 
			
		||||
                        })})`
 | 
			
		||||
                    ) : (
 | 
			
		||||
 
 | 
			
		||||
@@ -101,7 +101,7 @@ const Navigation = () => {
 | 
			
		||||
              <Spinner />
 | 
			
		||||
            ) : (
 | 
			
		||||
              <>
 | 
			
		||||
                <Heading css={{ lineHeight: 1 }}>{snap.gistName || 'XRPL Hooks'}</Heading>
 | 
			
		||||
                <Heading css={{ lineHeight: 1 }}>{snap.gistName || 'Xahau Hooks'}</Heading>
 | 
			
		||||
                <Text css={{ fontSize: '$xs', color: '$mauve10', lineHeight: 1 }}>
 | 
			
		||||
                  {snap.files.length > 0 ? 'Gist: ' : 'Builder'}
 | 
			
		||||
                  {snap.files.length > 0 && (
 | 
			
		||||
@@ -180,7 +180,7 @@ const Navigation = () => {
 | 
			
		||||
                          fontWeight: '$bold'
 | 
			
		||||
                        }}
 | 
			
		||||
                      >
 | 
			
		||||
                        <Logo width="48px" height="48px" /> XRPL Hooks Builder
 | 
			
		||||
                        <Logo width="48px" height="48px" /> Xahau Hooks Builder
 | 
			
		||||
                      </DialogTitle>
 | 
			
		||||
                      <DialogDescription as="div">
 | 
			
		||||
                        <Text
 | 
			
		||||
@@ -191,7 +191,7 @@ const Navigation = () => {
 | 
			
		||||
                            mb: '$7'
 | 
			
		||||
                          }}
 | 
			
		||||
                        >
 | 
			
		||||
                          Hooks add smart contract functionality to the XRP Ledger.
 | 
			
		||||
                          Hooks add smart contract functionality to the Xahau Network.
 | 
			
		||||
                        </Text>
 | 
			
		||||
                        <Flex css={{ flexDirection: 'column', gap: '$2', mt: '$2' }}>
 | 
			
		||||
                          <Text
 | 
			
		||||
 
 | 
			
		||||
@@ -129,7 +129,7 @@ export const TxUI: FC<UIProps> = ({
 | 
			
		||||
 | 
			
		||||
  const otherFields = Object.keys(txFields).filter(k => !richFields.includes(k)) as [keyof TxFields]
 | 
			
		||||
  const amountOptions = [
 | 
			
		||||
    { label: 'XRP', value: 'xrp' },
 | 
			
		||||
    { label: 'XAH', value: 'xrp' },
 | 
			
		||||
    { label: 'Token', value: 'token' }
 | 
			
		||||
  ] as const
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "uri": "file:///amount-schema.json",
 | 
			
		||||
  "title": "Amount",
 | 
			
		||||
  "description": "Specify xrp in drops and tokens as objects.",
 | 
			
		||||
  "description": "Specify XAH in drops and tokens as objects.",
 | 
			
		||||
  "schema": {
 | 
			
		||||
    "anyOf": [
 | 
			
		||||
      {
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
        "type": "object",
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "currency": {
 | 
			
		||||
            "description": "Arbitrary currency code for the token. Cannot be XRP."
 | 
			
		||||
            "description": "Arbitrary currency code for the token. Cannot be XAH."
 | 
			
		||||
          },
 | 
			
		||||
          "value": {
 | 
			
		||||
            "type": ["string", "number"],
 | 
			
		||||
@@ -28,7 +28,7 @@
 | 
			
		||||
    ],
 | 
			
		||||
    "defaultSnippets": [
 | 
			
		||||
      {
 | 
			
		||||
        "label": "Xrp",
 | 
			
		||||
        "label": "XAH",
 | 
			
		||||
        "body": "1000000"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
 
 | 
			
		||||
@@ -58,22 +58,22 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }: AppProps) {
 | 
			
		||||
        <meta name="format-detection" content="telephone=no" />
 | 
			
		||||
        <meta property="og:url" content={`${origin}${router.asPath}`} />
 | 
			
		||||
 | 
			
		||||
        <title>XRPL Hooks Builder</title>
 | 
			
		||||
        <meta property="og:title" content="XRPL Hooks Builder" />
 | 
			
		||||
        <meta name="twitter:title" content="XRPL Hooks Builder" />
 | 
			
		||||
        <title>Xahau Hooks Builder</title>
 | 
			
		||||
        <meta property="og:title" content="Xahau Hooks Builder" />
 | 
			
		||||
        <meta name="twitter:title" content="Xahau Hooks Builder" />
 | 
			
		||||
        <meta name="twitter:card" content="summary_large_image" />
 | 
			
		||||
        <meta name="twitter:site" content="@XRPLF" />
 | 
			
		||||
        <meta
 | 
			
		||||
          name="description"
 | 
			
		||||
          content="Hooks Builder, add smart contract functionality to the XRP Ledger."
 | 
			
		||||
          content="Hooks Builder, add smart contract functionality to the Xahau Network."
 | 
			
		||||
        />
 | 
			
		||||
        <meta
 | 
			
		||||
          property="og:description"
 | 
			
		||||
          content="Hooks Builder, add smart contract functionality to the XRP Ledger."
 | 
			
		||||
          content="Hooks Builder, add smart contract functionality to the Xahau Network."
 | 
			
		||||
        />
 | 
			
		||||
        <meta
 | 
			
		||||
          name="twitter:description"
 | 
			
		||||
          content="Hooks Builder, add smart contract functionality to the XRP Ledger."
 | 
			
		||||
          content="Hooks Builder, add smart contract functionality to the Xahau Network."
 | 
			
		||||
        />
 | 
			
		||||
        <meta property="og:image" content={`${origin}${shareImg}`} />
 | 
			
		||||
        <meta property="og:image:width" content="1200" />
 | 
			
		||||
 
 | 
			
		||||
@@ -77,7 +77,7 @@ export const addFunds = async (address: string) => {
 | 
			
		||||
  if ('error' in json) {
 | 
			
		||||
    return toast.error(json.error, { id: toastId })
 | 
			
		||||
  } else {
 | 
			
		||||
    toast.success(`Funds added (${json.xrp} XRP)`, { id: toastId })
 | 
			
		||||
    toast.success(`Funds added (${json.xrp} XAH)`, { id: toastId })
 | 
			
		||||
    const currAccount = state.accounts.find(acc => acc.address === address)
 | 
			
		||||
    if (currAccount) {
 | 
			
		||||
      currAccount.xrp = (Number(currAccount.xrp) + json.xrp * 1000000).toString()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user