Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies and node #5

Merged
merged 3 commits into from
Feb 5, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 18.x, 20.x ]
node-version: [ 20.x, 22.x ]

steps:
- name: Use Node ${{ matrix.node-version }}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
Expand Down Expand Up @@ -39,14 +39,13 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
node-version: 22
- name: Install modules
run: npm install
run: npm ci
- name: Build
run: npm run build
- name: Publish to npm
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npm install ethcall
import { Contract, Provider } from 'ethcall';
import { InfuraProvider } from 'ethers';

import erc20Abi from './abi/erc20.json' assert { type: 'json' };
import erc20Abi from './abi/erc20.json' with { type: 'json' };

const infuraKey = 'INSERT_YOUR_KEY_HERE';
const provider = new InfuraProvider('mainnet', infuraKey);
Expand Down
2 changes: 1 addition & 1 deletion examples/aave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getDefaultProvider } from 'ethers';

import { Contract, Provider } from '../src/index.js';

import poolAbi from './abi/aaveV2Pool.json' assert { type: 'json' };
import poolAbi from './abi/aaveV2Pool.json' with { type: 'json' };

async function run(): Promise<void> {
const provider = getDefaultProvider('mainnet');
Expand Down
2 changes: 1 addition & 1 deletion examples/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getDefaultProvider } from 'ethers';

import { Contract, Provider } from '../src/index.js';

import erc20Abi from './abi/erc20.json' assert { type: 'json' };
import erc20Abi from './abi/erc20.json' with { type: 'json' };

async function run(): Promise<void> {
const provider = getDefaultProvider('mainnet');
Expand Down
2 changes: 1 addition & 1 deletion examples/uniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getDefaultProvider } from 'ethers';

import { Contract, Provider } from '../src/index.js';

import pairAbi from './abi/uniswapV2Pair.json' assert { type: 'json' };
import pairAbi from './abi/uniswapV2Pair.json' with { type: 'json' };

async function run(): Promise<void> {
const provider = getDefaultProvider('mainnet');
Expand Down
Loading