Sanjay
cd0ddd6d24
feat: Support ENS names in the hub ( #1101 )
...
* feat: Add ENS username proof support
* Add UserNameProof store
* ENS name ownership validations
* Add remaining ens validations
* Generate events correctly
* Allow setting ens names on UserData and handle revoking it
* Add changeset and cli flag
2023-07-10 23:40:50 -07:00
dependabot[bot]
68a687d783
build(deps): bump protobufjs in /packages/hub-nodejs/examples/chron-feed ( #1091 )
...
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js ) from 7.2.2 to 7.2.4.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases )
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.2...protobufjs-v7.2.4 )
---
updated-dependencies:
- dependency-name: protobufjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:32:27 -07:00
dependabot[bot]
4cba08e76b
build(deps): bump protobufjs in /packages/hub-nodejs/examples/write-data ( #1092 )
...
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js ) from 7.2.2 to 7.2.4.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases )
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.2...protobufjs-v7.2.4 )
---
updated-dependencies:
- dependency-name: protobufjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:32:18 -07:00
dependabot[bot]
ee217cabb9
build(deps): bump protobufjs in /packages/hub-nodejs/examples/make-cast ( #1093 )
...
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js ) from 7.2.2 to 7.2.4.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases )
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.2...protobufjs-v7.2.4 )
---
updated-dependencies:
- dependency-name: protobufjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:32:10 -07:00
dependabot[bot]
81bee098b3
build(deps): bump protobufjs ( #1094 )
...
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js ) from 7.2.3 to 7.2.4.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases )
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.3...protobufjs-v7.2.4 )
---
updated-dependencies:
- dependency-name: protobufjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 14:32:01 -07:00
dependabot[bot]
847046ff93
build(deps): bump @grpc/grpc-js from 1.8.7 to 1.8.8 ( #1083 )
...
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node ) from 1.8.7 to 1.8.8.
- [Release notes](https://github.com/grpc/grpc-node/releases )
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.8.7...@grpc/grpc-js@1.8.8 )
---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
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-07-10 14:31:50 -07:00
Greg Skriloff
41c3b7b72a
docs: update schema in the postgres example ( #1069 )
2023-07-05 20:38:36 +03:00
Varun Srinivasan
4c38067c15
chore: switch from eslint/prettier to rome ( #1074 )
...
* chore: add rome config files
* chore: add rome into configs and ci
* chore: remove eslint annotations
* chore: update annotations for rome ignores
* chore: remove prettier
2023-07-04 19:09:15 -07:00
Varun Srinivasan
f176841daf
chore: prepare for rome migration ( #1077 )
2023-07-04 17:48:54 -07:00
Varun Srinivasan
1b0d50d5cb
chore: run rome format --write on examples in packages ( #1075 )
2023-07-04 14:50:48 -07:00
Varun Srinivasan
9ffbcc3a99
chore: prepare for rome-tools migration by formatting files ( #1073 )
...
* chore(@farcaster/core): apply rome formatter
* chore(@farcaster/hub-nodejs): apply rome formatter
* chore(@farcaster/hub-web): apply rome formatter
* chore(@farcaster/hubble): apply rome formatter
2023-07-04 14:30:23 -07:00
Sanjay
abb7df9cdd
chore: Release 1.3.3 ( #1065 )
2023-07-02 21:52:27 -07: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
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 )
2023-06-28 15:42:59 -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
Sanjay
f1c15510d1
chore: release 1.3.1 ( #1031 )
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
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
omahs
0a7e040f41
chore: fix typos in documentation ( #1016 )
2023-06-14 07:41:04 +01:00
Sanjay
9654197697
chore: Release 1.3 ( #1000 )
...
* chore: Release 1.3
* bump version
2023-05-31 10:02:16 -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
Meyanis95
181e676a3e
Update Messages.md ( #992 )
...
Fixed a typo.
2023-05-24 14:25:11 -07:00
Christian Mladenov
85750c3465
Add example for replying to a URL (FIP-2) ( #986 )
...
Also, improve the comments and add the code to use if the Hub uses authentication
2023-05-19 14:00:16 -07:00
Shane da Silva
71eef0c559
Re-publish 1.2.3 as 1.2.4 ( #969 )
...
We made a mistake during the publishing process which resulted in
missing files. Re-publish with the proper build.
2023-05-15 15:07:39 -07:00
Shane da Silva
a4cb2c4b75
chore: Release 1.2.3 ( #968 )
2023-05-15 15:01:33 -07:00
Varun Srinivasan
1e8a04210b
docs(hub-nodejs): cleanup replicate example readme ( #957 )
2023-05-10 09:42:49 -07:00
Shane da Silva
532622aa2f
fix: Correct time remaining estimate ( #956 )
...
We were not calculating this correctly.
While here, also fix the health check to not result in `FATAL` error
messages in the logs.
2023-05-09 22:47:02 -07:00
Shane da Silva
5fee6b4f25
chore: Optimize replication example ( #955 )
...
Fetch data in batches and execute jobs concurrently. This reduces the
time estimate from ~4 hours to under 1 hour on my machine.
We could probably make this even faster by implementing a
`getAllMessages` endpoint on the hubs.
2023-05-09 22:07:25 -07:00
Shane da Silva
08354f4f19
Fix typos ( #953 )
2023-05-09 20:39:08 -07:00
Shane da Silva
ed8bde6f82
Streamline replication example further ( #952 )
...
Instead of requiring the user to run `yarn install` followed by `yarn
start`, we simply have them run `docker compose up` to start both the
app and Postgres together. This is much easier and reduces the need for
them to install anything else besides Docker. It also makes cleaning up
the example easier.
2023-05-09 18:45:38 -07:00
Vincent Liao
77b5873b43
docs: update client to use waitForReady pattern ( #922 )
...
* docs: update client to use waitForReady pattern
* update: revert waitForReady for hub-web
2023-05-09 08:22:13 -05:00
Shane da Silva
d8054207b7
chore: Adding missing sections of replication README ( #951 )
...
These were missed in 7d98fdf8 .
2023-05-08 21:03:53 -07:00
Shane da Silva
7d98fdf844
chore: Improve documentation for replication example ( #950 )
2023-05-08 20:32:27 -07:00
Sanjay
f7a62a52f1
chore: Release 1.2.2 ( #949 )
2023-05-08 17:28:13 -07:00
Sanjay
1236b4e956
feat: Add a status hubble command for friendly reporting of current hub status ( #944 )
...
* feat: Suport sync status rpc call
* Add sync status hubble command
* Fix generated file
* Changeset
* Fix isSyncing check
* Rename to status and report db stats as well
* Fix error
2023-05-08 14:48:24 -07:00
Stephan Cilliers
ceac2c1bea
fix: Remove stackblitz example ( #930 )
2023-05-08 12:50:27 -07:00
Shane da Silva
32e660a181
fix: Reduce memory consumption of replication example ( #943 )
...
We had a report of one user on modern MacBook with 16GB of memory who
was running into heap allocation issues. This was likely due to the
excessive number of promises we were creating (as well as buffering all
data for each call).
Change the logic to fetch in batches of 1K records at most. This slows
down the initial sync but should reduce the likelihood that someone will
hit a memory limit.
We also specify a custom limit in the `yarn start` command so that when
we test locally we are using the same limit as everyone else.
2023-05-05 15:53:56 -07:00
Shane da Silva
987e1c460b
chore: Remove some unused code from replication example ( #941 )
2023-05-05 11:14:34 -07:00
Shane da Silva
22f53d6c2b
Fix handling of conflicts on UserData insertion ( #940 )
...
We were using hash as the conflict ID instead of FID + type. Fix this.
2023-05-05 10:26:48 -07:00
Shane da Silva
cc2f5a4fae
Add syncing/replication example for Postgres ( #938 )
...
Provide a working end-to-end example of syncing data from hubs to a
Postgres database.
This should work with no additional dependencies besides what you
install with `yarn install` and Docker.
2023-05-05 09:56:48 -07:00
Sanjay
52fc714970
chore: Release 1.2.1 ( #925 )
2023-04-27 14:36:13 -07:00
Sanjay
421c385453
feat: Add sync stats to getInfo call ( #916 )
...
* refactor: Rename sync events flag for clarity
* feat: Add sync statuts to HubInfo RPC call
* feat: Add sync stats to getInfo rpc call
* re-patch hub-web to use default export as before
* changeset
2023-04-25 10:40:59 -07:00
Varun Srinivasan
a57e335da6
chore(hub-nodejs): update write-cast example for v0.7 ( #915 )
2023-04-24 21:36:46 -07:00
Varun Srinivasan
812386f338
chore(hub-nodejs): update write-data example ( #910 )
2023-04-24 14:18:24 -07:00
Varun Srinivasan
b225a84410
chore(hub-nodejs): add hub urls, steps to chron-feed examples ( #905 )
2023-04-23 21:25:27 -07:00
Zach Terrell
0c3c33f2b8
docs(hub-nodejs): update example ( #900 )
...
* update hub-nodejs example
* change to getSSLHubRpcClient
2023-04-20 20:22:59 -07:00
Paul Fletcher-Hill
c5a6aac6e4
changeset version ( #889 )
2023-04-19 00:43:57 -04:00