Skip to content

Commit

Permalink
Add RewardDelegators field to Node struct (#99)
Browse files Browse the repository at this point in the history
This commit introduces a new field, RewardDelegators, to the Node struct within rpc_outputs.go.
  • Loading branch information
jorgecuesta authored Aug 25, 2024
1 parent dd6409e commit 0cb5a3a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions provider/rpc_outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ type DispatchOutput struct {
// Session represents session output from RPC request
type Session struct {
Header SessionHeader `json:"header"`
Key string `json:"key"`
Key string `json:"key"`
Nodes []Node `json:"nodes"`
}

Expand All @@ -188,15 +188,16 @@ type SessionHeader struct {

// Node represents node output from RPC request
type Node struct {
Address string `json:"address"`
Chains []string `json:"chains"`
Jailed bool `json:"jailed"`
PublicKey string `json:"public_key"`
ServiceURL string `json:"service_url"`
Status int `json:"status"`
Tokens string `json:"tokens"`
UnstakingTime time.Time `json:"unstaking_time"`
OutputAddress string `json:"output_address"`
Address string `json:"address"`
Chains []string `json:"chains"`
Jailed bool `json:"jailed"`
PublicKey string `json:"public_key"`
ServiceURL string `json:"service_url"`
Status int `json:"status"`
Tokens string `json:"tokens"`
UnstakingTime time.Time `json:"unstaking_time"`
OutputAddress string `json:"output_address"`
RewardDelegators map[string]uint32 `json:"reward_delegators,omitempty"`
}

// RPCError reprensents error output from RPC request
Expand Down

0 comments on commit 0cb5a3a

Please sign in to comment.