You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smart-accounts-kit/guides/configure-toolkit.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Providing a paymaster is optional when configuring your bundler client. However,
57
57
58
58
## (Optional) Configure the toolkit environment
59
59
60
-
The toolkit environment (`DeleGatorEnvironment`) defines the contract addresses necessary for interacting with the [Delegation Framework](../concepts/delegation/index.md#delegation-framework) on a specific network.
60
+
The toolkit environment (`SmartAccountsEnvironment`) defines the contract addresses necessary for interacting with the [Delegation Framework](../concepts/delegation/index.md#delegation-framework) on a specific network.
61
61
It serves several key purposes:
62
62
63
63
- It provides a centralized configuration for all the contract addresses required by the Delegation Framework.
@@ -74,10 +74,10 @@ If no environment is found for the specified chain, it throws an error.
See the changelog of the toolkit version you are using (in the left sidebar) for supported chains.
118
118
:::
119
119
120
-
Alternatively, you can use the [`getDelegatorEnvironment`](../reference/delegation/index.md#getdelegatorenvironment) function to resolve the environment.
120
+
Alternatively, you can use the [`getSmartAccountsEnvironment`](../reference/delegation/index.md#getdelegatorenvironment) function to resolve the environment.
121
121
This function is especially useful if your delegator is not a smart account when
122
122
creating a [redelegation](../concepts/delegation/index.md#delegation-types).
You can deploy the contracts using any method, but the toolkit provides a convenient [`deployDelegatorEnvironment`](../reference/delegation/index.md#deploydelegatorenvironment) function. This function simplifies deploying the Delegation Framework contracts to your desired EVM chain.
137
137
138
138
This function requires a Viem [Public Client](https://viem.sh/docs/clients/public), [Wallet Client](https://viem.sh/docs/clients/wallet), and [Chain](https://viem.sh/docs/glossary/types#chain)
139
-
to deploy the contracts and resolve the `DeleGatorEnvironment`.
139
+
to deploy the contracts and resolve the `SmartAccountsEnvironment`.
140
140
141
141
Your wallet must have a sufficient native token balance to deploy the contracts.
142
142
@@ -208,19 +208,19 @@ Once the contracts are deployed, you can use them to override the environment.
208
208
### Override the environment
209
209
210
210
To override the environment, the toolkit provides an [`overrideDeployedEnvironment`](../reference/delegation/index.md#overridedeployedenvironment) function to resolve
211
-
`DeleGatorEnvironment` with specified contracts for the given chain and contract version.
211
+
`SmartAccountsEnvironment` with specified contracts for the given chain and contract version.
212
212
213
213
```typescript
214
214
// The config.ts is the same as in the previous example.
0 commit comments