chainlist-rpcs 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chainlist-rpcs",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "Wrapper around the rpcs as published by DefiLlama/chainlist.",
6
6
  "main": "app.js",
@@ -1,6 +1,6 @@
1
1
  import { describe, it, expect } from 'vitest'
2
2
 
3
- import { get_rcpcs_for_chains, get_rpcs_for_chain } from '../modules/filter'
3
+ import { get_rpcs_for_chains, get_rpcs_for_chain } from '../modules/filter'
4
4
 
5
5
  describe( 'get_rpcs_for_chain', () => {
6
6
 
@@ -81,12 +81,12 @@ describe( 'get_rpcs_for_chain', () => {
81
81
 
82
82
  } )
83
83
 
84
- describe( 'get_rcpcs_for_chains', () => {
84
+ describe( 'get_rpcs_for_chains', () => {
85
85
 
86
86
  it( 'should return RPCs when called with valid chain_ids', () => {
87
87
 
88
88
  const chain_ids = [ 1, 42161 ]
89
- const result = get_rcpcs_for_chains( { chain_ids } )
89
+ const result = get_rpcs_for_chains( { chain_ids } )
90
90
  expect( result[1].length ).to.be.greaterThan( 1 )
91
91
  expect( result[42161].length ).to.be.greaterThan( 1 )
92
92
 
@@ -95,7 +95,7 @@ describe( 'get_rcpcs_for_chains', () => {
95
95
  it( 'should return RPCs when called with valid chain_names', () => {
96
96
 
97
97
  const chain_names = [ 'ethereum', 'arbitrum' ]
98
- const result = get_rcpcs_for_chains( { chain_names } )
98
+ const result = get_rpcs_for_chains( { chain_names } )
99
99
  expect( result[ 'ethereum' ].length ).to.be.greaterThan( 1 )
100
100
  expect( result[ 'arbitrum' ].length ).to.be.greaterThan( 1 )
101
101