Skip to content

Commit

Permalink
Fixes LibHelper and Amoy config. Deploys Paymaster functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesduncombe committed Apr 3, 2024
1 parent 89f84c3 commit 0ce0684
Show file tree
Hide file tree
Showing 29 changed files with 1,931 additions and 1,110 deletions.
5 changes: 3 additions & 2 deletions contracts/lib/LibHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import "../interfaces/IERC173.sol";

library LibHelpers {
address internal constant ZERO_ADDRESS = address(0);
address internal constant DEPLOYER_CONTRACT = 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7;
address internal constant DEPLOYER_CONTRACT = 0x6DF2D25d8C6FD680730ee658b530A05a99BB769a;
address internal constant DEPLOYER_CONTRACT_AMOY = 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7;

function _isDiamondFacet(address who) internal view returns (bool) {
return who == address(this);
Expand All @@ -17,6 +18,6 @@ library LibHelpers {
}

function _isDeployer(address who) internal pure returns (bool) {
return who == LibHelpers.DEPLOYER_CONTRACT;
return (who == LibHelpers.DEPLOYER_CONTRACT) || (who == LibHelpers.DEPLOYER_CONTRACT_AMOY);
}
}
100 changes: 6 additions & 94 deletions deployments/amoy/FastAccessFacet.json

Large diffs are not rendered by default.

96 changes: 20 additions & 76 deletions deployments/amoy/FastAutomatonsFacet.json

Large diffs are not rendered by default.

98 changes: 21 additions & 77 deletions deployments/amoy/FastCrowdfundsFacet.json

Large diffs are not rendered by default.

96 changes: 20 additions & 76 deletions deployments/amoy/FastDistributionsFacet.json

Large diffs are not rendered by default.

222 changes: 147 additions & 75 deletions deployments/amoy/FastF01.json

Large diffs are not rendered by default.

222 changes: 147 additions & 75 deletions deployments/amoy/FastF02.json

Large diffs are not rendered by default.

222 changes: 147 additions & 75 deletions deployments/amoy/FastF03.json

Large diffs are not rendered by default.

222 changes: 147 additions & 75 deletions deployments/amoy/FastF04.json

Large diffs are not rendered by default.

430 changes: 430 additions & 0 deletions deployments/amoy/FastForwardableFacet.json

Large diffs are not rendered by default.

88 changes: 16 additions & 72 deletions deployments/amoy/FastFrontendFacet.json

Large diffs are not rendered by default.

92 changes: 18 additions & 74 deletions deployments/amoy/FastHistoryFacet.json

Large diffs are not rendered by default.

52 changes: 18 additions & 34 deletions deployments/amoy/FastTokenFacet.json

Large diffs are not rendered by default.

96 changes: 20 additions & 76 deletions deployments/amoy/FastTopFacet.json

Large diffs are not rendered by default.

52 changes: 5 additions & 47 deletions deployments/amoy/Issuer.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions deployments/amoy/IssuerAccessFacet.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions deployments/amoy/IssuerAutomatonsFacet.json

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions deployments/amoy/IssuerFrontendFacet.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions deployments/amoy/IssuerTopFacet.json

Large diffs are not rendered by default.

109 changes: 94 additions & 15 deletions deployments/amoy/Marketplace.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions deployments/amoy/MarketplaceAccessFacet.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions deployments/amoy/MarketplaceAutomatonsFacet.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions deployments/amoy/MarketplaceFastDeploymentRequestsFacet.json

Large diffs are not rendered by default.

228 changes: 228 additions & 0 deletions deployments/amoy/MarketplaceForwardableFacet.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions deployments/amoy/MarketplaceTokenHoldersFacet.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions deployments/amoy/MarketplaceTopFacet.json

Large diffs are not rendered by default.

275 changes: 275 additions & 0 deletions deployments/amoy/solcInputs/282aebb21cccc251bc099bdf4cf81fc0.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ const config: HardhatUserConfig = {
},
// Polygon Testnet - Amoy.
80002: {
...DEPLOYER_FACTORY_COMMON,
deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
funding: "10000000000000000",
signedTx:
"0xf8a88085746a52880f830174a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf383027128a0983a0a2de9444f60b6405a227cce730f6d1025f02ff2d37c638e976389f8a073a07846164338796cbf55c45d80f7b328ff55f495d0264574a7cb876673808161bc",
},
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const ZERO_ADDRESS = ethers.constants.AddressZero;
export const ZERO_ACCOUNT_MOCK = { getAddress: () => ZERO_ADDRESS };

export const DEPLOYER_FACTORY_COMMON = {
deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
deployer: "0xfa570a9Fd418FF0B8A5C792497a79059070A3A8e",
factory: "0x6DF2D25d8C6FD680730ee658b530A05a99BB769a",
funding: "10000000000000000",
};

Expand Down

0 comments on commit 0ce0684

Please sign in to comment.