Metamask: How to deploy gnosis secure proxy contracts on Mumbai testnet (Polygon) using Safe Core SDK? - Zoetic Salon
4982
post-template-default,single,single-post,postid-4982,single-format-standard,bridge-core-1.0.5,ajax_fade,page_not_loaded,,qode-child-theme-ver-1.0.0,qode-theme-ver-18.1,qode-theme-bridge,disabled_footer_bottom,wpb-js-composer js-comp-ver-6.0.2,vc_responsive

Metamask: How to deploy gnosis secure proxy contracts on Mumbai testnet (Polygon) using Safe Core SDK?

Metamask: How to deploy gnosis secure proxy contracts on Mumbai testnet (Polygon) using Safe Core SDK?

Here is an article based on your request:

Deploying Gnosis Safe Proxy Contracts on Mumbai Testnet using Safe Core SDK

Metamask: How to deploy gnosis safe proxy contracts on Mumbai testnet(Polygon) using Safe Core SDK?

Introduction

————-

Gnosis Safe provides a secure way to transfer and manage cross-chain assets. One of the core components of this ecosystem is the Safe Proxy Contract, which allows users to earn rewards and tokens by transferring their assets to a trusted proxy. In this article, we will show you how to deploy a Gnosis Safe Proxy Contract on Mumbai Testnet using Safe Core SDK.

Prerequisites

—————-

To complete this tutorial, you need:

  • A Gnosis Safe account with a valid wallet (e.g. MetaMask)
  • Safe Core SDK installed and configured on your device
  • Mumbai testnet URL: “

Step 1: Create a new wallet

——————————-

Before we begin, create a new wallet on the Mumbai testnet using the following command:

npx secure-wallets --network Mumbai --create-wallet --wallet-name MySafeProxyWallet

This will create a new wallet named MySafeProxyWallet.

Step 2: Configure the Safe Core SDK

——————————–

In this step, we need to configure the Safe Core SDK to use the newly created wallet. Run the following command:

npx secure-core setup --network Mumbai --wallet-name MySafeProxyWallet --proxy-type gnosis --proxy-identity-id MY_SAFE_PROXY_ID

Replace “MY_SAFE_PROXY_ID” with the actual proxy contract ID on the Mumbai testnet.

Step 3: Create a Proxy Contract

——————————–

We will create a new proxy contract using the Safe Core SDK. Run the following command:

npx secure core contracts create --network Mumbai --contract-name MyProxyContract --proxy-contract-id MY_SAFE_PROXY_ID

This will create a new Gnosis Safe proxy contract named MyProxyContract with the specified ID.

Step 4: Deploy the Proxy Contract to the Testnet.

—————————————-

We need to deploy the proxy contract to the Mumbai testnet. Run the following command:

npx secure core contracts deploy --network Mumbai --contract-Address

Replace “” with the actual address of the proxy contract on the Mumbai testnet.

Step 5: Verify the Proxy Agreement Installation

——————————————-

We can verify that our proxy agreement was installed correctly by checking its status:

npx secure core contracts get --network Mumbai --contract-dress

Your proxy agreement installation details should be displayed here.

Troubleshooting Error: Invalid Secure Proxy Factory Contract Address

If you get an error like “Error: Invalid Secure Proxy Factory Contract Address” when switching to …, it may mean that your wallet or proxy ID is incorrect. To resolve this issue, make sure that:

  • Your wallet address is correct.
  • The proxy ID in the Safe Core SDK configuration matches the one used on the Mumbai test network.

Example Use Case

—————–

Here is an example of using the Gnosis Safe proxy contract on the Mumbai testnet:

javascript

const { CreateProxyContract } = require('@gnosis-safe/safe-core');

// Create a new wallet and proxy ID

const walletName = 'MySafeWallet';

const proxyId = 'MY_SAFE_PROXY_ID';

// Create a new proxy contract

async function main() {

const contractAddress = await createProxyContract({

network: "Mumbai",

wallet: walletName,

proxyId: proxyId,

});

console.log(Proxy contract address: ${contractAddress}`);

// Deploy the proxy contract to the testnet.

await contracts.

Solana Balances Neither Sell

No Comments

Post A Comment