Skip to content

Commit

Permalink
Add registry-triggered reshare requests
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Jun 6, 2023
1 parent b8a8b33 commit 39df201
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 176 deletions.
150 changes: 68 additions & 82 deletions contracts/ethereum/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@

## CasimirManager

### actionPeriod

```solidity
uint256 actionPeriod
```

User action period

### maxActionsPerPeriod

```solidity
uint256 maxActionsPerPeriod
```

Max user actions per period

### upkeepRegistrationMinimum

```solidity
Expand Down Expand Up @@ -74,14 +58,6 @@ modifier onlyUpkeep()

_Validate the caller is the upkeep contract_

### validAction

```solidity
modifier validAction()
```

_Validate a user action_

### validDeposit

```solidity
Expand Down Expand Up @@ -858,52 +834,6 @@ Get the upkeep balance
| ---- | ---- | ----------- |
| upkeepBalance | uint256 | The upkeep balance |

### getSweptBalance

```solidity
function getSweptBalance(uint256 startIndex, uint256 endIndex) public view returns (uint256 balance)
```

Get the swept balance

_Should be called off-chain_

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| startIndex | uint256 | The start index |
| endIndex | uint256 | The end index |

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| balance | uint256 | The swept balance |

### getCompoundablePoolIds

```solidity
function getCompoundablePoolIds(uint256 startIndex, uint256 endIndex) external view returns (uint32[5] poolIds)
```

Get the next five compoundable pool IDs

_Should be called off-chain_

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| startIndex | uint256 | The start index |
| endIndex | uint256 | The end index |

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| poolIds | uint32[5] | The next five compoundable pool IDs |

## CasimirPool

### poolCapacity
Expand Down Expand Up @@ -1312,6 +1242,60 @@ Fulfill the request for testing
| response | bytes | Aggregated response from the user code |
| err | bytes | Aggregated error from the user code or from the sweptStake pipeline Either response or error parameter will be set, but never both |

## CasimirViews

### constructor

```solidity
constructor(address managerAddress) public
```

### getCompoundablePoolIds

```solidity
function getCompoundablePoolIds(uint256 startIndex, uint256 endIndex) external view returns (uint32[5] poolIds)
```

Get the next five compoundable pool IDs

_Should be called off-chain_

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| startIndex | uint256 | The start index |
| endIndex | uint256 | The end index |

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| poolIds | uint32[5] | The next five compoundable pool IDs |

### getSweptBalance

```solidity
function getSweptBalance(uint256 startIndex, uint256 endIndex) public view returns (uint256 balance)
```

Get the swept balance

_Should be called off-chain_

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| startIndex | uint256 | The start index |
| endIndex | uint256 | The end index |

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| balance | uint256 | The swept balance |

## ICasimirManager

### Token
Expand Down Expand Up @@ -1723,18 +1707,6 @@ function getUpkeepAddress() external view returns (address)
function getUpkeepBalance() external view returns (uint256 upkeepBalance)
```

### getSweptBalance

```solidity
function getSweptBalance(uint256 startIndex, uint256 endIndex) external view returns (uint256)
```

### getCompoundablePoolIds

```solidity
function getCompoundablePoolIds(uint256 startIndex, uint256 endIndex) external view returns (uint32[5])
```

## ICasimirPool

### PoolConfig
Expand Down Expand Up @@ -1986,6 +1958,20 @@ function setOracleAddress(address oracleAddress) external
function mockFulfillRequest(bytes32 requestId, bytes result, bytes err) external
```

## ICasimirViews

### getCompoundablePoolIds

```solidity
function getCompoundablePoolIds(uint256 startIndex, uint256 endIndex) external view returns (uint32[5])
```

### getSweptBalance

```solidity
function getSweptBalance(uint256 startIndex, uint256 endIndex) external view returns (uint256)
```

## Types32Array

### remove
Expand Down
Loading

0 comments on commit 39df201

Please sign in to comment.