-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1497 from thesandboxgame/feat/marketplace-bundle-…
…type feat: bundle as AssetClass
- Loading branch information
Showing
86 changed files
with
8,583 additions
and
268 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
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
36 changes: 36 additions & 0 deletions
36
packages/deploy/deploy/500_marketplace/505_upgrade_royalties_registry.ts
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 @@ | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
import {DEPLOY_TAGS} from '../../hardhat.config'; | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const {deployments, getNamedAccounts} = hre; | ||
const {deploy, catchUnknownSigner} = deployments; | ||
const {deployer, upgradeAdmin} = await getNamedAccounts(); | ||
await catchUnknownSigner( | ||
deploy('RoyaltiesRegistry', { | ||
from: deployer, | ||
contract: | ||
'@sandbox-smart-contracts/marketplace/contracts/RoyaltiesRegistry.sol:RoyaltiesRegistry', | ||
proxy: { | ||
owner: upgradeAdmin, | ||
proxyContract: 'OpenZeppelinTransparentProxy', | ||
upgradeIndex: 1, | ||
}, | ||
log: true, | ||
}) | ||
); | ||
}; | ||
|
||
export default func; | ||
func.tags = [ | ||
'RoyaltiesRegistry', | ||
'RoyaltiesRegistry', | ||
'RoyaltiesRegistryV2_deploy', | ||
DEPLOY_TAGS.L1, | ||
DEPLOY_TAGS.L1_PROD, | ||
DEPLOY_TAGS.L1_TEST, | ||
DEPLOY_TAGS.L2, | ||
DEPLOY_TAGS.L2_PROD, | ||
DEPLOY_TAGS.L2_TEST, | ||
]; | ||
func.dependencies = ['RoyaltiesRegistry_deploy']; |
36 changes: 36 additions & 0 deletions
36
packages/deploy/deploy/500_marketplace/506_upgrade_order_validator.ts
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 @@ | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
import {DEPLOY_TAGS} from '../../hardhat.config'; | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const {deployments, getNamedAccounts} = hre; | ||
const {deploy, catchUnknownSigner} = deployments; | ||
const {deployer, upgradeAdmin} = await getNamedAccounts(); | ||
await catchUnknownSigner( | ||
deploy('OrderValidator', { | ||
from: deployer, | ||
contract: | ||
'@sandbox-smart-contracts/marketplace/contracts/OrderValidator.sol:OrderValidator', | ||
proxy: { | ||
owner: upgradeAdmin, | ||
proxyContract: 'OpenZeppelinTransparentProxy', | ||
upgradeIndex: 1, | ||
}, | ||
log: true, | ||
}) | ||
); | ||
}; | ||
|
||
export default func; | ||
func.tags = [ | ||
'OrderValidator', | ||
'OrderValidator', | ||
'OrderValidatorV2_deploy', | ||
DEPLOY_TAGS.L1, | ||
DEPLOY_TAGS.L1_PROD, | ||
DEPLOY_TAGS.L1_TEST, | ||
DEPLOY_TAGS.L2, | ||
DEPLOY_TAGS.L2_PROD, | ||
DEPLOY_TAGS.L2_TEST, | ||
]; | ||
func.dependencies = ['OrderValidator_deploy']; |
35 changes: 35 additions & 0 deletions
35
packages/deploy/deploy/500_marketplace/507_upgrade_exchange.ts
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,35 @@ | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
import {DEPLOY_TAGS} from '../../hardhat.config'; | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const {deployments, getNamedAccounts} = hre; | ||
const {deploy, catchUnknownSigner} = deployments; | ||
const {deployer, upgradeAdmin} = await getNamedAccounts(); | ||
await catchUnknownSigner( | ||
deploy('Exchange', { | ||
from: deployer, | ||
contract: `@sandbox-smart-contracts/marketplace/contracts/Exchange.sol:Exchange`, | ||
proxy: { | ||
owner: upgradeAdmin, | ||
proxyContract: 'OpenZeppelinTransparentProxy', | ||
upgradeIndex: 1, | ||
}, | ||
log: true, | ||
}) | ||
); | ||
}; | ||
|
||
export default func; | ||
func.tags = [ | ||
'Exchange', | ||
'Exchange', | ||
'ExchangeV2_deploy', | ||
DEPLOY_TAGS.L1, | ||
DEPLOY_TAGS.L1_PROD, | ||
DEPLOY_TAGS.L1_TEST, | ||
DEPLOY_TAGS.L2, | ||
DEPLOY_TAGS.L2_PROD, | ||
DEPLOY_TAGS.L2_TEST, | ||
]; | ||
func.dependencies = ['Exchange_deploy']; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,17 @@ const importedPackages = { | |
], | ||
'@sandbox-smart-contracts/giveaway': 'contracts/SignedMultiGiveaway.sol', | ||
'@sandbox-smart-contracts/faucets': 'contracts/FaucetsERC1155.sol', | ||
'@sandbox-smart-contracts/[email protected]': [ | ||
'contracts/RoyaltiesRegistry.sol', | ||
'contracts/OrderValidator.sol', | ||
'contracts/Exchange.sol', | ||
'contracts/TransferManager.sol', | ||
], | ||
'@sandbox-smart-contracts/marketplace': [ | ||
'contracts/RoyaltiesRegistry.sol', | ||
'contracts/OrderValidator.sol', | ||
'contracts/Exchange.sol', | ||
'contracts/TransferManager.sol', | ||
], | ||
'@sandbox-smart-contracts/dependency-operator-filter': [ | ||
'contracts/OperatorFilterSubscription.sol', | ||
|
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,26 @@ | ||
export const GRID_SIZE = 408; | ||
|
||
//ERC20 to exchange for | ||
export const erc20PriceForBundle = 10000000000; | ||
|
||
// Configuration for ERC721 land tokens (array of [x,y] values) | ||
export const erc721 = [ | ||
// Add (x, y) pairs as needed | ||
]; | ||
|
||
// Configuration for quad land (array of [x, y, size] values) | ||
export const quad = [ | ||
// Add (size,x, y) triples as needed | ||
]; | ||
|
||
// Configuration for ERC1155 assets (array of [tokenId, supply] values) | ||
export const erc1155 = [ | ||
// Add [tier, amount, metadataHash] as needed | ||
]; | ||
|
||
// Price distribution setup | ||
export const priceDistribution = { | ||
erc721Prices: [[]], | ||
erc1155Prices: [[]], | ||
quadPrices: [], | ||
}; |
Oops, something went wrong.
3d3d9d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage for this commit
Coverage Report