Giter Club home page Giter Club logo

near-discovery-components's Introduction

Near Discovery Components

This is a repository that holds the source code of all NEAR discovery components that the team maintains for near.org.

Components will be deployed to production automatically as they are merged into the main branch. This occurs weekly, on Thursdays.

Keep in mind that folders under src will be prepended to the component name when it's deployed. E.g. src/post/comment.jsx will be deployed as post.comment.

Note: This repository is not compatible with the VS Code Extension due to the replacements strategy featured in this repository.

Contributing

Please review the contribution guide

Local Development

Please review the Local development with BOS-Loader

Troubleshooting Deployments

near-social cli tool will attempt to deploy any updated components with 1 NEAR of deposit and 100 Tgas.

The deployment may fail if too many changes are present. There are several solutions for this. You can either plan releases more often or release components in batches from your local using near-social.

If you get a Not enough storage balance error, you will need to make sure that the NEAR account has enough storage staked on the social.near contract. You can view the current storage and available storage for any account using near-cli-rs:

near-cli contract call-function as-read-only social.near storage_balance_of json-args '{"account_id":"adminalpha.near"}' network-config mainnet now

Note: replace adminalpha.near with any other account name on mainnet.

You can then stake more of your NEAR for storage on social.near using near-cli-rs:

near-cli contract call-function as-transaction social.near storage_deposit json-args {} prepaid-gas '100.000 TeraGas' attached-deposit '0.5 NEAR' sign-as adminalpha.near network-config mainnet sign-with-seed-phrase '{{REPLACE_WITH_SEED_PHRASE}}' --seed-phrase-hd-path 'm/44'\''/397'\''/0'\'''

near-discovery-components's People

Contributors

angelblock avatar calebjacob avatar chaotictempest avatar charleslavon avatar doriancrutcher avatar elliotbraem avatar gabehamilton avatar gagdiez avatar github-actions[bot] avatar heycorwin avatar jon-lewis avatar leomanza avatar luixo avatar marcinbodnar avatar milenakrawczyk avatar mpeterdev avatar roshaans avatar scopalaffairs avatar shelegdmitriy 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.