Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/guide/_template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as Step from '../../components/guides/steps'

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam elementum odio ante, sit amet tincidunt leo scelerisque vitae.

<Demo.Container name="!Replace Me!" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/replace-me">
<Demo.Container name="!Replace Me!" footerVariant="source" src="tempoxyz/examples/tree/main/examples/replace-me">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateToken stepNumber={3} last />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/issuance/create-a-stablecoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ and integration with Tempo's payment infrastructure.

By the end of this guide, you will be able to create a stablecoin on Tempo.

<Demo.Container name="Create a Stablecoin" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Create a Stablecoin" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateToken stepNumber={3} last />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/issuance/distribute-rewards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Rewards can be distributed by anyone on any TIP-20 token, and claimed by any hol

Try out the complete rewards flow: create a token, opt in to receive rewards on it, create a reward for yourself, and claim it.

<Demo.Container name="Distribute Rewards" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Distribute Rewards" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down
12 changes: 6 additions & 6 deletions src/pages/guide/issuance/manage-stablecoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Once you've created your token, you can proceed to grant roles to specific addre

Assign roles to specific addresses to delegate token management capabilities.

<Demo.Container name="Grant Roles to an Address" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Grant Roles to an Address" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -172,7 +172,7 @@ export const config = createConfig({

Revoke roles from addresses when you need to remove their permissions.

<Demo.Container name="Revoke Issuer Role" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Revoke Issuer Role" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -289,7 +289,7 @@ export const config = createConfig({

Limit the maximum total supply of your token. Setting supply caps requires the **`DEFAULT_ADMIN_ROLE`**. The new cap cannot be less than the current total supply.

<Demo.Container name="Set Supply Cap" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Set Supply Cap" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -364,7 +364,7 @@ Transfer policies can be:

Learn more about configuring transfer policies in the [TIP-403 specification](/protocol/tip403/spec).

<Demo.Container name="Create and Link Transfer Policy" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Create and Link Transfer Policy" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -465,7 +465,7 @@ export const config = createConfig({

Temporarily halt all token transfers during emergency situations or maintenance windows. Pausing transfers requires the **`PAUSE_ROLE`**. Unpausing transfers requires the **`UNPAUSE_ROLE`**.

<Demo.Container name="Pause and Unpause Your Token" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Pause and Unpause Your Token" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -545,7 +545,7 @@ export const config = createConfig({

The Burn Blocked role allows your team to burn tokens from blocked or frozen addresses. This is useful for regulatory compliance when you need to remove tokens from addresses that violate terms of service or legal requirements.

<Demo.Container name="Create and Link Transfer Policy" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Create and Link Transfer Policy" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down
6 changes: 3 additions & 3 deletions src/pages/guide/issuance/mint-stablecoins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Once you've created your token, you can proceed to grant the issuer role and min

Assign the issuer role to the address that will mint tokens. Minting requires the **`ISSUER_ROLE`**.

<Demo.Container name="Grant Issuer Role" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Grant Issuer Role" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -96,7 +96,7 @@ export const config = createConfig({

Now that the issuer role is granted, you can mint tokens to any address.

<Demo.Container name="Mint Tokens" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Mint Tokens" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down Expand Up @@ -264,7 +264,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

To decrease supply, you can burn tokens from your own balance. Burning requires the **`ISSUER_ROLE`** and sufficient balance in the caller's account.

<Demo.Container name="Burn Your Token" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Burn Your Token" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/issuance/use-for-fees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Enable users to pay transaction fees using your stablecoin. Tempo supports flexi

## Demo

<Demo.Container name="Use Your Stablecoin for Fees" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Use Your Stablecoin for Fees" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/payments/accept-a-payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Payments are automatically credited to the recipient's address when a transfer i

In this basic receiving demo you can see the balances update after you add funds to your account, using the `getBalance` and `watchEvent` calls documented below.

<Demo.Container name="Receive a Payment" footerVariant="balances" tokens={[Token.alphaUsd, Token.betaUsd, Token.thetaUsd]} src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Receive a Payment" footerVariant="balances" tokens={[Token.alphaUsd, Token.betaUsd, Token.thetaUsd]} src="tempoxyz/examples/tree/main/examples/payments">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} last />
</Demo.Container>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/guide/payments/pay-fees-in-any-stablecoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Configure users to pay transaction fees in any supported stablecoin. Tempo's fle

By the end of this guide you will be able to pay fees in any stablecoin on Tempo.

<Demo.Container name="Pay Fees in Any Stablecoin" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Pay Fees in Any Stablecoin" footerVariant="source" src="tempoxyz/examples/tree/main/examples/payments">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.PayWithFeeToken stepNumber={3} feeToken={betaUsd} last />
Expand Down Expand Up @@ -133,7 +133,7 @@ Now that you have `AlphaUSD` to send and `BetaUSD` to pay fees with, you can add

