Git Product home page Git Product logo

bdumembersledger's Introduction

BDUmembershipLedger

This code lets you start with a base contract, and deploy owner contracts on top each with unique functions, creating a chain of owned contracts commanded at the top by a user address.

  • Add to the chain to add functionality by making the owner another contract

  • Remove from the top of the chain to remove functionality by making the owner your address

  • Insert another chain at any level to change functionality by making the owner another chain of contracts.

Step 1. Deploy BDUmembershipLedger contract

Step 2. Deploy Owner1 passing above contract address into constructor

Step 3. Deploy Owner2 passing Owner1 into constructor

Step 4. Change membership Owner to Owner1 by passing in (address Owner1, uint 0)

Step 5. Repeat Step 4 for Owner2

Step 6. To change ownership x levels under you, pass in (address newOwner, uint x)

Step 7. Stack new contracts on the ownership chain as you see fit

Step 8. Change ownerships anywhere down the line as you see fit

Step 9. Add a member from the top contract

Step 10. ?????????

Step 11. Profit

bdumembersledger's People

Contributors

antron3000 avatar

Watchers

 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.