Skip to content

unification-com/fundjs-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fundjs-examples

A few examples using fundjs and fundjs-react.

The examples require a local DevNet to be running. This repo includes a script for quickly starting and running a DevNet

DevNet

To start the DevNet with the default configuration, run:

./scripts/devnet.sh

The default configuration is as follows:

Setting Value
Base Path /tmp/und_devnets
Mnemonic wish glad forget ski rhythm mouse omit gun fatal whale switch gift nephew cactus noise athlete spin damp never jacket absorb client top grass
Chain ID FUND-DevNet
Validator und1eq239sgefyzm4crl85nfyvt7kw83vrna3f0eed
undvaloper1eq239sgefyzm4crl85nfyvt7kw83vrna6lrjet
/tmp/und_devnets/v1.10.1/.und_mainchain/keyring-test/validator.info
Wallets First 10 from Mnemonic. 0 is the validator wallet. 1 - 9 funded with 1,000,000 FUND.
See scripts/default.devnet.json for addresses

Configuring DevNet

By default, the DevNet script will use the mnemonic and genesis wallets configured in scripts/default.devnet.json.

The DevNet script can be configured as required, for example with a custom wallet mnemonic seed and list of wallet addresses to be funded by creating scripts/devnet.json:

cp scripts/default.devnet.json scripts/devnet.json
nano scripts/devnet.json

DevNet & Keplr

Keplr can be configured to connect to DevNet. To fund your Keplr wallet with DevNet FUND, simply add the wallet addresses to your custom scripts/devnet.json before running the script.

Note: if you have previously run the DevNet, you will need to delete the directory before running the scripts/devnet.sh in order for the custom wallets to be included in genesis, e.g.

rm -rf /tmp/und_devnets/v1.10.1
./scripts/devnet.sh

Current Examples

The repo contains the following directories with examples

Desctription Implements
simple collection of simple examples to be run via the node command fundjs
react simple React UI built using "Create Cosmos App" to interact with Payment Streams fundjs-react

Usage

See respective READMEs and code in each example directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages