Skip to content

Commit 4a8e508

Browse files
committed
Merge branch 'master' into V5-EcosystemWallet
2 parents 13bcddc + 4d32923 commit 4a8e508

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

Packages/Sequence-Unity/Sequence/SequenceBoilerplates/Scripts/InGameShop/SequenceInGameShopState.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,17 @@ private async Task UpdateSaleDetailsAsync()
8787
private async Task UpdatePaymentTokenAsync()
8888
{
8989
PaymentToken = await _saleContract.GetPaymentTokenAsync(_client);
90-
91-
var contract = new ERC20(PaymentToken);
92-
PaymentTokenSymbol = await contract.Symbol(_client);
93-
PaymentTokenDecimals = await contract.Decimals(_client);
90+
if (PaymentToken.IsZeroAddress())
91+
{
92+
PaymentTokenSymbol = ChainDictionaries.GasCurrencyOf[_chain];
93+
PaymentTokenDecimals = 18;
94+
}
95+
else
96+
{
97+
var contract = new ERC20(PaymentToken);
98+
PaymentTokenSymbol = await contract.Symbol(_client);
99+
PaymentTokenDecimals = await contract.Decimals(_client);
100+
}
94101

95102
await UserPaymentTokenBalanceAsync();
96103
}

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/SequenceLogin.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@ public static SequenceLogin GetInstance(IValidator validator = null, IAuthentica
5151
{
5252
_instance = new SequenceLogin(validator, authenticator, connector, automaticallyFederateAccountsWhenPossible, connectedWalletAddress);
5353
}
54+
5455
if (connectedWalletAddress != null)
5556
{
5657
_instance.SetConnectedWalletAddress(connectedWalletAddress);
5758
}
59+
60+
_instance.SetupAuthenticator();
5861
return _instance;
5962
}
6063

Packages/Sequence-Unity/Sequence/SequenceSDK/Ethereum/Chain.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public enum Chain
3232
[Obsolete("Chain is not currently supported")]
3333
XR1 = 273,
3434
Somnia = 5031,
35+
Monad = 143,
36+
Incentiv = 24101,
3537

3638
// Testnets
3739
TestnetSepolia = 11155111,
@@ -58,6 +60,7 @@ public enum Chain
5860
TestnetTelos = 41,
5961
TestnetMoonbaseAlpha = 1287,
6062
TestnetEtherlink = 128123,
63+
TestnetEtherlinkShadownet = 127823,
6164
TestnetMonad = 10143,
6265
TestnetSomnia = 50312,
6366
TestnetIncentivV2 = 28802,

Packages/Sequence-Unity/Sequence/SequenceSDK/Ethereum/ChainDictionaries.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public ChainConfig(Chain chain, string chainId, string name, string path, string
5353
new (Chain.Etherlink, "42793", "Etherlink", "etherlink", "https://explorer.etherlink.com/", "XTZ", "0x0000000000000000000000000000000000000000"),
5454
new (Chain.XR1, "273", "XR1", "xr1", "", "XR1", "0x0000000000000000000000000000000000000000"),
5555
new (Chain.Somnia, "5031", "Somnia", "somnia", "https://mainnet.somnia.w3us.site/", "STT", "0x0000000000000000000000000000000000000000"),
56+
new (Chain.Monad, "143", "Monad", "monad", "https://mainnet-beta.monvision.io/", "MON", "0x0000000000000000000000000000000000000000"),
57+
new (Chain.Incentiv, "24101", "Incentiv", "incentiv", "https://explorer.incentiv.io/", "CENT", "0x0000000000000000000000000000000000000000"),
5658

5759
// --- TESTNETS ---
5860
new (Chain.TestnetSepolia, "11155111", "Sepolia", "sepolia", "https://sepolia.etherscan.io/", "ETH", "0x0000000000000000000000000000000000000000"),
@@ -77,6 +79,7 @@ public ChainConfig(Chain chain, string chainId, string name, string path, string
7779
new (Chain.TestnetTelos, "41", "Telos Testnet", "telos-testnet", "https://testnet.teloscan.io/", "TLOS", "0x0000000000000000000000000000000000000000"),
7880
new (Chain.TestnetMoonbaseAlpha, "1287", "Moonbase Alpha", "moonbase-alpha", "https://moonbase.moonscan.io/", "DEV", "0x0000000000000000000000000000000000000000"),
7981
new (Chain.TestnetEtherlink, "128123", "Etherlink Testnet", "etherlink-testnet", "https://testnet.explorer.etherlink.com/", "XTZ", "0x0000000000000000000000000000000000000000"),
82+
new (Chain.TestnetEtherlinkShadownet, "127823", "Etherlink Shadownet Testnet", "etherlink-shadownet-testnet", "https://shadownet.explorer.etherlink.com/", "XTZ", "0x0000000000000000000000000000000000000000"),
8083
new (Chain.TestnetMonad, "10143", "Monad Testnet", "monad-testnet", "https://testnet.monadexplorer.com/", "MON", "0x0000000000000000000000000000000000000000"),
8184
new (Chain.TestnetSomnia, "50312", "Somnia Testnet", "somnia-testnet", "https://somnia-testnet.socialscan.io/", "STT", "0x0000000000000000000000000000000000000000"),
8285
new (Chain.TestnetIncentivV2, "28802", "Incentiv Testnet v2", "incentiv-testnet-v2", "https://explorer.testnet.incentiv.net/", "TCENT", "0x0000000000000000000000000000000000000000"),

0 commit comments

Comments
 (0)