Command line dapp to use Liquid Funding contracts.
Go to file
dependabot[bot] 482160435d
Bump pathval from 1.1.0 to 1.1.1
Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/chaijs/pathval/releases)
- [Changelog](https://github.com/chaijs/pathval/blob/master/CHANGELOG.md)
- [Commits](https://github.com/chaijs/pathval/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: pathval
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11 00:50:42 +00:00
chains feat: token selector 2019-05-25 07:38:27 -04:00
contracts initial commit 2019-05-21 17:42:04 -04:00
embarkArtifacts move contract artifacts 2019-05-22 15:23:35 -04:00
embarkConfig clean contracts.js and error handling 2019-05-22 16:16:19 -04:00
js initial commit 2019-05-21 17:42:04 -04:00
screenshots add screenshots 2019-05-26 19:55:13 -04:00
src feat: token selector 2019-05-25 07:38:27 -04:00
test initial commit 2019-05-21 17:42:04 -04:00
.gitignore fix: added current timestamp to commit time 2019-05-24 19:29:39 -04:00
LICENSE initial commit 2019-05-21 17:42:04 -04:00
README.md Update README.md 2019-05-26 20:04:04 -04:00
accounts.example.json support specifying account index 2019-05-24 17:46:32 -04:00
embark.json move contract artifacts 2019-05-22 15:23:35 -04:00
package.json add provider to support custom accounts 2019-05-23 15:13:36 -04:00
ropsten.chains.json feat: ropsten config 2019-05-22 14:30:23 -04:00
test.js initial test script 2019-05-21 18:20:25 -04:00
testnet.chains.json initial commit 2019-05-21 17:42:04 -04:00
yarn.lock Bump pathval from 1.1.0 to 1.1.1 2022-02-11 00:50:42 +00:00

README.md

Liquid Funding Console

Command line utility to use Liquid Funding contracts.

screenshot_1

screenshot_2

screenshot_3

Usage

Usage: index [options]

Options:
-V, --version              output the version number
-u, --url [url]            host to connect to (default: ws://localhost:8556)
-a, --accounts [accounts]  accounts file, if not defined uses accounts in the connecting node
-c, --chain [chain]        environment to run, can be mainnet, ropsten, development (default: development)
-i, --index [index]        account index to use (default: 0)
-h, --help                 output usage information

Connecting to a network

The intended chains needs to be specified with -c, and the endpoint with -u, in the case of using something like infura, an account needs to be specified.

example:

node src/index.js -c ropsten -u https://ropsten.infura.io/nm12345678 -a "accounts.json"

Configuring accounts

create & configure a account json file then pass it as a paramater -a

{
  "accounts": [
    {
      "mnemonic": "add mnemonic here",
      "numAddresses": 1
    }
  ]
}

Local usage

  1. run embark

npx embark run

type devtxs on

  1. run the dapp

node src/index.js

Notes

  • The Liquid Funding contract address needs to be approved to withdraw from a token in order to do pledges with that token. This can be done in Tokens -> Approve
  • Mint will work on ropsten, development etc.. if the deployed token supports it.