Giter Site home page Giter Site logo

icpoap's Introduction

ICPoap

dApps for ICP Hubs PoaPs

How to Install and run locally

dfx commands to deploy on mainnet

  • dfx wallet --network ic redeem-faucet-coupon codicecouponhere
  • dfx wallet --network ic balance //Check if you have enough cycles
  • dfx canister --network ic create DIP721 --with-cycles 2000000000000 //Required only once
  • dfx canister --network ic create frontend --with-cycles 1000000000000 //Required only once
  • dfx build --network ic DIP721
  • dfx build --network ic frontend
  • dfx canister --network ic install DIP721
  • dfx canister --network ic install frontend
  • dfx canister --network ic deposit-cycles 1000000000000 canister_name //In case you need to top up a canister
  • dfx canister --network ic status 5aui7-6qaaa-aaaap-qba2a-cai
  • IMPORTANT: if you need to upgrade a canister use dfx canister --network ic install --mode upgrade instead of mode=reinstall or you'll lose the canister state and the storage canister reference with it.

dfx canister --network ic install storage --mode upgrade --argument "(true)"

dfx deploy ledger --argument "( record { name = \"<ckBTC>\"; symbol = \"<ckBTC>\"; decimals = 8; fee = 10; max_supply = 1_000_000_000_000; initial_balances = vec { record { record { owner = principal \"rrkah-fqaaa-aaaaa-aaaaq-cai\"; subaccount = null; }; 100_000_000_000 } }; min_burn_amount = 10_000_000; minting_account = null; advanced_settings = null; })"

dfx canister install ledger --network ic --argument "( record { name = \"<ckBTC>\"; symbol = \"<ckBTC>\"; decimals = 8; fee = 10; max_supply = 1_000_000_000_000; initial_balances = vec { record { record { owner = principal \"362pf-fiaaa-aaaap-qbaoq-cai\"; subaccount = null; }; 100_000_000_000_000_000 } }; min_burn_amount = 10_000_000; minting_account = null; advanced_settings = null; })"

dfx canister call frontend2 set_asset_properties '( record { key="**/*"; allow_raw_access=opt(opt(true)) })'

dfx canister call DIP721 set_storage_canister_id "(principal "5aui7-6qaaa-aaaap-qba2a-cai")" dfx canister call DIP721 --network ic setLedgerCanisterId "(principal "bkmua-faaaa-aaaap-qbc3a-cai")" dfx canister call --network ic DIP721 addCustodian "(principal "5smyw-d2fzk-kmoj5-rx3tb-y4ygt-67qfm-n7ow4-u7hh3-xjbpq-gzodi-bqe")"

icpoap's People

Contributors

aledema 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.