Skip to content

Commit

Permalink
Merge pull request #26 from Layr-Labs/sm-proofFix
Browse files Browse the repository at this point in the history
fix: update types on Proof message to be correct
  • Loading branch information
seanmcgary authored Feb 5, 2025
2 parents 102b043 + bb7c9d0 commit e26096a
Show file tree
Hide file tree
Showing 5 changed files with 695 additions and 686 deletions.
10 changes: 5 additions & 5 deletions gen/api-ts/eigenlayer/sidecar/v1/rewards/rewards.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export enum AvsRewardreward_type {

export type EarnerLeaf = {
earner?: string
earnerTokenRoot?: string
earnerTokenRoot?: Uint8Array
}

export type TokenLeaf = {
Expand All @@ -40,13 +40,13 @@ export type TokenLeaf = {
}

export type Proof = {
root?: string
root?: Uint8Array
rootIndex?: number
earnerIndex?: number
earnerTreeProof?: string
earnerTreeProof?: Uint8Array
earnerLeaf?: EarnerLeaf
leafIndices?: number[]
tokenTreeProofs?: string[]
tokenIndices?: number[]
tokenTreeProofs?: Uint8Array[]
tokenLeaves?: TokenLeaf[]
}

Expand Down
17 changes: 11 additions & 6 deletions gen/openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,8 @@
"type": "string"
},
"earnerTokenRoot": {
"type": "string"
"type": "string",
"format": "byte"
}
}
},
Expand Down Expand Up @@ -2098,7 +2099,8 @@
"type": "object",
"properties": {
"root": {
"type": "string"
"type": "string",
"format": "byte"
},
"rootIndex": {
"type": "integer",
Expand All @@ -2109,12 +2111,13 @@
"format": "int64"
},
"earnerTreeProof": {
"type": "string"
"type": "string",
"format": "byte"
},
"earnerLeaf": {
"$ref": "#/definitions/rewardsEarnerLeaf"
},
"leafIndices": {
"tokenIndices": {
"type": "array",
"items": {
"type": "integer",
Expand All @@ -2124,7 +2127,8 @@
"tokenTreeProofs": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "byte"
}
},
"tokenLeaves": {
Expand All @@ -2134,7 +2138,8 @@
"$ref": "#/definitions/rewardsTokenLeaf"
}
}
}
},
"title": "Proof closely models the IRewardsCoordinatorRewardsMerkleClaim interface found\nin the RewardsCoordinator contract"
},
"rewardsReward": {
"type": "object",
Expand Down
Loading

0 comments on commit e26096a

Please sign in to comment.