Skip to content

Commit 884e50a

Browse files
Update templates
* update next js version * update versions to latest * update intro and outro * update delegation toolkit references
1 parent a6ec45d commit 884e50a

File tree

14 files changed

+54
-54
lines changed

14 files changed

+54
-54
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ export function displayIntro(): void {
3232
**%@@@@@@@@%%%%%%%@@@%%%%%@@@@%+=*
3333
%%%%%% @
3434
35-
MᴇᴛᴀMᴀsᴋ Dᴇʟᴇɢᴀᴛɪᴏɴ Tᴏᴏʟᴋɪᴛ
35+
MetaMask Smart Accounts Kit
3636
3737
3838
`)
3939
);
4040

41-
console.log(chalk.cyan.bold("🦊 About MetaMask Delegation Toolkit:"));
41+
console.log(chalk.cyan.bold("🦊 About MetaMask Smart Accounts Kit:"));
4242
console.log(
4343
chalk.cyan(`
4444
┌─────────────────────────────────────────────────────────────┐
45-
│ The MetaMask Delegation Toolkit enables developers to │
46-
│ create frictionless experiences with granular permission
47-
sharing. It provides instant onboarding, new web3
48-
experiences, and uninterrupted user journeys.
45+
│ The MetaMask Smart Accounts Kit enables developers to │
46+
│ create and interact with MetaMask Smart Accounts, unlocking
47+
│ new programmable account behaviors and granular permission
48+
sharing.
4949
└─────────────────────────────────────────────────────────────┘`)
5050
);
5151
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export const displayOutro = (options: IBuilderOptions) => {
3636
console.log(chalk.cyan("\n📚 Documentation:"));
3737
console.log(
3838
chalk.white(
39-
" • Learn more about Delegation toolkit: https://docs.metamask.io/delegation-toolkit"
39+
" • Learn more about MetaMask Smart Accounts Kit: https://docs.metamask.io/smart-accounts-kit"
4040
)
4141
);
4242

43-
console.log(chalk.green("\n🦊 Happy building with Delegation toolkit! 🦊"));
43+
console.log(chalk.green("\n🦊 Happy building with MetaMask Smart Accounts Kit! 🦊"));
4444
};

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@metamask/smart-accounts-kit": "^0.2.0",
12+
"@metamask/smart-accounts-kit": "^0.3.0",
1313
"@tailwindcss/postcss": "^4.1.1",
1414
"@tanstack/react-query": "^5.90.7",
1515
"lucide-react": "^0.487.0",
16-
"next": "15.4.8",
16+
"next": "15.4.10",
1717
"permissionless": "^0.2.46",
1818
"react": "^19.0.0",
1919
"react-dom": "^19.0.0",
@@ -27,7 +27,7 @@
2727
"@types/react-dom": "^19",
2828
"autoprefixer": "^10.4.21",
2929
"eslint": "^9",
30-
"eslint-config-next": "15.4.8",
30+
"eslint-config-next": "15.4.10",
3131
"postcss": "^8.5.3",
3232
"tailwindcss": "^4.1.1",
3333
"typescript": "^5"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default function Steps() {
8484
key and save it in the session storage. In production explore all other
8585
signers supported by the
8686
<a
87-
href="https://docs.metamask.io/delegation-toolkit/guides/smart-accounts/create-smart-account/"
87+
href="https://docs.metamask.io/smart-accounts-kit/guides/smart-accounts/create-smart-account/"
8888
className="text-blue-500 hover:text-blue-400 underline ml-1"
8989
target="_blank"
9090
rel="noopener noreferrer"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@metamask/smart-accounts-kit": "^0.2.0",
12+
"@metamask/smart-accounts-kit": "^0.3.0",
1313
"@tanstack/react-query": "^5.90.7",
14-
"next": "15.4.8",
14+
"next": "15.4.10",
1515
"permissionless": "^0.2.57",
1616
"react": "^19.0.0",
1717
"react-dom": "^19.0.0",
@@ -25,7 +25,7 @@
2525
"@types/react": "^19",
2626
"@types/react-dom": "^19",
2727
"eslint": "^9",
28-
"eslint-config-next": "15.4.8",
28+
"eslint-config-next": "15.4.10",
2929
"postcss": "^8.5.3",
3030
"tailwindcss": "^4.1.7",
3131
"typescript": "^5"

packages/create-gator-app/templates/nextjs/delegation-starter/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const geistMono = Geist_Mono({
1616
});
1717

1818
export const metadata: Metadata = {
19-
title: "Delegation Toolkit Starter App",
20-
description: "Generated by create next app",
19+
title: "MetaMask Smart Accounts & Delegation Starter",
20+
description: "A starter for the MetaMask Smart Accounts & Delegation",
2121
};
2222

2323
export default function RootLayout({

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,24 +95,24 @@ export default function Steps() {
9595
{step === 2 && (
9696
<>
9797
<p className="text-gray-700 dark:text-white/70 max-w-4xl leading-relaxed">
98-
The MetaMask smart contract account that grants authority. This will
98+
The MetaMask smart account that grants authority. This will
9999
be deployed on-chain, just in time for redeeming the delegation.
100100
</p>
101101

102-
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account" />
102+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/smart-accounts/create-smart-account/" />
103103
<CreateDelegatorCodeBlock />
104104
<DeployDelegatorButton />
105105
</>
106106
)}
107107
{step === 3 && (
108108
<>
109109
<p className="text-gray-700 dark:text-white/70 max-w-4xl leading-relaxed mb-6">
110-
The MetaMask smart contract account that receives the delegation.
110+
The MetaMask smart account that receives the delegation.
111111
Initially this will be counterfactual (not deployed on-chain), until
112112
it is deployed by submitting a user operation.
113113
</p>
114114

115-
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account" />
115+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/smart-accounts/create-smart-account/" />
116116
<CreateDelegateCodeBlock />
117117
<CreateDelegateButton />
118118
</>
@@ -126,20 +126,20 @@ export default function Steps() {
126126
delegation will be persisted in localStorage.
127127
<br />
128128
<br />
129-
The delegator must specify sufficient caveats to limit the authority
129+
The delegator must specify delegation scopes to limit the authority
130130
being granted to the delegate.{" "}
131131
<a
132-
href="https://docs.metamask.io/delegation-toolkit/how-to/create-delegation/restrict-delegation"
132+
href="https://docs.metamask.io/smart-accounts-kit/guides/delegation/use-delegation-scopes/"
133133
target="_blank"
134134
rel="noopener noreferrer"
135135
className="text-cyan-600 dark:text-cyan-400 hover:text-cyan-700 dark:hover:text-cyan-300 underline italic"
136136
>
137-
See how to restrict the delegation
137+
See how to use delegation scopes
138138
</a>
139139
.
140140
</p>
141141

142-
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-delegation" />
142+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/delegation/execute-on-smart-accounts-behalf/#5-create-a-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.metamask.io/delegation-toolkit/how-to/redeem-delegation" />
174+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/delegation/execute-on-smart-accounts-behalf/#7-redeem-the-delegation" />
175175
<RedeemDelegationCodeBlock />
176176
<RedeemDelegationButton />
177177
</>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"dependencies": {
1212
"@farcaster/miniapp-sdk": "^0.2.1",
1313
"@farcaster/miniapp-wagmi-connector": "^1.1.0",
14-
"@metamask/smart-accounts-kit": "^0.2.0",
14+
"@metamask/smart-accounts-kit": "^0.3.0",
1515
"@tanstack/react-query": "^5.76.1",
1616
"permissionless": "^0.2.57",
1717
"viem": "^2.38.4",
1818
"wagmi": "^2.18.2",
1919
"react": "19.1.0",
2020
"react-dom": "19.1.0",
21-
"next": "15.4.8"
21+
"next": "15.4.10"
2222
},
2323
"devDependencies": {
2424
"typescript": "^5",
@@ -28,7 +28,7 @@
2828
"@tailwindcss/postcss": "^4",
2929
"tailwindcss": "^4",
3030
"eslint": "^9",
31-
"eslint-config-next": "15.4.8",
31+
"eslint-config-next": "15.4.10",
3232
"@eslint/eslintrc": "^3"
3333
}
3434
}

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,24 +95,24 @@ export default function Steps() {
9595
{step === 2 && (
9696
<>
9797
<p className="text-gray-700 dark:text-white/70 max-w-4xl leading-relaxed">
98-
The MetaMask smart contract account that grants authority. This will
98+
The MetaMask smart account that grants authority. This will
9999
be deployed on-chain, just in time for redeeming the delegation.
100100
</p>
101101

102-
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account" />
102+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/smart-accounts/create-smart-account/" />
103103
<CreateDelegatorCodeBlock />
104104
<DeployDelegatorButton />
105105
</>
106106
)}
107107
{step === 3 && (
108108
<>
109109
<p className="text-gray-700 dark:text-white/70 max-w-4xl leading-relaxed mb-6">
110-
The MetaMask smart contract account that receives the delegation.
110+
The MetaMask smart account that receives the delegation.
111111
Initially this will be counterfactual (not deployed on-chain), until
112112
it is deployed by submitting a user operation.
113113
</p>
114114

115-
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/create-smart-account" />
115+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/smart-accounts/create-smart-account/" />
116116
<CreateDelegateCodeBlock />
117117
<CreateDelegateButton />
118118
</>
@@ -126,20 +126,20 @@ export default function Steps() {
126126
delegation will be persisted in localStorage.
127127
<br />
128128
<br />
129-
The delegator must specify sufficient caveats to limit the authority
129+
The delegator must specify delegation scopes to limit the authority
130130
being granted to the delegate.{" "}
131131
<a
132-
href="https://docs.metamask.io/delegation-toolkit/how-to/create-delegation/restrict-delegation"
132+
href="https://docs.metamask.io/smart-accounts-kit/guides/delegation/use-delegation-scopes/"
133133
target="_blank"
134134
rel="noopener noreferrer"
135135
className="text-cyan-600 dark:text-cyan-400 hover:text-cyan-700 dark:hover:text-cyan-300 underline italic"
136136
>
137-
See how to restrict the delegation
137+
See how to use delegation scopes
138138
</a>
139139
.
140140
</p>
141141

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

174-
<LearnMoreButton href="https://docs.metamask.io/delegation-toolkit/how-to/redeem-delegation" />
174+
<LearnMoreButton href="https://docs.metamask.io/smart-accounts-kit/guides/delegation/execute-on-smart-accounts-behalf/#7-redeem-the-delegation" />
175175
<RedeemDelegationCodeBlock />
176176
<RedeemDelegationButton />
177177
</>
178178
)}
179179
</>
180180
);
181-
}
181+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@metamask/smart-accounts-kit": "^0.2.0",
12+
"@metamask/smart-accounts-kit": "^0.3.0",
1313
"@tanstack/react-query": "^5.81.5",
1414
"permissionless": "^0.2.47",
15-
"next": "15.4.8",
15+
"next": "15.4.10",
1616
"react": "^19.0.0",
1717
"react-dom": "^19.0.0",
1818
"viem": "^2.31.6",
@@ -25,7 +25,7 @@
2525
"@types/react": "^19",
2626
"@types/react-dom": "^19",
2727
"eslint": "^9",
28-
"eslint-config-next": "15.4.8",
28+
"eslint-config-next": "15.4.10",
2929
"tailwindcss": "^4",
3030
"typescript": "^5"
3131
}

0 commit comments

Comments
 (0)