Skip to content

Commit

Permalink
Merge pull request #4 from rainlanguage/2024-10-15-legal
Browse files Browse the repository at this point in the history
add nix flake
  • Loading branch information
thedavidmeister authored Oct 15, 2024
2 parents 84a0638 + 903b091 commit 3cbe204
Show file tree
Hide file tree
Showing 24 changed files with 625 additions and 179 deletions.
22 changes: 11 additions & 11 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
LibChainlinkNegativePriceTest:testNegativePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 13107, ~: 13134)
LibChainlinkNegativePriceTest:testPositivePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 12221, ~: 12137)
LibChainlinkNegativePriceTest:testZeroPrice(uint256,uint256,uint256,uint256,uint8) (runs: 2048, μ: 8983, ~: 8921)
LibChainlinkPriceTest:testPrice(uint256,uint256,uint80,int256,uint256,uint256,uint80,uint8) (runs: 2048, μ: 16754, ~: 16660)
LibChainlinkScalingTest:testScaling(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 12569, ~: 12499)
LibChainlinkScalingTest:testScalingNoSaturation(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 12547, ~: 12477)
LibChainlinkScalingTest:testScalingNoSaturationOverflow(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 13301, ~: 12862)
LibChainlinkStalePriceTest:testNonStalePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 12201, ~: 12116)
LibChainlinkStalePriceTest:testStalePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 12927, ~: 13081)
LibChainlinkStalePriceTest:testStalePriceFutureUpdatedAt(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 10879, ~: 10833)
LibChainlinkStalePriceTest:testStalePriceZeroStaleAfter(uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 11071, ~: 11009)
LibChainlinkNegativePriceTest:testNegativePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2049, μ: 12876, ~: 13177)
LibChainlinkNegativePriceTest:testPositivePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2050, μ: 11830, ~: 11641)
LibChainlinkNegativePriceTest:testZeroPrice(uint256,uint256,uint256,uint256,uint8) (runs: 2050, μ: 9394, ~: 9431)
LibChainlinkPriceTest:testPrice(uint256,uint256,uint80,int256,uint256,uint256,uint80,uint8) (runs: 2049, μ: 16888, ~: 16717)
LibChainlinkScalingTest:testScaling(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2050, μ: 12464, ~: 12330)
LibChainlinkScalingTest:testScalingNoSaturation(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2050, μ: 12487, ~: 12353)
LibChainlinkScalingTest:testScalingNoSaturationOverflow(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2048, μ: 13428, ~: 13638)
LibChainlinkStalePriceTest:testNonStalePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2049, μ: 11000, ~: 10995)
LibChainlinkStalePriceTest:testStalePrice(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2049, μ: 11611, ~: 11683)
LibChainlinkStalePriceTest:testStalePriceFutureUpdatedAt(uint256,uint256,uint256,int256,uint256,uint8) (runs: 2049, μ: 10109, ~: 9931)
LibChainlinkStalePriceTest:testStalePriceZeroStaleAfter(uint256,uint256,int256,uint256,uint8) (runs: 2049, μ: 10270, ~: 10091)
27 changes: 0 additions & 27 deletions .github/workflows/docs.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/rainix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rainix CI
on: [push]

jobs:
rainix:
strategy:
matrix:
os: [ubuntu-latest]
task: [rainix-sol-test, rainix-sol-static, rainix-sol-legal]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- run: nix develop -c rainix-sol-prelude
- name: Run ${{ matrix.task }}
env:
ETH_RPC_URL: ${{ secrets.CI_DEPLOY_RPC_URL }}
ETHERSCAN_API_KEY: ${{ secrets.EXPLORER_VERIFICATION_KEY }}
run: nix develop -c ${{ matrix.task }}
17 changes: 0 additions & 17 deletions .github/workflows/slither.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/snapshot.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/test.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "lib/rain.math.fixedpoint"]
path = lib/rain.math.fixedpoint
url = https://github.com/rainprotocol/rain.math.fixedpoint
[submodule "lib/chainlink"]
path = lib/chainlink
url = https://github.com/smartcontractkit/chainlink
1 change: 1 addition & 0 deletions LICENSE
Loading

0 comments on commit 3cbe204

Please sign in to comment.