Skip to content

Commit

Permalink
test: remove deprecated endpoints from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Sep 9, 2024
1 parent 5e226a8 commit 491b420
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions test/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,68 +13,7 @@ export interface PostRequest {
schema: object;
}

const FLOAT_REGEX = /^\d+(\.\d+)?$/;

export const GET_REQUESTS: GetRequest[] = [
{
uri: '/api/oneinch-rate?token=ETH',
isDeprecated: true,
schema: {
type: 'object',
properties: {
rate: { type: 'number', min: 0 },
toReceive: { type: 'string' },
fromAmount: { type: 'string' },
},
required: ['rate', 'toReceive', 'fromAmount'],
additionalProperties: false,
},
},
{
uri: `/api/short-lido-stats?chainId=${CONFIG.STAND_CONFIG.chainId}`,
isDeprecated: true,
schema: {
type: 'object',
properties: {
uniqueAnytimeHolders: { type: 'string' },
uniqueHolders: { type: 'string' },
totalStaked: { type: 'string' },
marketCap: { type: 'number' },
},
required: [
'totalStaked',
'marketCap',
'uniqueAnytimeHolders',
'uniqueHolders',
],
additionalProperties: true,
},
},
{
uri: '/api/eth-apr',
isDeprecated: true,
schema: { type: 'string', pattern: FLOAT_REGEX },
},
{
uri: '/api/totalsupply',
isDeprecated: true,
schema: { type: 'string', pattern: FLOAT_REGEX },
},
{
uri: '/api/eth-price',
isDeprecated: true,
schema: {
type: 'object',
properties: {
price: {
type: 'number',
min: 0,
},
},
required: ['price'],
additionalProperties: true,
},
},
{
uri: '/api/rewards?address=0x87c0e047F4e4D3e289A56a36570D4CB957A37Ef1&currency=usd&onlyRewards=false&archiveRate=true&skip=0&limit=10',
skipTestnet: true, // api/rewards don't work on testnet
Expand Down Expand Up @@ -121,14 +60,6 @@ export const GET_REQUESTS: GetRequest[] = [
},
},
},
{
uri: '/api/sma-steth-apr',
isDeprecated: true,
schema: {
type: 'string',
pattern: FLOAT_REGEX,
},
},
];

export const POST_REQUESTS: PostRequest[] = [
Expand Down

0 comments on commit 491b420

Please sign in to comment.