Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gateway strategy plus test cases #449

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading