Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alfajores deploy October 24 #1479

Merged
merged 138 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
579c199
[wallet]Run geth in an infura-like mode (#1108)
ashishb Oct 2, 2019
c80f755
Add CLI commands around identity metadata (#1167)
nambrot Oct 2, 2019
5961646
Improve QR Code scan ability (#1036)
rohit-dua Oct 2, 2019
fe56034
Fix verification pool validation (#1176)
cmcewen Oct 2, 2019
1522211
[Wallet] Add support for address pasting in send input field (#1180)
jmrossy Oct 2, 2019
b53f2d0
[codecov]Fix codecov errors (#1147)
ashishb Oct 2, 2019
b47728e
[ContractKit]Fill more fields before web3 signing (#1133)
ashishb Oct 2, 2019
6bc3f92
Move docker images to use node v10 (#1183)
ashishb Oct 2, 2019
b919b27
[ck] consistent send tx object in kit (#1191)
Oct 3, 2019
a70d7aa
[contractkit] Document methods (#1195)
Oct 3, 2019
21cbb94
Make packages depend on git vesrion (not npm) (#1192)
Oct 3, 2019
96cbe2d
Revert "Make packages depend on git vesrion (not npm)" (#1201)
cmcewen Oct 3, 2019
f6eafb8
Upload static VM testnet nodes, add stackdriver logging (#750)
tkporter Oct 3, 2019
7832f88
When resetting and upgrading a VM testnet, new tx-nodes are included …
tkporter Oct 3, 2019
403e87c
[Protocol] Fix network id for alfajores in truffle configs (#1211)
jmrossy Oct 4, 2019
a23aef3
2019-10-03 alfajores deployment (#1200)
kevjue Oct 4, 2019
13f353a
[wallet]Store encrypted local signing key (#1188)
ashishb Oct 4, 2019
b70e840
[ck] Transform StableToken parameters from fixidity format (#1218)
Oct 4, 2019
fc3bfad
[ck] Proper promise treatment to avoid UnhandledPromises (#1219)
Oct 4, 2019
dfd204a
[protocol] Rename infrastructureFraction to proposerFraction (#1174)
Oct 6, 2019
31a8633
[Wallet] Fix disable conditions for butons on Enter Invite screen (#1…
jmrossy Oct 7, 2019
25feb78
[Wallet] Implement new import wallet flow designs (#1209)
jmrossy Oct 7, 2019
33084de
[wallet] e2e back to green (#1210)
martinvol Oct 7, 2019
a4b4a10
Restore CI branch (#1223)
Oct 7, 2019
1ecacd7
Fixing flaky governance test (#1155)
mrsmkl Oct 7, 2019
639feda
Fix integration hardcode (#1208)
nambrot Oct 7, 2019
0d164b0
extracting function signatures (#1061)
mrsmkl Oct 7, 2019
7ebaa10
Adding `increaseAllowance` and `decreaseAllowance` methods (#1196)
mrsmkl Oct 7, 2019
40fdf97
Updated SETUP.md with new yarn process (#1224)
martinvol Oct 7, 2019
5cd3614
Fix Faucet done message (#1217)
aaronmgdr Oct 7, 2019
78afc93
Feature #909 proxy delegatecall (#1152)
aaitor Oct 7, 2019
9a50adf
Use ContractKit to get addresses for Blockchain API (#1175)
annakaz Oct 7, 2019
d05e4c5
Revert "Feature #909 proxy delegatecall (#1152)" (#1241)
asaj Oct 8, 2019
ff03623
Adding a contract to store minimum required client version (#1081)
mrsmkl Oct 8, 2019
222ab26
[Wallet] Fix top of emojis cut off in the activity feed (#1243)
jeanregisser Oct 8, 2019
d2475de
[Wallet] Fix syncing issue caused by circular dependency (#1252)
jmrossy Oct 8, 2019
ae8bb3a
Add step to install typescript and other minor edits
Oct 8, 2019
ce7f384
[CLI]Test npm install on local package (#1207)
ashishb Oct 8, 2019
2fd0207
Fix incremental testing script (#1255)
ashishb Oct 9, 2019
c43df66
Prep for Wallet v.1.5.0 deployment (#1244)
jmrossy Oct 9, 2019
799d746
[Wallet] Fix lint warnings from floating promises (#1269)
jmrossy Oct 9, 2019
d81013f
[Wallet] Add exchange tobin tax education view (#1199)
Pedro-vk Oct 9, 2019
beb2922
fix cDollar in Gold tab bug (#1277)
rohit-dua Oct 9, 2019
f315cb5
Wallet e2e on Circle Ci (#1221)
martinvol Oct 9, 2019
51b69e1
RetryWithBackOff for nexmo sends (#1250)
nambrot Oct 9, 2019
4b2ce42
Docs with assumptions made by testnet terraform module (#848)
tkporter Oct 9, 2019
8edaeaa
[CircleCI]Test more npm packages (#1263)
ashishb Oct 9, 2019
51662d1
Fix failing yarn builds when building docker images (#1280)
tkporter Oct 9, 2019
f788471
Combined Web UI Tweaks (#1193)
aaronmgdr Oct 9, 2019
7a97b42
Merge branch 'master' into victor/setup-md-edits
nategraf Oct 9, 2019
2749ad3
Fix typos in dev README (#1257)
tkporter Oct 9, 2019
f1ee23e
Remove 'bonds' from cli help and fix validatorgroup:member cmd descri…
tkporter Oct 9, 2019
a7681b6
[celotool]Use user info from gcloud tool (#1259)
ashishb Oct 9, 2019
09e67c9
Prevent celotool dockerfile yarn network trouble error (#1281)
tkporter Oct 9, 2019
1a6266d
VM Testnets cleanup, get transaction-metrics-exporter working with VM…
tkporter Oct 9, 2019
f6bf354
Fix typos
Oct 10, 2019
834ecd1
[Wallet] UI improvements on iOS (safe area, keyboard, and more) (#1225)
jeanregisser Oct 10, 2019
b189f50
Fix fellowship form (#1254)
aaronmgdr Oct 10, 2019
56cdd6e
Update yarn.lock commit for websocket package to fix transaction-metr…
tkporter Oct 10, 2019
1b3c2d9
Add ability to generate addresses directly from env file in celotool …
annakaz Oct 10, 2019
0daabd8
Set IN_MEMORY_DISCOVERY_TABLE=true for integration (#1296)
tkporter Oct 10, 2019
3e4b186
[Wallet] Fix ListView deprecation warning (#1293)
jeanregisser Oct 11, 2019
2cb725c
[Wallet] Add script to build sdk for env before running yarn dev (#1312)
jmrossy Oct 11, 2019
659a11d
Add step to install typescript and other minor edits (#1256)
nategraf Oct 11, 2019
731fea4
Add laspsing validators script to identify validators that aren't pro…
Oct 11, 2019
e6bb8ca
Split single validator group into multiple as needed
Oct 11, 2019
733d830
linter changes
Oct 11, 2019
50cd8cf
Allow validators to specify an attestationKey with which they sign at…
nambrot Oct 12, 2019
1a23e26
Add GRADLE_OPTS note to SETUP.md (#1311)
jmrossy Oct 14, 2019
5fb6a6a
[Wallet] Add check for $ENVFILE to pre-dev script (#1324)
jmrossy Oct 14, 2019
e8f6f1d
Fix broken Discord link (#1317)
Oct 14, 2019
82a9d1c
Integration deploy, don't overwrite genesis block if upgrading testne…
tkporter Oct 14, 2019
e81fcbe
Feature/909 proxy delegatecall (#1289)
aaitor Oct 15, 2019
35b9cd2
[cli][ck] Add Support for Validators.reorderMember() (#1232)
Oct 15, 2019
a58d510
Speed up CircleCI tests (#1333)
martinvol Oct 15, 2019
833c2d3
[wallet] If an action is in the blacklist, now only logs the name (bu…
martinvol Oct 15, 2019
f0552f8
Change funding account to trufffle config and add overrides to upgrade
Oct 15, 2019
2d23e79
[Wallet] Use latest geth with ipc support on iOS (#1329)
jeanregisser Oct 15, 2019
772bf91
[Mobile] Show Incorrect PIN error in exchange (#1345)
annakaz Oct 15, 2019
c251b75
[Snyk] Fix for 1 vulnerabilities (#1262)
snyk-bot Oct 15, 2019
5adc634
[Wallet] Enable firebase on iOS (#1344)
jeanregisser Oct 16, 2019
aeddeef
Fix Metadata registration during contract deploy (#1346)
nambrot Oct 16, 2019
8689634
[wallet]Add documentation for ZeroSync mode (#1361)
ashishb Oct 16, 2019
c325224
Allow most recently reporting oracle to report again (#1288)
yerdua Oct 16, 2019
936d1e5
[Celotool] Update blockchain-api deploy script to automatically updat…
annakaz Oct 16, 2019
b8a9d0e
Prevent overloading a block with txs and properly call vote
Oct 16, 2019
17ff683
Implement proof-of-stake changes (#1177)
Oct 16, 2019
5797b0f
Reconfigure terraform local configuration during init to allow multip…
tkporter Oct 16, 2019
14c65c1
Alfajores changes & comment on unlocking accounts (#1297)
tkporter Oct 16, 2019
df63942
Point end-to-end tests back to master (#1372)
Oct 17, 2019
ea8510e
[wallet]Add documentation for jndcrash (#1364)
ashishb Oct 17, 2019
a2192b0
[wallet]Add more documentation on ZeroSync mode (#1367)
ashishb Oct 17, 2019
f9a72a6
Document npm inter-repo dependencies instructions (#1370)
Oct 17, 2019
72ffef8
[Wallet] Add Celo Lite toggle (UI only, zeroSync on/off in other PR) …
annakaz Oct 17, 2019
43c9ebf
[Wallet] Enable push notifications on iOS (#1389)
jeanregisser Oct 17, 2019
5d7db19
[Wallet] New camera permission flow (#1398)
jeanregisser Oct 18, 2019
3805194
Update Footer (#1331)
aaronmgdr Oct 21, 2019
21f8cdc
E2E Attestations test + various e2e improvements (#1417)
cmcewen Oct 22, 2019
273fc82
Use validator set precompiles in Attestations (#1248)
m-chrzan Oct 22, 2019
85a2bfe
[Wallet] Implement new backup flows including social backup (#1399)
jmrossy Oct 22, 2019
3bf4177
[Wallet] Add support for social wallet (Safeguards) import (#1414)
jmrossy Oct 22, 2019
b07c091
Reset pincode cache if unlock fails (#1430)
cmcewen Oct 22, 2019
2504bc9
[Wallet] Update local currency styles and layout (#1325)
Pedro-vk Oct 23, 2019
98b068c
[Wallet] Use exit on iOS since we can't restart like Android (#1424)
jeanregisser Oct 23, 2019
82a97ef
[Wallet] Fix firebase initialization error on iOS after reinstalling …
jeanregisser Oct 23, 2019
4dd43cd
[Wallet] Show the currency values with correct rounding. (#1435)
Pedro-vk Oct 23, 2019
f5f9fd8
[Wallet] Fix repeated QR code scanning and related navigation issues …
jmrossy Oct 23, 2019
73c1d69
[wallet] Refactor leftover thunk to sagas (#1388)
martinvol Oct 23, 2019
6258848
[contractkit] SortedOraclesWrapper + tests (#1405)
yerdua Oct 23, 2019
740bbda
Tiny copy change (#1429)
aaronmgdr Oct 23, 2019
be9a7f0
[Helm] Updated the helm package to deploy the upgraded blockscout ver…
jcortejoso Oct 23, 2019
87c5556
[Wallet] Don't log all props, which includes i18n (#1445)
cmcewen Oct 23, 2019
765fe3d
Use new segment api keys used by both iOS and Android (#1452)
jeanregisser Oct 24, 2019
35be07d
[Wallet] Show splash screen until JS is ready on iOS (#1453)
jeanregisser Oct 24, 2019
3a69de8
[Wallet] Prevent error from Avatar when name is missing (#1454)
jmrossy Oct 24, 2019
1c82ae6
[Wallet] Wallet can switch between hosted and local node (#1419)
annakaz Oct 24, 2019
73e1558
Add an e2e shuffle test
cmcewen Oct 24, 2019
3ed3ea9
set usage of shuffled round robin in the genesis block
Oct 24, 2019
fadfca2
bummp geth image tags to master
Oct 24, 2019
617abbd
Add incentives to proof-of-stake (#1292)
Oct 24, 2019
2bf8cac
Fixes key_placer.sh when encrypting files (#1465)
tkporter Oct 24, 2019
5a99d08
update geth image to celo-org/blockchain master
Oct 25, 2019
febed2d
Revert "Add an e2e shuffle test"
Oct 25, 2019
982425a
Merge branch 'master' into victor/use-the-shuffle
Oct 25, 2019
bb3f633
add comments about proposer policy
Oct 25, 2019
eef52a4
Revert "Add incentives to proof-of-stake (#1292)"
cmcewen Oct 25, 2019
da60237
Revert "Implement proof-of-stake changes (#1177)"
cmcewen Oct 25, 2019
2f9c021
Merge branch 'victor/use-the-shuffle' of github.com:celo-org/celo-mon…
tkporter Oct 25, 2019
5556a46
Fix merge conflicts
tkporter Oct 25, 2019
0a73ae9
Fix conflicts, deploy new version of alfajores
tkporter Oct 25, 2019
8a5f551
Update alfajores tags and network id
tkporter Oct 25, 2019
576bc3f
Revert "[Helm] Updated the helm package to deploy the upgraded blocks…
tkporter Oct 25, 2019
d716947
Merge commit 'b8a9d0e745549b1e338817936f5388f808d4e5b6' into cmcewen/…
tkporter Oct 25, 2019
97d7d44
v0.0.28
tkporter Oct 25, 2019
7c34867
v0.0.29
tkporter Oct 25, 2019
682279f
Fix lockup
tkporter Oct 25, 2019
32315a4
Merge branch 'alfajores' into cmcewen/alf-staging
tkporter Oct 25, 2019
fc6e2e4
Fix lint
tkporter Oct 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
361 changes: 274 additions & 87 deletions .circleci/config.yml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ coverage:
flags: protocol
threshold: 5%
target: 90%
if_no_uploads: error
if_not_found: success
if_ci_failed: error
patch:
default: off

Expand Down
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ BLOCKSCOUT_DB_SUFFIX=
GETH_NODE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/geth"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_NODE_DOCKER_IMAGE_TAG="7fbd6f3574f1c1c1e657c152fc63fb771adab3af"
GETH_NODE_DOCKER_IMAGE_TAG="ba213df07070433970d9b2cf75bae1d146cbfeda"

GETH_BOOTNODE_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/geth-all"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_BOOTNODE_DOCKER_IMAGE_TAG="7fbd6f3574f1c1c1e657c152fc63fb771adab3af"
GETH_BOOTNODE_DOCKER_IMAGE_TAG="ba213df07070433970d9b2cf75bae1d146cbfeda"

CELOTOOL_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
CELOTOOL_DOCKER_IMAGE_TAG="celotool-dfdc3e8b26e98aa294b27e2b5621c184488a10db"
Expand Down
6 changes: 3 additions & 3 deletions .env.alfajores
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ BLOCKSCOUT_SUBNETWORK_NAME="Alfajores"
GETH_NODE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/geth"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_NODE_DOCKER_IMAGE_TAG="027dba2e4584936cc5a8e8993e4e27d28d5247b8"
GETH_NODE_DOCKER_IMAGE_TAG="9575a01c12438e1adc6bb610c891cb5066aaa7aa"

GETH_BOOTNODE_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/geth-all"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_BOOTNODE_DOCKER_IMAGE_TAG="027dba2e4584936cc5a8e8993e4e27d28d5247b8"
GETH_BOOTNODE_DOCKER_IMAGE_TAG="9575a01c12438e1adc6bb610c891cb5066aaa7aa"

CELOTOOL_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
CELOTOOL_DOCKER_IMAGE_TAG="celotool-552b1accf90404fdcd886670d150af0a5cae116f"
Expand All @@ -40,7 +40,7 @@ GETH_EXPORTER_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet-production/geth-expor
GETH_EXPORTER_DOCKER_IMAGE_TAG="6df683de7ae30d3fbca384abb14599d0e8130d35"

# Genesis Vars
NETWORK_ID=44784
NETWORK_ID=44785
CONSENSUS_TYPE="istanbul"
BLOCK_TIME=5
EPOCH=720 // 1 hour
Expand Down
8 changes: 4 additions & 4 deletions .env.alfajoresstaging
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ BLOCKSCOUT_SUBNETWORK_NAME="Alfajores Staging"
GETH_NODE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/geth"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_NODE_DOCKER_IMAGE_TAG="ae27fd3aa8b0de7bbf7926aecd34690feef7d069"
GETH_NODE_DOCKER_IMAGE_TAG="9575a01c12438e1adc6bb610c891cb5066aaa7aa"

GETH_BOOTNODE_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/geth-all"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_BOOTNODE_DOCKER_IMAGE_TAG="ae27fd3aa8b0de7bbf7926aecd34690feef7d069"
GETH_BOOTNODE_DOCKER_IMAGE_TAG="9575a01c12438e1adc6bb610c891cb5066aaa7aa"

CELOTOOL_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
CELOTOOL_DOCKER_IMAGE_TAG="celotool-552b1accf90404fdcd886670d150af0a5cae116f"
Expand All @@ -47,8 +47,8 @@ GETH_EXPORTER_DOCKER_IMAGE_TAG="6df683de7ae30d3fbca384abb14599d0e8130d35"
NETWORK_ID=1101
CONSENSUS_TYPE="istanbul"
BLOCK_TIME=5
# Minimum epoch length is 1 day
EPOCH=17280
# Minimum epoch length is 10 minutes
EPOCH=120
ISTANBUL_REQUEST_TIMEOUT_MS=10000

# "og" -> our original 4 tx nodes, "${n}" -> for deriving n tx nodes from the MNEMONIC
Expand Down
14 changes: 7 additions & 7 deletions .env.integration
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ BLOCKSCOUT_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/blockscout"
BLOCKSCOUT_WEB_DOCKER_IMAGE_TAG="web-f6c3e0888d1d0ef72dc8bf870808702b7fd13730"
BLOCKSCOUT_INDEXER_DOCKER_IMAGE_TAG="indexer-f6c3e0888d1d0ef72dc8bf870808702b7fd13730"
BLOCKSCOUT_WEB_REPLICAS=3
BLOCKSCOUT_DB_SUFFIX="24"
BLOCKSCOUT_DB_SUFFIX="25"
BLOCKSCOUT_SUBNETWORK_NAME="Integration"

GETH_NODE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/geth"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_NODE_DOCKER_IMAGE_TAG="640a41fd970e0edbf5f30a90d53660165f5e98bd"
GETH_NODE_DOCKER_IMAGE_TAG="c1ae452c707f8bee91a9a0bf49193e78e9c8512e"

GETH_BOOTNODE_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/geth-all"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_BOOTNODE_DOCKER_IMAGE_TAG="640a41fd970e0edbf5f30a90d53660165f5e98bd"
GETH_BOOTNODE_DOCKER_IMAGE_TAG="c1ae452c707f8bee91a9a0bf49193e78e9c8512e"

CELOTOOL_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
CELOTOOL_DOCKER_IMAGE_TAG="celotool-dfdc3e8b26e98aa294b27e2b5621c184488a10db"
CELOTOOL_DOCKER_IMAGE_TAG="celotool-2cb725c36b69e7ae608875610af080f4f3fa79bd"

TRANSACTION_METRICS_EXPORTER_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
TRANSACTION_METRICS_EXPORTER_DOCKER_IMAGE_TAG="transaction-metrics-exporter-d3d165a7db548d175cd703c86c20c1657c04368d"
TRANSACTION_METRICS_EXPORTER_DOCKER_IMAGE_TAG="transaction-metrics-exporter-2cb725c36b69e7ae608875610af080f4f3fa79bd"

ATTESTATION_SERVICE_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
ATTESTATION_SERVICE_DOCKER_IMAGE_TAG="attestation-service-5035b241cbcfbd4f261e3d77e1fca8f6dc8edc32"
ATTESTATION_SERVICE_DOCKER_IMAGE_TAG="attestation-service-2cb725c36b69e7ae608875610af080f4f3fa79bd"

GETH_EXPORTER_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet-production/geth-exporter"
GETH_EXPORTER_DOCKER_IMAGE_TAG="ed7d21bd50592709173368cd697ef73c1774a261"
Expand All @@ -53,7 +53,7 @@ TX_NODES=2
STATIC_IPS_FOR_GETH_NODES=false
# Whether tx_nodes/validators stateful set should use ssd persistent disks
GETH_NODES_SSD_DISKS=true
IN_MEMORY_DISCOVERY_TABLE=false
IN_MEMORY_DISCOVERY_TABLE=true

# Testnet vars
GETH_NODES_BACKUP_CRONJOB_ENABLED=true
Expand Down
29 changes: 25 additions & 4 deletions README-dev.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# README GUIDE FOR CELO DEVELOPERS

## Monorepo inter-package dependencies

Many packages depend on other packages within the monorepo. When this happens, follow these rules:

1. All packages must use **master version** of sibling packages.
2. Exception to (1) are packages that represent a GAE/firebase app which must use the last published version.
3. To differentiate published vs unpublished version. Master version (in package.json) must end with suffix `-dev` and should not be published.
4. If a developer want to publish a version; then after publishing it needs to set master version to next `-dev` version and change all package.json that require on it.

To check which pakages need amending, you can run (in the root pkg):

yarn check:packages

A practical example:

- In any given moment, `contractkit/package.json#version` field **must** of the form `x.y.z-dev`
- If current version of contractkit is: `0.1.6-dev` and we want to publish a new version, we should:
- publish version `0.1.6`
- change `package.json#version` to `0.1.7-dev`
- change in other packages within monorepo that were using `0.1.6-dev` to `0.1.7-dev`

## How to publish a new npm package

First checkout the alfajores branch.
Expand All @@ -13,8 +34,8 @@ Before publishing a new celocli package, test in isolation using Docker. This co

```
# To test utils package, change $PWD/packages/cli to $PWD/packages/utils
# To test contractkit package, change $PWD/packages/contractkit to $PWD/packages/contractkit
celo-monorepo $ docker run -v $PWD/packages/cli:/tmp/npm_package -it --entrypoint bash node:8
# To test contractkit package, change $PWD/packages/cli to $PWD/packages/contractkit
celo-monorepo $ docker run -v $PWD/packages/cli:/tmp/npm_package -it --entrypoint bash node:10
root@e0d56700584f:/# mkdir /tmp/tmp1 && cd /tmp/tmp1
root@e0d56700584f:/tmp/tmp1# npm install /tmp/npm_package/
```
Expand All @@ -27,7 +48,7 @@ celo-monorepo/packages/cli $ yarn publish --access=public
# Increment the version number, after testing, we will push that commit to GitHub
```

Let's say the published package version number 0.0.15, verify that it is installable
Let's say the published package version number 0.0.20, verify that it is installable

```
/tmp/tmp1 $ npm install @celo/[email protected]
Expand All @@ -43,7 +64,7 @@ Once you publish do some manual tests, for example, after publishing `celocli`

```
# Docker for an isolated environment again
celo-monorepo $ docker run -it --entrypoint bash node:8
celo-monorepo $ docker run -it --entrypoint bash node:10
root@e0d56700584f:/# mkdir /tmp/tmp1 && cd /tmp/tmp1
root@e0d56700584f:/tmp/tmp1# npm install @celo/[email protected]
/tmp/tmp1# ./node_modules/.bin/celocli
Expand Down
22 changes: 15 additions & 7 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ Install `nvm` (allows you to manage multiple versions of Node), Node 8 and `yarn

```bash
brew install nvm

# follow the instructions from the command above to edit your .bash_profile
# then restart the terminal
nvm install 8
nvm install 10
nvm alias default 10
brew install yarn
npm install -g typescript
```

#### Java
Expand Down Expand Up @@ -98,6 +101,8 @@ Execute the following (and make sure the lines are in your `~/.bash_profile`):
```bash
export ANDROID_HOME=/usr/local/share/android-sdk
export ANDROID_NDK=/usr/local/share/android-ndk
# Optional to speedup java builds
export GRADLE_OPTS='-Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError"'
```

Then install the Android 28 platform:
Expand All @@ -112,7 +117,7 @@ sdkmanager 'platforms;android-28'

We use Yarn to build all of the [celo-monorepo] repo.

Install `nvm` (allows you to manage multiple versions of Node), Node 8 and `yarn`:
Install `nvm` (allows you to manage multiple versions of Node), Node 8, Node 10 and `yarn`:

```bash
# Installing Node
Expand All @@ -125,12 +130,16 @@ source ~/.bashrc

# Setting up the right version of Nvm
nvm install 8
nvm alias default 8
nvm install 10
nvm alias default 10

# Installing Yarn - https://yarnpkg.com/en/docs/install#debian-stable
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

# Install typescript
npm install -g typescript
```

#### Installing OpenJDK 8
Expand Down Expand Up @@ -211,9 +220,9 @@ Run the emulator with:
emulator -avd Nexus_5X_API_28
```

#### Optional: Genymotion
#### Optional: Install Genymotion Emulator Manager

Optionally, as alternative to other emulators you can install Genymotion, a nice emulator manager:
Optionally, as alternative to other emulators you can install Genymotion

##### MacOS

Expand Down Expand Up @@ -254,7 +263,8 @@ Then install packages:

```bash
cd celo-monorepo
yarn
yarn # install dependencies and run post-install script
yarn build # build all packages
```

> Note that if you do your checkouts with a different method, Yarn will fail if
Expand Down Expand Up @@ -296,8 +306,6 @@ To deploy the app to your connected Android device:

```bash
cd packages/mobile
# install packages
yarn
# install app and start dev server
yarn dev
```
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/attestation-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8
FROM node:10
WORKDIR /celo-monorepo

# ensure yarn.lock is evaluated by kaniko cache diff
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/celotool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8
FROM node:10
WORKDIR /celo-monorepo

# Needed for gsutil
Expand All @@ -23,7 +23,7 @@ COPY packages/protocol/package.json packages/protocol/
COPY packages/verification-pool-api/package.json packages/verification-pool-api/
COPY packages/celotool/package.json packages/celotool/

RUN yarn install --frozen-lockfile && yarn cache clean
RUN yarn install --network-timeout 100000 --frozen-lockfile && yarn cache clean

COPY packages/utils packages/utils/
COPY packages/typescript packages/typescript/
Expand Down
14 changes: 14 additions & 0 deletions dockerfiles/circleci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,18 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \
sudo apt-get update -y && sudo apt-get install google-cloud-sdk -y

RUN sudo wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz && \
sudo tar xf go1.11.5.linux-amd64.tar.gz -C /usr/local

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y

ENV PATH="/usr/local/go/bin:/home/circleci/.cargo/bin:${PATH}"

RUN go version

RUN rustup install 1.36.0 && \
rustup default 1.36.0

RUN mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config

CMD ["/bin/sh"]
8 changes: 4 additions & 4 deletions dockerfiles/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ADD https://www.googleapis.com/storage/v1/b/genesis_blocks/o/${celo_env}?alt=med
ADD https://www.googleapis.com/storage/v1/b/static_nodes/o/${celo_env}?alt=media /celo/static-nodes.json

# Build Celocli
FROM node:8-alpine as node
FROM node:10-alpine as node

ARG celo_env

Expand All @@ -46,10 +46,10 @@ WORKDIR /celo-monorepo/
RUN npm install @celo/celocli

# Build the combined image
FROM node:8-alpine as final_image
FROM node:10-alpine as final_image

ARG network_name="alfajores"
ARG network_id="44784"
ARG network_id="44785"

# Without musl-dev, geth will fail with a confusing "No such file or directory" error.
# bash is required for start_geth.sh
Expand All @@ -66,4 +66,4 @@ COPY --from=node /celo-monorepo/node_modules /celo-monorepo/node_modules
RUN chmod ugo+x /celo/start_geth.sh && ln -s /celo-monorepo/node_modules/.bin/celocli /usr/local/bin/celocli

EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["/celo/start_geth.sh", "/usr/local/bin/geth", "alfajores", "full", "44784", "/root/.celo", "/celo/genesis.json", "/celo/static-nodes.json"]
ENTRYPOINT ["/celo/start_geth.sh", "/usr/local/bin/geth", "alfajores", "full", "44785", "/root/.celo", "/celo/genesis.json", "/celo/static-nodes.json"]
2 changes: 1 addition & 1 deletion dockerfiles/cloudbuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8
FROM node:10

RUN apt-get update -y
RUN apt-get install lsb-release libudev-dev libusb-dev -y --no-install-recommends apt-utils
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/transaction-metrics-exporter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8
FROM node:10
WORKDIR /celo-monorepo

# Needed for gsutil
Expand Down Expand Up @@ -35,4 +35,4 @@ COPY packages/transaction-metrics-exporter packages/transaction-metrics-exporter
RUN yarn build

WORKDIR /celo-monorepo/packages/transaction-metrics-exporter
CMD ["node lib/index.js"]
CMD ["node", "lib/index.js"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"postinstall": "yarn run lerna run postinstall && patch-package && yarn keys:decrypt",
"preinstall": "bash scripts/create_key_templates.sh",
"keys:decrypt": "bash scripts/key_placer.sh decrypt",
"keys:encrypt": "bash scripts/key_placer.sh encrypt"
"keys:encrypt": "bash scripts/key_placer.sh encrypt",
"check:packages": "node ./scripts/check-packages.js"
},
"husky": {
"hooks": {
Expand Down
4 changes: 2 additions & 2 deletions packages/attestation-service/src/attestation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { attestToIdentifier, SignatureUtils } from '@celo/utils'
import { retryAsyncWithBackOff } from '@celo/utils/lib/async'
import express from 'express'
import { sendSms } from './sms'

function signAttestation(phoneNumber: string, account: string) {
if (process.env.ATTESTATION_KEY === undefined) {
console.error('Did not specify ATTESTATION_KEY')
Expand Down Expand Up @@ -32,7 +32,7 @@ export async function handleAttestationRequest(req: express.Request, res: expres
const textMessage = createAttestationTextMessage(attestationCode)

// Send the SMS
await sendSms(req.body.phoneNumber, textMessage)
await retryAsyncWithBackOff(sendSms, 10, [req.body.phoneNumber, textMessage], 1000)

res.json({ success: true })
}
2 changes: 1 addition & 1 deletion packages/attestation-service/src/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getMatchingNumber(countryCode: string) {
return nexmoNumbers[0].phoneNumber
}

export async function sendSms(phoneNumber: string, message: string) {
export async function sendSms(phoneNumber: string, message: string): Promise<void> {
const countryCode = phoneUtil.getRegionCodeForNumber(phoneUtil.parse(phoneNumber))

if (!countryCode) {
Expand Down
8 changes: 3 additions & 5 deletions packages/blockchain-api/.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
EXCHANGE_RATES_API=https://api.exchangeratesapi.io
BLOCKSCOUT_API=https://alfajoresstaging-blockscout.celo-testnet.org/api
CELO_GOLD_ADDRESS=0x1313e2f3EBef8f0d869EECEb796D55A066eEA863
CELO_DOLLAR_ADDRESS=0x2df4dd6bd1b26a8503f763506bdb8e7cf165f69e
FAUCET_ADDRESS=0xF4314cb9046bECe6AA54bb9533155434d0c76909
BLOCKSCOUT_API=https://integration-blockscout.celo-testnet.org/api
FAUCET_ADDRESS=0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95
VERIFICATION_REWARDS_ADDRESS=0xb4fdaf5f3cd313654aa357299ada901b1d2dd3b5
ATTESTATIONS_ADDRESS=0x8b7649116f169d2d2aebb6ea1a77f0baf31f2811
WEB3_PROVIDER_URL=https://integration-infura.celo-testnet.org/
Loading