@@ -153,6 +153,100 @@ const walletConnectCommands: WalletConnectCommand[] = [
153153 } ,
154154 ] ,
155155 } ,
156+ {
157+ command : 'selectCoins' ,
158+ label : < Trans > Select Coins</ Trans > ,
159+ description : < Trans > Selects coins to be spent from a specific wallet</ Trans > ,
160+ service : ServiceName . WALLET ,
161+ bypassConfirm : true ,
162+ waitForSync : true ,
163+ params : [
164+ {
165+ name : WalletConnectCommandParamName . WALLET_ID ,
166+ type : 'number' ,
167+ label : < Trans > Wallet Id</ Trans > ,
168+ defaultValue : 1 ,
169+ } ,
170+ {
171+ name : WalletConnectCommandParamName . AMOUNT ,
172+ type : 'BigNumber' ,
173+ label : < Trans > Amount</ Trans > ,
174+ displayComponent : ( value ) => < MojoToChia value = { value } /> ,
175+ } ,
176+ {
177+ name : WalletConnectCommandParamName . MIN_COIN_AMOUNT ,
178+ type : 'BigNumber' ,
179+ label : < Trans > Min Coin Amount</ Trans > ,
180+ isOptional : true ,
181+ displayComponent : ( value ) => < MojoToChia value = { value } /> ,
182+ } ,
183+ {
184+ name : WalletConnectCommandParamName . MAX_COIN_AMOUNT ,
185+ type : 'BigNumber' ,
186+ label : < Trans > Max Coin Amount</ Trans > ,
187+ isOptional : true ,
188+ displayComponent : ( value ) => < MojoToChia value = { value } /> ,
189+ } ,
190+ {
191+ name : WalletConnectCommandParamName . EXCLUDED_COIN_AMOUNTS ,
192+ type : 'object' ,
193+ label : < Trans > Excluded Coin Amounts</ Trans > ,
194+ isOptional : true ,
195+ displayComponent : ( value ) => < > { JSON . stringify ( value ) } </ > ,
196+ } ,
197+ {
198+ name : WalletConnectCommandParamName . EXCLUDED_COIN_IDS ,
199+ type : 'object' ,
200+ label : < Trans > Excluded Coin IDs</ Trans > ,
201+ isOptional : true ,
202+ displayComponent : ( value ) => < > { JSON . stringify ( value ) } </ > ,
203+ } ,
204+ ] ,
205+ } ,
206+ {
207+ command : 'getSpendableCoins' ,
208+ label : < Trans > Get Spendable Coins</ Trans > ,
209+ description : < Trans > Requests spendable coins for a specific wallet</ Trans > ,
210+ service : ServiceName . WALLET ,
211+ bypassConfirm : true ,
212+ waitForSync : true ,
213+ params : [
214+ {
215+ name : WalletConnectCommandParamName . WALLET_ID ,
216+ type : 'number' ,
217+ label : < Trans > Wallet Id</ Trans > ,
218+ defaultValue : 1 ,
219+ } ,
220+ {
221+ name : WalletConnectCommandParamName . MIN_COIN_AMOUNT ,
222+ type : 'BigNumber' ,
223+ label : < Trans > Min Coin Amount</ Trans > ,
224+ isOptional : true ,
225+ displayComponent : ( value ) => < MojoToChia value = { value } /> ,
226+ } ,
227+ {
228+ name : WalletConnectCommandParamName . MAX_COIN_AMOUNT ,
229+ type : 'BigNumber' ,
230+ label : < Trans > Max Coin Amount</ Trans > ,
231+ isOptional : true ,
232+ displayComponent : ( value ) => < MojoToChia value = { value } /> ,
233+ } ,
234+ {
235+ name : WalletConnectCommandParamName . EXCLUDED_COIN_AMOUNTS ,
236+ type : 'object' ,
237+ label : < Trans > Excluded Coin Amounts</ Trans > ,
238+ isOptional : true ,
239+ displayComponent : ( value ) => < > { JSON . stringify ( value ) } </ > ,
240+ } ,
241+ {
242+ name : WalletConnectCommandParamName . EXCLUDED_COIN_IDS ,
243+ type : 'object' ,
244+ label : < Trans > Excluded Coin IDs</ Trans > ,
245+ isOptional : true ,
246+ displayComponent : ( value ) => < > { JSON . stringify ( value ) } </ > ,
247+ } ,
248+ ] ,
249+ } ,
156250 {
157251 command : 'sendTransaction' ,
158252 label : < Trans > Send Transaction</ Trans > ,
0 commit comments