@@ -137,6 +137,7 @@ export type EdgeCurrencyInfo = {
137
137
pluginName : string ,
138
138
denominations : Array < EdgeDenomination > ,
139
139
requiredConfirmations ? : number ,
140
+ supportsStaking ?: boolean ,
140
141
walletType : string ,
141
142
142
143
// Configuration options:
@@ -223,6 +224,11 @@ export type EdgeSpendInfo = {
223
224
otherParams ?: Object
224
225
}
225
226
227
+ export type EdgeStakingSettings = {
228
+ stakingEnabled : boolean ,
229
+ delegateAddress ?: string
230
+ }
231
+
226
232
// query data ----------------------------------------------------------
227
233
228
234
export type EdgeDataDump = {
@@ -359,6 +365,12 @@ export type EdgeCurrencyEngine = {
359
365
paymentProtocolUrl : string
360
366
) => Promise < EdgePaymentProtocolInfo > ,
361
367
368
+ // Staking:
369
+ + stakingSettings ?: EdgeStakingSettings ,
370
+ changeStakingSettings ?: (
371
+ stakingSettings : EdgeStakingSettings
372
+ ) => Promise < EdgeTransaction > ,
373
+
362
374
// Escape hatch:
363
375
+ otherMethods ? : Object
364
376
}
@@ -477,16 +489,20 @@ export type EdgeCurrencyWallet = {
477
489
getEnabledTokens ( ) : Promise < Array < string >> ,
478
490
addCustomToken ( token : EdgeTokenInfo ) : Promise < mixed > ,
479
491
480
- // Transactions :
492
+ // Transaction history :
481
493
getNumTransactions ( opts ?: EdgeCurrencyCodeOptions ) : Promise < number > ,
482
494
getTransactions (
483
495
opts ? : EdgeGetTransactionsOptions
484
496
) : Promise < Array < EdgeTransaction >> ,
497
+
498
+ // Addresses:
485
499
getReceiveAddress (
486
500
opts ? : EdgeCurrencyCodeOptions
487
501
) : Promise < EdgeReceiveAddress > ,
488
502
saveReceiveAddress ( receiveAddress : EdgeReceiveAddress ) : Promise < mixed > ,
489
503
lockReceiveAddress ( receiveAddress : EdgeReceiveAddress ) : Promise < mixed > ,
504
+
505
+ // Sending:
490
506
makeSpend ( spendInfo : EdgeSpendInfo ) : Promise < EdgeTransaction > ,
491
507
signTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
492
508
broadcastTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
@@ -502,6 +518,12 @@ export type EdgeCurrencyWallet = {
502
518
paymentProtocolUrl : string
503
519
) : Promise < EdgePaymentProtocolInfo > ,
504
520
521
+ // Staking:
522
+ + stakingSettings : EdgeStakingSettings ,
523
+ changeStakingSettings : (
524
+ stakingSettings : EdgeStakingSettings
525
+ ) = > Promise < EdgeTransaction > ,
526
+
505
527
// Wallet management:
506
528
resyncBlockchain ( ) : Promise < mixed > ,
507
529
dumpData ( ) : Promise < EdgeDataDump > ,
0 commit comments