482160435d
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> |
||
---|---|---|
chains | ||
contracts | ||
embarkArtifacts | ||
embarkConfig | ||
js | ||
screenshots | ||
src | ||
test | ||
.gitignore | ||
LICENSE | ||
README.md | ||
accounts.example.json | ||
embark.json | ||
package.json | ||
ropsten.chains.json | ||
test.js | ||
testnet.chains.json | ||
yarn.lock |
README.md
Liquid Funding Console
Command line utility to use Liquid Funding contracts.
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
- run embark
npx embark run
type devtxs on
- 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.