Skip to content

Commit

Permalink
Merge pull request #2 from nomad-xyz/imti/prep-for-npm-package
Browse files Browse the repository at this point in the history
chore: add basic package.json, change solidity version
  • Loading branch information
prestwich authored May 24, 2022
2 parents 9c3f86c + 7334461 commit 5982c8e
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: [push]

name: test

jobs:
check:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run tests @ 0.8.13
run: forge test -vvv --use 0.8.13

- name: Run tests @ 0.7.6
run: forge test -vvv --use 0.7.6

- name: Run snapshot
run: forge snapshot
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "/Users/james/devel/ExcessivelySafeCall/lib/ds-test"]
path = /Users/james/devel/ExcessivelySafeCall/lib/ds-test
path = lib/ds-test
url = https://github.com/dapphub/ds-test
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

### Unreleased

### 0.0.1-rc.1

- first release
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@nomad-xyz/excessively-safe-call",
"version": "0.0.1-rc.1",
"description": "Helps you call untrusted contracts safely",
"keywords": [
"nomad",
"excessively safe call"
],
"homepage": "https://github.com/nomad-xyz/ExcessivelySafeCall#readme",
"bugs": {
"url": "https://github.com/nomad-xyz/ExcessivelySafeCall/issues"
},
"repository": {
"type": "git",
"url": "[email protected]:nomad-xyz/ExcessivelySafeCall.git"
},
"license": "Apache-2.0 OR MIT",
"author": "Illusory Systems Inc.",
"main": "src/ExcessivelySafeCall.sol",
"files": [
"src/ExcessivelySafeCall.sol"
]
}
2 changes: 1 addition & 1 deletion src/ExcessivelySafeCall.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.10;
pragma solidity >=0.7.6;

library ExcessivelySafeCall {
uint256 constant LOW_28_MASK =
Expand Down
2 changes: 1 addition & 1 deletion src/test/ExcessivelySafeCall.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;
pragma solidity >=0.7.6;

import "ds-test/test.sol";
import "src/ExcessivelySafeCall.sol";
Expand Down

0 comments on commit 5982c8e

Please sign in to comment.