Skip to content

Commit

Permalink
feat: support erc20 tokens for tiered sales facet (#6)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
aramalipoor authored Dec 31, 2022
1 parent d4316e5 commit 73e2d58
Show file tree
Hide file tree
Showing 431 changed files with 62,104 additions and 13,260 deletions.
6 changes: 3 additions & 3 deletions deploy/02_deploy_finance_sales_facets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {HardhatRuntimeEnvironment} from 'hardhat/types';
import {DeployFunction} from 'hardhat-deploy/types';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';

import {deployPermanentContract} from '../hardhat.util';
import { deployPermanentContract } from '../hardhat.util';

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const accounts = await hre.getUnnamedAccounts();
Expand Down
2 changes: 1 addition & 1 deletion deploy/03_deploy_erc1155.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const accounts = await hre.getUnnamedAccounts();

//
// Presets
// Base
//
await deployPermanentContract(hre.deployments, accounts[0], 'ERC1155', []);
await deployPermanentContract(hre.deployments, accounts[0], 'ERC1155WithERC2771', []);
Expand Down
8 changes: 4 additions & 4 deletions deploy/03_deploy_erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const accounts = await hre.getUnnamedAccounts();

//
// Presets
// Base
//
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20', []);

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

// // Supply
// Supply
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20SupplyOwnable', []);

// // Mintable
// Mintable
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableOwnable', []);
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableOwnableERC2771', []);
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableRoleBased', []);
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20MintableRoleBasedERC2771', []);

// // Tiered Sales
// Tiered Sales
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20TieredSales', []);
await deployPermanentContract(hre.deployments, accounts[0], 'ERC20TieredSalesERC2771', []);
};
Expand Down
2 changes: 1 addition & 1 deletion deploy/03_deploy_erc721.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const accounts = await hre.getUnnamedAccounts();

//
// Presets
// Base
//
await deployPermanentContract(hre.deployments, accounts[0], 'ERC721A', []);
await deployPermanentContract(hre.deployments, accounts[0], 'ERC721AWithERC2771', []);
Expand Down
26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/ERC1155TieredSales.json

Large diffs are not rendered by default.

33 changes: 19 additions & 14 deletions deployments/arbitrumGoerli/ERC1155TieredSalesERC2771.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/ERC20TieredSales.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/ERC20TieredSalesERC2771.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/ERC721TieredSales.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/ERC721TieredSalesERC2771.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions deployments/arbitrumGoerli/License.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/MetadataOwnable.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/TieredSalesOwnable.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumGoerli/Withdrawable.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/ERC1155TieredSales.json

Large diffs are not rendered by default.

33 changes: 19 additions & 14 deletions deployments/arbitrumNova/ERC1155TieredSalesERC2771.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/ERC20TieredSales.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/ERC20TieredSalesERC2771.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/ERC721TieredSales.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/ERC721TieredSalesERC2771.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/License.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/MetadataOwnable.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/TieredSalesOwnable.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumNova/Withdrawable.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumOne/ERC20TieredSales.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions deployments/arbitrumOne/ERC20TieredSalesERC2771.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions deployments/arbitrumOne/MetadataOwnable.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions deployments/arbitrumOne/TieredSalesOwnable.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion deployments/arbitrumTestnet/.chainId

This file was deleted.

Loading

0 comments on commit 73e2d58

Please sign in to comment.