diff --git a/apps/portal/src/app/dotnet/godot/page.mdx b/apps/portal/src/app/dotnet/godot/page.mdx index 72f2958b2c5..a8146f82423 100644 --- a/apps/portal/src/app/dotnet/godot/page.mdx +++ b/apps/portal/src/app/dotnet/godot/page.mdx @@ -24,7 +24,7 @@ To add the Thirdweb .NET SDK to your Godot project, you will need to manually ed ```xml - + ``` diff --git a/apps/portal/src/app/dotnet/maui/page.mdx b/apps/portal/src/app/dotnet/maui/page.mdx new file mode 100644 index 00000000000..5e2bfb0564a --- /dev/null +++ b/apps/portal/src/app/dotnet/maui/page.mdx @@ -0,0 +1,32 @@ +import { OpenSourceCard, DocImage, createMetadata } from "@doc"; + +export const metadata = createMetadata({ + title: "Thirdweb .NET SDK in MAUI", + description: + "A guide on how to integrate the Thirdweb .NET SDK into your MAUI projects to add blockchain functionality.", +}); + +# Integrating into MAUI Projects + +Thirdweb's .NET SDK is fully compatible with .NET MAUI, allowing you to integrate wallets and blockchain functionality into your cross-platform applications. + +## Configuration + +### Adding the Package to Your Project + +To add the Thirdweb .NET SDK to your MAUI project, you'll simply need to run: + +```bash +dotnet add package Thirdweb +``` + +## Example Project + +An example MAUI project integrating the Thirdweb .NET SDK is available below. + + diff --git a/apps/portal/src/app/dotnet/sidebar.tsx b/apps/portal/src/app/dotnet/sidebar.tsx index 661d52a3254..fd3e324b95c 100644 --- a/apps/portal/src/app/dotnet/sidebar.tsx +++ b/apps/portal/src/app/dotnet/sidebar.tsx @@ -252,6 +252,10 @@ export const sidebar: SideBar = { name: "Unity Integration", href: "/unity/v5", }, + { + name: "MAUI Integration", + href: "/dotnet/maui", + }, { name: "Core", isCollapsible: false, @@ -287,7 +291,7 @@ export const sidebar: SideBar = { { separator: true }, { name: "Full Reference", - href: "https://thirdweb-dev.github.io/thirdweb-dotnet/index.html", + href: "https://thirdweb-dev.github.io/dotnet/index.html", }, ], }; diff --git a/apps/portal/src/app/dotnet/utils/page.mdx b/apps/portal/src/app/dotnet/utils/page.mdx index eac2c473b6d..a32b46643b4 100644 --- a/apps/portal/src/app/dotnet/utils/page.mdx +++ b/apps/portal/src/app/dotnet/utils/page.mdx @@ -15,7 +15,105 @@ Useful for passing the zero address to various functions. A `string` representing the native token address `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`. -Useful for passing the native token address to various functions. +Useful for passing the native token address (ETH or equivalent) to various functions. + +## Constants.DECIMALS_18 + +A `double` representing the value `1000000000000000000`. + +Useful for converting values between different decimal places. + +## Constants.ENTRYPOINT_ADDRESS_V06 + +A `string` representing the entrypoint address for Account Abstraction 0.7.0 `0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789`. + +## Constants.ENTRYPOINT_ADDRESS_V07 + +A `string` representing the entrypoint address for Account Abstraction 0.7.0 `0x0000000071727De22E5E9d8BAf0edAc6f37da032`. + +## GetSocialProfiles + +Fetches the social profiles for the given address or ENS using a Thirdweb client. + +```csharp +var socialProfiles = await Utils.GetSocialProfiles(client, addressOrEns); +``` + +
+ +### client + +A `ThirdwebClient` object representing the client to use for fetching social profiles. + +### addressOrEns + +A `string` representing the wallet address or ENS to fetch social profiles for. + +
+ +
+ +### socialProfiles + +A `SocialProfiles` object containing the fetched social profiles. + +
+ +## GetENSFromAddress + +Fetches the ENS name for the given address using a Thirdweb client. + +```csharp +var ensName = await Utils.GetENSFromAddress(client, address); +``` + +
+ +### client + +A `ThirdwebClient` object representing the client to use for fetching the ENS name. + +### address + +A `string` representing the wallet address to fetch the ENS name for. + +
+ +
+ +### ensName + +A `string` representing the fetched ENS name. + +
+ +## GetAddressFromENS + +Fetches the address for the given ENS name using a Thirdweb client. + +```csharp +var address = await Utils.GetAddressFromENS(client, ensName); +``` + +
+ +### client + +A `ThirdwebClient` object representing the client to use for fetching the address. + +### ensName + +A `string` representing the ENS name to fetch the address for. + +
+ +
+ +### address + +A `string` representing the fetched address. + +
## GetChainMetadata diff --git a/apps/portal/src/app/unity/v5/sidebar.tsx b/apps/portal/src/app/unity/v5/sidebar.tsx index 5bf2e3c54d1..78c4906b52e 100644 --- a/apps/portal/src/app/unity/v5/sidebar.tsx +++ b/apps/portal/src/app/unity/v5/sidebar.tsx @@ -79,6 +79,15 @@ export const sidebar: SideBar = { name: "Interacting with Contracts", href: `${sdkSlug}/contracts`, }, + { separator: true }, + { + name: ".NET SDK Portal", + href: "/dotnet", + }, + { + name: "Full Reference", + href: "https://thirdweb-dev.github.io/dotnet/index.html", + }, ], }, ],