(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4109],{9535:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/en/build/create-aptos-dapp/templates/token-minting-dapp",function(){return n(75317)}])},75317:function(e,t,n){"use strict";n.r(t),n.d(t,{useTOC:function(){return h}});var s=n(31549),i=n(82910),a=n(1117),r=n(46977),o=n(47023),d=n(13844),l=n(83185);function h(e){let t={code:"code",...(0,r.a)()};return[{value:"Quick Start",id:"quick-start",depth:2},{value:"Generate the Token minting dapp template",id:"generate-the-token-minting-dapp-template",depth:2},{value:"Publish the Move Contract",id:"publish-the-move-contract",depth:2},{value:(0,s.jsxs)(s.Fragment,{children:["In the ",(0,s.jsx)(t.code,{children:".env"})," file, set ",(0,s.jsx)(t.code,{children:"VITE_FA_CREATOR_ADDRESS"})," to be the same as your account address."]}),id:"in-the-env-file-set-vite_fa_creator_address-to-be-the-same-as-your-account-address",depth:3},{value:"On the project root folder, run the below command to publish the contract.",id:"on-the-project-root-folder-run-the-below-command-to-publish-the-contract",depth:3},{value:"Publishing the asset on-chain",id:"publishing-the-asset-on-chain",depth:2},{value:"Run the app and open the preview.",id:"run-the-app-and-open-the-preview",depth:3},{value:"In the top-right corner, click “Connect a Wallet”.",id:"in-the-top-right-corner-click-connect-a-wallet",depth:3},{value:"In the app, go to the “Create Asset” page (if not on that page already)",id:"in-the-app-go-to-the-create-asset-page-if-not-on-that-page-already",depth:3},{value:"Upload a token image.",id:"upload-a-token-image",depth:3},{value:"Choose the required fields.",id:"choose-the-required-fields",depth:3},{value:"Click “Create Asset”",id:"click-create-asset",depth:3},{value:"Once you approve the transaction, you have successfully created a fungible asset on Aptos!",id:"once-you-approve-the-transaction-you-have-successfully-created-a-fungible-asset-on-aptos",depth:3},{value:"Customizing the Front-End",id:"customizing-the-front-end",depth:2},{value:(0,s.jsxs)(s.Fragment,{children:["Set the ",(0,s.jsx)(t.code,{children:"fa_address"})," config"]}),id:"set-the-fa_address-config",depth:3},{value:"Modify static content",id:"modify-static-content",depth:3},{value:"My Assets Page",id:"my-assets-page",depth:2},{value:"How can I take it from here?",id:"how-can-i-take-it-from-here",depth:2},{value:"Ready for Mainnet",id:"ready-for-mainnet",depth:2},{value:"Deploy to a live server",id:"deploy-to-a-live-server",depth:2},{value:"Update the look and feel of the dapp",id:"update-the-look-and-feel-of-the-dapp",depth:2}]}t.default=(0,i.c)(function(e){let{toc:t=h(e)}=e,n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{children:"Create Aptos Dapp Token Minting Dapp Template"}),"\n",(0,s.jsxs)(n.p,{children:["The Token minting dapp template provides an end-to-end ",(0,s.jsx)(n.a,{href:"../../smart-contracts/digital-asset",children:"Fungible Asset"})," minting dapp."]}),"\n",(0,s.jsx)(n.p,{children:"With this dapp, you can:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Create a Fungible Asset on Aptos."}),"\n",(0,s.jsx)(n.li,{children:"Modify a pre-made UI to build a Token minting dapp users can quickly adjust."}),"\n",(0,s.jsx)(n.li,{children:"Learn how to write a Move contract and front end connected to that contract."}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Read more about the ",(0,s.jsx)(n.a,{href:"../../smart-contracts/digital-asset",children:"Aptos Fungible Asset Standard"})]}),"\n",(0,s.jsx)(n.p,{children:"The Token minting dapp template provides 3 pages:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Public Mint Fungible Asset Page - A page for the public to mint Fungible Assets."}),"\n",(0,s.jsx)(n.li,{children:"Create Fungible Asset page - A page for creating new asset. This page is not accessible on production."}),"\n",(0,s.jsx)(n.li,{children:"My Fungible Assets page - A page to view all the assets created under the current Move module (smart contract). This page is not accessible on production."}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:t[0].id,children:t[0].value}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"#publish-the-move-contract",children:"Create a token on chain"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"#customizing-the-front-end",children:"Customizing the frontend"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"#deploy-to-a-live-server",children:"Deploy to a live server"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:t[1].id,children:t[1].value}),"\n",(0,s.jsx)(n.p,{children:"On your terminal, navigate to the directory you want to work in and run:"}),"\n",(0,s.jsx)(n.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-copy":"",children:(0,s.jsx)(n.code,{children:(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"npx"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" create-aptos-dapp@latest"})]})})}),"\n",(0,s.jsx)(n.p,{children:"Follow the CLI prompts."}),"\n",(0,s.jsx)(n.h2,{id:t[2].id,children:t[2].value}),"\n",(0,s.jsxs)(o.R,{children:[(0,s.jsx)(n.h3,{id:t[3].id,children:t[3].value}),(0,s.jsx)(n.p,{children:"This determines which account is allowed to create assets using the dapp."}),(0,s.jsxs)(n.p,{children:["If you haven’t set up an account, you can create one with an Aptos wallet like ",(0,s.jsx)(n.a,{href:"https://petra.app/docs/use#create-a-new-account",children:"Petra"}),". Make sure to set up the account on the same network as your template project."]}),(0,s.jsx)(n.p,{children:"For example:"}),(0,s.jsx)(n.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-filename":".env","data-copy":"",children:(0,s.jsxs)(n.code,{children:[(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"VITE_APP_NETWORK"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"="}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"testnet"})]}),"\n",(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"VITE_FA_CREATOR_ADDRESS"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"="}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"0xC0FEE"})]})]})}),(0,s.jsx)(n.h3,{id:t[4].id,children:t[4].value}),(0,s.jsx)(n.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-filename":"Terminal","data-copy":"",children:(0,s.jsx)(n.code,{children:(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"npm"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" run"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" move:publish"})]})})}),(0,s.jsx)(d.U,{type:"info",children:(0,s.jsx)(n.p,{children:"You will have to confirm the gas fee in the console."})}),(0,s.jsx)(n.p,{children:"This command will:"}),(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Publish the contract to chain."}),"\n",(0,s.jsxs)(n.li,{children:["Setting the ",(0,s.jsx)(n.code,{children:"VITE_MODULE_ADDRESS"})," in the ",(0,s.jsx)(n.code,{children:".env"})," file to set the contract object address."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:t[5].id,children:t[5].value}),"\n",(0,s.jsxs)(n.p,{children:["After you have ",(0,s.jsx)(n.a,{href:"#publish-the-move-contract",children:"published the Move contract to chain"})]}),"\n",(0,s.jsxs)(o.R,{children:[(0,s.jsx)(n.h3,{id:t[6].id,children:t[6].value}),(0,s.jsx)(n.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-filename":"Terminal","data-copy":"",children:(0,s.jsx)(n.code,{children:(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"npm"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" run"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" dev"})]})})}),(0,s.jsx)(n.h3,{id:t[7].id,children:t[7].value}),(0,s.jsxs)(n.p,{children:["Use the same account that you set in ",(0,s.jsx)(n.code,{children:".env"})," for the ",(0,s.jsx)(n.code,{children:"VITE_FA_CREATOR_ADDRESS"}),".\nOr, if you use a different account, set the ",(0,s.jsx)(n.code,{children:"VITE_FA_CREATOR_ADDRESS"})," to the account you sign in with and republish the contract."]}),(0,s.jsx)(d.U,{type:"warning",children:(0,s.jsxs)(n.p,{children:["Do not use the “Google Account” option if it is available. The account generated from that will not work as the ",(0,s.jsx)(n.code,{children:"VITE_COLLECTION_CREATOR_ADDRESS"}),". Use a wallet created with an Aptos wallet provider such as ",(0,s.jsx)(n.a,{href:"https://petra.app/docs/use#create-a-new-account",children:"Petra"}),"."]})}),(0,s.jsx)(n.h3,{id:t[8].id,children:t[8].value}),(0,s.jsx)(n.h3,{id:t[9].id,children:t[9].value}),(0,s.jsx)(n.h3,{id:t[10].id,children:t[10].value}),(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Choose the asset name."}),"\n",(0,s.jsx)(n.li,{children:"Choose the asset symbol."}),"\n",(0,s.jsx)(n.li,{children:"Choose the max supply of the asset."}),"\n",(0,s.jsx)(n.li,{children:"Choose the max amount an address can mint."}),"\n",(0,s.jsx)(n.li,{children:"Choose the asset decimals."}),"\n",(0,s.jsx)(n.li,{children:"Enter the project url"}),"\n"]}),(0,s.jsx)(n.p,{children:"The rest are optional fields to help customize your mint."}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"(Optional) Mint fee per asset - this defines the cost public users pay to mint this asset."}),"\n",(0,s.jsx)(n.li,{children:"(Optional) Mint for myself - this defines how many assets you would want to mint for yourself once the asset is created."}),"\n"]}),(0,s.jsx)(n.h3,{id:t[11].id,children:t[11].value}),(0,s.jsxs)(n.p,{children:["When adding the image, it submits the file to ",(0,s.jsx)(n.a,{href:"https://irys.xyz/",children:"Irys"}),". Irys is a programmable datachain, a blockchain optimized for storing data. When you upload your assets to Irys, you pay a single fee at upload, and your assets are onchain and are guaranteed to be retrievable forever."]}),(0,s.jsxs)(n.p,{children:["During the upload process, you will need to sign a message to approve file uploading to Irys. Additionally, you may need to fund an account on Irys. Read more about the process ",(0,s.jsx)(n.a,{href:"https://docs.irys.xyz/build/d/sdk/payment/fund",children:"here"}),"."]}),(0,s.jsx)(n.h3,{id:t[12].id,children:t[12].value})]}),"\n",(0,s.jsx)(n.h2,{id:t[13].id,children:t[13].value}),"\n",(0,s.jsxs)(n.p,{children:["Most data on the front end is customizable in ",(0,s.jsx)(n.code,{children:"frontend/config.ts"}),"."]}),"\n",(0,s.jsx)(n.h3,{id:t[14].id,children:t[14].value}),"\n",(0,s.jsxs)(n.p,{children:["In order to add a fungible asset to the public mint page, set ",(0,s.jsx)(n.code,{children:"fa_address"})," in ",(0,s.jsx)(n.code,{children:".env"})," with the asset address."]}),"\n",(0,s.jsx)(n.p,{children:"You can use an assset that you have minted using the tool by going to the “My Assets” page and copying its address."}),"\n",(0,s.jsx)(n.h3,{id:t[15].id,children:t[15].value}),"\n",(0,s.jsxs)(n.p,{children:["Once the fungible asset address has been configured, view the ",(0,s.jsx)(n.code,{children:"frontend/config.ts"})," file to change any static content on the page. You can also modify the code itself as you wish."]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"How to add static images?"})}),"\n",(0,s.jsxs)(n.p,{children:["The public mint page uses static images in the UI. Initially, the images are imported from the ",(0,s.jsx)(n.code,{children:"frontend/assets/placeholder"})," folder. To use custom images, you should add the image you want to use to the ",(0,s.jsx)(n.code,{children:"frontend/assets"})," folder (under any new folder you want to create) and then import the image as seen below in the ",(0,s.jsx)(n.code,{children:"frontend/config.ts"})," file and add it under the section you want to have it."]}),"\n",(0,s.jsx)(n.pre,{icon:l.KP,tabIndex:"0","data-language":"tsx","data-word-wrap":"","data-filename":"frontend/config.ts","data-copy":"",children:(0,s.jsx)(n.code,{children:(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" MyImage "}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@/assets/<my-new-folder>/my-image.png"'}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:";"})]})})}),"\n",(0,s.jsx)(n.h2,{id:t[16].id,children:t[16].value}),"\n",(0,s.jsx)(n.p,{children:"This page displays all the assets that have been created under the current Move module. You can click on the asset address, which redirects you to the Aptos Explorer site where you can see your asset."}),"\n",(0,s.jsxs)(n.p,{children:["When you are ready to use an asset on the Public Mint Page, you need to copy the asset address and assign it to the ",(0,s.jsx)(n.code,{children:"fa_address"})," on the ",(0,s.jsx)(n.code,{children:"frontend/config.ts"})," file."]}),"\n",(0,s.jsx)(n.p,{children:"Some stats are available on this page, like the max supply of the asset and the number of asset minted."}),"\n",(0,s.jsx)(n.h2,{id:t[17].id,children:t[17].value}),"\n",(0,s.jsx)(n.p,{children:"Remember, one of the goals of this template is to educate and provide a real life example on how a Fungible Asset minting dapp can be on Aptos. We provide some basic concepts and features but there is much more you can do for your dapp."}),"\n",(0,s.jsx)(n.p,{children:"Some ideas you can try are:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Allowlist mint stages"}),"\n",(0,s.jsx)(n.li,{children:"Custom flows after someone mints an asset (or even token gated experiences)"}),"\n",(0,s.jsxs)(n.li,{children:["Check out our ",(0,s.jsx)(n.a,{href:"../../sdks/ts-sdk",children:"TS SDK"})," to see what other API queries you can use to support more features and fetch more data."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:t[18].id,children:t[18].value}),"\n",(0,s.jsx)(n.p,{children:"If you started your dapp on testnet, and you are happy with your asset testing, you will want to get the asset on mainnet."}),"\n",(0,s.jsx)(n.p,{children:"Creating a asset on mainnet is the same flow as creating on testnet, but we need to change some configuration."}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:["Note: Make sure you have created an existing account on the Aptos ",(0,s.jsx)(n.code,{children:"mainnet"})]}),"\n"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["Change the ",(0,s.jsx)(n.code,{children:"VITE_APP_NETWORK"})," value to ",(0,s.jsx)(n.code,{children:"mainnet"})," on the ",(0,s.jsx)(n.code,{children:".env"})," file"]}),"\n",(0,s.jsxs)(n.li,{children:["Update the ",(0,s.jsx)(n.code,{children:"VITE_MODULE_PUBLISHER_ACCOUNT_ADDRESS"})," to be the existing account address on the ",(0,s.jsx)(n.code,{children:".env"})," file"]}),"\n",(0,s.jsxs)(n.li,{children:["Update the ",(0,s.jsx)(n.code,{children:"VITE_MODULE_PUBLISHER_PRIVATE_KEY"})," to be the existing account private key on the ",(0,s.jsx)(n.code,{children:".env"})," file"]}),"\n",(0,s.jsxs)(n.li,{children:["Create or get the account you want to create a asset with, open the ",(0,s.jsx)(n.code,{children:".env"})," file and assign the account address as the ",(0,s.jsx)(n.code,{children:"VITE_FA_CREATOR_ADDRESS"})," value."]}),"\n",(0,s.jsxs)(n.li,{children:["Finally, run ",(0,s.jsx)(n.code,{children:"npm run move:publish"})," to publish your move module on Aptos mainnet."]}),"\n",(0,s.jsxs)(n.li,{children:["The next step would be to create an asset using the account you set as the ",(0,s.jsx)(n.code,{children:"VITE_FA_CREATOR_ADDRESS"}),". Simply follow ",(0,s.jsx)(n.a,{href:"#create-a-fungible-asset-page",children:"Create a Fungible Asset Page"})]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:t[19].id,children:t[19].value}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"create-aptos-dapp"})," provides an npm command to easily deploy the static site to ",(0,s.jsx)(n.a,{href:"https://vercel.com/home",children:"Vercel"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"At the root of the folder, simply run"}),"\n",(0,s.jsx)(n.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-filename":"Terminal","data-copy":"",children:(0,s.jsx)(n.code,{children:(0,s.jsxs)(n.span,{children:[(0,s.jsx)(n.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"npm"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" run"}),(0,s.jsx)(n.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" deploy"})]})})}),"\n",(0,s.jsxs)(n.p,{children:["Then, follow the prompts. Please refer to Vercel docs to learn more about the ",(0,s.jsx)(n.a,{href:"https://vercel.com/docs/cli",children:"Vercel CLI"})]}),"\n",(0,s.jsxs)(n.p,{children:["If you are looking for different services to deploy the static site to, ",(0,s.jsx)(n.code,{children:"create-aptos-dapp"})," utilizes Vite as the development tool, so you can follow the ",(0,s.jsx)(n.a,{href:"https://vitejs.dev/guide/static-deploy",children:"Vite deployment guide"}),". In a nutshell, you would need to:"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["Run ",(0,s.jsx)(n.code,{children:"npm run build"})," to build a static site"]}),"\n",(0,s.jsxs)(n.li,{children:["Run ",(0,s.jsx)(n.code,{children:"npm run preview"})," to see how your dapp would look like on a live server"]}),"\n",(0,s.jsxs)(n.li,{children:["Next, all you need is to deploy your static site to a live server, there are some options for you to choose from and can follow ",(0,s.jsx)(n.a,{href:"https://vitejs.dev/guide/static-deploy",children:"this guide"})," on how to use each"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:t[20].id,children:t[20].value}),"\n",(0,s.jsxs)(n.p,{children:["This template is styled with ",(0,s.jsx)(n.a,{href:"https://tailwindcss.com/",children:"Tailwind CSS"})," and ",(0,s.jsx)(n.a,{href:"https://ui.shadcn.com/",children:"shadcn/ui"}),". These libraries provide the app with a neutral and clean look and feel while leaving it open to a lot of customization so that you can make the app truly yours."]}),"\n",(0,s.jsx)(n.p,{children:"Please refer to the following questions in the FAQ to learn about how to customize the UI of your dapp:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"../faq#what-is-tailwind-css",children:"What is Tailwind CSS?"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsxs)(n.a,{href:"../faq#what-is-shadcnui",children:["What is ",(0,s.jsx)(n.code,{children:"shadcn/ui"}),"?"]})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"../faq#how-to-modify-the-theme",children:"How to modify the theme?"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"../faq#how-to-add-components",children:"How to add components?"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"../faq#how-to-add-colors",children:"How to add colors?"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"../faq#how-to-add-dark-mode",children:"How to add dark mode?"})}),"\n"]})]})},"/en/build/create-aptos-dapp/templates/token-minting-dapp",{filePath:"pages/en/build/create-aptos-dapp/templates/token-minting-dapp.mdx",timestamp:1728425436e3,pageMap:a.v,frontMatter:{title:"Create Aptos Dapp Token Minting Dapp Template"},title:"Create Aptos Dapp Token Minting Dapp Template"},"undefined"==typeof RemoteContent?h:RemoteContent.useTOC)},13844:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var s=n(31549),i=n(78364),a=n(83185);let r={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,s.jsx)(a.AV,{className:"_mt-1"}),warning:"⚠️"},o={default:(0,i.Z)("_border-orange-100 _bg-orange-50 _text-orange-800 dark:_border-orange-400/30 dark:_bg-orange-400/20 dark:_text-orange-300"),error:(0,i.Z)("_border-red-200 _bg-red-100 _text-red-900 dark:_border-red-200/30 dark:_bg-red-900/30 dark:_text-red-200"),info:(0,i.Z)("_border-blue-200 _bg-blue-100 _text-blue-900 dark:_border-blue-200/30 dark:_bg-blue-900/30 dark:_text-blue-200"),warning:(0,i.Z)("_border-yellow-100 _bg-yellow-50 _text-yellow-900 dark:_border-yellow-200/30 dark:_bg-yellow-700/30 dark:_text-yellow-200")};function d({children:e,type:t="default",emoji:n=r[t]}){return(0,s.jsxs)("div",{className:(0,i.Z)("nextra-callout _overflow-x-auto _mt-6 _flex _rounded-lg _border _py-2 ltr:_pr-4 rtl:_pl-4","contrast-more:_border-current contrast-more:dark:_border-current",o[t]),children:[(0,s.jsx)("div",{className:"_select-none _text-xl ltr:_pl-3 ltr:_pr-2 rtl:_pr-3 rtl:_pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:n}),(0,s.jsx)("div",{className:"_w-full _min-w-0 _leading-7",children:e})]})}},47023:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var s=n(31549),i=n(78364),a=n(44194);function r({children:e,className:t,style:n,...r}){let o=(0,a.useId)().replaceAll(":","");return(0,s.jsx)("div",{className:(0,i.Z)("nextra-steps _ms-4 _mb-12 _border-s _border-gray-200 _ps-6","dark:_border-neutral-800",t),style:{...n,"--counter-id":o},...r,children:e})}},82910:function(e,t,n){"use strict";n.d(t,{c:function(){return d}});var s=n(31549),i=n(74271),a=n(14553),r=n(55754),o=n(46977);function d(e,t,n,s){let a=globalThis[i.ud];return a.route=t,a.pageMap=n.pageMap,a.context[t]={Content:e,pageOpts:n,useTOC:s},l}function l({__nextra_pageMap:e=[],__nextra_dynamic_opts:t,...n}){let o=globalThis[i.ud],{Layout:d,themeConfig:l}=o,{route:c,locale:p}=(0,a.t)(),u=o.context[c];if(!u)throw Error(`No content found for the "${c}" route. Please report it as a bug.`);let{pageOpts:x,useTOC:j,Content:f}=u;if(c.startsWith("/["))x.pageMap=e;else for(let{route:t,children:n}of e){let e=t.split("/").slice(p?2:1);(function e(t,[n,...s]){for(let i of t)if("children"in i&&n===i.name)return s.length?e(i.children,s):i})(x.pageMap,e).children=n}if(t){let{title:e,frontMatter:n}=t;x={...x,title:e,frontMatter:n}}return(0,s.jsx)(d,{themeConfig:l,pageOpts:x,pageProps:n,children:(0,s.jsx)(r.F,{value:n,children:(0,s.jsx)(h,{useTOC:j,children:(0,s.jsx)(f,{...n})})})})}function h({children:e,useTOC:t}){let{wrapper:n}=(0,o.a)();return(0,s.jsx)(c,{useTOC:t,wrapper:n,children:e})}function c({children:e,useTOC:t,wrapper:n,...i}){let a=t(i);return n?(0,s.jsx)(n,{toc:a,children:e}):e}}},function(e){e.O(0,[68889,1117,92888,49774,40179],function(){return e(e.s=9535)}),_N_E=e.O()}]);