Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/intellltech/grano-did-exporter
Grano Did Exporter
https://github.com/intellltech/grano-did-exporter
Last synced: 7 days ago
JSON representation
Grano Did Exporter
- Host: GitHub
- URL: https://github.com/intellltech/grano-did-exporter
- Owner: intellltech
- License: apache-2.0
- Created: 2024-12-25T14:48:25.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2024-12-25T15:31:06.000Z (11 days ago)
- Last Synced: 2024-12-25T16:26:29.125Z (11 days ago)
- Language: JavaScript
- Homepage:
- Size: 381 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Grano DID Exporter
Grano DID Exporter is a program that retrieves events occurring on [grano-did-contract](https://github.com/intellltech/grano-did-contract) and stores them in an off-chain database like MariaDB. It depends on [grano-did-client](https://github.com/intellltech/grano-did-client) to interact with the did contract and [Sequelize](https://github.com/sequelize/sequelize) to save data in the database.## How to Use
1. Set environment variables in `.env`
```env
## Sequelize
DATABASE=grano
USERNAME=root
PASSWORD=password
DIALECT=mariadb
HOST=localhost
PORT=3306##Grano Did Client
END_POINT='http://localhost:26657'
DENOM='ugrano'
MNEMONIC='estate giraffe icon february goat observe actor left armed zone million note system myth coconut series calm steak dinosaur twin immune mansion morning drastic'
PREFIX='grano'
FROM_ADDRESS='grano14fsulwpdj9wmjchsjzuze0k37qvw7n7am3reev'## Grano DID Exporter
CONTRACT_ADDRESS='grano1cefw8elvkj8t63k5ea2mlpkgyxgjlw2g4vw5l7j3txu925ug9ffskc6vhc'
```2. Call Exporter
```index.js
const { GranoDidClient } = require('@intellltech/grano-did-client')
const { GranoDidExporter } = require('@intellltech/grano-did-exporter')const main = async () => {
const granoDidClient = await GranoDidClient.createFulfilled()
const granoDidExporter = new GranoDidExporter({ granoDidClient })await granoDidExporter.repeatProcess()
}main()
```## References
- https://github.com/intellltech/grano-did
- https://github.com/intellltech/grano-did-client
- https://github.com/intellltech/grano-did-contract
- https://github.com/intellltech/grano-did-node
- https://github.com/intellltech/grano-did-resolver