@@ -30,77 +30,68 @@ public static void CleanUp()
3030 /// Open the Login UI Boilerplate from a Prefab inside the Resources folder.
3131 /// </summary>
3232 /// <param name="parent">Transform inside of a Canvas object.</param>
33- /// <param name="wallet">Wallet to use for account federation.</param>
3433 /// <param name="onClose">(Optional) Callback when the user closes this window or when an account was successfully federated.</param>
3534 /// <returns></returns>
36- public static SequenceLoginWindow OpenSequenceLoginWindow ( Transform parent , IWallet wallet = null , Action onClose = null )
35+ public static SequenceLoginWindow OpenSequenceLoginWindow ( Transform parent , Action onClose = null )
3736 {
3837 return GetOrSpawnBoilerplate < SequenceLoginWindow > ( "Login/SequenceLoginWindow" , parent ,
39- b => b . Show ( wallet , onClose ) ) ;
38+ b => b . Show ( onClose ) ) ;
4039 }
4140
4241 /// <summary>
4342 /// Open the Player Profile UI Boilerplate from a Prefab inside the Resources folder.
4443 /// </summary>
4544 /// <param name="parent">Transform inside of a Canvas object.</param>
46- /// <param name="wallet">This Wallet instance will perform transactions.</param>
47- /// <param name="chain">Chain used to get balances and send transactions.</param>
4845 /// <param name="currency">Define a custom ERC20 currency. Leave it null to use the chains native token.</param>
4946 /// <param name="currencySymbol">The symbol of your custom currency, such as 'ETH'.</param>
5047 /// <param name="onClose">(Optional) Callback when the user closes this window.</param>
5148 /// <returns>Instance of SequencePlayerProfile which was instantiated as a child of <paramref name="parent"/></returns>
52- public static SequencePlayerProfile OpenSequencePlayerProfile ( Transform parent , IWallet wallet , Chain chain , Address currency = null , string currencySymbol = null , Action onClose = null )
49+ public static SequencePlayerProfile OpenSequencePlayerProfile ( Transform parent , Address currency = null , string currencySymbol = null , Action onClose = null )
5350 {
5451 return GetOrSpawnBoilerplate < SequencePlayerProfile > ( "PlayerProfile/SequencePlayerProfile" , parent ,
55- b => b . Show ( wallet , chain , currency , currencySymbol , onClose ) ) ;
52+ b => b . Show ( currency , currencySymbol , onClose ) ) ;
5653 }
5754
5855 /// <summary>
5956 /// Open the Daily Rewards UI Boilerplate from a Prefab inside the Resources folder.
6057 /// </summary>
6158 /// <param name="parent">Transform inside of a Canvas object.</param>
62- /// <param name="wallet">This Wallet instance will perform transactions.</param>
63- /// <param name="chain">Chain used to get balances and send transactions.</param>
6459 /// <param name="apiUrl">API Url you deployed using the server boilerplate.</param>
6560 /// <param name="onClose">(Optional) Callback when the user closes this window.</param>
6661 /// <returns>Instance of SequenceDailyRewards which was instantiated as a child of <paramref name="parent"/></returns>
67- public static SequenceDailyRewards OpenSequenceDailyRewards ( Transform parent , IWallet wallet , Chain chain , string apiUrl , Action onClose = null )
62+ public static SequenceDailyRewards OpenSequenceDailyRewards ( Transform parent , string apiUrl , Action onClose = null )
6863 {
6964 return GetOrSpawnBoilerplate < SequenceDailyRewards > ( "DailyRewards/SequenceDailyRewards" , parent ,
70- b => b . Show ( wallet , chain , apiUrl , onClose ) ) ;
65+ b => b . Show ( apiUrl , onClose ) ) ;
7166 }
7267
7368 /// <summary>
7469 /// Open the Inventory UI Boilerplate from a Prefab inside the Resources folder.
7570 /// </summary>
7671 /// <param name="parent">Transform inside of a Canvas object.</param>
77- /// <param name="wallet">This Wallet instance will perform transactions.</param>
78- /// <param name="chain">Chain used to get balances and send transactions.</param>
7972 /// <param name="collections">The inventory will show items from these contracts.</param>
8073 /// <param name="onClose">(Optional) Callback when the user closes this window.</param>
8174 /// <returns>Instance of SequenceInventory which was instantiated as a child of <paramref name="parent"/></returns>
82- public static SequenceInventory OpenSequenceInventory ( Transform parent , IWallet wallet , Chain chain , string [ ] collections , Action onClose = null )
75+ public static SequenceInventory OpenSequenceInventory ( Transform parent , string [ ] collections , Action onClose = null )
8376 {
8477 return GetOrSpawnBoilerplate < SequenceInventory > ( "Inventory/SequenceInventory" , parent ,
85- b => b . Show ( wallet , chain , collections , onClose ) ) ;
78+ b => b . Show ( collections , onClose ) ) ;
8679 }
8780
8881 /// <summary>
8982 /// Open the In-Game Shop UI Boilerplate from a Prefab inside the Resources folder.
9083 /// </summary>
9184 /// <param name="parent">Transform inside of a Canvas object.</param>
92- /// <param name="wallet">This Wallet instance will perform transactions.</param>
93- /// <param name="chain">Chain used to get balances and send transactions.</param>
9485 /// <param name="tokenContractAddress">ERC1155 Contract you deployed on Sequence's Builder.</param>
9586 /// <param name="saleContractAddress">ERC1155 Sale Contract you deployed on Sequence's Builder.</param>
9687 /// <param name="itemsForSale">Define the token Ids you want to sell from your collection.</param>
9788 /// <param name="onClose">(Optional) Callback when the user closes this window.</param>
9889 /// <returns>Instance of SequenceInGameShop which was instantiated as a child of <paramref name="parent"/></returns>
99- public static SequenceInGameShop OpenSequenceInGameShop ( Transform parent , IWallet wallet , Chain chain ,
100- string tokenContractAddress , string saleContractAddress , int [ ] itemsForSale , Action onClose = null )
90+ public static SequenceInGameShop OpenSequenceInGameShop ( Transform parent , string tokenContractAddress ,
91+ string saleContractAddress , int [ ] itemsForSale , Action onClose = null )
10192 {
10293 return GetOrSpawnBoilerplate < SequenceInGameShop > ( "InGameShop/SequenceInGameShop" , parent ,
103- b => b . Show ( wallet , chain , tokenContractAddress , saleContractAddress , itemsForSale , onClose ) ) ;
94+ b => b . Show ( tokenContractAddress , saleContractAddress , itemsForSale , onClose ) ) ;
10495 }
10596
10697 /// <summary>
@@ -138,9 +129,7 @@ public static ListItemPage OpenListItemPanel(Transform parent, ICheckout checkou
138129 {
139130 return GetOrSpawnBoilerplate < ListItemPage > ( "Checkout/ListItemPanel" , parent , b => b . Open ( checkout , item ) ) ;
140131 }
141-
142-
143-
132+
144133 public static CreateOfferPage OpenCreateOfferPanel ( Transform parent , ICheckout checkout , TokenBalance item , Action onClose = null )
145134 {
146135 return GetOrSpawnBoilerplate < CreateOfferPage > ( "Checkout/CreateOfferPanel" , parent , b => b . Open ( checkout , item ) ) ;
@@ -162,10 +151,10 @@ public static SellOfferPage OpenSellOfferPanel(Transform parent, ICheckout check
162151 /// <param name="chain">Chain used to get balances and send transactions.</param>
163152 /// <param name="onClose">(Optional) Callback when the user closes this window.</param>
164153 /// <returns>Instance of SequenceSignMessage which was instantiated as a child of <paramref name="parent"/></returns>
165- public static SequenceSignMessage OpenSequenceSignMessage ( Transform parent , IWallet wallet , Chain chain , Action onClose = null )
154+ public static SequenceSignMessage OpenSequenceSignMessage ( Transform parent , Action onClose = null )
166155 {
167156 return GetOrSpawnBoilerplate < SequenceSignMessage > ( "SignMessage/SequenceSignMessage" , parent ,
168- b => b . Show ( wallet , chain , onClose ) ) ;
157+ b => b . Show ( onClose ) ) ;
169158 }
170159
171160 private static T GetOrSpawnBoilerplate < T > ( string path , Transform parent , Action < T > show ) where T : MonoBehaviour
0 commit comments