Commit Graph

1194 Commits

Author SHA1 Message Date
horsefacts
206e1e4297 chore: bump package versions (#1739)
## Change Summary

Release updated Hubble and replicator.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the versions of `@farcaster/hubble` and
`@farcaster/replicator` to `1.10.4` and `0.3.2` respectively. It also
includes a chore to update `@farcaster/hub-nodejs`.

### Detailed summary
- Updated `@farcaster/hubble` version to `1.10.4`
- Updated `@farcaster/replicator` version to `0.3.2`
- Chore: Updated `@farcaster/hub-nodejs`

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
@farcaster/replicator@0.3.2 @farcaster/hubble@1.10.4 @farcaster/hub-nodejs@0.11.3 @farcaster/hub-web@0.8.2 @farcaster/core@0.14.3
2024-02-22 17:59:45 -05:00
horsefacts
addf097ced chore: upgrade hub-nodejs (#1738)
## Change Summary

Update `@farcaster/hub-nodejs` in Hubble and replicator.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates dependencies in `replicator` and `hubble` packages. It
specifically bumps `@farcaster/hub-nodejs` version to `0.11.3` and adds
`@figma/hot-shots` as a new dependency.

### Detailed summary
- Updated `@farcaster/hub-nodejs` to `0.11.3` in `replicator` and
`hubble` packages
- Added `@figma/hot-shots` as a new dependency in both packages

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-02-22 17:50:44 -05:00
horsefacts
d1298668ee chore: bump packages (#1737)
## Change Summary

Package version updates (add `bs58` as `@farcaster/core` dependency)

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

## Additional Context

If this is a relatively large or complex change, provide more details
here that will help reviewers


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates various packages to their latest patch versions. 

### Detailed summary
- Updated `@farcaster/core` to version 0.14.3 in multiple packages
- Added `bs58` dependency in `@farcaster/core` version 0.14.3
- Updated dependencies in `@farcaster/hub-nodejs` to match version
0.11.3

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-02-22 17:35:05 -05:00
horsefacts
1fd0f686d8 fix: bs58 dependency (#1736)
## Motivation

`bs58` was added as a dependency of `@farcaster/hubble` but should be a
dependency of `@farcaster/core`.

## Change Summary

Add `bs58` to `@farcaster/core` dependencies.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing a missing dependency in the `@farcaster/core`
package by adding `bs58`.

### Detailed summary
- Added `bs58` dependency to `@farcaster/core` package.json
- Updated the version of `bs58` to "^5.0.0"

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-02-22 17:22:57 -05:00
horsefacts
d02afadcba chore: bump packages (#1735)
## Change Summary

Run using `pm2` process supervisor.
Add `state` field to frame messages.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates various package versions and dependencies across
different apps and packages.

### Detailed summary
- Updated `@farcaster/core` to version 0.14.2
- Updated `@farcaster/hub-web` to version 0.8.1
- Updated `@farcaster/hub-nodejs` to version 0.11.2
- Updated `@farcaster/hubble` to version 1.10.3
- Updated `@farcaster/replicator` to version 0.3.1

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
@farcaster/hubble@1.10.3 @farcaster/replicator@0.3.1 @farcaster/hub-web@0.8.1 @farcaster/hub-nodejs@0.11.2 @farcaster/core@0.14.2
2024-02-22 16:14:17 -05:00
Shane da Silva
87679500f8 Don't duplicate logs (#1734)
The addition of PM2 lead to log duplication. Fix by not re-emitted
stdout.
2024-02-22 12:27:53 -08:00
Shane da Silva
c4ffbdbe8d docs: Fix display of install instructions (#1732) 2024-02-22 11:31:00 -08:00
Shane da Silva
fa51c538bb Update install instructions (#1731)
Avoids situations like what was reported in
https://github.com/farcasterxyz/hub-monorepo/issues/1727
2024-02-22 11:20:20 -08:00
horsefacts
5703d33940 feat: frame message state field (#1717)
* feat: frame message state field

* chore: add changeset
2024-02-22 13:46:58 -05:00
Shane da Silva
b3e4124a64 Build Hubble base image on Node.js 21 (#1726)
We're wondering if this will help reduce the number of segfaults we're
seeing in production.
2024-02-22 10:26:48 -08:00
adityapk00
a8b7dfcba5 fix: Replace hot-shots with @figma-hotshots (#1729) 2024-02-22 11:57:18 -06:00
dependabot[bot]
ae754ae1a0 chore(deps): bump ip from 2.0.0 to 2.0.1 (#1719)
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:47:55 -08:00
adityapk00
136ef6b43a fix: Remove unused dependencies (#1728) 2024-02-22 09:04:48 -06:00
Shane da Silva
660d86f032 Fix pm2 initialization (#1725)
While here, also fix the test that missed this error.
2024-02-21 19:50:17 -08:00
Shane da Silva
9bcaa9c111 chore: Run Hubble via pm2 process supervisor (#1724)
This ensures we are able to automatically recover more quickly, without
needing to wait for a full container startup.
2024-02-21 15:01:01 -08:00
Sanjay
71114df0b2 chore: Release 1.10.2 (#1723) @farcaster/hubble@1.10.2 2024-02-21 12:00:47 -08:00
Sanjay
915c6adb12 fix: Fix hub crash from bad message data submit (#1722) 2024-02-21 11:52:18 -08:00
Tony D'Addeo
1f97d0c249 chore: version packages (#1718) @farcaster/core@0.14.1 @farcaster/hub-nodejs@0.11.1 @farcaster/hubble@1.10.1 2024-02-20 14:05:47 -07:00
Sanjay
7f60a223ca fix: Increase hub stream buffer size to keep up with faster hub merges (#1709) 2024-02-17 10:09:32 +09:00
Wasif Iqbal
38a9ea3876 fix: gossipsub version and "iwant" parameter (#1708)
* fix: expose environment variable GOSSIPSUB_IWANT_FOLLOWUP_MS, update @chainsafe/libp2p-gossipsub to 6.3.0, and pass in gossipsubIWantFollowupMs parameter in gossipNodeWorker

* revert version bump on Friday to avoid inducing heart attack before weekend
2024-02-16 16:07:44 -08:00
Sanjay
1a52b8694d fix: Handle solana verification removes (#1707)
* fix: Fix solana verification removes

* convert solana strings to base58 in the http api

* changeset
2024-02-16 13:46:14 -08:00
adityapk00
8cfaa2cf83 fix: Remove DB_RESET_TOKEN (#1704) 2024-02-16 11:05:02 -06:00
piratekev
592bbb2536 docs: update spec.yaml to support Frames & validateMessage (#1634)
* Update spec.yaml to support Frames & validateMessage

* fix embed spec
2024-02-15 17:21:03 -08:00
Sanjay
8dc176138a fix: Add additional checks to prevent contact info duplicates (#1701) 2024-02-13 17:05:26 -08:00
Sanjay
83f66ab1e6 fix: Fix duplicate message ttl check and reduce fname poll timeout (#1700)
* fix: Fix duplicate message ttl check and reduce fname poll timeout

* Add more contact info logging
2024-02-13 15:42:08 -08:00
Sanjay
402b678e47 chore: additional logging for invalid messages (#1699) 2024-02-13 11:04:30 -08:00
adityapk00
bf37ec7666 fix: Run validateOrRevoke only if signer is changed (#1695)
* fix: Run validateOrRevoke only if signer is changed

* cleanup

* timebug

* review
2024-02-13 09:27:03 -06:00
Sanjay
e1c590a8c1 chore: Log gossip message delay (#1697) 2024-02-12 15:58:13 -08:00
adityapk00
8e928cea90 fix: Small optimizations for merge code (#1694)
1. Don't create dup Buffer objects
2. Don't recompute tsHash
2024-02-12 16:44:44 -06:00
Sanjay
330ce838ef chore: Release 1.10 (#1692) @farcaster/replicator@0.3.0 @farcaster/hubble@1.10.0 @farcaster/hub-web@0.8.0 @farcaster/hub-nodejs@0.11.0 @farcaster/core@0.14.0 2024-02-09 15:35:03 -08:00
Sanjay
d90fb0b5cc fix: Increase sync max duration so hubs have more time to catch up (#1691) 2024-02-09 14:34:09 -08:00
adityapk00
20d0e68d0c fix: Add a check to see if we have at least 16GB of RAM (#1690)
* fix: Add a check to see if we have at least 16GB of RAM

* check for 15GB
2024-02-09 16:27:17 -06:00
Sanjay
ae91b73ae0 feat: support solana verified addresses (#1668)
* feat: rename verification message to support additional protocols in the future

* chore: add changeset

* refactor: change signature for verification message

* remove solana related changes

* refactor: update ethereum verification tests to support new protocol field on message

* feat: add initial logic for parsing solana vs ethereum message

* Add protocol to verifications, update tests

* Add sol factories

* Add some verification tests

* Update claim factory for solana

* Fix tests for sol

* Update comment

* Verify signature for solana

* Replace tweetnacl due to dynamic import issue

* Got signature verification working for Solana ed25519

* Add changeset

* minor cleanup

* update solana verification to use full message adhering to off-chain message specification

* Use a simpler claim message format

* feature flag solana verifications

* cleanup

---------

Co-authored-by: Wasif Iqbal <Wazzymandias@users.noreply.github.com>
2024-02-09 14:07:49 -08:00
adityapk00
97a4216508 fix: Stop old messages from being broadcast on gossip (#1688)
* fix: Stop old messages from being broadcast on gossip

* add separate timestamp

* await
2024-02-09 12:18:40 -06:00
adityapk00
a9105e2051 fix: Add 8G heap to docker commands (#1689) 2024-02-09 12:04:27 -06:00
adityapk00
be07bc86e9 fix: init merkle trie so we don't miss l2events (#1686) 2024-02-09 08:42:32 -06:00
adityapk00
24072dad02 fix: Print stacktrace with iterator timeouts (#1685) 2024-02-08 13:52:09 -06:00
Sanjay
39fd2b763c chore: release 1.9.9 (#1684) @farcaster/hubble@1.9.9 @farcaster/replicator@0.2.10 @farcaster/hub-nodejs@0.10.24 @farcaster/hub-web@0.7.6 @farcaster/core@0.13.8 2024-02-08 10:28:14 -08:00
adityapk00
5a70330bca fix: Reduce gossip TTL to 5 mins (#1683) 2024-02-08 11:26:14 -06:00
adityapk00
52102c217e fix: Detect duplicate messages early (#1682) 2024-02-08 10:44:48 -06:00
adityapk00
81f453ab6d fix: write out cached blocks while processing L2 events (#1677) 2024-02-08 08:45:08 -06:00
Sanjay
c0551bfbe4 fix: increase sync timeout (#1681) 2024-02-07 21:22:51 -08:00
Sanjay
97317971b2 fix: prefer peers with more messages to sync with (#1680)
* fix: prefer peers with more messages to sync with

* Use a 5% buffer
2024-02-07 15:50:36 -08:00
Sanjay
6fec63caf3 fix: Keep the old message type name for backwards compatibility (#1678) 2024-02-07 13:17:22 -08:00
adityapk00
c0e17a49a2 feat: Add a new DB for Merkle Trie data (#1664) (#1676)
* feat: Add a new DB for Merkle Trie data

* cleanup

* move keys from main -> trie DB
2024-02-07 14:04:22 -06:00
adityapk00
f49e9fe41d fix: Use pendingUpdates size to flush updates (#1675) 2024-02-07 12:30:59 -06:00
adityapk00
aa6f41f948 Revert "feat: Add a new DB for Merkle Trie data (#1664)" (#1674)
This reverts commit ab09ed13e5.
2024-02-07 12:21:08 -06:00
adityapk00
41735d62a0 feat: Save connected peers in DB (#1673)
* feat: Save connected peers in DB

* default opts

* tests
2024-02-07 10:55:13 -06:00
adityapk00
382279843c fix: Set heap size to 8GB during dev/running from code (#1671) 2024-02-07 08:10:14 -06:00
Sanjay
763d3154af feat: Rename verifications message to support multiple protocols (#1667)
* Revert "fix: Revert verification rename (#1642)"

This reverts commit f8c5f28034.

* Rename to claimSignature

* Add http api backwards compatibility

* changeset
2024-02-06 16:56:39 -08:00