Skip to content

Commit

Permalink
Deploy new orderbook contract
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSamWitch committed Jan 29, 2024
1 parent 53b2a61 commit 51dd7e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions scripts/deployTestData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ async function main() {
await tx.wait();
console.log("erc1155.setApprovalForAll");

tx = await orderBook.setTokenIdInfos([tokenId], [{tick, minQuantity: 3}]);
tx = await orderBook.setTokenIdInfos(
[tokenId, tokenId + 1, tokenId + 2],
[
{tick, minQuantity: 3},
{tick, minQuantity: 4},
{tick, minQuantity: 5},
],
);
await tx.wait();
console.log("orderBook.setTokenIdInfos");

Expand Down Expand Up @@ -121,11 +128,11 @@ async function main() {
console.log("orderBook.limitOrders - Some failed to sell");

// Claim nft
tx = await orderBook.claimNFTs([6], [tokenId]);
tx = await orderBook.claimNFTs([4], [tokenId]);
await tx.wait();
console.log("claimNFTs");
// Claim token
tx = await orderBook.claimTokens([2]);
tx = await orderBook.claimTokens([2, 3]);
await tx.wait();
console.log("claimTokens");
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export const verifyContracts = async (addresses: string[], args: any[][] = []) =
console.log("Verified all contracts");
};

export const swobAddress = "0xF1839A8546cB4cce4b927C658775Ff358579fEaE";
export const swobAddress = "0x2d9D54b4FBa73777c9BE43916089202c74B2c8d8";

0 comments on commit 51dd7e2

Please sign in to comment.