Skip to content

Commit

Permalink
Add SpentBy field to client.Vtxo (ark-network#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan authored Sep 2, 2024
1 parent e46f2ce commit b5e1ea4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/client-sdk/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ type Vtxo struct {
RedeemTx string
UnconditionalForfeitTxs []string
Pending bool
SpentBy string
}

type Output struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/client-sdk/client/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ func (v vtxo) toVtxo() client.Vtxo {
Pending: v.GetPending(),
RedeemTx: redeemTx,
UnconditionalForfeitTxs: uncondForfeitTxs,
SpentBy: v.GetSpentBy(),
}
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/client-sdk/client/rest/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func (a *restClient) ListVtxos(
Pending: v.Pending,
RedeemTx: redeemTx,
UnconditionalForfeitTxs: uncondForfeitTxs,
SpentBy: v.SpentBy,
})
}

Expand Down Expand Up @@ -196,6 +197,7 @@ func (a *restClient) ListVtxos(
Amount: uint64(amount),
RoundTxid: v.PoolTxid,
ExpiresAt: expiresAt,
SpentBy: v.SpentBy,
})
}

Expand Down

0 comments on commit b5e1ea4

Please sign in to comment.