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

Exit beta #200

Merged
merged 10 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brave-spies-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/dev-utils': patch
---

Bump web3 to 1.10.4
9 changes: 9 additions & 0 deletions .changeset/chatty-planets-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@celo/contractkit': major
---

The following changes are related to adding support for more fee currencies in the @celo packages.

(BREAKING): `setFeeCurrency` changed to accept an address instead of previously accepting a StableToken
(CHANGED): all places referring to gasCurrencies have been changed from `string` to `StrongAddress` for safer types. This shouldn't impact you as you already should have been giving `0x${string}` in these places
(CHANGED): reinforced the types of most contract wrappers to use `StrongAddress` where appropriate
9 changes: 9 additions & 0 deletions .changeset/eight-dragons-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@celo/celocli': major
---

The following changes are related to adding support for more fee currencies in the @celo packages.

(BREAKING): global flag `--gasCurrency` changed to accept only whitelisted addresses instead of previously accepting a StableToken or 'auto'
(BREAKING): `config:set --gasCurrency` is now ignored and not saved to a default config and prints a warning instead
(ADDED): `celocli network:whitelist` prints the whitelisted feeCurrencies
8 changes: 8 additions & 0 deletions .changeset/friendly-penguins-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@celo/network-utils': patch
'@celo/contractkit': patch
'@celo/explorer': patch
'@celo/celocli': patch
---

Bump Cross Fetch to fix security vulnerability
19 changes: 19 additions & 0 deletions .changeset/lemon-doors-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@celo/wallet-hsm-azure': patch
'@celo/wallet-hsm-aws': patch
'@celo/wallet-hsm-gcp': patch
'@celo/wallet-ledger': patch
'@celo/wallet-remote': patch
'@celo/wallet-local': patch
'@celo/wallet-base': patch
'@celo/wallet-hsm': patch
'@celo/wallet-rpc': patch
'@celo/transactions-uri': patch
'@celo/network-utils': patch
'@celo/contractkit': patch
'@celo/connect': patch
'@celo/utils': patch
'@celo/celocli': patch
---

Bump web3-\* to 1.10.4 -- Some consumers may be forced to upgrade their web3 instance to the same version
43 changes: 43 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"mode": "exit",
"tag": "beta",
"initialVersions": {
"@celo/celocli": "4.2.0",
"@celo/base": "6.0.0",
"@celo/connect": "5.2.0",
"@celo/contractkit": "7.2.0",
"@celo/cryptographic-utils": "5.0.7",
"@celo/explorer": "5.0.9",
"@celo/governance": "5.1.0",
"@celo/keystores": "5.0.8",
"@celo/network-utils": "5.0.5",
"@celo/phone-utils": "6.0.1",
"@celo/transactions-uri": "5.0.8",
"@celo/utils": "6.0.0",
"@celo/wallet-base": "5.1.3",
"@celo/wallet-hsm": "5.1.3",
"@celo/wallet-hsm-aws": "5.1.3",
"@celo/wallet-hsm-azure": "5.1.3",
"@celo/wallet-hsm-gcp": "5.1.3",
"@celo/wallet-ledger": "5.1.3",
"@celo/wallet-local": "5.1.3",
"@celo/wallet-remote": "5.1.3",
"@celo/wallet-rpc": "5.1.3",
"@celo/typescript": "0.0.1",
"@celo/dev-utils": "0.0.2"
},
"changesets": [
"brave-spies-own",
"chatty-planets-trade",
"early-terms-push",
"eight-dragons-behave",
"friendly-penguins-happen",
"lemon-doors-rescue",
"pretty-taxis-juggle",
"proud-days-hunt",
"quick-tips-happen",
"rude-hornets-smell",
"seven-carrots-cross",
"slimy-trainers-develop"
]
}
12 changes: 12 additions & 0 deletions .changeset/pretty-taxis-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@celo/contractkit': major
---

Removes stable token infos from the kit.getNetworkConfig()


Removes from StableTokenWrapper all InflationParameters including, valueToUnits(), unitsToValues(), setInflationParameters(),

Removes the inflation params from StableTokenWrapper.getConfig


7 changes: 7 additions & 0 deletions .changeset/proud-days-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@celo/utils': patch
---

The following changes are related to adding support for more fee currencies in the @celo packages.

(CHANGED): all places referring to gasCurrencies have been changed from `string` to `StrongAddress` for safer types. This shouldn't impact you as you already should have been giving `0x${string}` in these places
6 changes: 6 additions & 0 deletions .changeset/quick-tips-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@celo/connect": minor
"@celo/wallet-base": minor
---

Add support Type 0 Ethereum-compatible legacy TXs
7 changes: 7 additions & 0 deletions .changeset/rude-hornets-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@celo/connect': patch
---

The following changes are related to adding support for more fee currencies in the @celo packages.

(CHANGED): all places referring to gasCurrencies have been changed from `string` to `StrongAddress` for safer types. This shouldn't impact you as you already should have been giving `0x${string}` in these places
7 changes: 7 additions & 0 deletions .changeset/seven-carrots-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@celo/base': patch
---

