Skip to content

Commit

Permalink
Merge pull request #449 from bob-collective/feat/add_gateway_interfac…
Browse files Browse the repository at this point in the history
…es_plus_tests

feat: add gateway strategy plus test cases
  • Loading branch information
gregdhill authored Jan 30, 2025
2 parents 2c3fefa + a8b9bb8 commit 59afafa
Show file tree
Hide file tree
Showing 60 changed files with 3,214 additions and 491 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
forge build --sizes --deny-warnings
id: build
- name: Run forge tests
# Currently forked tests are disabled to increase reliability of CI builds
run: |
forge test -vvv --deny-warnings
forge test --no-match-contract Forked -vvv --deny-warnings
id: test
- name: Run forge docs
run: |
Expand Down
7 changes: 0 additions & 7 deletions docs/docs/contracts/contract_references.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/docs/contracts/src/src/SystemState.sol/library.SystemState.md

This file was deleted.

164 changes: 0 additions & 164 deletions docs/docs/contracts/src/src/bridge/BitcoinTx.sol/library.BitcoinTx.md

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions docs/docs/contracts/src/src/bridge/IRelay.sol/interface.IRelay.md

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# StrategySlippageArgs
[Git Source](https://github.com/bob-collective/bob/blob/master/src/gateway/CommonStructs.sol)


```solidity
struct StrategySlippageArgs {
uint256 amountOutMin;
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# IStrategyWithSlippageArgs
[Git Source](https://github.com/bob-collective/bob/blob/master/src/gateway/IStrategy.sol)

**Inherits:**
[IStrategy](../../gateway/IStrategy.sol/interface.IStrategy.md)


## Functions
### handleGatewayMessageWithSlippageArgs


```solidity
function handleGatewayMessageWithSlippageArgs(
IERC20 tokenSent,
uint256 amountIn,
address recipient,
StrategySlippageArgs memory args
) public virtual;
```

### handleGatewayMessage


```solidity
function handleGatewayMessage(IERC20 tokenSent, uint256 amountIn, address recipient, bytes memory message) external;
```

Loading

0 comments on commit 59afafa

Please sign in to comment.