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

chore: update README + update CI workflow #3

Merged
merged 3 commits into from
Nov 4, 2024
Merged
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nerfzael
12 changes: 12 additions & 0 deletions .github/workflows/test.yml → .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ jobs:
with:
submodules: recursive

- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm

- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: Install Node.js dependencies
run: yarn

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
## Agent Vault Contracts

### Install

```shell
nvm use && nvm install
```

```shell
yarn
```

### Build

```shell
Expand All @@ -19,4 +29,4 @@ $ ./deploy/base-sepolia.sh <BASESCAN_API_KEY>
```

### Deployments
Base Sepolia: https://sepolia.basescan.org/token/0x462e21229cd5e9b2a86ac8d36ed678e0a2cdcd57
Base Sepolia: https://sepolia.basescan.org/address/0x0D00FE0cd0a5438CCD72bF14690c0783b5f9100F
7 changes: 1 addition & 6 deletions src/AgentKey.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ contract AgentKey is DecentralizedAutonomousTrust {
}

/// @dev Overrides the modifier in ContinuousOffering
modifier authorizeTransfer(
address _from,
address _to,
uint256 _value,
bool _isSell
) {
modifier authorizeTransfer(address _from, address _to, uint256 _value, bool _isSell) {
if (isStopped) {
revert("Contract is stopped");
}
Expand Down