parity-dapps-glue-1.9.1 doesn't have any documentation.
Parity Dapps (JS-glue)
Code generator to simplify creating a built-in Parity Dapp
How to create new builtin Dapp.
-
Clone this repository.
-
Create a new directory for your Dapp. (
./myapp) -
Copy your frontend files to
./dapps/myapp/src/web(bundled ones) -
Instead of creating
web3in your app. Load (as the first script tag inhead):The
inject.jsscript will create globalweb3instance with proper provider that should be used by your dapp. -
Create
./parity/dapps/myapp/Cargo.tomlwith you apps details. See example here: parity-status Cargo.toml.# And edit the details of your app
How to include your Dapp into Parity?
-
Edit
dapps/Cargo.tomland add dependency to your application (it can be optional)# Use git repo and version = { ="./myapp" } -
Edit
dapps/src/apps.rsand add your application toall_pages(if it's optional you need to specify two functions - seeparity-dapps-walletexample) -
Compile parity.
-
Commit the results.
&&