Skip to content

Commit

Permalink
Merge branch 'its-happening'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Oct 21, 2023
2 parents 91c929a + f845008 commit 0984d39
Show file tree
Hide file tree
Showing 13 changed files with 1,542 additions and 628 deletions.
17 changes: 14 additions & 3 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"go.sia.tech/core/types"
"go.sia.tech/walletd/wallet"
)

// A GatewayPeer is a currently-connected peer.
Expand All @@ -19,6 +18,18 @@ type GatewayPeer struct {
SyncDuration time.Duration `json:"syncDuration"`
}

// TxpoolBroadcastRequest is the request type for /txpool/broadcast.
type TxpoolBroadcastRequest struct {
Transactions []types.Transaction `json:"transactions"`
V2Transactions []types.V2Transaction `json:"v2transactions"`
}

// TxpoolTransactionsResponse is the response type for /txpool/transactions.
type TxpoolTransactionsResponse struct {
Transactions []types.Transaction `json:"transactions"`
V2Transactions []types.V2Transaction `json:"v2transactions"`
}

// WalletBalanceResponse is the response type for /wallets/:name/balance.
type WalletBalanceResponse struct {
Siacoins types.Currency `json:"siacoins"`
Expand All @@ -27,8 +38,8 @@ type WalletBalanceResponse struct {

// WalletOutputsResponse is the response type for /wallets/:name/outputs.
type WalletOutputsResponse struct {
SiacoinOutputs []wallet.SiacoinElement `json:"siacoinOutputs"`
SiafundOutputs []wallet.SiafundElement `json:"siafundOutputs"`
SiacoinOutputs []types.SiacoinElement `json:"siacoinOutputs"`
SiafundOutputs []types.SiafundElement `json:"siafundOutputs"`
}

// WalletReserveRequest is the request type for /wallets/:name/reserve.
Expand Down
Loading

0 comments on commit 0984d39

Please sign in to comment.