Skip to content

Commit

Permalink
Enhancement/unassigned/custom payload marshaller (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiesBlade authored Mar 30, 2024
1 parent 2d3605a commit d105b1a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1,304 deletions.
3 changes: 3 additions & 0 deletions pkg/pokt/pokt_v0/models/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ type SendRelayResponse struct {
Response string `json:"response"`
}

// ffjson: skip
type Payload struct {
Data string `json:"data"`
Method string `json:"method"`
Path string `json:"path"`
Headers map[string]string `json:"headers"`
}

// ffjson: skip
type Relay struct {
Payload *Payload `json:"payload"`
Metadata *RelayMeta `json:"meta"`
Expand All @@ -44,6 +46,7 @@ type RelayMeta struct {
}

// RelayProof represents proof of a relay
// ffjson: skip
type RelayProof struct {
Entropy uint64 `json:"entropy"`
SessionBlockHeight uint `json:"session_block_height"`
Expand Down
Loading

0 comments on commit d105b1a

Please sign in to comment.