The following changes are related to adding support for more fee currencies in the @celo packages.

(CHANGED): all places referring to gasCurrencies have been changed from `string` to `StrongAddress` for safer types. This shouldn't impact you as you already should have been giving `0x${string}` in these places
5 changes: 5 additions & 0 deletions .changeset/slimy-trainers-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/celocli': patch
---

celocli nework:parameters no longer includes info on stable tokens
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ packages/sdk/identity/*
packages/sdk/encrypted-backup/*
packages/protocol/*
packages/celotool/*
packages/dev-utils/*
packages/metadata-crawler/*
packages/helm-charts/*
# temp json file for deploy-sdks script
Expand Down
36 changes: 2 additions & 34 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug PhoneNumberPrivacy Combiner Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--rootDir",
"${workspaceFolder}/packages/phone-number-privacy",
"--runInBand",
"${workspaceFolder}/packages/phone-number-privacy/combiner/test/**",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
},
{
"name": "Debug PhoneNumberPrivacy Signer Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--rootDir",
"${workspaceFolder}/packages/phone-number-privacy/signer",
"--runInBand",
"${workspaceFolder}/packages/phone-number-privacy/signer/test/**",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
},
{
"name": "Debug ContractKit Tests",
"type": "node",
Expand All @@ -41,9 +9,9 @@
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--rootDir",
"${workspaceFolder}/packages/contractkit",
"${workspaceFolder}/packages/sdk/contractkit",
"--runInBand",
"${workspaceFolder}/packages/contractkit/src/**/*.test.ts",
"${workspaceFolder}/packages/sdk/contractkit/src/**/*.test.ts",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ cd developer-tooling
### Installing Node.js

