Skip to content

Commit

Permalink
Merge branch 'master' into aaronmgdr/cip64
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmgdr authored Sep 22, 2023
2 parents 528fe77 + 5e21031 commit 159793f
Show file tree
Hide file tree
Showing 32 changed files with 133 additions and 20 deletions.
10 changes: 9 additions & 1 deletion dependency-graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"@celo/celocli": {
"location": "packages/cli",
"dependencies": [
"@celo/base",
"@celo/connect",
"@celo/contractkit",
"@celo/cryptographic-utils",
"@celo/dev-utils",
Expand Down Expand Up @@ -96,6 +98,7 @@
"@celo/phone-number-privacy-monitor": {
"location": "packages/phone-number-privacy/monitor",
"dependencies": [
"@celo/base",
"@celo/contractkit",
"@celo/cryptographic-utils",
"@celo/encrypted-backup",
Expand Down Expand Up @@ -152,10 +155,12 @@
"location": "packages/sdk/encrypted-backup",
"dependencies": [
"@celo/base",
"@celo/connect",
"@celo/dev-utils",
"@celo/identity",
"@celo/phone-number-privacy-common",
"@celo/utils"
"@celo/utils",
"@celo/wallet-local"
]
},
"@celo/explorer": {
Expand Down Expand Up @@ -246,6 +251,7 @@
"@celo/wallet-hsm-azure": {
"location": "packages/sdk/wallets/wallet-hsm-azure",
"dependencies": [
"@celo/base",
"@celo/connect",
"@celo/utils",
"@celo/wallet-base",
Expand All @@ -272,6 +278,7 @@
"@celo/wallet-ledger": {
"location": "packages/sdk/wallets/wallet-ledger",
"dependencies": [
"@celo/base",
"@celo/connect",
"@celo/utils",
"@celo/wallet-base",
Expand All @@ -297,6 +304,7 @@
"@celo/wallet-rpc": {
"location": "packages/sdk/wallets/wallet-rpc",
"dependencies": [
"@celo/base",
"@celo/connect",
"@celo/contractkit",
"@celo/dev-utils",
Expand Down
6 changes: 6 additions & 0 deletions packages/celotool/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"exclude": ["**/__mocks__/**", "**/lcov-report/**"]
},
"rules": {
"no-implicit-dependencies": [
false,
[
"src"
]
],
"no-relative-imports": false,
"max-classes-per-file": [true, 2],
"no-global-arrow-functions": false,
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"test": "TZ=UTC jest --runInBand"
},
"dependencies": {
"@celo/base": "^5.0.4",
"@celo/connect": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/explorer": "^5.0.4",
"@celo/governance": "^5.0.4",
Expand All @@ -43,6 +45,8 @@
"@celo/wallet-ledger": "^5.0.4",
"@celo/wallet-local": "^5.0.4",
"@ledgerhq/hw-transport-node-hid": "^6.27.4",
"@oclif/parser": "^3.8.16",
"@oclif/errors": "^1.3.6",
"@oclif/command": "^1.6.0",
"@oclif/config": "^1.6.0",
"@oclif/plugin-autocomplete": "^0.1.5",
Expand Down
1 change: 1 addition & 0 deletions packages/dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "tslint -c tslint.json --project ."
},
"dependencies": {
"ganache": "npm:@celo/[email protected]",
"bignumber.js": "^9.0.0",
"web3": "1.10.0",
"web3-core-helpers": "1.10.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/env-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
"@celo/identity": "5.0.4",
"@celo/phone-utils": "5.0.4",
"@celo/cryptographic-utils": "5.0.4",
"bignumber.js": "^9.0.0",
"bunyan": "1.8.12",
"bunyan-gke-stackdriver": "0.1.2",
"bunyan-debug-stream": "2.0.0",

"dotenv": "8.2.0",
"jest": "^29.0.2",
"moment": "^2.29.0",
Expand All @@ -31,6 +33,7 @@
"staging-test": "CELO_ENV=staging CELO_PROVIDER=https://staging-forno.celo-networks-dev.org jest --runInBand"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
"typescript": "4.4.3"
}
}
5 changes: 5 additions & 0 deletions packages/phone-number-privacy/combiner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,21 @@
"@celo/poprf": "^0.1.9",
"@types/bunyan": "^1.8.8",
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/resources": "1.17.0",
"@opentelemetry/instrumentation": "^0.41.2",
"@opentelemetry/auto-instrumentations-node": "^0.38.0",
"@opentelemetry/exporter-jaeger": "^1.15.2",
"@opentelemetry/propagator-ot-trace": "^0.27.0",
"@opentelemetry/sdk-metrics": "^1.15.2",
"@opentelemetry/sdk-node": "^0.41.2",
"@opentelemetry/sdk-trace-web": "^1.15.2",
"@opentelemetry/sdk-trace-node": "1.15.2",
"@opentelemetry/sdk-trace-base": "^1.17.0",
"@opentelemetry/semantic-conventions": "^1.15.2",
"blind-threshold-bls": "npm:@celo/[email protected]",
"dotenv": "^8.2.0",
"io-ts": "2.0.1",
"bunyan": "1.8.12",
"express": "^4.17.1",
"firebase-admin": "^11.10.1",
"firebase-functions": "^4.4.1",
Expand Down
8 changes: 7 additions & 1 deletion packages/phone-number-privacy/combiner/tslint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"extends": ["@celo/typescript/tslint.json"],
"rules": {
"no-implicit-dependencies": [
true,
[
"node:assert"
]
],
"no-global-arrow-functions": false,
"no-console": true
"no-console": true
}
}
3 changes: 3 additions & 0 deletions packages/phone-number-privacy/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"dotenv": "^8.2.0",
"elliptic": "^6.5.4",
"io-ts": "2.0.1",
"fp-ts": "2.1.1",
"express": "^4.17.6",
"node-fetch": "^2.6.9",
"is-base64": "^1.1.0",
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/auto-instrumentations-node": "^0.38.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/phone-number-privacy/monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
"loadTest": "ts-node src/scripts/run-load-test.ts run"
},
"dependencies": {
"@celo/base": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/cryptographic-utils": "^5.0.4",
"@celo/encrypted-backup": "^5.0.4",
"@celo/identity": "^5.0.4",
"@celo/wallet-local": "^5.0.4",
"@celo/phone-number-privacy-common": "^3.0.3",
"@celo/utils": "^5.0.4",
"yargs": "^14.0.0",
"firebase-admin": "^9.12.0",
"firebase-functions": "^3.15.7"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/phone-number-privacy/signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
},
"dependencies": {
"@celo/base": "^5.0.4",
"bunyan": "1.8.12",
"bignumber.js": "^9.0.0",
"blind-threshold-bls": "npm:@celo/[email protected]",
"@celo/contractkit": "^5.0.4",
"@celo/phone-number-privacy-common": "^3.0.3",
Expand All @@ -48,9 +50,14 @@
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/auto-instrumentations-node": "^0.38.0",
"@opentelemetry/propagator-ot-trace": "^0.27.0",
"@opentelemetry/resources": "1.17.0",
"@opentelemetry/instrumentation": "^0.41.2",
"@opentelemetry/exporter-jaeger": "^1.15.2",
"@opentelemetry/sdk-metrics": "^1.15.1",
"@opentelemetry/sdk-node": "^0.41.1",
"@opentelemetry/semantic-conventions": "^1.15.1",
"@opentelemetry/sdk-trace-base": "^1.17.0",
"@opentelemetry/sdk-trace-node": "1.15.2",
"@opentelemetry/sdk-trace-web": "^1.15.1",
"@types/bunyan": "^1.8.8",
"aws-sdk": "^2.705.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/phone-number-privacy/signer/src/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentation
import { JaegerExporter } from '@opentelemetry/exporter-jaeger'
import { registerInstrumentations } from '@opentelemetry/instrumentation'
import { Resource } from '@opentelemetry/resources'
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base'
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'
import { BatchSpanProcessor, NodeTracerProvider } from '@opentelemetry/sdk-trace-node'
/*
Some instrumentations included in auto-instrumentations-node:
- https://www.npmjs.com/package/@opentelemetry/sdk-trace-web
Expand Down Expand Up @@ -67,7 +66,7 @@ const resource = Resource.default().merge(
new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: process.env.TRACING_SERVICE_NAME,
// 'testing-signer-tracing',
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0',
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0', // should be the same as package.json version?
})
)

Expand Down
3 changes: 2 additions & 1 deletion packages/phone-number-privacy/signer/tslint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": ["@celo/typescript/tslint.json"],
"rules": {
"no-implicit-dependencies": [true, ["node:http"]],
"no-global-arrow-functions": false,
"no-console": true
"no-console": true
}
}
1 change: 1 addition & 0 deletions packages/protocol/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"exclude": ["types/contracts/*", "lib/**"]
},
"rules": {
"no-implicit-dependencies": false,
"no-global-arrow-functions": false,
"no-floating-promises": true,
"no-string-literal": false,
Expand Down
11 changes: 6 additions & 5 deletions packages/sdk/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@ethereumjs/util": "8.0.5",
"@types/debug": "^4.1.5",
"@types/utf8": "^2.1.6",
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"bignumber.js": "^9.0.0",
"debug": "^4.1.1",
"utf8": "3.0.0"
},
"devDependencies": {
"web3": "1.10.0",
"utf8": "3.0.0",
"web3-core": "1.10.0",
"web3-eth": "1.10.0",
"web3-eth-abi": "1.10.0",
"web3-eth-contract": "1.10.0"
},
"devDependencies": {
"web3": "1.10.0",
"web3-eth-abi": "1.10.0"
},
"peerDependencies": {
"web3": "1.10.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/contractkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"fetch-mock": "9.10.4",
"ganache": "npm:@celo/[email protected]",
"jest": "^29.0.2",
"bn.js": "^5.1.0",
"ts-node": "8.3.0",
"typedoc": "^0.19.2",
"typedoc-plugin-markdown": "^2.2.16",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/contractkit/src/wrappers/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@celo/utils/lib/signatureUtils'
import { soliditySha3 } from '@celo/utils/lib/solidity'
import { authorizeSigner as buildAuthorizeSignerTypedData } from '@celo/utils/lib/typed-data-constructors'
import BN from 'bn.js' // just the types
import type BN from 'bn.js' // just the types
import { Accounts } from '../generated/Accounts'
import { newContractVersion } from '../versions'
import {
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/encrypted-backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/connect": "5.0.4",
"@celo/base": "5.0.4",
"@celo/identity": "5.0.4",
"@celo/wallet-local": "5.0.4",
"@celo/phone-number-privacy-common": "^3.0.3",
"@celo/poprf": "^0.1.9",
"@celo/utils": "5.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@celo/utils": "5.0.4",
"@types/debug": "^4.1.5",
"cross-fetch": "3.0.6",
"bignumber.js": "9.0.0",
"debug": "^4.1.1"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@types/debug": "^4.1.5",
"@types/inquirer": "^6.5.0",
"debug": "^4.1.1",
"bignumber.js": "^9.0.0",
"ethereum-cryptography": "1.2.0",
"inquirer": "^7.0.5"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/phone-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"country-data": "^0.0.31",
"fp-ts": "2.1.1",
"google-libphonenumber": "^3.2.27",
"io-ts": "2.0.1"
"io-ts": "2.0.1",
"web3-utils": "^1.10.0"
},
"devDependencies": {
"@celo/typescript": "0.0.1"
Expand Down
3 changes: 3 additions & 0 deletions packages/sdk/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@
"dependencies": {
"@celo/base": "5.0.4",
"@ethereumjs/util": "8.0.5",
"rlp": "^2.2.4",
"@types/bn.js": "^5.1.0",
"@types/elliptic": "^6.4.9",
"@types/node": "^18.7.16",
"bignumber.js": "^9.0.0",
"elliptic": "^6.5.4",
"ethereum-cryptography": "1.2.0",
"bn.js": "4.11.9",
"io-ts": "2.0.1",
"fp-ts": "2.1.1",
"web3-eth-abi": "1.10.0",
"web3-utils": "1.10.0"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/sdk/wallets/wallet-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@ethereumjs/util": "8.0.5",
"@ethereumjs/rlp": "^5.0.0",
"ethereum-cryptography": "^2.1.2",
"@types/debug": "^4.1.5",
"bignumber.js": "^9.0.0",
"web3-eth-accounts": "1.10.0",
"debug": "^4.1.1",
"eth-lib": "^0.2.8"
"eth-lib": "^0.2.8",
"web3": "1.10.0"
},
"engines": {
"node": ">=8.14.2"
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/wallets/wallet-hsm-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"devDependencies": {
"@celo/connect": "5.0.4",
"elliptic": "^6.5.4",
"dotenv": "^8.2.0",
"web3": "1.10.0"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/wallets/wallet-hsm-azure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@azure/identity": "^1.1.0",
"@azure/keyvault-keys": "^4.1.0",
"@azure/keyvault-secrets": "^4.1.0",
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/wallet-base": "5.0.4",
"@celo/wallet-remote": "5.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/wallets/wallet-hsm-gcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"devDependencies": {
"@celo/connect": "5.0.4",
"elliptic": "^6.5.4",
"dotenv": "^8.2.0",
"web3": "1.10.0"
},
"engines": {
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/wallets/wallet-hsm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@
"eth-lib": "^0.2.8",
"@ethereumjs/util": "8.0.5",
"asn1js": "^2.0.26",
"bignumber.js": "^9.0.0",
"elliptic": "^6.5.4",
"secp256k1": "^4.0.0"
},
"devDependencies": {
"dotenv": "^8.2.0"
},
"engines": {
"node": ">=8.14.2"
}
Expand Down
Loading

0 comments on commit 159793f

Please sign in to comment.