Skip to content

Commit e2cffbc

Browse files
Merge pull request #979 from Web3Auth/aa-fixes
Remove Stackup from documentation
2 parents aa45c91 + 61462a9 commit e2cffbc

File tree

3 files changed

+0
-145
lines changed

3 files changed

+0
-145
lines changed

src/common/sdk/pnp/web/_bundler-configuration.mdx

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ defaultValue="pimlico"
1111
values={[
1212
{ label: "Pimlico", value: "pimlico" },
1313
{ label: "ZeroDev", value: "zerodev" },
14-
{ label: "Stackup", value: "stackup" },
1514
]}
1615
>
1716

@@ -84,40 +83,4 @@ const accountAbstractionProvider = new AccountAbstractionProvider({
8483
```
8584

8685
</TabItem>
87-
88-
<TabItem value="stackup">
89-
90-
```ts
91-
import {
92-
AccountAbstractionProvider,
93-
SafeSmartAccount,
94-
} from "@web3auth/account-abstraction-provider";
95-
96-
const chainConfig = {
97-
chainNamespace: CHAIN_NAMESPACES.EIP155,
98-
chainId: "0xaa36a7",
99-
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
100-
displayName: "Ethereum Sepolia Testnet",
101-
blockExplorerUrl: "https://sepolia.etherscan.io",
102-
ticker: "ETH",
103-
tickerName: "Ethereum",
104-
logo: "https://cryptologos.cc/logos/ethereum-eth-logo.png",
105-
};
106-
107-
const accountAbstractionProvider = new AccountAbstractionProvider({
108-
config: {
109-
chainConfig,
110-
smartAccountInit: new SafeSmartAccount(),
111-
// focus-start
112-
bundlerConfig: {
113-
// Get the Stackup API from app.stackup.sh
114-
url: `https://public.stackup.sh/api/v1/node/ethereum-sepolia`,
115-
},
116-
// focus-end
117-
},
118-
});
119-
```
120-
121-
</TabItem>
122-
12386
</Tabs>

src/common/sdk/pnp/web/_erc20-paymaster-configuration.mdx

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ import Tabs from "@theme/Tabs";
44
When using an ERC-20 paymaster, ensure you include the approval transaction, as Web3Auth does not
55
handle the approval internall.
66

7-
<Tabs
8-
defaultValue="pimlico"
9-
values={[
10-
{ label: "Pimlico", value: "pimlico" },
11-
{ label: "Stackup", value: "stackup" },
12-
]}
13-
>
14-
15-
<TabItem value="pimlico">
16-
177
For Pimlico, you can specify the token you want to use in the paymasterContext. If you want to set
188
up sponsorship policies, you can define those in the paymasterContext as well.
199
[Checkout the supported tokens for ERC-20 Paymaster on Pimlico](https://docs.pimlico.io/infra/paymaster/erc20-paymaster/supported-tokens).
@@ -57,55 +47,3 @@ const accountAbstractionProvider = new AccountAbstractionProvider({
5747
},
5848
});
5949
```
60-
61-
</TabItem>
62-
63-
<TabItem value="stackup">
64-
65-
For Stackup, you need to explicitly specify the type of paymaster you want to use in the
66-
paymasterContext.
67-
[Checkout the supported tokens for ERC-20 Paymaster on Stackup](https://docs.stackup.sh/docs/supported-erc-20-tokens).
68-
69-
```ts
70-
import {
71-
AccountAbstractionProvider,
72-
SafeSmartAccount,
73-
} from "@web3auth/account-abstraction-provider";
74-
75-
const chainConfig = {
76-
chainNamespace: CHAIN_NAMESPACES.EIP155,
77-
chainId: "0xaa36a7",
78-
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
79-
displayName: "Ethereum Sepolia Testnet",
80-
blockExplorerUrl: "https://sepolia.etherscan.io",
81-
ticker: "ETH",
82-
tickerName: "Ethereum",
83-
logo: "https://cryptologos.cc/logos/ethereum-eth-logo.png",
84-
};
85-
86-
const accountAbstractionProvider = new AccountAbstractionProvider({
87-
config: {
88-
chainConfig,
89-
bundlerConfig: {
90-
// Get the Stackup API from app.stackup.sh
91-
url: `https://public.stackup.sh/api/v1/node/ethereum-sepolia`,
92-
// focus-start
93-
paymasterContext: {
94-
type: "erc20token",
95-
token: "SUPPORTED_TOKEN_CONTRACT_ADDRESS",
96-
},
97-
// focus-end
98-
},
99-
smartAccountInit: new SafeSmartAccount(),
100-
// focus-start
101-
paymasterConfig: {
102-
// Get the Stackup API key from app.stackup.sh
103-
url: `https://api.stackup.sh/v1/paymaster/${apiKey}`,
104-
},
105-
// focus-end
106-
},
107-
});
108-
```
109-
110-
</TabItem>
111-
</Tabs>

src/common/sdk/pnp/web/_sponsored-paymaster-configuration.mdx

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ defaultValue="pimlico"
66
values={[
77
{ label: "Pimlico", value: "pimlico" },
88
{ label: "ZeroDev", value: "zerodev" },
9-
{ label: "Stackup", value: "stackup" },
109
]}
1110
>
1211

@@ -87,49 +86,4 @@ const accountAbstractionProvider = new AccountAbstractionProvider({
8786
```
8887

8988
</TabItem>
90-
91-
<TabItem value="stackup">
92-
93-
```ts
94-
import {
95-
AccountAbstractionProvider,
96-
SafeSmartAccount,
97-
} from "@web3auth/account-abstraction-provider";
98-
99-
const chainConfig = {
100-
chainNamespace: CHAIN_NAMESPACES.EIP155,
101-
chainId: "0xaa36a7",
102-
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
103-
displayName: "Ethereum Sepolia Testnet",
104-
blockExplorerUrl: "https://sepolia.etherscan.io",
105-
ticker: "ETH",
106-
tickerName: "Ethereum",
107-
logo: "https://cryptologos.cc/logos/ethereum-eth-logo.png",
108-
};
109-
110-
const accountAbstractionProvider = new AccountAbstractionProvider({
111-
config: {
112-
chainConfig,
113-
smartAccountInit: new SafeSmartAccount(),
114-
bundlerConfig: {
115-
// Get the Stackup API from app.stackup.sh
116-
url: `https://public.stackup.sh/api/v1/node/ethereum-sepolia`,
117-
// focus-start
118-
paymasterContext: {
119-
type: "payg",
120-
},
121-
// focus-start
122-
},
123-
// focus-start
124-
paymasterConfig: {
125-
// Get the Stackup API key from app.stackup.sh
126-
url: `https://api.stackup.sh/v1/paymaster/${apiKey}`,
127-
},
128-
// focus-end
129-
},
130-
});
131-
```
132-
133-
</TabItem>
134-
13589
</Tabs>

0 commit comments

Comments
 (0)