Skip to content

Commit

Permalink
Update nestjs to 10.x (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xslipk authored Oct 12, 2023
1 parent b4a0167 commit c8bb2a8
Show file tree
Hide file tree
Showing 7 changed files with 2,145 additions and 8,160 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ workflows:
- test:
matrix:
parameters:
node-version: ['18.12', '16.18', '14.21']
node-version: ['20.8', '18.12', '16.18']
2 changes: 1 addition & 1 deletion __tests__/ethers.contract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Module, Controller, Get, Injectable } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import * as nock from 'nock'
import * as request from 'supertest'
import { EthersModule, EthersContract, EthersSigner, InjectContractProvider, InjectSignerProvider } from '../src'
import * as ABI from './utils/ABI.json'
import { ETHERS_ADDRESS, ETHERS_PRIVATE_KEY, NEST_APP_OPTIONS } from './utils/constants'
import { extraWait } from './utils/extraWait'
import { platforms } from './utils/platforms'
import { EthersModule, EthersContract, EthersSigner, InjectContractProvider, InjectSignerProvider } from '../src'

describe('EthersContract', () => {
beforeEach(() => nock.cleanAll())
Expand Down
8 changes: 4 additions & 4 deletions __tests__/ethers.decorators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { Module, Controller, Get, Injectable } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import * as nock from 'nock'
import * as request from 'supertest'
import * as ABI from './utils/ABI.json'
import { ETHERS_ADDRESS, NEST_APP_OPTIONS } from './utils/constants'
import { extraWait } from './utils/extraWait'
import { platforms } from './utils/platforms'
import {
EthersModule,
InjectEthersProvider,
Expand All @@ -14,10 +18,6 @@ import {
EthersContract,
EthersSigner,
} from '../src'
import * as ABI from './utils/ABI.json'
import { ETHERS_ADDRESS, NEST_APP_OPTIONS } from './utils/constants'
import { extraWait } from './utils/extraWait'
import { platforms } from './utils/platforms'

describe('InjectEthersProvider', () => {
beforeEach(() => nock.cleanAll())
Expand Down
24 changes: 12 additions & 12 deletions __tests__/ethers.module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ import { Module, Controller, Get, Injectable } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import * as nock from 'nock'
import * as request from 'supertest'
import {
EthersModule,
InjectEthersProvider,
MAINNET_NETWORK,
GOERLI_NETWORK,
BscscanProvider,
BINANCE_TESTNET_NETWORK,
MUMBAI_NETWORK,
BSCSCAN_DEFAULT_API_KEY,
BINANCE_POCKET_DEFAULT_APP_ID,
BINANCE_NETWORK,
} from '../src'
import {
GOERLI_ALCHEMY_URL,
GOERLI_ALCHEMY_API_KEY,
Expand Down Expand Up @@ -59,6 +47,18 @@ import {
} from './utils/constants'
import { extraWait } from './utils/extraWait'
import { platforms } from './utils/platforms'
import {
EthersModule,
InjectEthersProvider,
MAINNET_NETWORK,
GOERLI_NETWORK,
BscscanProvider,
BINANCE_TESTNET_NETWORK,
MUMBAI_NETWORK,
BSCSCAN_DEFAULT_API_KEY,
BINANCE_POCKET_DEFAULT_APP_ID,
BINANCE_NETWORK,
} from '../src'

describe('Ethers Module Initialization', () => {
beforeEach(() => nock.cleanAll())
Expand Down
2 changes: 1 addition & 1 deletion __tests__/ethers.signer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Module, Controller, Get, Injectable } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import * as nock from 'nock'
import * as request from 'supertest'
import { EthersModule, EthersSigner, InjectSignerProvider } from '../src'
import {
ETHERS_ADDRESS,
ETHERS_PRIVATE_KEY,
Expand All @@ -13,6 +12,7 @@ import {
} from './utils/constants'
import { extraWait } from './utils/extraWait'
import { platforms } from './utils/platforms'
import { EthersModule, EthersSigner, InjectSignerProvider } from '../src'

describe('EthersSigner', () => {
beforeEach(() => nock.cleanAll())
Expand Down
Loading

0 comments on commit c8bb2a8

Please sign in to comment.