@@ -137,6 +137,7 @@ export type EdgeCurrencyInfo = {
137137 pluginName : string ,
138138 denominations : Array < EdgeDenomination > ,
139139 requiredConfirmations ? : number ,
140+ supportsStaking ?: boolean ,
140141 walletType : string ,
141142
142143 // Configuration options:
@@ -223,6 +224,13 @@ export type EdgeSpendInfo = {
223224 otherParams ?: Object
224225}
225226
227+ export type EdgeStakingSettings =
228+ | { stakingEnabled : false }
229+ | {
230+ stakingEnabled : true ,
231+ delegateAddress : string
232+ }
233+
226234// query data ----------------------------------------------------------
227235
228236export type EdgeDataDump = {
@@ -359,6 +367,12 @@ export type EdgeCurrencyEngine = {
359367 paymentProtocolUrl : string
360368 ) => Promise < EdgePaymentProtocolInfo > ,
361369
370+ // Staking:
371+ + stakingSettings ?: EdgeStakingSettings ,
372+ changeStakingSettings ?: (
373+ stakingSettings : EdgeStakingSettings
374+ ) => Promise < EdgeTransaction > ,
375+
362376 // Escape hatch:
363377 + otherMethods ? : Object
364378}
@@ -478,16 +492,20 @@ export type EdgeCurrencyWallet = {
478492 getEnabledTokens ( ) : Promise < Array < string >> ,
479493 addCustomToken ( token : EdgeTokenInfo ) : Promise < mixed > ,
480494
481- // Transactions :
495+ // Transaction history :
482496 getNumTransactions ( opts ?: EdgeCurrencyCodeOptions ) : Promise < number > ,
483497 getTransactions (
484498 opts ? : EdgeGetTransactionsOptions
485499 ) : Promise < Array < EdgeTransaction >> ,
500+
501+ // Addresses:
486502 getReceiveAddress (
487503 opts ? : EdgeCurrencyCodeOptions
488504 ) : Promise < EdgeReceiveAddress > ,
489505 saveReceiveAddress ( receiveAddress : EdgeReceiveAddress ) : Promise < mixed > ,
490506 lockReceiveAddress ( receiveAddress : EdgeReceiveAddress ) : Promise < mixed > ,
507+
508+ // Sending:
491509 makeSpend ( spendInfo : EdgeSpendInfo ) : Promise < EdgeTransaction > ,
492510 signTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
493511 broadcastTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
@@ -503,6 +521,12 @@ export type EdgeCurrencyWallet = {
503521 paymentProtocolUrl : string
504522 ) : Promise < EdgePaymentProtocolInfo > ,
505523
524+ // Staking:
525+ + stakingSettings : EdgeStakingSettings ,
526+ changeStakingSettings : (
527+ stakingSettings : EdgeStakingSettings
528+ ) = > Promise < EdgeTransaction > ,
529+
506530 // Wallet management:
507531 resyncBlockchain ( ) : Promise < mixed > ,
508532 dumpData ( ) : Promise < EdgeDataDump > ,
0 commit comments