Skip to content

Commit

Permalink
Update links
Browse files Browse the repository at this point in the history
  • Loading branch information
germartinez committed Oct 31, 2024
1 parent daf0cb1 commit f6bff10
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions pages/sdk/protocol-kit/guides/_meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"safe-deployment": "Safe deployment",
"multichain-safe-deployment": "Multichain Safe deployment",
"execute-transactions": "Execute transactions",
"signatures": "Signatures",
"migrate-to-v1": "Migrate to v1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { Steps } from 'nextra/components'

This guide will teach you how to replicate a Safe address across different chains using the Protocol Kit. This process includes initializing the Protocol Kit, configuring the Safes to deploy, predicting its address on different chains, and executing the deployment transactions.

For more detailed information, see the [Protocol Kit Reference](../../../protocol-kit/reference/safe.mdx).

## Prerequisites

- [Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
Expand Down Expand Up @@ -46,7 +44,7 @@ pnpm add @safe-global/protocol-kit viem

### Create a signer

You need a signer to instantiate the Protocol Kit. This example uses a private key to obtain a signer, but other [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) compatible signers are also supported. For detailed information about signers, please refer to the [Protocol Kit reference](../../../../reference-sdk-protocol-kit/overview.md).
You need a signer to instantiate the Protocol Kit. This example uses a private key to obtain a signer, but other [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) compatible signers are also supported. For detailed information about signers, please refer to the [Protocol Kit reference](../../../reference-sdk-protocol-kit/overview.md).

{/* <!-- vale off --> */}

Expand All @@ -58,7 +56,7 @@ pnpm add @safe-global/protocol-kit viem

### Configure the Safe deployment

Define the [`predictedSafe`](../../../../reference-sdk-protocol-kit/initialization/init.mdx#predictedsafe-optional) object with the configuration for all the Safe accounts you will deploy. Check the reference to learn about all the different configuration options.
Define the [`predictedSafe`](../../../reference-sdk-protocol-kit/initialization/init.mdx#predictedsafe-optional) object with the configuration for all the Safe accounts you will deploy. Check the reference to learn about all the different configuration options.

{/* <!-- vale off --> */}

Expand All @@ -79,7 +77,7 @@ pnpm add @safe-global/protocol-kit viem

### Initialize the Protocol Kit

Initialize an instance of the Protocol Kit for each network where you want to deploy a new Safe smart account by calling the [`init`](../../../../reference-sdk-protocol-kit/initialization/init.mdx) method. Pass the `provider` with its corresponding value depending on the network, the `signer` executing the deployment, and the [`predictedSafe`](../../../../reference-sdk-protocol-kit/initialization/init.mdx#predictedsafe-optional) with the Safe account configuration.
Initialize an instance of the Protocol Kit for each network where you want to deploy a new Safe smart account by calling the [`init`](../../../reference-sdk-protocol-kit/initialization/init.mdx) method. Pass the `provider` with its corresponding value depending on the network, the `signer` executing the deployment, and the [`predictedSafe`](../../../reference-sdk-protocol-kit/initialization/init.mdx#predictedsafe-optional) with the Safe account configuration.

{/* <!-- vale off --> */}

Expand All @@ -101,7 +99,7 @@ pnpm add @safe-global/protocol-kit viem

### Predict the Safe addresses

You can predict the Safe addresses by calling the [`getAddress`](../../../../reference-sdk-protocol-kit/safe-info/getaddress.mdx) method from each Protocol Kit instance and ensure that the result addresses are the same.
You can predict the Safe addresses by calling the [`getAddress`](../../../reference-sdk-protocol-kit/safe-info/getaddress.mdx) method from each Protocol Kit instance and ensure that the result addresses are the same.

{/* <!-- vale off --> */}

Expand All @@ -114,7 +112,7 @@ pnpm add @safe-global/protocol-kit viem

### Deployment on Sepolia

Create the deployment transaction to deploy a new Safe account in Sepolia by calling the [`createSafeDeploymentTransaction`](../../../../reference-sdk-protocol-kit/deployment/createsafedeploymenttransaction.mdx) method.
Create the deployment transaction to deploy a new Safe account in Sepolia by calling the [`createSafeDeploymentTransaction`](../../../reference-sdk-protocol-kit/deployment/createsafedeploymenttransaction.mdx) method.

{/* <!-- vale off --> */}

Expand Down Expand Up @@ -148,7 +146,7 @@ pnpm add @safe-global/protocol-kit viem

{/* <!-- vale on --> */}

Once the deployment transaction is executed, connect the new Safe address to the Protocol Kit instance by calling the [`connect`](../../../../reference-sdk-protocol-kit/initialization/connect.mdx) method.
Once the deployment transaction is executed, connect the new Safe address to the Protocol Kit instance by calling the [`connect`](../../../reference-sdk-protocol-kit/initialization/connect.mdx) method.

{/* <!-- vale off --> */}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Steps } from 'nextra/components'

This guide will teach you how to deploy a new Safe using the Protocol Kit. This process includes initializing the Protocol Kit, setting up your Safe configuration, and executing the deployment.

For more detailed information, see the [Protocol Kit Reference](../../../../reference-sdk-protocol-kit/overview.mdx).
For more detailed information, see the [Protocol Kit Reference](../../../reference-sdk-protocol-kit/overview.mdx).

## Prerequisites

Expand Down Expand Up @@ -45,7 +45,7 @@ pnpm add @safe-global/protocol-kit viem

### Create a signer

You need a signer to instantiate the Protocol Kit. This example uses a private key to obtain a signer, but [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) compatible signers are also supported. For detailed information about signers, please refer to the [Protocol Kit reference](../../../../reference-sdk-protocol-kit/overview.md).
You need a signer to instantiate the Protocol Kit. This example uses a private key to obtain a signer, but [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) compatible signers are also supported. For detailed information about signers, please refer to the [Protocol Kit reference](../../../reference-sdk-protocol-kit/overview.md).

{/* <!-- vale off --> */}

Expand All @@ -57,7 +57,7 @@ pnpm add @safe-global/protocol-kit viem

### Initialize the Protocol Kit

Initialize an instance of the Protocol Kit for each network where you want to deploy a new Safe smart account by calling the [`init`](../../../../reference-sdk-protocol-kit/initialization/init.mdx) method. Pass the `provider` with its corresponding value depending on the network, the `signer` executing the deployment, and the [`predictedSafe`](../../../../reference-sdk-protocol-kit/initialization/init.mdx#predictedsafe-optional) with the Safe account configuration.
Initialize an instance of the Protocol Kit for each network where you want to deploy a new Safe smart account by calling the [`init`](../../../reference-sdk-protocol-kit/initialization/init.mdx) method. Pass the `provider` with its corresponding value depending on the network, the `signer` executing the deployment, and the [`predictedSafe`](../../../reference-sdk-protocol-kit/initialization/init.mdx#predictedsafe-optional) with the Safe account configuration.

{/* <!-- vale off --> */}

Expand All @@ -84,7 +84,7 @@ pnpm add @safe-global/protocol-kit viem

### Predict the Safe address

You can predict the Safe address using the [`getAddress`](../../../../reference-sdk-protocol-kit/safe-info/getaddress.mdx) method in the Protocol Kit.
You can predict the Safe address using the [`getAddress`](../../../reference-sdk-protocol-kit/safe-info/getaddress.mdx) method in the Protocol Kit.

{/* <!-- vale off --> */}

Expand All @@ -96,7 +96,7 @@ pnpm add @safe-global/protocol-kit viem

### Create the deployment transaction

Create the deployment transaction to deploy a new Safe smart account by calling the [`createSafeDeploymentTransaction`](../../../../reference-sdk-protocol-kit/deployment/createsafedeploymenttransaction.mdx) method.
Create the deployment transaction to deploy a new Safe smart account by calling the [`createSafeDeploymentTransaction`](../../../reference-sdk-protocol-kit/deployment/createsafedeploymenttransaction.mdx) method.

{/* <!-- vale off --> */}

Expand Down Expand Up @@ -131,7 +131,7 @@ pnpm add @safe-global/protocol-kit viem

### Reinitialize the Protocol Kit

Once the deployment transaction is executed, connect the new Safe address to the Protocol Kit instance by calling the [`connect`](../../../../reference-sdk-protocol-kit/initialization/connect.mdx) method.
Once the deployment transaction is executed, connect the new Safe address to the Protocol Kit instance by calling the [`connect`](../../../reference-sdk-protocol-kit/initialization/connect.mdx) method.

{/* <!-- vale off --> */}

Expand Down
4 changes: 0 additions & 4 deletions pages/sdk/protocol-kit/guides/safe-deployment/_meta.json

This file was deleted.

0 comments on commit f6bff10

Please sign in to comment.