Skip to content

Commit

Permalink
fix (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal authored Oct 3, 2024
1 parent ea74897 commit df3d966
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
16 changes: 16 additions & 0 deletions contracts/blade/BridgeStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,22 @@ contract BridgeStorage is ValidatorSetStorage {
}
}

/**
* @notice Returns the committed batch based on provided id
* @param id batch id
*/
function getCommittedBatch(uint256 id) external view returns (SignedBridgeMessageBatch memory) {
return batches[id];
}

/**
* @notice Returns the committed validator set based on provided id
* @param id validator set id
*/
function getCommittedValidatorSet(uint256 id) external view returns (SignedValidatorSet memory) {
return commitedValidatorSets[id];
}

// slither-disable-next-line unused-state,naming-convention
uint256[50] private __gap;
}
44 changes: 44 additions & 0 deletions docs/blade/BridgeStorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,50 @@ function currentValidatorSetLength() external view returns (uint256)
|---|---|---|
| _0 | uint256 | undefined |

### getCommittedBatch

```solidity
function getCommittedBatch(uint256 id) external view returns (struct SignedBridgeMessageBatch)
```

Returns the committed batch based on provided id



#### Parameters

| Name | Type | Description |
|---|---|---|
| id | uint256 | batch id |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | SignedBridgeMessageBatch | undefined |

### getCommittedValidatorSet

```solidity
function getCommittedValidatorSet(uint256 id) external view returns (struct SignedValidatorSet)
```

Returns the committed validator set based on provided id



#### Parameters

| Name | Type | Description |
|---|---|---|
| id | uint256 | validator set id |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | SignedValidatorSet | undefined |

### initialize

```solidity
Expand Down

0 comments on commit df3d966

Please sign in to comment.