@@ -223,6 +223,11 @@ export type EdgeSpendInfo = {
223
223
otherParams ?: Object
224
224
}
225
225
226
+ export type EdgeStakingSettings = {
227
+ amountStaked : string , // native amount
228
+ delegateAddress : string
229
+ }
230
+
226
231
// query data ----------------------------------------------------------
227
232
228
233
export type EdgeDataDump = {
@@ -359,6 +364,12 @@ export type EdgeCurrencyEngine = {
359
364
paymentProtocolUrl : string
360
365
) => Promise < EdgePaymentProtocolInfo > ,
361
366
367
+ // Staking:
368
+ + stakingSettings ?: EdgeStakingSettings ,
369
+ changeStakingSettings ?: (
370
+ stakingSettings : EdgeStakingSettings
371
+ ) => Promise < EdgeTransaction > ,
372
+
362
373
// Escape hatch:
363
374
+ otherMethods ? : Object
364
375
}
@@ -492,7 +503,6 @@ export type EdgeCurrencyWallet = {
492
503
493
504
// Sending:
494
505
makeSpend ( spendInfo : EdgeSpendInfo ) : Promise < EdgeTransaction > ,
495
- makeStakeTransaction ?: ( stakeInfo : Object ) => Promise < EdgeTransaction > ,
496
506
signTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
497
507
broadcastTx ( tx : EdgeTransaction ) : Promise < EdgeTransaction > ,
498
508
saveTx ( tx : EdgeTransaction ) : Promise < mixed > ,
@@ -507,6 +517,12 @@ export type EdgeCurrencyWallet = {
507
517
paymentProtocolUrl : string
508
518
) : Promise < EdgePaymentProtocolInfo > ,
509
519
520
+ // Staking:
521
+ + stakingSettings ?: EdgeStakingSettings ,
522
+ changeStakingSettings ?: (
523
+ stakingSettings : EdgeStakingSettings
524
+ ) => Promise < EdgeTransaction > ,
525
+
510
526
// Wallet management:
511
527
resyncBlockchain ( ) : Promise < mixed > ,
512
528
dumpData ( ) : Promise < EdgeDataDump > ,
0 commit comments