Skip to content

Commit

Permalink
[Build] Crown Fixes + Build Matrix Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbodi committed Jul 27, 2020
1 parent 3126c28 commit e1b206d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release_crown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
osx-build:
name: Build Crown OSX Release Asset
name: Build Crowncoin OSX Release Asset
runs-on: macos-latest
steps:
- name: Checkout code
Expand All @@ -17,7 +17,7 @@ jobs:
run: cd electrum

- name: Rename Constants
run: python3 buildmatrix_replacer.py Crown
run: python3 buildmatrix_replacer.py Crowncoin

- name: Run Build
run: ./contrib/osx/make_osx
Expand All @@ -34,7 +34,7 @@ jobs:
files: crown-osx.zip

linux-build:
name: Build Crown Linux Release Asset
name: Build Crowncoin Linux Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -44,7 +44,7 @@ jobs:
run: cd electrum

- name: Rename Constants
run: python3 buildmatrix_replacer.py Crown
run: python3 buildmatrix_replacer.py Crowncoin

- name: Install Dependencies
run: sudo docker build -t electrum-appimage-builder-img contrib/build-linux/appimage
Expand All @@ -63,7 +63,7 @@ jobs:
files: crown-linux.zip

windows-build:
name: Build Crown Windows Release Asset
name: Build Crowncoin Windows Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -73,7 +73,7 @@ jobs:
run: cd electrum

- name: Rename Constants
run: python3 buildmatrix_replacer.py Crown
run: python3 buildmatrix_replacer.py Crowncoin

- name: Install Dependencies
run: sudo docker build -t electrum-wine-builder-img contrib/build-wine
Expand Down
3 changes: 2 additions & 1 deletion buildmatrix_replacer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import sys
from pathlib import Path

replacement_args = {
"{{buildmatrix_coin_name_normal}}": "Crown",
"{{buildmatrix_coin_name_normal}}": sys.argv[1],
}

def inplace_change(filename, old_string, new_string):
Expand Down
8 changes: 4 additions & 4 deletions electrum/networks/crowncoin_mainnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ class CrowncoinMainnet(AbstractNet, AuxPowMixin, StakeMixin):
NAME = 'Crown'
NAME_LOWER = 'crown'
SHORT_CODE = 'CRW'
DATA_DIR = 'crowncoin'
DATA_DIR = 'crown'
OPEN_ALIAS_PREFIX = 'crw'
PAYMENT_URI_SCHEME = 'crown'
PAYMENT_REQUEST_PKI_TYPE = "dnssec+crw"
APPLICATION_PAYMENT_REQUEST_TYPE = 'application/crowncoin-paymentrequest'
APPLICATION_PAYMENT_TYPE = 'application/crowncoin-payment'
APPLICATION_PAYMENT_ACK_TYPE = 'application/crowncoin-paymentack'
APPLICATION_PAYMENT_REQUEST_TYPE = 'application/crown-paymentrequest'
APPLICATION_PAYMENT_TYPE = 'application/crown-payment'
APPLICATION_PAYMENT_ACK_TYPE = 'application/crown-paymentack'
BASE_UNITS = {'CRW': 8, 'mCRW': 5, 'uCRW': 2, 'swartz': 0}
BASE_UNITS_INVERSE = inv_dict(BASE_UNITS)
BASE_UNITS_LIST = ['CRW', 'mCRW', 'uCRW', 'swartz']
Expand Down

0 comments on commit e1b206d

Please sign in to comment.