Skip to content

Commit

Permalink
test: remove rwa tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed Jul 23, 2024
1 parent cfa89e0 commit f2c7e56
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 119 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
- run: npm run test:builders
- run: npm run test:quotes
- run: npm run test:hyeth
- run: npm run test:rwa
- run: npm run test:btc2x
# skipping as currently no liquidity for sfrETH
# - run: npm run test:dseth
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"test:eth2xfli": "npm test src/tests/eth2xfli",
"test:gtceth": "npm test src/tests/gtceth",
"test:hyeth": "npm test src/tests/hyeth.test.ts",
"test:rwa": "npm test src/tests/rwa.presale.test.ts",
"test:iceth": "npm test src/tests/iceth",
"test:icreth": "npm test src/tests/icreth",
"test:watch": "jest --watch"
Expand Down
9 changes: 0 additions & 9 deletions src/quote/provider/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
InterestCompoundingETHIndex,
LeveragedrEthStakingYield,
MetaverseIndex,
RealWorldAssetIndex,
} from 'constants/tokens'

import { FlashMintContractType } from './'
Expand Down Expand Up @@ -145,12 +144,4 @@ describe('getContractType()', () => {
)
expect(contractType).toBe(FlashMintContractType.leveraged)
})

test('returns correct contract type for RWA', async () => {
const contractType = getContractType(
RealWorldAssetIndex.symbol,
ChainId.Mainnet
)
expect(contractType).toBe(FlashMintContractType.zeroEx)
})
})
73 changes: 0 additions & 73 deletions src/tests/rwa.presale.test.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/tests/utils/quoteTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
LeveragedrEthStakingYield,
MetaverseIndex,
RETH,
RealWorldAssetIndex,
USDC,
USDT,
WETH,
Expand Down Expand Up @@ -108,12 +107,6 @@ const reth: QuoteToken = {
symbol: RETH.symbol,
}

const rwa: QuoteToken = {
address: RealWorldAssetIndex.address!,
decimals: 18,
symbol: RealWorldAssetIndex.symbol,
}

const seth2: QuoteToken = {
address: sETH2.address!,
decimals: 18,
Expand Down Expand Up @@ -165,7 +158,6 @@ export const QuoteTokens = {
icreth,
mvi,
reth,
rwa,
seth2,
steth,
usdc,
Expand Down
19 changes: 0 additions & 19 deletions src/utils/contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
IndexCoopBitcoin3xIndex,
IndexCoopInverseEthereumIndex,
IndexCoopInverseBitcoinIndex,
RealWorldAssetIndex,
} from 'constants/tokens'

import {
Expand Down Expand Up @@ -443,21 +442,3 @@ describe('iETH1x', () => {
expect(contract.functions.issueExactSetFromETH).toBeDefined()
})
})

describe('RWA', () => {
test('return correct contract for token - arbitrum', async () => {
const expectedAddress = FlashMintZeroExMainnetAddress
const contract = getFlashMintZeroExContractForToken(
RealWorldAssetIndex.symbol,
undefined,
ChainId.Mainnet
)
expect(contract.address).toEqual(expectedAddress)
expect(contract.functions.getRequiredIssuanceComponents).toBeDefined()
expect(contract.functions.getRequiredRedemptionComponents).toBeDefined()
expect(contract.functions.issueExactSetFromETH).toBeDefined()
expect(contract.functions.issueExactSetFromToken).toBeDefined()
expect(contract.functions.redeemExactSetForETH).toBeDefined()
expect(contract.functions.redeemExactSetForToken).toBeDefined()
})
})
8 changes: 0 additions & 8 deletions src/utils/issuanceModules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
IndexCoopBitcoin2xIndex,
IndexCoopBitcoin3xIndex,
HighYieldETHIndex,
RealWorldAssetIndex,
} from 'constants/tokens'

import { getIssuanceModule } from './issuanceModules'
Expand Down Expand Up @@ -71,13 +70,6 @@ describe('getIssuanceModule() - Mainnet - IndexProtocol', () => {
expect(issuanceModule.isDebtIssuance).toBe(true)
})

test('returns debt issuance module v2 for RWA', async () => {
const expectedModule = IndexDebtIssuanceModuleV2Address_v2
const issuanceModule = getIssuanceModule(RealWorldAssetIndex.symbol)
expect(issuanceModule.address).toEqual(expectedModule)
expect(issuanceModule.isDebtIssuance).toBe(true)
})

test('returns debt issuance module v2 for wsETH2', async () => {
const expectedModule = IndexDebtIssuanceModuleV2Address
const issuanceModule = getIssuanceModule(wsETH2.symbol)
Expand Down

0 comments on commit f2c7e56

Please sign in to comment.