Skip to content

Commit

Permalink
chore: update to use publicnode's new rpc url format before old ones …
Browse files Browse the repository at this point in the history
…are deprecated (#2119)

* chore: update to use publicnode's new rpc url format before old ones are deprecated

* chore: add missing changeset

* chore: run lint

* Update good-geckos-type.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
Imti and jxom authored Apr 14, 2024
1 parent 74dbb2e commit 4db7c99
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-geckos-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Updated Publicnode RPC URLs to new format.
2 changes: 1 addition & 1 deletion src/actions/wallet/sendRawTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test('default', async () => {
test.skip('4844', async () => {
const client = createClient({
chain: sepolia,
transport: http('https://ethereum-sepolia.publicnode.com'),
transport: http('https://ethereum-sepolia-rpc.publicnode.com'),
})

const privateKey = '0x'
Expand Down
8 changes: 4 additions & 4 deletions src/chains/definitions/bahamut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ export const bahamut = /*#__PURE__*/ defineChain({
default: {
http: [
'https://rpc1.bahamut.io',
'https://bahamut.publicnode.com',
'https://bahamut-rpc.publicnode.com',
'https://rpc2.bahamut.io',
],
webSocket: [
'wss://ws1.sahara.bahamutchain.com',
'wss://bahamut.publicnode.com',
'wss://bahamut-rpc.publicnode.com',
'wss://ws2.sahara.bahamutchain.com',
],
},
public: {
http: [
'https://rpc1.bahamut.io',
'https://bahamut.publicnode.com',
'https://bahamut-rpc.publicnode.com',
'https://rpc2.bahamut.io',
],
webSocket: [
'wss://ws1.sahara.bahamutchain.com',
'wss://bahamut.publicnode.com',
'wss://bahamut-rpc.publicnode.com',
'wss://ws2.sahara.bahamutchain.com',
],
},
Expand Down
5 changes: 4 additions & 1 deletion src/chains/definitions/chiliz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export const chiliz = /*#__PURE__*/ defineChain({
},
rpcUrls: {
default: {
http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
http: [
'https://rpc.ankr.com/chiliz',
'https://chiliz-rpc.publicnode.com',
],
},
},
blockExplorers: {
Expand Down
2 changes: 1 addition & 1 deletion src/chains/definitions/holesky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const holesky = /*#__PURE__*/ defineChain({
nativeCurrency: { name: 'Holesky Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://ethereum-holesky.publicnode.com'],
http: ['https://ethereum-holesky-rpc.publicnode.com'],
},
},
blockExplorers: {
Expand Down
4 changes: 2 additions & 2 deletions src/chains/definitions/spicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const spicy = /*#__PURE__*/ defineChain({
default: {
http: [
'https://spicy-rpc.chiliz.com',
'https://chiliz-spicy.publicnode.com',
'https://chiliz-spicy-rpc.publicnode.com',
],
webSocket: [
'wss://spicy-rpc-ws.chiliz.com',
'wss://chiliz-spicy.publicnode.com',
'wss://chiliz-spicy-rpc.publicnode.com',
],
},
},
Expand Down

0 comments on commit 4db7c99

Please sign in to comment.