-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48a142e
commit 0c449a9
Showing
25 changed files
with
5,551 additions
and
1,503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package appmessage | ||
|
||
// GetFeeEstimateRequestMessage is an appmessage corresponding to | ||
// its respective RPC message | ||
type GetFeeEstimateRequestMessage struct { | ||
baseMessage | ||
} | ||
|
||
// Command returns the protocol command string for the message | ||
func (msg *GetFeeEstimateRequestMessage) Command() MessageCommand { | ||
return CmdGetFeeEstimateRequestMessage | ||
} | ||
|
||
// NewGetFeeEstimateRequestMessage returns a instance of the message | ||
func NewGetFeeEstimateRequestMessage() *GetFeeEstimateRequestMessage { | ||
return &GetFeeEstimateRequestMessage{} | ||
} | ||
|
||
type RPCFeeRateBucket struct { | ||
Feerate float64 | ||
EstimatedSeconds float64 | ||
} | ||
|
||
type RPCFeeEstimate struct { | ||
PriorityBucket RPCFeeRateBucket | ||
NormalBuckets []RPCFeeRateBucket | ||
LowBuckets []RPCFeeRateBucket | ||
} | ||
|
||
// GetCoinSupplyResponseMessage is an appmessage corresponding to | ||
// its respective RPC message | ||
type GetFeeEstimateResponseMessage struct { | ||
baseMessage | ||
Estimate RPCFeeEstimate | ||
|
||
Error *RPCError | ||
} | ||
|
||
// Command returns the protocol command string for the message | ||
func (msg *GetFeeEstimateResponseMessage) Command() MessageCommand { | ||
return CmdGetFeeEstimateResponseMessage | ||
} | ||
|
||
// NewGetFeeEstimateResponseMessage returns a instance of the message | ||
func NewGetFeeEstimateResponseMessage() *GetFeeEstimateResponseMessage { | ||
return &GetFeeEstimateResponseMessage{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.