We use [Node.js](https://nodejs.org/en/) to run the project locally.
You need to install the **Node.js version** specified in [.nvmrc](../.nvmrc). To do so, run:
You need to install the **Node.js version** specified in [.nvmrc](/.nvmrc). To do so, run:

```sh
$ nvm install
Expand Down
43 changes: 43 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Changelog

## 5.0.0-beta.1

### Major Changes

- [#198](https://github.com/celo-org/developer-tooling/pull/198) [`880a838`](https://github.com/celo-org/developer-tooling/commit/880a8386e10cf9cd84c57d141330e84635a7eeaa) Thanks [@nicolasbrugneaux](https://github.com/nicolasbrugneaux)! - The following changes are related to adding support for more fee currencies in the @celo packages.

(BREAKING): global flag `--gasCurrency` changed to accept only whitelisted addresses instead of previously accepting a StableToken or 'auto'
(BREAKING): `config:set --gasCurrency` is now ignored and not saved to a default config and prints a warning instead
(ADDED): `celocli network:whitelist` prints the whitelisted feeCurrencies

## 5.0.0-beta.0

### Major Changes

- [#188](https://github.com/celo-org/developer-tooling/pull/188) [`08b0d6a`](https://github.com/celo-org/developer-tooling/commit/08b0d6a18b73b01c162f6ba4f97d73f3e3708160) Thanks [@github-actions](https://github.com/apps/github-actions)! - The following changes are related to adding support for more fee currencies in the @celo packages.

(BREAKING): `--gasCurrency` changed to accept only whitelisted addresses or the string `CELO` instead of previously accepting a StableToken or 'auto'
(ADDED): `celocli network:whitelist` prints the whitelisted feeCurrencies
(ADDED): the cli will automagically convert the previous gasCurrency such as cEUR, cUSD, cREAL, CELO into its address if necessary

### Patch Changes

- [#189](https://github.com/celo-org/developer-tooling/pull/189) [`cbfedf0`](https://github.com/celo-org/developer-tooling/commit/cbfedf0849a69e347a6ee3647b301ca0e7a11cac) Thanks [@renovate](https://github.com/apps/renovate)! - Bumps @celo/identity package to version [5.1.2](https://github.com/celo-org/social-connect/pull/181). This version removes the opentelemetry dependencies, which removes the warnings when users install @celo/celocli.

- [#168](https://github.com/celo-org/developer-tooling/pull/168) [`c42682d`](https://github.com/celo-org/developer-tooling/commit/c42682d8a7e582f0adaa63c833a4c83a0a649f20) Thanks [@renovate](https://github.com/apps/renovate)! - Bump Cross Fetch to fix security vulnerability

- [#168](https://github.com/celo-org/developer-tooling/pull/168) [`c42682d`](https://github.com/celo-org/developer-tooling/commit/c42682d8a7e582f0adaa63c833a4c83a0a649f20) Thanks [@renovate](https://github.com/apps/renovate)! - Bump web3-\* to 1.10.4 -- Some consumers may be forced to upgrade their web3 instance to the same version

- [#188](https://github.com/celo-org/developer-tooling/pull/188) [`a317972`](https://github.com/celo-org/developer-tooling/commit/a3179725c4c38274b8e664a0f2853a709911949c) Thanks [@github-actions](https://github.com/apps/github-actions)! - celocli nework:parameters no longer includes info on stable tokens

- Updated dependencies [[`08b0d6a`](https://github.com/celo-org/developer-tooling/commit/08b0d6a18b73b01c162f6ba4f97d73f3e3708160), [`c42682d`](https://github.com/celo-org/developer-tooling/commit/c42682d8a7e582f0adaa63c833a4c83a0a649f20), [`c42682d`](https://github.com/celo-org/developer-tooling/commit/c42682d8a7e582f0adaa63c833a4c83a0a649f20), [`a317972`](https://github.com/celo-org/developer-tooling/commit/a3179725c4c38274b8e664a0f2853a709911949c), [`08b0d6a`](https://github.com/celo-org/developer-tooling/commit/08b0d6a18b73b01c162f6ba4f97d73f3e3708160), [`5335af5`](https://github.com/celo-org/developer-tooling/commit/5335af5808a892c95245624e676cd1952a0cfb42), [`08b0d6a`](https://github.com/celo-org/developer-tooling/commit/08b0d6a18b73b01c162f6ba4f97d73f3e3708160), [`08b0d6a`](https://github.com/celo-org/developer-tooling/commit/08b0d6a18b73b01c162f6ba4f97d73f3e3708160)]:
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]
- @celo/[email protected]

## 4.2.0

### Minor Changes
Expand Down
7 changes: 6 additions & 1 deletion packages/cli/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 18 additions & 19 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@celo/celocli",
"description": "CLI Tool for transacting with the Celo protocol",
"version": "4.2.0",
"version": "5.0.0-beta.1",
"author": "Celo",
"license": "Apache-2.0",
"repository": "celo-org/developer-tooling",
Expand All @@ -22,9 +22,9 @@
"node": ">=16"
},
"scripts": {
"clean": "tsc -b . --clean",
"clean": "yarn run --top-level tsc -b . --clean",
"dev": "yarn build && ts-node ./bin/dev.js",
"build": "tsc -b .",
"build": "yarn run --top-level tsc -b .",
"docs": "./generate_docs.sh",
"lint": "yarn run --top-level eslint -c .eslintrc.js ",
"prepublish": "",
Expand All @@ -33,19 +33,19 @@
},
"dependencies": {
"@celo/abis": "11.0.0",
"@celo/base": "^6.0.0",
"@celo/base": "^6.0.1-beta.0",
"@celo/compliance": "~1.0.17",
"@celo/connect": "^5.2.0",
"@celo/contractkit": "^7.2.0",
"@celo/cryptographic-utils": "^5.0.7",
"@celo/explorer": "^5.0.9",
"@celo/governance": "^5.1.0",
"@celo/connect": "^5.3.0-beta.0",
"@celo/contractkit": "^8.0.0-beta.0",
"@celo/cryptographic-utils": "^5.0.8-beta.0",
"@celo/explorer": "^5.0.10-beta.0",
"@celo/governance": "^5.1.1-beta.0",
"@celo/identity": "^5.1.2",
"@celo/phone-utils": "^6.0.1",
"@celo/utils": "^6.0.0",
"@celo/wallet-hsm-azure": "^5.1.3",
"@celo/wallet-ledger": "^5.1.3",
"@celo/wallet-local": "^5.1.3",
"@celo/phone-utils": "^6.0.2-beta.0",
"@celo/utils": "^6.0.1-beta.0",
"@celo/wallet-hsm-azure": "^5.2.0-beta.0",
"@celo/wallet-ledger": "^5.2.0-beta.0",
"@celo/wallet-local": "^5.2.0-beta.0",
"@ethereumjs/util": "8.0.5",
"@ledgerhq/hw-transport-node-hid": "^6.27.4",
"@mento-protocol/mento-sdk": "^0.2.2",
Expand All @@ -61,20 +61,20 @@
"bip32": "3.1.0",
"chalk": "^2.4.2",
"command-exists": "^1.2.9",
"cross-fetch": "3.0.6",
"cross-fetch": "3.1.5",
"debug": "^4.1.1",
"ethers": "5",
"fs-extra": "^8.1.0",
"humanize-duration": "^3.29.0",
"path": "^0.12.7",
"prompts": "^2.0.1",
"randombytes": "^2.0.1",
"web3": "1.10.0",
"web3-utils": "^1.10.0"
"web3": "1.10.4",
"web3-utils": "^1.10.4"
},
"devDependencies": {
"@celo/celo-devchain": "^7.0.0",
"@celo/dev-utils": "0.0.1-beta.1",
"@celo/dev-utils": "0.0.3-beta.0",
"@celo/typescript": "workspace:^",
"@types/debug": "^4.1.4",
"@types/fs-extra": "^8.0.0",
Expand All @@ -83,7 +83,6 @@
"@types/ledgerhq__hw-transport-node-hid": "^4.22.2",
"@types/node": "^18.7.16",
"@types/prompts": "^1.1.1",
"@types/web3": "^1.0.18",
"jest": "^29.0.2",
"oclif": "^4.3.4",
"prettier": "1.19.1",
Expand Down
Loading
Loading