@@ -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,11 @@ export type EdgeSpendInfo = {
223224 otherParams ?: Object
224225}
225226
227+ export type EdgeStakingSettings = {
228+ stakingEnabled : boolean ,
229+ delegateAddress ?: string
230+ }
231+
226232// query data ----------------------------------------------------------
227233
228234export type EdgeDataDump = {
@@ -359,6 +365,12 @@ export type EdgeCurrencyEngine = {
359365 paymentProtocolUrl : string
360366 ) => Promise < EdgePaymentProtocolInfo > ,
361367
368+ // Staking:
369+ + stakingSettings ?: EdgeStakingSettings ,
370+ changeStakingSettings ?: (
371+ stakingSettings : EdgeStakingSettings
372+ ) => Promise < EdgeTransaction > ,
373+
362374 // Escape hatch:
363375 + otherMethods ? : Object
364376}
@@ -477,16 +489,20 @@ export type EdgeCurrencyWallet = {
477489 getEnabledTokens ( ) : Promise < Array < string >> ,
478490 addCustomToken ( token : EdgeTokenInfo ) : Promise < mixed > ,
479491
480- // Transactions :
492+ // Transaction history :
481493 getNumTransactions ( opts ?: EdgeCurrencyCodeOptions ) : Promise < number > ,
482494 getTransactions (
483495 opts ? : EdgeGetTransactionsOptions
484496 ) : Promise < Array < EdgeTransaction >> ,
497+
498+ // Addresses:
485499 getReceiveAddress (
486500 opts ? : EdgeCurrencyCodeOptions
487501 ) : Promise < EdgeReceiveAddress > ,
488502 saveReceiveAddress ( receiveAddress : EdgeReceiveAddress ) : Promise < mixed > ,
489503 lockReceiveAddress ( receiveAddress : EdgeReceiveAddress ) : Promise < mixed > ,
504+
505+ // Sending:
490506 makeSpend ( spendInfo : EdgeSpendInfo ) : Promise < EdgeTransaction > ,
491507 signTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
492508 broadcastTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
@@ -502,6 +518,12 @@ export type EdgeCurrencyWallet = {
502518 paymentProtocolUrl : string
503519 ) : Promise < EdgePaymentProtocolInfo > ,
504520
521+ // Staking:
522+ + stakingSettings : EdgeStakingSettings ,
523+ changeStakingSettings : (
524+ stakingSettings : EdgeStakingSettings
525+ ) = > Promise < EdgeTransaction > ,
526+
505527 // Wallet management:
506528 resyncBlockchain ( ) : Promise < mixed > ,
507529 dumpData ( ) : Promise < EdgeDataDump > ,
0 commit comments