KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
near-chatme
★ 15
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
Learn-HolyC
:
A repository for showcasing my knowledge of the HolyC programming language, and continuing to learn the language
la-dpsmeter
:
dpsmeter with remote packet sniffing that provides a web overlay for lostark
teleport-ansible
:
Teleport Ansible Dynamic Inventory Provider
SuperConvert
:
SuperConvert is a C# library that provides easy and efficient conversion between JSON and various data formats.
protein-ligand-binding-free-energy-calculations
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
near-chatme
?
Download (.md)
NEAR ChatMe ================== Chats & Messages service for NEAR Blockchain. Requirements =========== - nodeJS - npm - The Graph: @graphprotocol/graph-cli package Quick Start =========== If you haven't installed dependencies during setup: ``` npm install ``` Build and deploy your contract to TestNet with a temporary dev account: ``` npm run deploy ``` Test your contract: ``` npm test ``` If you have a frontend, run `npm start`. This will run a dev server. The Graph =============== ##### Init ``` graph init ``` ? Protocol › near ? Subgraph name › vlodkomr/chatme ? Directory to create the subgraph in › thegraph ? NEAR network › near-testnet ? Contract account › .... contract address.... ? Contract Name · ChatMe ##### Build ``` graph codegen && graph build ``` ##### Deploy ``` ACCESS_TOKEN= graph auth https://api.thegraph.com/deploy/ $ACCESS_TOKEN yarn deploy ``` ##### Contracts near-message.testnet - Local chatme.testnet - TestNet chatme.near - MainNet ##### Links Testnet: https://test.chatme.page/ Mainnet: https://chatme.page/ Package used for message encryption: https://github.com/NEARFoundation/near-js-encryption-box Documentation: https://chatme.gitbook.io/chatme ## Call methods ``` CONTRACT_ID=chatme.near CONTRACT_OWNER_ID=vlodkow.near ACCOUNT_ID= NEAR_ENV=mainnet near call $CONTRACT_ID admin_set_user_level '{"account":"'$ACCOUNT_ID'", "level":2}' --accountId $CONTRACT_OWNER_ID --depositYocto 1 ```