-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
STARKNET_RPC_URL= | ||
STARKNET_NETWORK_ID= | ||
SOLIS_NETWORK_ID= | ||
BROKER_ID= | ||
STARKNET_ACCOUNT1_ADDRESS= | ||
STARKNET_ACCOUNT1_PRIVATE_KEY= | ||
STARKNET_ACCOUNT2_ADDRESS= | ||
STARKNET_ACCOUNT2_PRIVATE_KEY= | ||
STARKNET_LISTING_BROKER_ACCOUNT_ADDRESS= | ||
STARKNET_LISTING_BROKER_ACCOUNT_PRIVATE_KEY= | ||
STARKNET_SALE_BROKER_ACCOUNT_ADDRESS= | ||
STARKNET_SALE_BROKER_ACCOUNT_PRIVATE_KEY= | ||
STARKNET_ADMIN_ADDRESS= | ||
STARKNET_ADMIN_PRIVATE_KEY= | ||
STARKNET_ARK_RECEIVER_ADDRESS= | ||
STARKNET_ARK_RECEIVER_PRIVATE_KEY= | ||
STARKNET_ARK_COLLECTION_RECEIVER_ADDRESS= | ||
STARKNET_ARK_COLLECTION_RECEIVER_PRIVATE_KEY= | ||
STARKNET_ARK_COLLECTION_2981_RECEIVER_ADDRESS= | ||
STARKNET_ARK_COLLECTION_2981_RECEIVER_PRIVATE_KEY= | ||
NFT_CONTRACT_ADDRESS= | ||
NFT_CONTRACT_FIXED_FEES_ADDRESS= | ||
NFT_CONTRACT_ROYALTIES_ADDRESS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Core Examples Scripts | ||
|
||
Example scripts demonstrating marketplace functionalities using the Ark Protocol. | ||
|
||
## Environment Setup | ||
|
||
Set up the required environment variables before running any scripts. | ||
|
||
## Available Scripts | ||
|
||
### Fee Management | ||
- `setup-fees.ts`: Configure marketplace fee structure | ||
|
||
### Offer Management | ||
- `fulfill-offer.ts`: Create and fulfill token-specific offers | ||
- `fulfill-collection-offer.ts`: Create and fulfill collection-wide offers | ||
|
||
### Listing Operations | ||
- `fulfill-listing-default.ts`: Process listings with default royalties | ||
- `fulfill-listing-collection.ts`: Handle listings with collection royalties | ||
- `fulfill-listing-2981.ts`: Execute listings using EIP-2981 royalty standard | ||
- `cancel-listing.ts`: Create and cancel listings | ||
|
||
### Auction Operations | ||
- `fulfill-auction.ts`: Create and complete auctions | ||
- `cancel-auction.ts`: Create and cancel auctions | ||
|
||
## Usage | ||
|
||
1. Configure environment variables | ||
2. Execute scripts: | ||
```bash | ||
npx bun scripts/<script-name>.ts | ||
``` | ||
|
||
Each script includes detailed logging for tracking execution progress and error handling. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters