From af2b4e0891aeb342e916d80862b818f4d10fcd8a Mon Sep 17 00:00:00 2001 From: alecps Date: Thu, 31 Aug 2023 17:03:39 -0400 Subject: [PATCH] build signer with only published versions --- dockerfiles/phone-number-privacy/Dockerfile | 2 +- .../phone-number-privacy/signer/package.json | 13 +- yarn.lock | 167 ++++++++++++++++++ 3 files changed, 175 insertions(+), 7 deletions(-) diff --git a/dockerfiles/phone-number-privacy/Dockerfile b/dockerfiles/phone-number-privacy/Dockerfile index 65cf6acef16..1e4f017bccb 100644 --- a/dockerfiles/phone-number-privacy/Dockerfile +++ b/dockerfiles/phone-number-privacy/Dockerfile @@ -40,7 +40,7 @@ COPY .gitmodules .gitmodules # Setting ONLY_PUBLISHED_DEPENDENCIES to true or any non-empty string results in only the # phone-number-privacy package being copied into the image, and therefore it will only build using # published dependencies. Setting ONLY_PUBLISHED_DEPENDENCIES to "" will copy in all dependecies. -ARG ONLY_PUBLISHED_DEPENDENCIES="" +ARG ONLY_PUBLISHED_DEPENDENCIES="true" ARG PACKAGE_SELECTOR=${ONLY_PUBLISHED_DEPENDENCIES:+phone-number-privacy/signer} COPY --from=packages celo-phone-number-privacy/packages/${PACKAGE_SELECTOR} packages/${PACKAGE_SELECTOR} diff --git a/packages/phone-number-privacy/signer/package.json b/packages/phone-number-privacy/signer/package.json index 8cef02e01d0..416e61a61d4 100644 --- a/packages/phone-number-privacy/signer/package.json +++ b/packages/phone-number-privacy/signer/package.json @@ -1,6 +1,6 @@ { "name": "@celo/phone-number-privacy-signer", - "version": "3.0.0-beta.17-dev", + "version": "3.0.0", "description": "Signing participator of ODIS", "author": "Celo", "license": "Apache-2.0", @@ -39,12 +39,12 @@ "ssl:keygen": "./scripts/create-ssl-cert.sh" }, "dependencies": { - "@celo/base": "^4.1.2-dev", - "@celo/contractkit": "^4.1.2-dev", - "@celo/phone-number-privacy-common": "^3.0.1-dev", + "@celo/base": "^4.1.1", + "@celo/contractkit": "^4.1.1", + "@celo/phone-number-privacy-common": "^3.0.0", "@celo/poprf": "^0.1.9", - "@celo/utils": "^4.1.2-dev", - "@celo/wallet-hsm-azure": "^4.1.2-dev", + "@celo/utils": "^4.1.1", + "@celo/wallet-hsm-azure": "^4.1.1", "@google-cloud/secret-manager": "3.0.0", "@opentelemetry/api": "^1.4.1", "@opentelemetry/auto-instrumentations-node": "^0.38.0", @@ -68,6 +68,7 @@ "lru-cache": "^10.0.1" }, "devDependencies": { + "@types/node": "18.7.16", "@types/express": "^4.17.6", "@types/supertest": "^2.0.12", "sqlite3": "^5.0.8", diff --git a/yarn.lock b/yarn.lock index 1d94ed08576..c0b6529c6a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -933,6 +933,11 @@ resolved "https://registry.yarnpkg.com/@celo/base/-/base-1.5.2.tgz#168ab5e4e30b374079d8d139fafc52ca6bfd4100" integrity sha512-KGf6Dl9E6D01vAfkgkjL2sG+zqAjspAogILIpWstljWdG5ifyA75jihrnDEHaMCoQS0KxHvTdP1XYS/GS6BEyQ== +"@celo/base@4.1.1", "@celo/base@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/base/-/base-4.1.1.tgz#2a6c38deaf2a82dbe10bf3dea4881e4452c11803" + integrity sha512-M7qpbDX/Bhmzcr/spZ7w9jkKfnMnv5zAnUFKoLrFsM8DB0NFcH95YAyeG1eVTfWmD7nu8RG1sASFPGGOAji2Iw== + "@celo/bls12377js@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@celo/bls12377js/-/bls12377js-0.1.1.tgz#ba3574f41697cdba96c10ae96bb1aac057285798" @@ -953,6 +958,19 @@ debug "^4.1.1" utf8 "3.0.0" +"@celo/connect@4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/connect/-/connect-4.1.1.tgz#7a631a5fc832b85eabb7f5e9a5fb95dbd620ee67" + integrity sha512-yIdrh4OiO2MEuDrgkALflor8oAx6YMAqy9/EUcDHql+BxKkDjSA8yxggqiOQzmZJ7GHKRzpwOpx5bey9siP3pQ== + dependencies: + "@celo/base" "4.1.1" + "@celo/utils" "4.1.1" + "@types/debug" "^4.1.5" + "@types/utf8" "^2.1.6" + bignumber.js "^9.0.0" + debug "^4.1.1" + utf8 "3.0.0" + "@celo/contractkit@1.5.2": version "1.5.2" resolved "https://registry.yarnpkg.com/@celo/contractkit/-/contractkit-1.5.2.tgz#be15d570f3044a190dabb6bbe53d5081c78ea605" @@ -971,6 +989,25 @@ semver "^7.3.5" web3 "1.3.6" +"@celo/contractkit@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/contractkit/-/contractkit-4.1.1.tgz#2ace459e9b6b599ec535f167a3b1e0c461fce0b1" + integrity sha512-1QBCyFOlIuCX9m2LzFXwfs4LNrZaYhuCUleuKPlLVZiw17uhv7Bq1mEPWAmV7SckLzTjYFvggzIg42U01g8brg== + dependencies: + "@celo/base" "4.1.1" + "@celo/connect" "4.1.1" + "@celo/utils" "4.1.1" + "@celo/wallet-local" "4.1.1" + "@types/bn.js" "^5.1.0" + "@types/debug" "^4.1.5" + bignumber.js "^9.0.0" + cross-fetch "3.0.6" + debug "^4.1.1" + fp-ts "2.1.1" + io-ts "2.0.1" + semver "^7.3.5" + web3 "1.10.0" + "@celo/phone-number-privacy-common@1.0.39": version "1.0.39" resolved "https://registry.yarnpkg.com/@celo/phone-number-privacy-common/-/phone-number-privacy-common-1.0.39.tgz#3c9568f70378d24d11afcc4306024c5cf4f8efe9" @@ -989,6 +1026,47 @@ elliptic "^6.5.4" is-base64 "^1.1.0" +"@celo/phone-number-privacy-common@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@celo/phone-number-privacy-common/-/phone-number-privacy-common-3.0.0.tgz#b6041820ff4e954a19434163d7bdb9f005139b26" + integrity sha512-lxzYb3iNU85RA7vf0YAGCT904uPeinvR4MWSWyefTrH/OR6rdXgWV7MjptxM72mSTFGRPpnQLmhRD6b7O1UYqA== + dependencies: + "@celo/base" "^4.1.1" + "@celo/contractkit" "^4.1.1" + "@celo/phone-utils" "^4.1.1" + "@celo/utils" "^4.1.1" + "@opentelemetry/api" "^1.4.1" + "@opentelemetry/auto-instrumentations-node" "^0.38.0" + "@opentelemetry/propagator-ot-trace" "^0.27.0" + "@opentelemetry/sdk-metrics" "^1.15.1" + "@opentelemetry/sdk-node" "^0.41.1" + "@opentelemetry/sdk-trace-web" "^1.15.1" + "@opentelemetry/semantic-conventions" "^1.15.1" + "@types/bunyan" "1.8.8" + bignumber.js "^9.0.0" + bunyan "1.8.12" + bunyan-debug-stream "2.0.0" + bunyan-gke-stackdriver "0.1.2" + dotenv "^8.2.0" + elliptic "^6.5.4" + io-ts "2.0.1" + is-base64 "^1.1.0" + +"@celo/phone-utils@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/phone-utils/-/phone-utils-4.1.1.tgz#2c99f409d59c84964410b6f2f509bed415df4ba4" + integrity sha512-KTLgDWjORlLBov77uRmNbhgFQ1wycYD6+l1yigrXr651fPgejQeFXraF8mYy2eCOkehOR8e7GCmfOuoR3+VCzA== + dependencies: + "@celo/base" "4.1.1" + "@celo/utils" "4.1.1" + "@types/country-data" "^0.0.0" + "@types/google-libphonenumber" "^7.4.23" + "@types/node" "^10.12.18" + country-data "^0.0.31" + fp-ts "2.1.1" + google-libphonenumber "^3.2.27" + io-ts "2.0.1" + "@celo/poprf@^0.1.9": version "0.1.9" resolved "https://registry.yarnpkg.com/@celo/poprf/-/poprf-0.1.9.tgz#38c514ce0f572b80edeb9dc280b6cf5e9d7c2a75" @@ -1035,6 +1113,23 @@ web3-eth-abi "1.3.6" web3-utils "1.3.6" +"@celo/utils@4.1.1", "@celo/utils@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-4.1.1.tgz#4423b64ad5f9028ba96af3023c32e950b152d68a" + integrity sha512-NZJqkvrV4ADNU0JGi1NkjWWDFL3NFZpHdQC57O+GNahE0uvC2ylCjCMQyyrDuFjyJwsIHPV2zNdVt4LRM2NP7g== + dependencies: + "@celo/base" "4.1.1" + "@ethereumjs/util" "8.0.5" + "@types/bn.js" "^5.1.0" + "@types/elliptic" "^6.4.9" + "@types/node" "^10.12.18" + bignumber.js "^9.0.0" + elliptic "^6.5.4" + ethereum-cryptography "1.2.0" + io-ts "2.0.1" + web3-eth-abi "1.10.0" + web3-utils "1.10.0" + "@celo/wallet-base@1.5.2": version "1.5.2" resolved "https://registry.yarnpkg.com/@celo/wallet-base/-/wallet-base-1.5.2.tgz#ae8df425bf3c702277bb1b63a761a2ec8429e7aa" @@ -1050,6 +1145,55 @@ eth-lib "^0.2.8" ethereumjs-util "^5.2.0" +"@celo/wallet-base@4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/wallet-base/-/wallet-base-4.1.1.tgz#70a955193a75e1c54f5111f03a5f2bfd0fb1f47a" + integrity sha512-WbZyXnZnFQ13AmSYXTT5JEtFFZiGWquBKMfPXhRreRiNHqtwGSxq+bUaDmYIFKq6f4DU4gFV3UwdpW7iNbSv2w== + dependencies: + "@celo/base" "4.1.1" + "@celo/connect" "4.1.1" + "@celo/utils" "4.1.1" + "@ethereumjs/util" "8.0.5" + "@types/debug" "^4.1.5" + bignumber.js "^9.0.0" + debug "^4.1.1" + eth-lib "^0.2.8" + +"@celo/wallet-hsm-azure@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/wallet-hsm-azure/-/wallet-hsm-azure-4.1.1.tgz#9dcea4630d9670999410f4be5cf409368b769e71" + integrity sha512-3CnaOgClOEy0HIW8SIinPz21mcpp4Ps9zOcamfzs5ICWld4rPvk0DfKIW+8TQrHSxJWRRdZQNfbdVSKrQ6gZCg== + dependencies: + "@azure/identity" "^1.1.0" + "@azure/keyvault-keys" "^4.1.0" + "@azure/keyvault-secrets" "^4.1.0" + "@celo/connect" "4.1.1" + "@celo/utils" "4.1.1" + "@celo/wallet-base" "4.1.1" + "@celo/wallet-hsm" "4.1.1" + "@celo/wallet-remote" "4.1.1" + "@ethereumjs/util" "8.0.5" + "@types/secp256k1" "^4.0.0" + bignumber.js "^9.0.0" + debug "^4.1.1" + eth-lib "^0.2.8" + secp256k1 "^4.0.0" + +"@celo/wallet-hsm@4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/wallet-hsm/-/wallet-hsm-4.1.1.tgz#9d7f292027f14c172f406b5159f654a32c3405d0" + integrity sha512-pbTD/+G9i28HRb1KS1IHd+AkwspG8nqRmK59hH907BFcsUyVQ7a6HIs8s+i63/tBFHpnNIcP/5cGXW8V0VsnUg== + dependencies: + "@celo/base" "4.1.1" + "@ethereumjs/util" "8.0.5" + "@types/asn1js" "^0.0.2" + "@types/debug" "^4.1.5" + "@types/secp256k1" "^4.0.0" + asn1js "^2.0.26" + elliptic "^6.5.4" + eth-lib "^0.2.8" + secp256k1 "^4.0.0" + "@celo/wallet-local@1.5.2": version "1.5.2" resolved "https://registry.yarnpkg.com/@celo/wallet-local/-/wallet-local-1.5.2.tgz#66ea5fb763e19724309e3d56f312f1a342e12b91" @@ -1062,6 +1206,29 @@ eth-lib "^0.2.8" ethereumjs-util "^5.2.0" +"@celo/wallet-local@4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/wallet-local/-/wallet-local-4.1.1.tgz#8b7748ccb030dcc64e62b533af79c9ff3f602f36" + integrity sha512-+eyBOkir3AaGbBGg0HIEpjfZ+G3yIeYy9ekJAZbDkCH81K0dlAHKVGnylITVORR+lQsJeHDiciREVcp5Zq3aHw== + dependencies: + "@celo/connect" "4.1.1" + "@celo/utils" "4.1.1" + "@celo/wallet-base" "4.1.1" + "@ethereumjs/util" "8.0.5" + eth-lib "^0.2.8" + +"@celo/wallet-remote@4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@celo/wallet-remote/-/wallet-remote-4.1.1.tgz#c717ef53a160f07d6402a7576122496d644c44de" + integrity sha512-cG85ryLRz+xANioZBDsGgCjY/mgh4X5bbCWmEWh5Jd7QHsbbkFgNCs7rcNEPjgxB7q2DfbRT0oUzcETqIWmXIA== + dependencies: + "@celo/connect" "4.1.1" + "@celo/utils" "4.1.1" + "@celo/wallet-base" "4.1.1" + "@ethereumjs/util" "8.0.5" + "@types/debug" "^4.1.5" + eth-lib "^0.2.8" + "@chainsafe/as-sha256@^0.3.1": version "0.3.1" resolved "https://registry.yarnpkg.com/@chainsafe/as-sha256/-/as-sha256-0.3.1.tgz#3639df0e1435cab03f4d9870cc3ac079e57a6fc9"