This was created for older Copay 1.8.0 which is not supported anymore. Please use https://github.com/Colored-Coins/colored-coins-copay-wallet instead.
Copay addon with support for Colored Coins.
The following will setup Copay 1.2.0 with this addon installed:
git clone -b colored https://github.com/troggy/copay
cd copay
npm run setup
grunt prod
(optional) Setup AWS S3 bucket if you want to upload icons to assets. Change profile, bucket and region names in bower_components/colored-coins-copay-addon/Procfile
Run with foreman:
nf start
Setup addon from scratch on top of Copay 1.2.0 (won't work for latest version of Copay)
-
Install Copay 1.2.0:
-
Install addon and it's dependencies inside Copay folder:
bower install colored-coins-copay-addon && cd bower_components/colored-coins-copay-addon && npm i && cd -
-
Add
copayAddon.coloredCoins
module as dependency ofcopayApp.addons
module (incopay/src/js/app.js
):angular.module('copayApp.addons', ['copayAddon.coloredCoins']);
-
Update Copay's Gruntfile (
copay/Grunfile.js
).Add the following under
concat.angular.src
:'bower_components/colored-coins-copay-addon/dist/copayColoredCoins.js', 'bower_components/colored-coins-copay-addon/config.js'
And under
concat.foundation.src
:'bower_components/colored-coins-copay-addon/css/assets.css'
-
If you are installing this addon on public Copay (in other words, not for development purposes), change
bower_components/colored-coins-copay-addon/config.js
so that it has your copay's host name instead oflocalhost
. You need to have ports 8000, 8100, 8200 to be open for incoming connections for that host. -
Addon uses S3 bucket to store uploaded asset icons. Configuration:
- Configure AWS profile. It should have
PutObject
permission on you bucket. - Change profile, bucket and region names in
bower_components/colored-coins-copay-addon/Procfile
- Configure AWS profile. It should have
-
Rebuild Copay:
grunt
-
Run services with ff:
foreman start -f bower_components/colored-coins-copay-addon/Procfile
-
Start Copay. In
copay
folder:npm start