GithubHelp home page GithubHelp logo

upgrades-safe-app's Introduction

OpenZeppelin | Upgrades Safe App

Simple Gnosis Safe App that allows the user to upgrade a contract owned by the multisig by entering the proxy address and a new implementation.

Development

Install dependencies and run the local development server by running

$ yarn
$ yarn start

This will open a new tab in your browser pointing to https://localhost:3000 where you will be able to interact with the app in development mode, meaning that it won't receive the Gnosis SDK object thus it will not be able to actually send transactions to it.

In order to interact with a real Safe SDK, you will need to deploy the app to IPFS (see below).

Testing

To test logic components, run:

$ yarn test:buidler

To test the UI, run:

$ yarn test:ui

And to test the whole suite, run:

$ yarn test

Deployment

1. Run the IPFS daemon

To deploy the app you first need to install the ipfs client and then run the daemon

$ ipfs daemon

Notice that if you don't run the daemon, you will be deploying the app to a local IPFS network and you won't be able to use it in your Safe (see note below)

2. Deploy to IPFS mainnet

Then, you're ready to deploy your app to the network

$ yarn deploy

...
added QmaNmCcABUwSfgmXg6zgukcNjjg8ot3SdqKSoxFLGEddbr build

We then use the hash of our build folder to create a link with the form of https://ipfs.io/ipfs/<BUILD-HASH>. Using our example deployment it would look like this:

https://ipfs.io/ipfs/QmaNmCcABUwSfgmXg6zgukcNjjg8ot3SdqKSoxFLGEddbr

Finally, we add the Safe App IPFS link to our Gnosis Safe as explained in the official guide.

Note: although we could deploy the app to a local version of the IPFS network, it would require to also run a local instance of the Gnosis Safe react app and modify it to accept local IPFS links which ends up being more cumbersome than just deploying it to IPFS' public mainnet.

upgrades-safe-app's People

Contributors

deadpine avatar martriay avatar spalladino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.