Skip to content

Commit 73e2d58

Browse files
authored
feat: support erc20 tokens for tiered sales facet (#6)
* feat: support erc20 tokens for tiered sales facet * fix: use internal function for payment processing * fix: remove restriction on lowering per-wallet * test: erc20 currency scenarios * chore: deploy on all chains
1 parent d4316e5 commit 73e2d58

File tree

431 files changed

+62104
-13260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

431 files changed

+62104
-13260
lines changed

deploy/02_deploy_finance_sales_facets.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {HardhatRuntimeEnvironment} from 'hardhat/types';
2-
import {DeployFunction} from 'hardhat-deploy/types';
1+
import { HardhatRuntimeEnvironment } from 'hardhat/types';
2+
import { DeployFunction } from 'hardhat-deploy/types';
33

4-
import {deployPermanentContract} from '../hardhat.util';
4+
import { deployPermanentContract } from '../hardhat.util';
55

66
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
77
const accounts = await hre.getUnnamedAccounts();

deploy/03_deploy_erc1155.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
77
const accounts = await hre.getUnnamedAccounts();
88

99
//
10-
// Presets
10+
// Base
1111
//
1212
await deployPermanentContract(hre.deployments, accounts[0], 'ERC1155', []);
1313
await deployPermanentContract(hre.deployments, accounts[0], 'ERC1155WithERC2771', []);

deploy/03_deploy_erc20.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
77
const accounts = await hre.getUnnamedAccounts();
88

99
//
10-
// Presets
10+
// Base
1111
//
1212
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20', []);
1313

@@ -19,16 +19,16 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
1919
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20Metadata', []);
2020
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MetadataOwnable', []);
2121

22-
// // Supply
22+
// Supply
2323
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20SupplyOwnable', []);
2424

25-
// // Mintable
25+
// Mintable
2626
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableOwnable', []);
2727
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableOwnableERC2771', []);
2828
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableRoleBased', []);
2929
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableRoleBasedERC2771', []);
3030

31-
// // Tiered Sales
31+
// Tiered Sales
3232
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20TieredSales', []);
3333
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20TieredSalesERC2771', []);
3434
};

deploy/03_deploy_erc721.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
77
const accounts = await hre.getUnnamedAccounts();
88

99
//
10-
// Presets
10+
// Base
1111
//
1212
await deployPermanentContract(hre.deployments, accounts[0], 'ERC721A', []);
1313
await deployPermanentContract(hre.deployments, accounts[0], 'ERC721AWithERC2771', []);

deployments/arbitrumGoerli/ERC1155TieredSales.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

deployments/arbitrumGoerli/ERC1155TieredSalesERC2771.json

Lines changed: 19 additions & 14 deletions
Large diffs are not rendered by default.

deployments/arbitrumGoerli/ERC20TieredSales.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

deployments/arbitrumGoerli/ERC20TieredSalesERC2771.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

deployments/arbitrumGoerli/ERC721TieredSales.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

deployments/arbitrumGoerli/ERC721TieredSalesERC2771.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)