Skip to content

Commit

Permalink
Merge pull request #115 from HAECHI-LABS/eddie/FACE-1825
Browse files Browse the repository at this point in the history
impl: Change Goerli to Sepolia Networks
  • Loading branch information
EddieYS95 authored Dec 4, 2023
2 parents 4ce941e + 22ef920 commit 3959b82
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions haechi.face.unity.sdk/Runtime/FaceSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public struct Parameters
public Profile? Environment;

/// <value>
/// Blockchain Network such as Goerli, Mumbai, Ethereum etc.
/// Blockchain Network such as Sepolia, Mumbai, Ethereum etc.
/// </value>
public BlockchainNetwork Network;

Expand Down Expand Up @@ -68,7 +68,7 @@ public static void Init(Parameters parameters)
private static Profile _getDefaultProfile(BlockchainNetwork blockchainNetwork)
{
if (blockchainNetwork.Equals(BlockchainNetwork.BAOBAB) ||
blockchainNetwork.Equals(BlockchainNetwork.GOERLI) ||
blockchainNetwork.Equals(BlockchainNetwork.SEPOLIA) ||
blockchainNetwork.Equals(BlockchainNetwork.MUMBAI) ||
blockchainNetwork.Equals(BlockchainNetwork.BNB_SMART_CHAIN_TESTNET) ||
blockchainNetwork.Equals(BlockchainNetwork.MEVERSE_TESTNET) ||
Expand Down Expand Up @@ -120,7 +120,7 @@ public Blockchain Blockchain()
return Blockchains.OfBlockchainNetwork(this._parameters._network);
}

/// <returns> Return Blockchain Network such as Goerli, Mumbai, Ethereum etc.</returns>
/// <returns> Return Blockchain Network such as Sepolia, Mumbai, Ethereum etc.</returns>
public BlockchainNetwork Network()
{
return this._parameters._network;
Expand Down
10 changes: 5 additions & 5 deletions haechi.face.unity.sdk/Runtime/Type/Blockchain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static Blockchain OfBlockchainNetwork(BlockchainNetwork network)
switch (network)
{
case BlockchainNetwork.ETHEREUM:
case BlockchainNetwork.GOERLI:
case BlockchainNetwork.SEPOLIA:
return Blockchain.ETHEREUM;
case BlockchainNetwork.POLYGON:
case BlockchainNetwork.MUMBAI:
Expand Down Expand Up @@ -89,11 +89,11 @@ public static int GetPlatformCoinDecimals(this Blockchain blockchain)
{
Blockchain.ETHEREUM, new Dictionary<Profile, BlockchainNetwork>
{
{ Profile.Local, BlockchainNetwork.GOERLI },
{ Profile.Dev, BlockchainNetwork.GOERLI },
{ Profile.StageTest, BlockchainNetwork.GOERLI },
{ Profile.Local, BlockchainNetwork.SEPOLIA },
{ Profile.Dev, BlockchainNetwork.SEPOLIA },
{ Profile.StageTest, BlockchainNetwork.SEPOLIA },
{ Profile.StageMainnet, BlockchainNetwork.ETHEREUM },
{ Profile.ProdTest, BlockchainNetwork.GOERLI },
{ Profile.ProdTest, BlockchainNetwork.SEPOLIA },
{ Profile.ProdMainnet, BlockchainNetwork.ETHEREUM }
}
},
Expand Down
4 changes: 2 additions & 2 deletions haechi.face.unity.sdk/Runtime/Type/BlockchainNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace haechi.face.unity.sdk.Runtime.Type
public enum BlockchainNetwork
{
ETHEREUM,
GOERLI,
SEPOLIA,
POLYGON,
MUMBAI,
BNB_SMART_CHAIN,
Expand Down Expand Up @@ -37,7 +37,7 @@ public static class BlockchainNetworks
{
// Ethereum
{ BlockchainNetwork.ETHEREUM, new BlockchainNetworkProperty() { IsTestnet = false, ChainId = 1, Blockchain = Blockchain.ETHEREUM }},
{ BlockchainNetwork.GOERLI, new BlockchainNetworkProperty() { IsTestnet = true, ChainId = 5, Blockchain = Blockchain.ETHEREUM }},
{ BlockchainNetwork.SEPOLIA, new BlockchainNetworkProperty() { IsTestnet = true, ChainId = 5, Blockchain = Blockchain.ETHEREUM }},

// Polygon
{ BlockchainNetwork.POLYGON, new BlockchainNetworkProperty() { IsTestnet = false, ChainId = 137, Blockchain = Blockchain.POLYGON }},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3881,7 +3881,7 @@ MonoBehaviour:
m_Options:
- m_Text: MUMBAI
m_Image: {fileID: 0}
- m_Text: GOERLI
- m_Text: SEPOLIA
m_Image: {fileID: 0}
- m_Text: BNB_SMART_CHAIN_TESTNET
m_Image: {fileID: 0}
Expand Down Expand Up @@ -8341,7 +8341,7 @@ MonoBehaviour:
m_Options:
- m_Text: MUMBAI
m_Image: {fileID: 0}
- m_Text: GOERLI
- m_Text: SEPOLIA
m_Image: {fileID: 0}
- m_Text: BNB_SMART_CHAIN_TESTNET
m_Image: {fileID: 0}
Expand Down Expand Up @@ -10020,7 +10020,7 @@ MonoBehaviour:
m_Options:
- m_Text: MUMBAI
m_Image: {fileID: 0}
- m_Text: GOERLI
- m_Text: SEPOLIA
m_Image: {fileID: 0}
- m_Text: BNB_SMART_CHAIN_TESTNET
m_Image: {fileID: 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ MonoBehaviour:
erc721ContractAddress: TODO
erc1155ContractAddress: TODO
- blockchainNetwork: 1
erc20Decimal18ContractAddress: 0xB112d79fc314E1F6901984F0b4fA7680057BFB63
erc20Decimal6ContractAddress: 0xE54b3408C4c8C034e700A8af0Cbc8c9622037eC6
erc721ContractAddress: 0xdb8f0880a8516A42d4b5F6463CB7EBe969102d6e
erc1155ContractAddress: 0x21af2e7801eCb07C377f6104e139FDcE5CDf1C35
erc20Decimal18ContractAddress: 0xfCe04dd232006d0da001F6D54Bb5a7fC969dBc08
erc20Decimal6ContractAddress: 0xb5567463c35dE682072A669425d6776B178Be3E4
erc721ContractAddress: 0x63C1664c1Ee107D762C7ed7517Ca1cD25bc33C0b
erc1155ContractAddress: 0xF512373412168439B2e587dCfc13e839F0D8472f
- blockchainNetwork: 2
erc20Decimal18ContractAddress: 0xfce04dd232006d0da001f6d54bb5a7fc969dbc08
erc20Decimal6ContractAddress: TODO
Expand Down
4 changes: 2 additions & 2 deletions haechi.face.unity.sdk/Tests/Runtime/Type/NeworkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public class NeworkTests
[Test]
public void GetNetworkTest()
{
Assert.AreEqual(BlockchainNetwork.GOERLI, BlockchainNetworks.GetNetwork("ETHEREUM", "StageTest"));
Assert.AreEqual(BlockchainNetwork.SEPOLIA, BlockchainNetworks.GetNetwork("ETHEREUM", "StageTest"));
Assert.AreEqual(BlockchainNetwork.ETHEREUM, BlockchainNetworks.GetNetwork("ETHEREUM", "StageMainnet"));
Assert.AreEqual(BlockchainNetwork.GOERLI, BlockchainNetworks.GetNetwork("ETHEREUM", "Testnet"));
Assert.AreEqual(BlockchainNetwork.SEPOLIA, BlockchainNetworks.GetNetwork("ETHEREUM", "Testnet"));
Assert.AreEqual(BlockchainNetwork.ETHEREUM, BlockchainNetworks.GetNetwork("ETHEREUM", "Mainnet"));

Assert.AreEqual(BlockchainNetwork.MUMBAI, BlockchainNetworks.GetNetwork("POLYGON", "StageTest"));
Expand Down

0 comments on commit 3959b82

Please sign in to comment.