From 505790be6c2bc15617ba3be9a03ffc6e95bb86e8 Mon Sep 17 00:00:00 2001 From: Shane da Silva Date: Mon, 7 Aug 2023 16:10:29 -0700 Subject: [PATCH] chore: Cut Hubble version 1.4.4 and other package upgrades (#1228) --- .changeset/brave-steaks-change.md | 5 ----- .changeset/breezy-swans-brake.md | 5 ----- .changeset/cyan-foxes-wave.md | 5 ----- .changeset/dull-glasses-admire.md | 5 ----- .changeset/empty-eggs-cough.md | 5 ----- .changeset/fifty-feet-punch.md | 5 ----- .changeset/friendly-icons-sip.md | 6 ------ .changeset/healthy-ghosts-hide.md | 5 ----- .changeset/heavy-pants-poke.md | 5 ----- .changeset/itchy-carrots-tap.md | 5 ----- .changeset/khaki-clouds-attack.md | 5 ----- .changeset/light-chairs-approve.md | 5 ----- .changeset/little-fans-sort.md | 5 ----- .changeset/nervous-rivers-love.md | 5 ----- .changeset/rare-bags-reflect.md | 6 ------ .changeset/rude-rabbits-tease.md | 8 -------- .changeset/smart-hotels-punch.md | 5 ----- .changeset/spicy-lamps-swim.md | 5 ----- .changeset/swift-ways-hear.md | 5 ----- .changeset/thirty-radios-search.md | 5 ----- .changeset/tidy-needles-greet.md | 5 ----- .changeset/tidy-panthers-speak.md | 8 -------- .changeset/tiny-bears-peel.md | 5 ----- .changeset/young-lobsters-peel.md | 8 -------- CONTRIBUTING.md | 6 +++--- apps/hubble/CHANGELOG.md | 33 ++++++++++++++++++++++++++++++ apps/hubble/package.json | 4 ++-- packages/core/CHANGELOG.md | 13 ++++++++++++ packages/core/package.json | 6 ++++-- packages/hub-nodejs/CHANGELOG.md | 18 ++++++++++++++++ packages/hub-nodejs/package.json | 8 +++++--- packages/hub-web/CHANGELOG.md | 17 +++++++++++++++ packages/hub-web/package.json | 4 ++-- 33 files changed, 97 insertions(+), 143 deletions(-) delete mode 100644 .changeset/brave-steaks-change.md delete mode 100644 .changeset/breezy-swans-brake.md delete mode 100644 .changeset/cyan-foxes-wave.md delete mode 100644 .changeset/dull-glasses-admire.md delete mode 100644 .changeset/empty-eggs-cough.md delete mode 100644 .changeset/fifty-feet-punch.md delete mode 100644 .changeset/friendly-icons-sip.md delete mode 100644 .changeset/healthy-ghosts-hide.md delete mode 100644 .changeset/heavy-pants-poke.md delete mode 100644 .changeset/itchy-carrots-tap.md delete mode 100644 .changeset/khaki-clouds-attack.md delete mode 100644 .changeset/light-chairs-approve.md delete mode 100644 .changeset/little-fans-sort.md delete mode 100644 .changeset/nervous-rivers-love.md delete mode 100644 .changeset/rare-bags-reflect.md delete mode 100644 .changeset/rude-rabbits-tease.md delete mode 100644 .changeset/smart-hotels-punch.md delete mode 100644 .changeset/spicy-lamps-swim.md delete mode 100644 .changeset/swift-ways-hear.md delete mode 100644 .changeset/thirty-radios-search.md delete mode 100644 .changeset/tidy-needles-greet.md delete mode 100644 .changeset/tidy-panthers-speak.md delete mode 100644 .changeset/tiny-bears-peel.md delete mode 100644 .changeset/young-lobsters-peel.md diff --git a/.changeset/brave-steaks-change.md b/.changeset/brave-steaks-change.md deleted file mode 100644 index 65462c3188..0000000000 --- a/.changeset/brave-steaks-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Improve profiler for gen messages and storage diff --git a/.changeset/breezy-swans-brake.md b/.changeset/breezy-swans-brake.md deleted file mode 100644 index dc83f19bd8..0000000000 --- a/.changeset/breezy-swans-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: Bugfix where testnet would restrict peers diff --git a/.changeset/cyan-foxes-wave.md b/.changeset/cyan-foxes-wave.md deleted file mode 100644 index e24b630398..0000000000 --- a/.changeset/cyan-foxes-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Add fallback bootstrap peers for mainnet diff --git a/.changeset/dull-glasses-admire.md b/.changeset/dull-glasses-admire.md deleted file mode 100644 index ecb708f282..0000000000 --- a/.changeset/dull-glasses-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": minor ---- - -Adds support for logging would-be-pruned events, plus handles extra storage if purchased diff --git a/.changeset/empty-eggs-cough.md b/.changeset/empty-eggs-cough.md deleted file mode 100644 index 507e99e3a3..0000000000 --- a/.changeset/empty-eggs-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: Fetch network config only for mainnet diff --git a/.changeset/fifty-feet-punch.md b/.changeset/fifty-feet-punch.md deleted file mode 100644 index 3fdb5d1275..0000000000 --- a/.changeset/fifty-feet-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: revoke signers 1hr after custody event diff --git a/.changeset/friendly-icons-sip.md b/.changeset/friendly-icons-sip.md deleted file mode 100644 index a38cbd4dc8..0000000000 --- a/.changeset/friendly-icons-sip.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@farcaster/core": patch -"@farcaster/hubble": patch ---- - -feat: Move blake3 hash into rust diff --git a/.changeset/healthy-ghosts-hide.md b/.changeset/healthy-ghosts-hide.md deleted file mode 100644 index 6f3bb8301d..0000000000 --- a/.changeset/healthy-ghosts-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: handle revoking on chain signer and make l2 options customizable diff --git a/.changeset/heavy-pants-poke.md b/.changeset/heavy-pants-poke.md deleted file mode 100644 index 81c3f603bc..0000000000 --- a/.changeset/heavy-pants-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Rate limit merges per FID to the total messages storage available for the FID diff --git a/.changeset/itchy-carrots-tap.md b/.changeset/itchy-carrots-tap.md deleted file mode 100644 index be11083eb2..0000000000 --- a/.changeset/itchy-carrots-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Check integrity of messages during sync diff --git a/.changeset/khaki-clouds-attack.md b/.changeset/khaki-clouds-attack.md deleted file mode 100644 index 23c6a6e247..0000000000 --- a/.changeset/khaki-clouds-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: validate name proofs against fids rather than custody address to enable smoother fid recovery process diff --git a/.changeset/light-chairs-approve.md b/.changeset/light-chairs-approve.md deleted file mode 100644 index 9c83eab325..0000000000 --- a/.changeset/light-chairs-approve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Create a deny list for PeerIDs diff --git a/.changeset/little-fans-sort.md b/.changeset/little-fans-sort.md deleted file mode 100644 index 4f6d9f1446..0000000000 --- a/.changeset/little-fans-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: Limit the number of simultaneous subscribe() streams by IP address diff --git a/.changeset/nervous-rivers-love.md b/.changeset/nervous-rivers-love.md deleted file mode 100644 index 7bab269ad9..0000000000 --- a/.changeset/nervous-rivers-love.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/core": patch ---- - -feat: Add Rust to the toolchain and use rust for ed25519 signature verification diff --git a/.changeset/rare-bags-reflect.md b/.changeset/rare-bags-reflect.md deleted file mode 100644 index 86dd4428a8..0000000000 --- a/.changeset/rare-bags-reflect.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@farcaster/hub-nodejs": patch -"@farcaster/hubble": patch ---- - -chore: Update grpc-js and setup grpc server timeouts diff --git a/.changeset/rude-rabbits-tease.md b/.changeset/rude-rabbits-tease.md deleted file mode 100644 index f18a1c068f..0000000000 --- a/.changeset/rude-rabbits-tease.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@farcaster/hub-nodejs": patch -"@farcaster/hub-web": patch -"@farcaster/core": patch -"@farcaster/hubble": patch ---- - -feat: support migrating to l2 diff --git a/.changeset/smart-hotels-punch.md b/.changeset/smart-hotels-punch.md deleted file mode 100644 index 5cf8032c0e..0000000000 --- a/.changeset/smart-hotels-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: Fix the TestData generation for testnet diff --git a/.changeset/spicy-lamps-swim.md b/.changeset/spicy-lamps-swim.md deleted file mode 100644 index 5bb67ab45c..0000000000 --- a/.changeset/spicy-lamps-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Add libp2p gossip server profiler diff --git a/.changeset/swift-ways-hear.md b/.changeset/swift-ways-hear.md deleted file mode 100644 index dde2dbb526..0000000000 --- a/.changeset/swift-ways-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: Fix onchain event subscription not sending events correctly diff --git a/.changeset/thirty-radios-search.md b/.changeset/thirty-radios-search.md deleted file mode 100644 index 6919777118..0000000000 --- a/.changeset/thirty-radios-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Scale validation workers by number of CPUs and add a RPC profiler diff --git a/.changeset/tidy-needles-greet.md b/.changeset/tidy-needles-greet.md deleted file mode 100644 index a396f9acba..0000000000 --- a/.changeset/tidy-needles-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Deprecate time based pruning in sets diff --git a/.changeset/tidy-panthers-speak.md b/.changeset/tidy-panthers-speak.md deleted file mode 100644 index f602c934e1..0000000000 --- a/.changeset/tidy-panthers-speak.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@farcaster/hub-nodejs": patch -"@farcaster/hub-web": patch -"@farcaster/core": patch -"@farcaster/hubble": patch ---- - -feat: refactor storage rent events to on chain events diff --git a/.changeset/tiny-bears-peel.md b/.changeset/tiny-bears-peel.md deleted file mode 100644 index 42d7b8db62..0000000000 --- a/.changeset/tiny-bears-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -Adjusted rent prune log to debug instead of warn diff --git a/.changeset/young-lobsters-peel.md b/.changeset/young-lobsters-peel.md deleted file mode 100644 index 43c5e8add4..0000000000 --- a/.changeset/young-lobsters-peel.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@farcaster/hub-nodejs": minor -"@farcaster/hub-web": minor -"@farcaster/core": minor -"@farcaster/hubble": minor ---- - -Added storage limits RPC diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5f6b30c727..f40ade92cd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -284,12 +284,12 @@ are at all unsure about how to proceed, please reach out to Varun ([Github](http ### 3.7 Working in Rust -Some of the CPU intensive code is written in Rust for speed. We import the Rust modules via [Neon](https://neon-bindings.com/) that are built as a part of the `@farcaster/core` package. +Some of the CPU intensive code is written in Rust for speed. We import the Rust modules via [Neon](https://neon-bindings.com/) that are built as a part of the `@farcaster/core` package. -To add new code to Rust, +To add new code to Rust, 1. Add it to `packages/core/src/addon/` 2. Add a bridge implementation and types into `packages/core/src/addon/addon.js` and `packages/core/src/addon/addon.d.ts` -3. Export the callable typescript function in `packages/core/src/rustfunctions.ts`. This function can then be used throught the project to transparently call into Rust from Typescript +3. Export the callable typescript function in `packages/core/src/rustfunctions.ts`. This function can then be used throught the project to transparently call into Rust from Typescript ## 4. Troubleshooting diff --git a/apps/hubble/CHANGELOG.md b/apps/hubble/CHANGELOG.md index 2cc0a263bc..54e1c9ea8f 100644 --- a/apps/hubble/CHANGELOG.md +++ b/apps/hubble/CHANGELOG.md @@ -1,5 +1,38 @@ # @farcaster/hubble +## 1.4.4 + +### Patch Changes + +- 083762e5: feat: Improve profiler for gen messages and storage +- 63260785: fix: Bugfix where testnet would restrict peers +- 40c17c9b: feat: Add fallback bootstrap peers for mainnet +- d443fbe9: Adds support for logging would-be-pruned events, plus handles extra storage if purchased +- 571e5434: fix: Fetch network config only for mainnet +- c7ec4ca9: feat: revoke signers 1hr after custody event +- ec7734cf: feat: Move blake3 hash into rust +- 996be825: fix: handle revoking on chain signer and make l2 options customizable +- 1e0979b0: feat: Rate limit merges per FID to the total messages storage available for the FID +- 503b379d: feat: Check integrity of messages during sync +- b9efe14a: feat: validate name proofs against fids rather than custody address to enable smoother fid recovery process +- 65a4faff: feat: Create a deny list for PeerIDs +- a1b9aced: fix: Limit the number of simultaneous subscribe() streams by IP address +- 3f180073: chore: Update grpc-js and setup grpc server timeouts +- dcd7a149: feat: support migrating to l2 +- 39e0141d: fix: Fix the TestData generation for testnet +- b598c4a2: feat: Add libp2p gossip server profiler +- 9ae366b7: fix: Fix onchain event subscription not sending events correctly +- 9f669b57: feat: Scale validation workers by number of CPUs and add a RPC profiler +- 2df38497: feat: Deprecate time based pruning in sets +- 67e9466e: feat: refactor storage rent events to on chain events +- 50a6b8ac: Adjusted rent prune log to debug instead of warn +- 86149d32: Added storage limits RPC +- Updated dependencies [3f180073] +- Updated dependencies [dcd7a149] +- Updated dependencies [67e9466e] +- Updated dependencies [86149d32] + - @farcaster/hub-nodejs@0.10.0 + ## 1.4.3 ### Patch Changes diff --git a/apps/hubble/package.json b/apps/hubble/package.json index 54d42a1faa..fac9d165d1 100644 --- a/apps/hubble/package.json +++ b/apps/hubble/package.json @@ -1,6 +1,6 @@ { "name": "@farcaster/hubble", - "version": "1.4.3", + "version": "1.4.4", "description": "Farcaster Hub", "author": "", "license": "", @@ -54,7 +54,7 @@ "@chainsafe/libp2p-gossipsub": "6.1.0", "@chainsafe/libp2p-noise": "^11.0.0 ", "@faker-js/faker": "~7.6.0", - "@farcaster/hub-nodejs": "^0.9.1", + "@farcaster/hub-nodejs": "^0.10.0", "@farcaster/rocksdb": "^5.5.0", "@grpc/grpc-js": "~1.8.21", "@libp2p/interface-connection": "^3.0.2", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index ac1a256e59..39c83ab1e1 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,18 @@ # @farcaster/core +## 0.12.0 + +### Minor Changes + +- 86149d32: Added storage limits RPC + +### Patch Changes + +- ec7734cf: feat: Move blake3 hash into rust +- 15fad467: feat: Add Rust to the toolchain and use rust for ed25519 signature verification +- dcd7a149: feat: support migrating to l2 +- 67e9466e: feat: refactor storage rent events to on chain events + ## 0.11.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 83f367931d..ad360ae5ab 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@farcaster/core", - "version": "0.11.1", + "version": "0.12.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -11,7 +11,9 @@ "types": "./dist/index.d.ts" } }, - "files": ["dist"], + "files": [ + "dist" + ], "license": "MIT", "dependencies": { "@noble/curves": "^1.0.0", diff --git a/packages/hub-nodejs/CHANGELOG.md b/packages/hub-nodejs/CHANGELOG.md index 0046ee2fef..f120d39049 100644 --- a/packages/hub-nodejs/CHANGELOG.md +++ b/packages/hub-nodejs/CHANGELOG.md @@ -1,5 +1,23 @@ # @farcaster/hub-nodejs +## 0.10.0 + +### Minor Changes + +- 86149d32: Added storage limits RPC + +### Patch Changes + +- 3f180073: chore: Update grpc-js and setup grpc server timeouts +- dcd7a149: feat: support migrating to l2 +- 67e9466e: feat: refactor storage rent events to on chain events +- Updated dependencies [ec7734cf] +- Updated dependencies [15fad467] +- Updated dependencies [dcd7a149] +- Updated dependencies [67e9466e] +- Updated dependencies [86149d32] + - @farcaster/core@0.12.0 + ## 0.9.1 ### Patch Changes diff --git a/packages/hub-nodejs/package.json b/packages/hub-nodejs/package.json index 6375d8121d..fe34005a8d 100644 --- a/packages/hub-nodejs/package.json +++ b/packages/hub-nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@farcaster/hub-nodejs", - "version": "0.9.1", + "version": "0.10.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -11,10 +11,12 @@ "types": "./dist/index.d.ts" } }, - "files": ["dist"], + "files": [ + "dist" + ], "license": "MIT", "dependencies": { - "@farcaster/core": "0.11.1", + "@farcaster/core": "0.12.0", "@grpc/grpc-js": "~1.8.21", "@noble/hashes": "^1.3.0", "neverthrow": "^6.0.0" diff --git a/packages/hub-web/CHANGELOG.md b/packages/hub-web/CHANGELOG.md index 6ece8748fd..7b3ef0c627 100644 --- a/packages/hub-web/CHANGELOG.md +++ b/packages/hub-web/CHANGELOG.md @@ -1,5 +1,22 @@ # @farcaster/hub-web +## 0.6.0 + +### Minor Changes + +- 86149d32: Added storage limits RPC + +### Patch Changes + +- dcd7a149: feat: support migrating to l2 +- 67e9466e: feat: refactor storage rent events to on chain events +- Updated dependencies [ec7734cf] +- Updated dependencies [15fad467] +- Updated dependencies [dcd7a149] +- Updated dependencies [67e9466e] +- Updated dependencies [86149d32] + - @farcaster/core@0.12.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/hub-web/package.json b/packages/hub-web/package.json index 5b1e504936..bbeb91eb4f 100644 --- a/packages/hub-web/package.json +++ b/packages/hub-web/package.json @@ -1,6 +1,6 @@ { "name": "@farcaster/hub-web", - "version": "0.5.0", + "version": "0.6.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -29,7 +29,7 @@ "ts-proto": "^1.146.0" }, "dependencies": { - "@farcaster/core": "^0.11.0", + "@farcaster/core": "^0.12.0", "@improbable-eng/grpc-web": "^0.15.0", "rxjs": "^7.8.0" }