Skip to content

Commit 2d75299

Browse files
committed
Add an configuration
1 parent 9696072 commit 2d75299

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/types/types.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ export type EdgeSpendInfo = {
223223
otherParams?: Object
224224
}
225225

226+
export type EdgeStakingSettings = {
227+
amountStaked: string, // native amount
228+
delegateAddress: string
229+
}
230+
226231
// query data ----------------------------------------------------------
227232

228233
export type EdgeDataDump = {
@@ -359,6 +364,12 @@ export type EdgeCurrencyEngine = {
359364
paymentProtocolUrl: string
360365
) => Promise<EdgePaymentProtocolInfo>,
361366

367+
// Staking:
368+
+stakingSettings?: EdgeStakingSettings,
369+
changeStakingSettings?: (
370+
stakingSettings: EdgeStakingSettings
371+
) => Promise<EdgeTransaction>,
372+
362373
// Escape hatch:
363374
+otherMethods?: Object
364375
}
@@ -492,7 +503,6 @@ export type EdgeCurrencyWallet = {
492503

493504
// Sending:
494505
makeSpend(spendInfo: EdgeSpendInfo): Promise<EdgeTransaction>,
495-
makeStakeTransaction?: (stakeInfo: Object) => Promise<EdgeTransaction>,
496506
signTx(tx: EdgeTransaction): Promise<EdgeTransaction>,
497507
broadcastTx(tx: EdgeTransaction): Promise<EdgeTransaction>,
498508
saveTx(tx: EdgeTransaction): Promise<mixed>,
@@ -507,6 +517,12 @@ export type EdgeCurrencyWallet = {
507517
paymentProtocolUrl: string
508518
): Promise<EdgePaymentProtocolInfo>,
509519

520+
// Staking:
521+
+stakingSettings?: EdgeStakingSettings,
522+
changeStakingSettings?: (
523+
stakingSettings: EdgeStakingSettings
524+
) => Promise<EdgeTransaction>,
525+
510526
// Wallet management:
511527
resyncBlockchain(): Promise<mixed>,
512528
dumpData(): Promise<EdgeDataDump>,

0 commit comments

Comments
 (0)