Skip to content

Commit

Permalink
add one inch test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielantonyxaviour committed Nov 14, 2023
1 parent a9577db commit 7410a50
Show file tree
Hide file tree
Showing 9 changed files with 444 additions and 794 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
logs
*.log
npm-debug.log*
yarn.lock
package-lock.json

# Runtime data
pids
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
},
"devDependencies": {
"@types/jest": "^29.5.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"jest": "^29.5.0",
"prettier": "^2.8.4",
"ts-jest": "^29.0.5",
"eslint": "^8.36.0",
"typescript": "^5.0.2"
},
"dependencies": {
Expand Down
5 changes: 0 additions & 5 deletions src/visualizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import blurIo from "./blur-io";
import erc20Permit from "./erc20-permit";
import looksrare from "./looksrare";
import looksrareV2 from "./looksrare-v2";
import rarible from "./rarible";
import oneinch from "./oneinch";
import seaport from "./seaport";
import { Domain, VisualizationResult } from "../types/visualizer";
Expand All @@ -33,7 +32,6 @@ export const getProtocolId = (domain: Domain): PROTOCOL_ID | undefined => {
if (looksrareV2.isCorrectDomain(domain)) return PROTOCOL_ID.LOOKSRARE_EXCHANGE_V2;
if (looksrare.isCorrectDomain(domain)) return PROTOCOL_ID.LOOKSRARE_EXCHANGE;
if (oneinch.isCorrectDomain(domain)) return PROTOCOL_ID.ONEINCH_FUSION;
if (rarible.isCorrectDomain(domain)) return PROTOCOL_ID.RARIBLE;
return;
};

Expand Down Expand Up @@ -65,9 +63,6 @@ export default async function visualize<T extends object>(
case PROTOCOL_ID.ONEINCH_FUSION:
return oneinch.visualize(message as OneInchFusionOrder, domain);

case PROTOCOL_ID.RARIBLE:
return rarible.visualize(message as RaribleOrder, domain);

default:
if (erc20Permit.isERC20Permit(message)) {
return erc20Permit.visualize(message as PermitMessage, domain);
Expand Down
2 changes: 1 addition & 1 deletion src/visualizer/oneinch/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export const getAuctionStartTime = (salt: string) =>
(BigInt(salt) & _TIME_START_MASK) >> _TIME_START_SHIFT;

export const getAuctionEndTime = (salt: string) =>
(getAuctionStartTime(salt) + (BigInt(salt) & _DURATION_MASK)) >> _DURATION_SHIFT;
getAuctionStartTime(salt) + ((BigInt(salt) & _DURATION_MASK) >> _DURATION_SHIFT);
97 changes: 0 additions & 97 deletions src/visualizer/rarible/index.ts

This file was deleted.

62 changes: 0 additions & 62 deletions src/visualizer/rarible/utils.ts

This file was deleted.

79 changes: 0 additions & 79 deletions test/visualizer/rarible/data.ts

This file was deleted.

Loading

0 comments on commit 7410a50

Please sign in to comment.