Skip to content

Commit

Permalink
Merge pull request #5 from curvefi/chore/node
Browse files Browse the repository at this point in the history
chore: update dependencies and node
  • Loading branch information
DanielSchiavini authored Feb 5, 2025
2 parents 7501850 + 1524f3e commit 1842342
Show file tree
Hide file tree
Showing 10 changed files with 2,966 additions and 2,102 deletions.
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

0 comments on commit 1842342

Please sign in to comment.