Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ const account = useAccount() // or useAccount('Account 2') to use an account oth
// `account.author.wallets` only auto-generates an `eth` wallet by default.
// `account.chainProviders` is the canonical chain config for wallets, NFT lookups, and other chain reads.
// Defaults use multiple explicit Ethereum RPCs for `.eth` / `.bso` author-name resolution.
// Defaults use multiple HTTP routers for IPFS/IPNS delegated routing.
// `account.nameResolversChainProviders` optionally overrides only the RPCs used for that resolution.
console.log(account.author.wallets.eth)

Expand All @@ -905,6 +906,15 @@ const ethResolverRpcUrls = [
'https://eth-pokt.nodies.app',
]

const httpRoutersOptions = [
'https://peers.pleb.bot',
'https://routing.lol',
'https://peers.forumindex.com',
'https://peers.plebpubsub.xyz',
'https://routerofbitsocial.xyz',
'https://bsotracker.online',
]

const author: {...account.author, displayName: 'John'}
const editedAccount = {
...account,
Expand All @@ -913,6 +923,10 @@ const editedAccount = {
...account.chainProviders,
eth: { urls: [...ethResolverRpcUrls, 'ethers.js'], chainId: 1 },
},
pkcOptions: {
...account.pkcOptions,
httpRoutersOptions,
},
nameResolversChainProviders: {
eth: { urls: ethResolverRpcUrls, chainId: 1 },
},
Expand Down
32 changes: 32 additions & 0 deletions llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ const account = useAccount() // or useAccount('Account 2') to use an account oth
// `account.author.wallets` only auto-generates an `eth` wallet by default.
// `account.chainProviders` is the canonical chain config for wallets, NFT lookups, and other chain reads.
// Defaults use multiple explicit Ethereum RPCs for `.eth` / `.bso` author-name resolution.
// Defaults use multiple HTTP routers for IPFS/IPNS delegated routing.
// `account.nameResolversChainProviders` optionally overrides only the RPCs used for that resolution.
console.log(account.author.wallets.eth)

Expand All @@ -935,6 +936,15 @@ const ethResolverRpcUrls = [
'https://eth-pokt.nodies.app',
]

const httpRoutersOptions = [
'https://peers.pleb.bot',
'https://routing.lol',
'https://peers.forumindex.com',
'https://peers.plebpubsub.xyz',
'https://routerofbitsocial.xyz',
'https://bsotracker.online',
]

const author: {...account.author, displayName: 'John'}
const editedAccount = {
...account,
Expand All @@ -943,6 +953,10 @@ const editedAccount = {
...account.chainProviders,
eth: { urls: [...ethResolverRpcUrls, 'ethers.js'], chainId: 1 },
},
pkcOptions: {
...account.pkcOptions,
httpRoutersOptions,
},
nameResolversChainProviders: {
eth: { urls: ethResolverRpcUrls, chainId: 1 },
},
Expand Down Expand Up @@ -3164,6 +3178,24 @@ Avoid GitHub MCP and browser MCP servers for this project because they add signi
Source: https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/CHANGELOG.md

```markdown
## [0.1.21](https://github.com/bitsocialnet/bitsocial-react-hooks/compare/v0.1.20...v0.1.21) (2026-06-24)


### Bug Fixes

* **accounts:** handle empty account comment lookups ([#65](https://github.com/bitsocialnet/bitsocial-react-hooks/issues/65)) ([eb1bd79](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/eb1bd797180c620eed611cffd879abdb5c793578))



## [0.1.20](https://github.com/bitsocialnet/bitsocial-react-hooks/compare/v0.1.19...v0.1.20) (2026-06-24)


### Bug Fixes

* **accounts:** enrich local account comment authors ([cac2376](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/cac237656b25ac5611fa861528845463f761998d))



## [0.1.19](https://github.com/bitsocialnet/bitsocial-react-hooks/compare/v0.1.18...v0.1.19) (2026-06-18)


Expand Down
2 changes: 1 addition & 1 deletion llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ This file is generated by `scripts/generate-llms-files.mjs`. Do not hand-edit it

## Optional

- [Changelog](https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/CHANGELOG.md): * resolve community name lookups ([ffef83c](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/ffef83cc7b27a59fca4b0788732ff0bfc213496e))
- [Changelog](https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/CHANGELOG.md): * **accounts:** handle empty account comment lookups ([#65](https://github.com/bitsocialnet/bitsocial-react-hooks/issues/65)) ([eb1bd79](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/eb1bd797180c620eed6...
- [TODO](https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/docs/TODO.md): - e2e test to publish to an electron sub - async useAuthorAddress hook (because resolving ETH address synchronously is too slow) - implement sort by active - implement showing your own pending replies in a comment (wh...
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.1.21",
"version": "0.1.22",
"packageManager": "yarn@4.13.0",
"files": [
"CHANGELOG.md",
Expand Down Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@bitsocial/bso-resolver": "0.0.8",
"@pkcprotocol/pkc-js": "0.0.48",
"@pkcprotocol/pkc-js": "0.0.53",
"@pkcprotocol/pkc-logger": "0.1.0",
"assert": "2.0.0",
"ethers": "5.8.0",
Expand Down
10 changes: 10 additions & 0 deletions src/stores/accounts/account-generator.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import accountGenerator, {
DEFAULT_ETH_RPC_URL,
DEFAULT_ETH_RPC_URLS,
DEFAULT_HTTP_ROUTER_URLS,
getDefaultChainProviders,
getDefaultPkcOptions,
} from "./account-generator";
Expand All @@ -24,6 +25,15 @@ describe("account-generator", () => {
expect(chainProviders).toBeDefined();
expect(chainProviders.eth).toBeDefined();
expect(chainProviders.matic).toBeDefined();
expect(opts.httpRoutersOptions).toEqual(DEFAULT_HTTP_ROUTER_URLS);
expect(DEFAULT_HTTP_ROUTER_URLS).toEqual([
"https://peers.pleb.bot",
"https://routing.lol",
"https://peers.forumindex.com",
"https://peers.plebpubsub.xyz",
"https://routerofbitsocial.xyz",
"https://bsotracker.online",
]);
expect(opts.resolveAuthorAddresses).toBe(false);
expect(opts.validatePages).toBe(false);
} finally {
Expand Down
15 changes: 9 additions & 6 deletions src/stores/accounts/account-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ export const DEFAULT_ETH_RPC_URLS = [
"https://1rpc.io/eth",
"https://eth-pokt.nodies.app",
];
export const DEFAULT_HTTP_ROUTER_URLS = [
"https://peers.pleb.bot",
"https://routing.lol",
"https://peers.forumindex.com",
"https://peers.plebpubsub.xyz",
"https://routerofbitsocial.xyz",
"https://bsotracker.online",
];

// default chain providers
const chainProviders: ChainProviders = {
Expand Down Expand Up @@ -101,12 +109,7 @@ export const getDefaultPkcOptions = () => {
"https://plebpubsub.xyz/api/v0",
"https://rannithepleb.com/api/v0",
],
httpRoutersOptions: [
"https://routing.lol",
"https://peers.pleb.bot",
"https://peers.plebpubsub.xyz",
"https://peers.forumindex.com",
],
httpRoutersOptions: [...DEFAULT_HTTP_ROUTER_URLS],
...overwritePkcOptions,
});
};
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ __metadata:
resolution: "@bitsocial/bitsocial-react-hooks@workspace:."
dependencies:
"@bitsocial/bso-resolver": "npm:0.0.8"
"@pkcprotocol/pkc-js": "npm:0.0.48"
"@pkcprotocol/pkc-js": "npm:0.0.53"
"@pkcprotocol/pkc-logger": "npm:0.1.0"
"@testing-library/dom": "npm:10.4.1"
"@testing-library/react": "npm:16.3.2"
Expand Down Expand Up @@ -3536,9 +3536,9 @@ __metadata:
languageName: node
linkType: hard

"@pkcprotocol/pkc-js@npm:0.0.48":
version: 0.0.48
resolution: "@pkcprotocol/pkc-js@npm:0.0.48"
"@pkcprotocol/pkc-js@npm:0.0.53":
version: 0.0.53
resolution: "@pkcprotocol/pkc-js@npm:0.0.53"
dependencies:
"@enhances/with-resolvers": "npm:0.0.5"
"@helia/block-brokers": "npm:5.2.4"
Expand Down Expand Up @@ -3598,7 +3598,7 @@ __metadata:
uuid: "npm:13.0.0"
ws: "npm:8.20.0"
zod: "npm:4.3.6"
checksum: 10c0/eaf9c5e2a83cc6cc108bbb239f6f0461a63830ddb003ebce6aea5423478a24fbc3de9cc1560e97969af41cedcfa05167f04ccae19bd379629e2dfc1b9c5f0836
checksum: 10c0/b3b0bb6a53c5d53dd7198745e4899d888919620c2b05dfeb5baf9d16499d50f22ea18955a658f290277354fe839890e5a4d939d802349bc373dc4f97d4a71161
languageName: node
linkType: hard

Expand Down
Loading