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
web3
in your app. Load (as the first script tag inhead
):The
inject.js
script will create globalweb3
instance with proper provider that should be used by your dapp. -
Create
./parity/dapps/myapp/Cargo.toml
with 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.toml
and add dependency to your application (it can be optional)# Use git repo and version = { ="./myapp" }
-
Edit
dapps/src/apps.rs
and add your application toall_pages
(if it's optional you need to specify two functions - seeparity-dapps-wallet
example) -
Compile parity.
-
Commit the results.
&&