Skip to content

Commit

Permalink
fix: remove private sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Picodes committed Dec 16, 2023
1 parent 74e8021 commit 47f21b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 921 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"author": "greedythib <[email protected]>",
"license": "MIT",
"dependencies": {
"@angleprotocol/sdk": "0.5.0",
"ethers": "^5.7.1",
"joi": "^17.6.0",
"prettier": "^2.8.2"
Expand Down
23 changes: 1 addition & 22 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ChainId } from '@angleprotocol/sdk';
import Joi from 'joi';

export type TokenType = {
Expand Down Expand Up @@ -39,24 +38,4 @@ const tokenInfo = Joi.object().keys({
description: Joi.string(),
});

// const items: any = {};
// for (const chain of Object.keys(ChainId)) {
// items[chain] = Joi.object().pattern(Joi.string(), tokenInfo);
// }
export const joiSchema = Joi.object().keys({
[ChainId.MAINNET]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.POLYGON]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.AVALANCHE]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.ARBITRUM]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.BSC]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.OPTIMISM]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.CELO]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.GNOSIS]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.BASE]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.POLYGONZKEVM]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.LINEA]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.MANTLE]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.ZKSYNC]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.CORE]: Joi.object().pattern(/^/, tokenInfo),
[ChainId.THUNDERCORE]: Joi.object().pattern(/^/, tokenInfo),
});
export const joiSchema = Joi.object().pattern(Joi.number().integer(), Joi.object().pattern(Joi.string(), tokenInfo));
Loading

0 comments on commit 47f21b5

Please sign in to comment.