Skip to content

Commit dccc1d7

Browse files
Minor fixes
* minor fixes * fix links * update links
1 parent a49ecb5 commit dccc1d7

File tree

17 files changed

+39
-43
lines changed

17 files changed

+39
-43
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gator Examples
22

3-
A monorepo containing the example applications for building apps with Metamask Delegation Tookit (https://docs.gator.metamask.io/)
3+
A monorepo containing the example applications for building apps with [Metamask Delegation Tookit](https://docs.metamask.io/delegation-toolkit/)
44

55
## Overview
66

packages/create-gator-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Currently, the following templates are available:
5050

5151
## Related Projects
5252

53-
- [MetaMask Delegation Toolkit Docs](https://docs.gator.metamask.io/)
53+
- [MetaMask Delegation Toolkit Docs](https://docs.metamask.io/delegation-toolkit/)

packages/create-gator-app/src/lib/helpers/outro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const displayOutro = (options: IBuilderOptions) => {
6363
console.log(chalk.cyan("\n📚 Documentation:"));
6464
console.log(
6565
chalk.white(
66-
" • Learn more about Delegation toolkit: https://docs.gator.metamask.io/"
66+
" • Learn more about Delegation toolkit: https://docs.metamask.io/delegation-toolkit"
6767
)
6868
);
6969

packages/create-gator-app/templates/nextjs/erc7715-starter/README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# NextJS Gator Starter Template
1+
# NextJS 7715 Starter Template
22

3-
This is a NextJS Gator Starter template created with create-gator-app.
3+
This is a NextJS 7115 Starter template created with create-gator-app.
44

55
This template is meant to help you bootstrap your own projects with [Metamask Delegation Toolkit](https://metamask.io/developer/delegation-toolkit). It helps you build smart accounts with account abstraction, and powerful delegation features.
66

7-
Learn more about [Metamask Delegation Toolkit](https://metamask.io/developer/delegation-toolkit).
7+
Learn more about [Metamask Delegation Toolkit](https://docs.metamask.io/delegation-toolkit/get-started/quickstart/).
88

99
## Prerequisites
1010

1111
1. **Pimlico API Key**: In this template, we use Pimlico's Bundler and Paymaster services to submit user operations and sponsor transactions, respectively. You can retrieve the required API key from [Pimlico's Dashboard](https://dashboard.pimlico.io/apikeys).
1212

13-
2. **Web3Auth Client ID**: During setup, if you choose the embedded wallet option, you'll need to create a new project on the Web3Auth Dashboard and obtain the Client ID. For full instructions, [refer to the Web3Auth documentation](https://web3auth.io/docs/dashboard-setup#getting-started).
13+
2. **RPC URL** In this template, you’ll need an RPC URL for the Sepolia chain. You can use any preferred RPC provider or a public RPC. However, we recommend using a paid RPC to ensure better reliability and avoid potential rate-limiting issues.
1414

1515
## Project Structure
1616

@@ -49,14 +49,6 @@ Update the following environment variables in the `.env` file located in your pr
4949
```
5050
NEXT_PUBLIC_PIMLICO_API_KEY =
5151
NEXT_PUBLIC_RPC_URL=
52-
53-
# Specify the Web3Auth Client ID if you opt
54-
# for the embedded wallet option.
55-
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID =
56-
57-
# The Web3Auth network is configured according to
58-
# the your chosen Web3Auth network input.
59-
NEXT_PUBLIC_WEB3AUTH_NETWORK =
6052
```
6153

6254
## Getting Started
@@ -85,5 +77,5 @@ This template demonstrates a complete ERC7715 delegation flow:
8577

8678
To learn more about Delegation Toolkit, take a look at the following resources:
8779

88-
- [Delegation Toolkit Documentation](https://docs.gator.metamask.io/) - learn about Delegation Toolkit features and API.
80+
- [Delegation Toolkit Documentation](https://docs.metamask.io/delegation-toolkit) - learn about Delegation Toolkit features and API.
8981

packages/create-gator-app/templates/nextjs/erc7715-starter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "nextjs-starter",
2+
"name": "nextjs-erc7715-starter",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

packages/create-gator-app/templates/nextjs/erc7715-starter/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function Footer() {
55
<footer className="border-t border-gray-200 dark:border-gray-700/30 py-6 mt-auto">
66
<div className="max-w-4xl mx-auto px-6 flex justify-center space-x-8">
77
<a
8-
href="https://docs.gator.metamask.io/"
8+
href="https://docs.metamask.io/delegation-toolkit/"
99
target="_blank"
1010
rel="noopener noreferrer"
1111
className="flex items-center space-x-2 text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors duration-200 hover:underline hover:underline-offset-4"

packages/create-gator-app/templates/nextjs/erc7715-starter/src/components/Steps.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
44
import CreateSessionAccountButton from "@/components/CreateSessionAccount";
55
import RedeemPermissionButton from "@/components/RedeemPermissionButton";
66
import GrantPermissionsButton from "./GrantPermissionsButton";
7-
import { useSessionAccount } from "@/providers/SessionAccountProvider'";
7+
import { useSessionAccount } from "@/providers/SessionAccountProvider";
88
import { usePermissions } from "@/providers/PermissionProvider";
99

1010
export default function Steps() {
@@ -32,7 +32,7 @@ export default function Steps() {
3232
delegations (ERC7710) that was granted by the user (ERC7715). For
3333
this example, we will use a
3434
<a
35-
href="https://docs.gator.metamask.io/concepts/delegator-accounts"
35+
href="https://docs.metamask.io/delegation-toolkit/concepts/smart-accounts/"
3636
className="text-blue-500 hover:text-blue-400 underline ml-1"
3737
target="_blank"
3838
rel="noopener noreferrer"
@@ -55,7 +55,7 @@ export default function Steps() {
5555
signer and save the private key in the session storage. In
5656
production explore all other signer supported by gator SDK
5757
<a
58-
href="https://docs.gator.metamask.io/how-to/configure-delegator-accounts-signers"
58+
href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account/configure-accounts-signers/"
5959
className="text-blue-500 hover:text-blue-400 underline ml-1"
6060
target="_blank"
6161
rel="noopener noreferrer"

packages/create-gator-app/templates/nextjs/starter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
6464

6565
To learn more about Delegation Toolkit, take a look at the following resources:
6666

67-
- [Delegation Toolkit Documentation](https://docs.gator.metamask.io/) - learn about Delegation Toolkit features and API.
67+
- [Delegation Toolkit Documentation](https://docs.metamask.io/delegation-toolkit/) - learn about Delegation Toolkit features and API.
6868

packages/create-gator-app/templates/nextjs/starter/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function Footer() {
44
return (
55
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-start">
66
<a
7-
href="https://docs.gator.metamask.io/"
7+
href="https://docs.metamask.io/delegation-toolkit/"
88
target="_blank"
99
rel="noopener noreferrer"
1010
className="flex items-center gap-2 hover:underline hover:underline-offset-4"

packages/create-gator-app/templates/nextjs/starter/src/components/Steps.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function Steps() {
8383
{step === 1 && (
8484
<>
8585
<p className="text-white/70 max-w-4xl leading-relaxed">
86-
The first step would be to connect your Metamask wallet.
86+
The first step would be to connect your wallet.
8787
<br />
8888
<br />
8989
You can customize the Wagmi config to connect to any chain you want,
@@ -99,7 +99,7 @@ export default function Steps() {
9999
be deployed on-chain, just in time for redeeming the delegation.
100100
</p>
101101

102-
<LearnMoreButton href="https://docs.gator.metamask.io/how-to/create-smart-account" />
102+
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account" />
103103
<CreateDelegatorCodeBlock />
104104
<DeployDelegatorButton />
105105
</>
@@ -112,7 +112,7 @@ export default function Steps() {
112112
it is deployed by submitting a user operation.
113113
</p>
114114

115-
<LearnMoreButton href="https://docs.gator.metamask.io/how-to/create-smart-account" />
115+
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account" />
116116
<CreateDelegateCodeBlock />
117117
<CreateDelegateButton />
118118
</>
@@ -129,7 +129,7 @@ export default function Steps() {
129129
The delegator must specify sufficient caveats to limit the authority
130130
being granted to the delegate.{" "}
131131
<a
132-
href="https://docs.gator.metamask.io/development/how-to/create-delegation/restrict-delegation"
132+
href="https://docs.metamask.io/delegation-toolkit/how-to/create-delegation/restrict-delegation"
133133
target="_blank"
134134
rel="noopener noreferrer"
135135
className="text-cyan-400 hover:text-cyan-300 underline italic"
@@ -139,7 +139,7 @@ export default function Steps() {
139139
.
140140
</p>
141141

142-
<LearnMoreButton href="https://docs.gator.metamask.io/how-to/create-delegation" />
142+
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-delegation" />
143143
<CreateDelegationCodeBlock />
144144
<CreateDelegationButton />
145145
</>
@@ -171,7 +171,7 @@ export default function Steps() {
171171
stored in localStorage to execute on behalf of the delegator.
172172
</p>
173173

174-
<LearnMoreButton href="https://docs.gator.metamask.io/how-to/redeem-delegation" />
174+
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/redeem-delegation" />
175175
<RedeemDelegationCodeBlock />
176176
<RedeemDelegationButton />
177177
</>

0 commit comments

Comments
 (0)