Skip to content

Commit

Permalink
chore: setup helpers repo
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed Sep 15, 2024
1 parent 0c82555 commit 59a6392
Show file tree
Hide file tree
Showing 72 changed files with 10,143 additions and 527 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

env:
CI: true

on:
push:
branches: "*"
pull_request:
branches: "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: yarn
- name: Build
run: yarn build

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: yarn
- name: Lint
run: yarn lint

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
artifacts
cache
dist
*.log
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<h4 align="center">DeFi automation platform</h4>

<p align="center">
<a href="https://badge.fury.io/js/@mimic-fi%2Fv3-helpers">
<img src="https://badge.fury.io/js/@mimic-fi%2Fv3-helpers.svg" alt="NPM">
<a href="https://badge.fury.io/js/@mimic-fi%2Fhelpers">
<img src="https://badge.fury.io/js/@mimic-fi%2Fhelpers.svg" alt="NPM">
</a>
<a href="https://github.com/mimic-fi/v3-core/actions/workflows/ci-helpers.yml">
<img src="https://github.com/mimic-fi/v3-core/actions/workflows/ci-helpers.yml/badge.svg" alt="CI Helpers">
<a href="https://github.com/mimic-fi/helpers/actions/workflows/ci-helpers.yml">
<img src="https://github.com/mimic-fi/helpers/actions/workflows/ci-helpers.yml/badge.svg" alt="CI">
</a>
<a href="https://discord.mimic.fi">
<img alt="Discord" src="https://img.shields.io/discord/989984112397922325">
Expand All @@ -30,7 +30,7 @@

## Content

This package contains a bunch of Solidity and TypeScript helpers used among all Mimic v3 repositories.
This package contains a bunch of Solidity and TypeScript helpers used among all Mimic repositories.

## Setup

Expand All @@ -39,10 +39,10 @@ From your command line:

```bash
# Clone this repository
$ git clone https://github.com/mimic-fi/v3-core
$ git clone https://github.com/mimic-fi/helpers

# Go into the repository's package
$ cd v3-core/packages/helpers
$ cd helpers

# Install dependencies
$ yarn
Expand Down
17 changes: 0 additions & 17 deletions contracts/mocks/FeedMock.sol

This file was deleted.

2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '@nomiclabs/hardhat-waffle'

export default {
solidity: {
version: '0.8.17',
version: '0.8.20',
settings: {
optimizer: {
enabled: true,
Expand Down
6 changes: 4 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export * from './src/addresses'
export * from './src/arrays'
export * from './src/asserts'
export * from './src/blocks'
export * from './src/constants'
export * from './src/contracts'
export * from './src/mocks'
export * from './src/numbers'
export * from './src/random'
export * from './src/signers'
export * from './src/tests'
export * from './src/time'
export * from './src/types'
export * from './src/validators'
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mimic-fi/v3-helpers",
"version": "0.1.12",
"name": "@mimic-fi/helpers",
"version": "1.0.0-rc.0",
"license": "GPL-3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -15,29 +15,29 @@
"build": "yarn compile && rm -rf dist && tsc",
"compile": "hardhat compile",
"lint": "yarn lint:solidity && yarn lint:typescript",
"lint:solidity": "solhint 'contracts/**/*.sol' --config ../../node_modules/solhint-config-mimic/index.js",
"lint:solidity": "solhint 'contracts/**/*.sol' --config ./node_modules/solhint-config-mimic/index.js",
"lint:typescript": "eslint . --ext .ts",
"test": "hardhat test",
"prepare": "yarn build"
},
"dependencies": {
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-waffle": "2.0.3",
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"@types/sinon-chai": "^3.2.3",
"chai": "^4.3.7",
"@openzeppelin/contracts": "5.0.2",
"decimal.js": "~10.4.3",
"ethers": "~5.6.0",
"hardhat": "^2.14.1",
"mocha": "^6.2.3"
"hardhat": "^2.14.1"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"chai": "^4.3.7",
"eslint-config-mimic": "^0.0.2",
"ethereum-waffle": "^3.4.4",
"solhint-config-mimic": "^0.0.3",
"mocha": "^6.2.3",
"ts-node": "^10.9.1",
"typescript": "~4.3.4"
"typescript": "^5.6.2"
},
"eslintConfig": {
"extends": "eslint-config-mimic",
Expand Down
6 changes: 0 additions & 6 deletions src/addresses/chainlink/arbitrum.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/addresses/chainlink/avalanche.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/chainlink/base.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/addresses/chainlink/bsc.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/addresses/chainlink/denominations.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/addresses/chainlink/fantom.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/chainlink/gnosis.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/addresses/chainlink/goerli.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/addresses/chainlink/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/addresses/chainlink/mainnet.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/addresses/chainlink/mumbai.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/chainlink/optimism.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/addresses/chainlink/polygon.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/hop/arbitrum.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/addresses/hop/base.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/hop/gnosis.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/addresses/hop/goerli.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/addresses/hop/index.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/hop/mainnet.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/addresses/hop/mumbai.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/hop/optimism.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/addresses/hop/polygon.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/addresses/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/addresses/protocols/arbitrum.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/addresses/protocols/aurora.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/addresses/protocols/avalanche.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/addresses/protocols/base.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/addresses/protocols/bsc.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/addresses/protocols/fantom.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/addresses/protocols/gnosis.ts

This file was deleted.

Loading

0 comments on commit 59a6392

Please sign in to comment.