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
To start the DevNet with the default configuration, run:
./scripts/devnet.shThe 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 |
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.jsonKeplr 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.shThe 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 |
See respective READMEs and code in each example directory.