Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add rarible implementation #36

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c88bab9
add start
gabrielantonyxaviour Oct 31, 2023
b39f6b0
add rarible support
gabrielantonyxaviour Oct 31, 2023
5322620
add rarible testing
gabrielantonyxaviour Oct 31, 2023
c69e8f9
feat: add rarible implementation
gabrielantonyxaviour Oct 31, 2023
9496e80
add type documentation
gabrielantonyxaviour Oct 31, 2023
84a2dd7
add rarible visualizer docs
gabrielantonyxaviour Oct 31, 2023
b610cd8
Document type
SilviaMargaritaOcegueda Oct 31, 2023
d73b4ca
add address book and chain
gabrielantonyxaviour Oct 31, 2023
fe8a42b
add changes
gabrielantonyxaviour Oct 31, 2023
9ecdf4e
deployments fix add new
gabrielantonyxaviour Oct 31, 2023
0a0f862
add utiils
gabrielantonyxaviour Oct 31, 2023
aaaa7a7
add fix
gabrielantonyxaviour Oct 31, 2023
ef0557e
Update type documentation
SilviaMargaritaOcegueda Oct 31, 2023
1e6d6c8
Merge commit
SilviaMargaritaOcegueda Oct 31, 2023
2df1d31
Rename variable
SilviaMargaritaOcegueda Oct 31, 2023
11ed9f3
add
gabrielantonyxaviour Oct 31, 2023
6c0f739
Merge remote-tracking branch 'refs/remotes/origin/main'
gabrielantonyxaviour Oct 31, 2023
84977bf
add fix
gabrielantonyxaviour Oct 31, 2023
2e5b493
add visualize
gabrielantonyxaviour Oct 31, 2023
01aae37
add test
gabrielantonyxaviour Oct 31, 2023
92eea07
add testing data oneinch
gabrielantonyxaviour Oct 31, 2023
d6a0933
feat: add 1inch implementation
gabrielantonyxaviour Oct 31, 2023
8955163
fix: change verifying contract
gabrielantonyxaviour Oct 31, 2023
5ff197c
fix: add type for visualize
gabrielantonyxaviour Oct 31, 2023
336ea73
fix: fusion
gabrielantonyxaviour Oct 31, 2023
a9577db
fix: 1inch fusion type
gabrielantonyxaviour Oct 31, 2023
7410a50
add one inch test fix
gabrielantonyxaviour Nov 14, 2023
6e7341a
merge rarible
gabrielantonyxaviour Nov 14, 2023
f2caf39
remove 1inch
gabrielantonyxaviour Nov 14, 2023
d43abed
add rarible test fix
gabrielantonyxaviour Nov 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename variable
SilviaMargaritaOcegueda committed Oct 31, 2023
commit 2df1d3181b797c01019617c5282a5d0fc55a3972
18 changes: 9 additions & 9 deletions src/visualizer/oneinch/index.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
*/

import { PROTOCOL_ID } from "..";
import { ASSET_TYPE, AssetInOut } from "../../types";
import { ASSET_TYPE, AssetInOut, oneinch } from "../../types";
import { OneInchLimitOrderV3 } from "../../types/oneinch";
import { Domain, EIP712Protocol, VisualizationResult } from "../../types/visualizer";
import { WizardError, getPaymentAssetType } from "../../utils";
@@ -31,9 +31,9 @@ export const visualize = (
assetsOut: [],
liveness: {
from: Number(getAuctionStartTime(message.salt)),
to: Number(getAuctionEndTime(message.salt)),
to: Number(getAuctionEndTime(message.salt))
},
approvals: [],
approvals: []
};
};

@@ -51,7 +51,7 @@ const supportedChains = [
100, // Gnosis
1313161554, // Aurora,
8217, // Klaytn
42, // Kovan
42 // Kovan
];

/**
@@ -68,11 +68,11 @@ const addressesBook = [
"0x54431918cEC22932fCF97E54769F4E00f646690F", // Gnosis LimitOrderProtocol
"0xA31bB36c5164B165f9c36955EA4CcBaB42B3B28E", // Aurora LimitOrderProtocol
"0xE295aD71242373C37C5FdA7B57F26f9eA1088AFe", // Klaytn LimitOrderProtocol
"0xa218543cc21ee9388Fa1E509F950FD127Ca82155", // Kovan LimitOrderProtocol
].map((e) => e.toLocaleLowerCase());
"0xa218543cc21ee9388Fa1E509F950FD127Ca82155" // Kovan LimitOrderProtocol
].map(e => e.toLocaleLowerCase());

const looksrare: EIP712Protocol<LooksRareV2MakerOrder> = {
const oneinch: EIP712Protocol<OneInchLimitOrderV3> = {
isCorrectDomain,
visualize,
visualize
};
export default looksrare;
export default oneinch;