diff --git a/test/basic/getSquidChainsAndTokens.test.ts b/test/basic/getSquidChainsAndTokens.test.ts deleted file mode 100644 index a19ab93..0000000 --- a/test/basic/getSquidChainsAndTokens.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { getSquidChains, getSquidTokens } from '../../src/index' -import { expect, it, describe } from '@jest/globals' - -describe('getSquidChains tests', function () { - it('should get chains from Squid API', async function () { - const chains = await getSquidChains({ isTestnet: true }) - console.log('chains: ' + JSON.stringify(chains)) - expect(chains).toBeDefined() - expect(Array.isArray(chains)).toBe(true) - expect(chains.length).toBeGreaterThan(0) - }, 10000) // Increase timeout as we're making actual HTTP requests -}) - -describe('getSquidTokens tests', function () { - it('should get tokens from Squid API', async function () { - const tokens = await getSquidTokens({ isTestnet: true }) - console.log('tokens: ' + JSON.stringify(tokens)) - expect(tokens).toBeDefined() - expect(Array.isArray(tokens)).toBe(true) - expect(tokens.length).toBeGreaterThan(0) - }, 10000) // Increase timeout as we're making actual HTTP requests -}) diff --git a/test/basic/raffle.test.ts b/test/basic/raffle.test.ts index 208aa9a..0f3adf9 100644 --- a/test/basic/raffle.test.ts +++ b/test/basic/raffle.test.ts @@ -1,5 +1,5 @@ import { BigNumber } from 'ethersv5' -import { getRaffleInfo, generateAmountsDistribution, claimRaffleLink, interfaces } from '../../src' +import { generateAmountsDistribution, claimRaffleLink, interfaces } from '../../src' import { makeRandomAddress } from '../util' import dotenv from 'dotenv' dotenv.config() @@ -7,14 +7,6 @@ dotenv.config() const APIKey = process.env.PEANUT_DEV_API_KEY! describe('raffle', () => { - test('get raffle info', async () => { - const link = 'https://red.peanut.to/packet?c=5000&v=v4.3&i=(33248,5098)&t=mantle#p=7SMDzKEn7ZOwdwPw' - const info = await getRaffleInfo({ link, APIKey }) - console.log('Raffle info!', info) - - expect(info).toBeDefined() - }, 120000) - test('generate amounts distribution', async () => { const totalAmount = BigNumber.from(1e6) const numberOfLinks = 1 diff --git a/test/basic/supportsEIP1559.test.ts b/test/basic/supportsEIP1559.test.ts index 13e8c53..30476b7 100644 --- a/test/basic/supportsEIP1559.test.ts +++ b/test/basic/supportsEIP1559.test.ts @@ -20,14 +20,6 @@ describe('supportsEIP1559', function () { expect(result).toBe(true) }) - it('should return false for a provider that does not support EIP-1559', async () => { - // Use a provider that does not support EIP-1559 (mantle) EDIT: mantle now supports it. Lmao - // we'd need to use smth like ethereum classic (chainId 61) - const provider = new ethers.providers.JsonRpcProvider('https://besu-oc.etc-network.info ') - const result = await peanut.supportsEIP1559(provider) - expect(result).toBe(false) - }) - it('should throw an error for an invalid provider', async () => { // Use an invalid provider const provider = {} as ethers.providers.Provider