After this step, your users can send payments with a specified fee token by clicking the "Send Payment" button!

<Demo.Container name="Pay Fees in Any Stablecoin" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Pay Fees in Any Stablecoin" footerVariant="source" src="tempoxyz/examples/tree/main/examples/payments">
<Step.AddFunds stepNumber={1} />
<Step.PayWithFeeToken stepNumber={2} last />
</Demo.Container>
Expand Down Expand Up @@ -302,7 +302,7 @@ await client.faucet.fundSync({

Now that you have `AlphaUSD` to send and `BetaUSD` to pay fees with, you can now add logic to send a payment with a specified fee token.

<Demo.Container name="Pay Fees in Any Stablecoin" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Pay Fees in Any Stablecoin" footerVariant="source" src="tempoxyz/examples/tree/main/examples/payments">
<Step.AddFunds stepNumber={1} />
<Step.PayWithFeeToken stepNumber={2} last />
</Demo.Container>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/payments/send-a-payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Send stablecoin payments between accounts on Tempo. Payments can include optiona

By the end of this guide you will be able to send payments on Tempo with an optional memo.

<Demo.Container name="Send a Payment" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Send a Payment" footerVariant="source" src="tempoxyz/examples/tree/main/examples/payments">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.SendPayment stepNumber={3} last />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/payments/sponsor-user-fees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Enable gasless transactions by sponsoring transaction fees for your users. Tempo

## Demo

<Demo.Container name="Sponsor User Fees" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Sponsor User Fees" footerVariant="source" src="tempoxyz/examples/tree/main/examples/payments">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.SendRelayerSponsoredPayment stepNumber={3} last />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/payments/transfer-memos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attach 32-byte references to [TIP-20](/protocol/tip20/overview) transfers for pa

## Demo

<Demo.Container name="Transfer with Memo" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/payments">
<Demo.Container name="Transfer with Memo" footerVariant="source" src="tempoxyz/examples/tree/main/examples/payments">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.SendPaymentWithMemo stepNumber={3} last />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/stablecoin-dex/executing-swaps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Execute swaps between stablecoins on the exchange. Swaps execute immediately aga

By the end of this guide you will be able to execute swaps, get price quotes, and manage slippage protection.

<Demo.Container name="Execute a Swap" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/exchange">
<Demo.Container name="Execute a Swap" footerVariant="source" src="tempoxyz/examples/tree/main/examples/exchange">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.MakeSwaps stepNumber={3} last />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/stablecoin-dex/managing-fee-liquidity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Step from '../../../components/guides/steps'

The Fee AMM converts transaction fees between stablecoins when users pay in a different token than the validator prefers. This guide shows you how to add and remove liquidity to enable fee conversions.

<Demo.Container name="Manage Fee Liquidity" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/issuance">
<Demo.Container name="Manage Fee Liquidity" footerVariant="source" src="tempoxyz/examples/tree/main/examples/issuance">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.CreateOrLoadToken stepNumber={3} />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/guide/stablecoin-dex/providing-liquidity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In this guide you will learn how to place buy and sell orders to provide liquidi

## Demo

<Demo.Container name="Place an Order" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/exchange">
<Demo.Container name="Place an Order" footerVariant="source" src="tempoxyz/examples/tree/main/examples/exchange">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.PlaceOrder stepNumber={3} />
Expand Down Expand Up @@ -193,7 +193,7 @@ Cancel an order using its order ID.

When you cancel an order, any remaining funds are credited to your exchange balance (not directly to your wallet). To move funds back to your wallet, you can [withdraw them to your wallet](/protocol/exchange/exchange-balance#withdrawing-funds).

<Demo.Container name="Place and Cancel an Order" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/exchange">
<Demo.Container name="Place and Cancel an Order" footerVariant="source" src="tempoxyz/examples/tree/main/examples/exchange">
<Step.Connect stepNumber={1} />
<Step.AddFunds stepNumber={2} />
<Step.PlaceOrder stepNumber={3} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/use-accounts/connect-to-wallets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This guide will walk you through how to set up your application to connect to wa
<Demo.Container
name="Connect to Wallets"
footerVariant="source"
src="tempoxyz/tempo-ts/tree/main/examples/accounts"
src="tempoxyz/examples/tree/main/examples/accounts"
>
<Step.ConnectWallet stepNumber={1} last />
</Demo.Container>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/use-accounts/embed-passkeys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ guide that walks you through on how to connect your application to a universal w

By the end of this guide, you will be able to embed passkey accounts into your application.

<Demo.Container name="Passkey Accounts" footerVariant="source" src="tempoxyz/tempo-ts/tree/main/examples/accounts">
<Demo.Container name="Passkey Accounts" footerVariant="source" src="tempoxyz/examples/tree/main/examples/accounts">
<EmbedPasskeys />
</Demo.Container>

Expand Down