-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diamond Service and web3.Eth.Standards. access
- Loading branch information
1 parent
6d54bda
commit a38ba44
Showing
4 changed files
with
35 additions
and
4 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
26 changes: 26 additions & 0 deletions
26
src/Nethereum.Contracts/Standards/ERC2535Diamond/ERC2535DiamondService.cs
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 @@ | ||
using Nethereum.Contracts.Services; | ||
using Nethereum.Contracts.Standards.ERC2535Diamond.DiamondCutFacet; | ||
using Nethereum.Contracts.Standards.ERC2535Diamond.DiamondLoupeFacet; | ||
|
||
namespace Nethereum.Contracts.Standards.ERC2535Diamond | ||
{ | ||
public class ERC2535DiamondService | ||
{ | ||
private readonly IEthApiContractService _ethApiContractService; | ||
|
||
public ERC2535DiamondService(IEthApiContractService ethApiContractService) | ||
{ | ||
_ethApiContractService = ethApiContractService; | ||
} | ||
|
||
public ERC2535DiamondCutFacetContractService GetDiamondCutFacetContractService(string contractAddress) | ||
{ | ||
return new ERC2535DiamondCutFacetContractService(_ethApiContractService, contractAddress); | ||
} | ||
|
||
public ERC2535DiamondLoupeFacetContractService GetDiamondLoupeFacetService(string contractAddress) | ||
{ | ||
return new ERC2535DiamondLoupeFacetContractService(_ethApiContractService, contractAddress); | ||
} | ||
} | ||
} |