This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into kien/dynamic-load-extensio…
…ns-list
- Loading branch information
Showing
20 changed files
with
648 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"; | ||
import { createMetadata, Callout } from "@doc"; | ||
|
||
export const metadata = createMetadata({ | ||
image: { | ||
title: "thirdweb Pay - Test Mode", | ||
icon: "thirdweb", | ||
}, | ||
title: "thirdweb Pay - Test Mode - thirdweb", | ||
description: "thirdweb Pay - Test Mode", | ||
}); | ||
|
||
# Enable Test Mode | ||
|
||
Developers can turn on Buy With Fiat Test Mode to test fiat-to-crypto transactions through our onramp providers. | ||
|
||
<Callout variant="info"> | ||
|
||
Crypto-to-crypto transactions will remain on mainnet during test mode as Pay | ||
does not currently support testnets. | ||
|
||
</Callout> | ||
|
||
<Tabs defaultValue="connectbutton"> | ||
|
||
<TabsList> | ||
<TabsTrigger value="connectbutton">ConnectButton</TabsTrigger> | ||
<TabsTrigger value="payembed">PayEmbed</TabsTrigger> | ||
<TabsTrigger value="sendtxn">sendTransaction</TabsTrigger> | ||
</TabsList> | ||
|
||
<TabsContent value='connectbutton'> | ||
|
||
```tsx | ||
<ConnectButton | ||
client={client} | ||
detailsModal={{ | ||
payOptions: { | ||
buyWithFiat: { | ||
testMode: true, // defaults to false | ||
}, | ||
}, | ||
}} | ||
/> | ||
``` | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="payembed"> | ||
|
||
```tsx | ||
<PayEmbed | ||
client={client} | ||
payOptions={{ | ||
buyWithFiat: { | ||
testMode: true, // defaults to false | ||
}, | ||
}} | ||
/> | ||
``` | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="sendtxn"> | ||
|
||
```tsx | ||
const { mutate: sendTransaction } = useSendTransaction({ | ||
payModal: { | ||
buyWithFiat: { | ||
testMode: true, // defaults to false | ||
}, | ||
}, | ||
}); | ||
``` | ||
|
||
</TabsContent> | ||
|
||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Details, Callout, DocImage } from "@doc"; | ||
import { createMetadata } from "@doc"; | ||
|
||
export const metadata = createMetadata({ | ||
title: "Security | thirdweb Engine", | ||
description: | ||
"thirdweb Engine provides you with security features to configure and restrict access.", | ||
}); | ||
|
||
# Security | ||
|
||
Engine provides you with security features to configure and restrict access to sensitive operations. | ||
|
||
## IP Allowlist | ||
|
||
You can restrict access to your Engine instance by configuring an IP allowlist. This can be configured in the **Configuration** section of the [Engine dashboard](https://thirdweb.com/dashboard/engine/). | ||
If an IP allowlist is not configured, Engine will allow all incoming requests. | ||
|
||
<Callout variant="info" title="Note"> | ||
This does not affect calls from the Engine dashboard to your Engine instance. | ||
</Callout> | ||
|
||
## Domain Allowlist (CORS) | ||
|
||
You can restrict access to your Engine instance by configuring a domain allowlist. This can be configured in the **Configuration** section of the [Engine dashboard](https://thirdweb.com/dashboard/engine/). | ||
Multiple domains can be added to the allowlist, and Engine will only accept requests from these domains. A wildcard domain can also be added to allow requests from any domain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.