Coder Social home page Coder Social logo

asset_canister_factory's Introduction

Asset Canister Factory

This is a simple canister factory that spins up asset canisters on behalf of the caller. The users must be added manually by the initial deployer.

Usage

Start the local network

dfx start --clean --background

Deploy the canister factory with 64T cycles

dfx deploy factory --with-cycles 64000000000000

Call the deploy method to spawn a new canister preloaded with 3T cycles

dfx canister call factory deploy

Call the upgrade method to upgrade an existing canister with the currently stored wasm

dfx canister call factory upgrade '(principal "r7inp-6aaaa-aaaaa-aaabq-cai")'

User Management

The initial deployer can add users to the factory by calling the add_user method

dfx canister call factory add_user '(principal "aaaaa-aa")'

Users can be removed by calling the del_user method

dfx canister call factory del_user '(principal "aaaaa-aa")'

asset_canister_factory's People

Contributors

ozwaldorf avatar

Stargazers

Daniel McCoy avatar  avatar Moritz Fuller 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.