Commit Graph

724 Commits

Author SHA1 Message Date
Sanjay
abb7df9cdd chore: Release 1.3.3 (#1065) @farcaster/hubble@latest @farcaster/hubble@1.3.3 @farcaster/core@0.10.1 @farcaster/hub-nodejs@0.8.3 @farcaster/hub-web@0.4.1 2023-07-02 21:52:27 -07:00
Michael Boyle
bd8160cf37 Update allowedPeers.mainnet.ts (#1063)
Added @mboyle's hub to list
2023-07-02 17:36:50 -05:00
Tony D'Addeo
abca3ed362 fix: prune limits on store subclasses (#1064)
* fix: prune limits on store subclasses

Overriding class fields in Javascript is tricky as they are not
available in the parent constructor.

Refactored into getters since these will be available.

* add changeset

* fix test
2023-07-02 15:38:25 -05:00
Cameron Armstrong
fa6f7aa84f Update allowedPeers.mainnet.ts (#1056) 2023-06-30 15:31:08 -07:00
Tony D'Addeo
b33928c991 test: add test for link builder fns (#1055) 2023-06-30 11:23:48 -05:00
Cassandra Heart
1ca8fdcba5 Revert "feat: storage registry support (#1030)" (#1051)
This reverts commit a9da418dbc.
2023-06-29 17:20:36 -05:00
Cassandra Heart
a9da418dbc feat: storage registry support (#1030)
* Initial commit of L2 provider/storage contract integration

* l2 storage admin

* storage store

* update mockhub

* viem

* adjust import

* adjust import

* weave in config

* flesh out l2 test

* storage registry test

* strawman the storage tests

* null check

* switch type

* further updates, updated abi

* temporarily disabling test until anvil issue is sorted out

* more tests

* weird slowdown in node18 test on ci

* ok

* confirm iterator ordering

* rework timestamp into event message

* more coverage
2023-06-29 16:53:22 -05:00
Federico Castelli
3c78b9e0a9 Update allowedPeers.mainnet.ts (#1050)
Add my custom peerId to be allowed to use Farcaster Hub on Mainnet
2023-06-29 09:31:06 -05:00
Sanjay
5a1baaedbb feat: Switch from name events to username proofs (#1049)
* feat: switch to username proofs

* Add rpc endpoint

* Add changeset
2023-06-28 17:36:11 -07:00
Tony D'Addeo
9e03df8579 chore: publish package version (#1048) @farcaster/hubble@1.3.2 @farcaster/hub-nodejs@0.8.2 @farcaster/hub-web@0.4.0 @farcaster/core@0.10.0 2023-06-28 15:42:59 -05:00
Shane da Silva
67dea89361 Pin Docker base Node.js image to 20.2 (#1046)
Latest images are currently having issues (see
https://github.com/nodejs/docker-node/issues/1912). For now, pin to a
version without that issue.
2023-06-28 21:20:12 +03:00
Tony D'Addeo
d8729a7734 chore(hub-web): remove @improbable-eng/grpc-node-http-transport (#1043) 2023-06-26 12:50:51 -05:00
Tony D'Addeo
bfdbfea6b0 chore: use viem in @farcaster/core (#1037)
* chore: use viem instead of ethers

* add changeset

* remove more ethers usages

* move ethers to dev dependecy

* add signUserNameProof to Eip712Signer

* expand test coverage

* update changeset

* add makeUserNameProofClaim

* prefer @noble/hashes/utils in examples
2023-06-26 11:27:13 -05:00
Shane da Silva
f44e0053e5 Backfill links in replicate-data-postgres example (#1034)
This was missed in #1022.
2023-06-23 09:19:29 -07:00
dependabot[bot]
243e4fcf2c build(deps): bump semver from 7.5.0 to 7.5.2 (#1032)
Bumps [semver](https://github.com/npm/node-semver) from 7.5.0 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.5.0...v7.5.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 10:12:38 +01:00
Igor_R
372e9bd09f Update allowedPeers.mainnet.ts (#1028) 2023-06-23 10:12:03 +01:00
Shay Zluf
db3be8b795 Update allowedPeers.mainnet.ts add Hats.finance node (#1023)
* Update allowedPeers.mainnet.ts

add hats.finance node

* farcaster user
2023-06-23 10:11:09 +01:00
Tony D'Addeo
27fd99ff16 chore: update changesets (#1033) 2023-06-22 14:56:18 -05:00
Tony D'Addeo
159c62df7a chore(hubble): use viem to interact with ethereum (#997)
* chore: use viem to interact with ethereum

* add ViemLocalEip712Signer to exports

* add codecov exceptions

* upgrade viem

* add log for historically synced blocks

* fix test

* poll every 4 seconds

* clean up pre-viem 1.0 code

* update viem

* update comments
2023-06-22 14:50:18 -05:00
Sanjay
f1c15510d1 chore: release 1.3.1 (#1031) @farcaster/hubble@1.3.1 @farcaster/hub-web@0.3.6 @farcaster/hub-nodejs@0.8.1 @farcaster/core@0.9.1 2023-06-21 19:47:51 -07:00
Sanjay
f1c6b25c23 feat: Support fname registry server and store user name proofs (#1014)
* feat: Initial fname registry provider class

* flesh out fname registry provider functionality

* Update to match fip

* Use new query params and gradefully handle errors

* feat: add support for verifying username proofs

* Validate server signatures before submitting username proofs

* Add changeset and default fname server url
2023-06-21 19:33:01 -07:00
hellno
9d08463ff6 remove .DS_Store files (#1029) 2023-06-21 12:22:51 -07:00
Brandon H. Gomes
6e8f598902 chore: add bhgomes peer id (#1019)
Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
2023-06-21 10:51:47 +01:00
David Furlong
d77ea28995 chore: add links support in the replicate to postgres example (#1022)
* chore: add links support in the replicate to postgres example

* chore: add a surrogate key to links table
2023-06-20 09:15:33 -07:00
Rysiman
3317d8ae01 Update allowedPeers.mainnet.ts (#1025)
add @rysiman peer id
2023-06-20 15:50:05 +01:00
silentnoname
ea2db9311d add peerid @silent (#1026) 2023-06-20 14:08:17 +01:00
Varun Srinivasan
5dba132d64 chore: update dev deps (swc, rimraf, lint-staged, turbo) (#1024) 2023-06-18 11:19:35 +01:00
Sheldon Trotman
1bdabda952 Adding sheldons hub peerid (#1020)
Signed-off-by: Sheldon Trotman <sheldot@users.noreply.github.com>
2023-06-18 10:54:38 +01:00
Akshaan Kakar
7d7d256b37 fix: Close open db iterators from job queues (#1021)
* Close open db iterators from job queues

* Fix log line
2023-06-15 16:44:23 -04:00
Akshaan Kakar
e107a1c976 bug(hubble): db size grows too fast during sync (#1011)
* Add test command

* Call iterator.end when using .next traversal

* Simulate deletions

* Revert local test changes

* Revert whitespace changes

* Fix hanging iterator in getPageIteratorByPrefix

* Add system to track open RocksDB iterators

* Clean up test

* Add iterator options to logs

* Simplify log

* Close iterator in castStore
2023-06-15 14:36:31 -04:00
Ken Goldfarb
fa7ce31b81 chore: add peerid @kencodes (#1010) 2023-06-14 07:41:45 +01:00
omahs
0a7e040f41 chore: fix typos in documentation (#1016) 2023-06-14 07:41:04 +01:00
Cassandra Heart
7dabc0b006 chore(hubble): General Store (#1001)
* initial draft of general store

* pr feedback, mass simplification, next up, the swap-out

* incorporate txn to SIdxs

* cast store converted

* convert links store

* convert reaction to general store

* convert all stores, resolve warnings around null checks with appropriate action per situation

* add changeset
2023-06-13 16:01:00 -05:00
Sanjay
6667748a67 fix: Handle peers with zero messages when printing status (#1008)
* fix: Handle peers with zero messages when printing status

* Add changeset
2023-06-05 15:10:17 -07:00
Rohit Jha
398caa4986 feat: added jam hub 4 key in allowed peers (#1002) 2023-06-05 09:59:02 -07:00
Sanjay
b0eb2b50f9 docs: Update readme with docker upgrade instructions (#1006) 2023-06-02 13:59:16 -07:00
Sanjay
c6fc422193 fix: server no longer hangs due to slow subscribers (#1004)
* fix: server no longer hangs due to slow subscribers

* Preserve ordering and allow more grace period for slower clients to catch up
2023-06-01 17:37:48 -07:00
Sanjay
9654197697 chore: Release 1.3 (#1000)
* chore: Release 1.3

* bump version
@farcaster/hubble@1.3.0 @farcaster/hub-web@0.3.5 @farcaster/hub-nodejs@0.8.0 @farcaster/core@0.9.0
2023-05-31 10:02:16 -07:00
Sanjay
63927edd0d fix: Fix working directory so db directory will be under hubble app (#999)
* fix: Fix working directory so db directory will be under hubble app

* Fix build_image action
2023-05-26 19:32:47 -07:00
Tony D'Addeo
27181c6ced feat: add fallback to dbreset (#996) 2023-05-26 15:12:52 -05:00
Sanjay
70a855e765 fix: Fix yarn commands (#995) 2023-05-26 12:02:22 -07:00
98967eth
05618d1f8f add my own peer id (#991)
Co-authored-by: Shane da Silva <shane@dasilva.io>
2023-05-25 10:49:41 -07:00
Alex1237
8e84db4398 content: add allowlist (#989) 2023-05-25 10:49:11 -07:00
Shane da Silva
23d7a66675 chore: Support pure ESM output (#994)
* Fix import mapping to work with built JS files

This allows us to ship a Docker image that runs using `node` directly,
rather than via `tsx`.

* Remove use of top-level `await` expressions

These were only used in tests and weren't critical. Switch away so we
have the optional to convert to CommonJS if we need.

* Switch all imports to use relative paths instead of ~ shortcut

The ~ shortcut doesn't work in some contexts, which makes our lives more
difficult when trying to output ESM.

Since we were already using relative paths in some part of the codebase
and not others, just switch to using relative paths everywhere for
simplicity.

* Switch imports to append .js extension

And update Jest configuration to work with this extension.

* Build single image instead of two separate ones

We originally created the other image so that we could build an image
using only packages published to NPM, but this proved problematic when
wanting to test those changes without publishing.

Since there are more situations where we'd want to ship an image using
unpublished packages (i.e. for testing) remove the "public" image and
update our "testing" image to also be used as the public image. However,
a key difference is that the testing image will now run compiled JS
instead of using a TypeScript interpreter.
2023-05-24 20:02:38 -07:00
Cassandra Heart
2bc598abcc feat: Links (#973)
* rolling up changes for links FIP

* typeToSetPostfix

* pr feedback

* consistency to avoid js quirks

* add versioning logic and update tests

* include version check in mergeMessages

* update protobuf comment to reflect nit

* added changeset

* code coverage
2023-05-24 19:42:26 -05:00
Parth Kohli
6638458448 content: add allowlist (#993) 2023-05-24 14:31:22 -07:00
Meyanis95
181e676a3e Update Messages.md (#992)
Fixed a typo.
2023-05-24 14:25:11 -07:00
Sanjay
37f515f049 feat: Add app version to contact info and log it when syncing (#990)
* feat: Add app version to contact info and log it when syncing

* Add changeset
2023-05-23 17:32:47 -07:00
mikey
08aabeace9 chore: add peer id for pfista (#985) 2023-05-23 13:36:19 -07:00
Rohit Jha
17bda10a2d feat: added jam hub key in allowed peers (#988)
* feat: added jam hub key in allowed peers

* feat: added ids of hub 2 and 3
2023-05-22 08:29:59 -07:00