Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantjn committed Jun 17, 2024
0 parents commit 60019a4
Show file tree
Hide file tree
Showing 4,580 changed files with 1,097,503 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
34 changes: 34 additions & 0 deletions foundry-app/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

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

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

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
14 changes: 14 additions & 0 deletions foundry-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Compiler files
cache/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/

# Docs
docs/

# Dotenv file
.env
9 changes: 9 additions & 0 deletions foundry-app/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/chainlink"]
path = lib/chainlink
url = https://github.com/smartcontractkit/chainlink
66 changes: 66 additions & 0 deletions foundry-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
## Foundry

**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**

Foundry consists of:

- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.

## Documentation

https://book.getfoundry.sh/

## Usage

### Build

```shell
$ forge build
```

### Test

```shell
$ forge test
```

### Format

```shell
$ forge fmt
```

### Gas Snapshots

```shell
$ forge snapshot
```

### Anvil

```shell
$ anvil
```

### Deploy

```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
```

### Cast

```shell
$ cast <subcommand>
```

### Help

```shell
$ forge --help
$ anvil --help
$ cast --help
```
1 change: 1 addition & 0 deletions foundry-app/constructor-args.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625 0x779877A7B0D9E8603169DdbD7836e478b4624789 0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c 100000000000000
6 changes: 6 additions & 0 deletions foundry-app/foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[profile.default]
src = "src"
out = "out"
libs = ["lib"]

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
8 changes: 8 additions & 0 deletions foundry-app/lib/chainlink/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
20 changes: 20 additions & 0 deletions foundry-app/lib/chainlink/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "smartcontractkit/chainlink"
}
],
"commit": false,
"fixed": [],
"linked": [],
"privatePackages": {
"version": true,
"tag": true
},
"access": "restricted",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": []
}
35 changes: 35 additions & 0 deletions foundry-app/lib/chainlink/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.git-together
.DS_Store
.envrc
*.log
node_modules/
**/node_modules/
vendor/
tmp/

contracts/node_modules
examples/

integration/
integration-scripts/
integration-tests/

tools/gethnet/datadir/geth
tools/clroot/db.bolt
tools/clroot/*.log
tools/clroot/tempkeys

core/sgx/target/

core/*.Dockerfile
chainlink

# codeship
codeship-*.yml
*.aes
dockercfg
credentials.env
gcr_creds.env

go.work
go.work.sum
1 change: 1 addition & 0 deletions foundry-app/lib/chainlink/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sol linguist-language=Solidity
5 changes: 5 additions & 0 deletions foundry-app/lib/chainlink/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Question
url: https://stackoverflow.com/questions/tagged/chainlink
about: Please ask and answer questions here.
22 changes: 22 additions & 0 deletions foundry-app/lib/chainlink/.github/ISSUE_TEMPLATE/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Development Issue
about: Report an issue encountered while working on code found in this repository.
title: '[DEVEL] <replace with issue title>'
labels: 'Development'
assignees: ''
---

**Description**
[replace this line with a clear and concise description of the development issue you are experiencing]

**Your Environment**
[replace this line with basic information about your environment, such as your operating system and the versions of any relevant tools you are using (e.g. Go, Docker)]

**Basic Information**
[replace this line with basic information about the issue you are experiencing, including but not limited to the names of the files you are working with and any relevant error messages]

**Steps to Reproduce**
[replace this line with detailed steps to reproduce the issue you are experiencing]

**Additional Information**
[replace this line with any additional information you would like to provide, such as screenshots illustrating the issue]
19 changes: 19 additions & 0 deletions foundry-app/lib/chainlink/.github/ISSUE_TEMPLATE/faucet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Faucet Issue
about: Report an issue with a Chainlink LINK Faucet.
title: '[FAUC] <replace with issue title>'
labels: 'Faucet'
assignees: ''
---

**Description**
[replace this line with a clear and concise description of the Chainlink LINK Faucet issue you are experiencing]

**Basic Information**
[replace this line with basic information about the issue you are experiencing, including but not limited to your testnet address, the name and version of your web browser and wallet, and the link to the faucet transaction on Etherscan]

**Steps to Reproduce**
[replace this line with detailed steps to reproduce the issue you are experiencing]

**Additional Information**
[replace this line with any additional information you would like to provide, such as screenshots illustrating the issue]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Request
about: Request a feature. Help us make Chainlink better!
title: '[FEAT] <replace with feature title>'
labels: 'Feature Request'
assignees: ''
---

**Description**
[replace this line with a clear and concise description of the feature you are requesting]

**Motivation**
[replace this line with a clear and concise explanation of _why_ you are requesting this feature]

**Justification**
[replace this line with a clear and concise explanation of _why_ the feature you are requesting is the best way to approach this issue and list other approaches you considered]

**Additional Information**
[replace this line with any additional information you would like to provide, such as examples or screenshots of similar features]
30 changes: 30 additions & 0 deletions foundry-app/lib/chainlink/.github/ISSUE_TEMPLATE/node-operator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Node Operator Issue
about: Report an issue encountered while operating a Chainlink node.
title: '[NODE] <replace with issue title>'
labels: 'Node Operator'
assignees: ''
---

**Description**
[replace this line with a clear and concise description of the issue you are experiencing]

**Basic Information**
[replace this line with basic information about the issue you are experiencing, including but not limited to all relevant logs and any other relevant information, such as if you are using a Docker container to run the node, job specification, oracle contract address, transaction IDs, etc.]

- Network: [e.g. Ethereum Mainnet, Ropsten]
- Blockchain Client: [name and version of blockchain client e.g. Geth v1.9.6]
- Go Version: [e.g. v1.12]
- Operating System: [name and version of operating system running Chainlink node]
- Commit: [log INFO line when starting node]
- Hosting Provider: [e.g. AWS, GCP, self-hosted]
- Startup Command: [e.g. `docker run smartcontract/chainlink local n`]

**Environment Variables**
[replace this line with the output of the environment variables when running the node in debug mode]

**Steps to Reproduce**
[replace this line with detailed steps to reproduce the issue you are experiencing]

**Additional Information**
[replace this line with any additional information you would like to provide, such as screenshots illustrating the issue]
19 changes: 19 additions & 0 deletions foundry-app/lib/chainlink/.github/ISSUE_TEMPLATE/smart-contract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Smart Contract Issue
about: Report an issue with smart contracts found in this repository.
title: '[SMRT] <replace with issue title>'
labels: 'Smart Contract'
assignees: ''
---

**Description**
[replace this line with a clear and concise description of the smart contract issue you are experiencing]

**Basic Information**
[replace this line with basic information about the issue you are experiencing, including but not limited to the names of the smart contract files and the version of the Chainlink software repository in which they are found, contract addresses, transaction IDs, etc.]

**Steps to Reproduce**
[replace this line with detailed steps to reproduce the issue you are experiencing]

**Additional Information**
[replace this line with any additional information you would like to provide, such as screenshots illustrating the issue]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Chainlink Image
description: A composite action that allows building and publishing the Chainlink image for integration testing

inputs:
tag_suffix:
description: The suffix to append to the image tag (usually blank or "-plugins")
default: ""
dockerfile:
description: The path to the Dockerfile to use (usually core/chainlink.Dockerfile or plugins/chainlink.Dockerfile)
default: core/chainlink.Dockerfile
git_commit_sha:
description: The git commit sha to use for the image tag
default: ${{ github.sha }}
AWS_REGION:
description: "AWS region to use for ECR"
AWS_ROLE_TO_ASSUME:
description: "AWS role to assume for ECR"
dep_evm_sha:
description: The chainlink-evm commit sha to use in go deps
required: false

runs:
using: composite
steps:
- name: Check if image exists
if: ${{ inputs.dep_evm_sha != '' }}
id: check-image
uses: smartcontractkit/chainlink-github-actions/docker/image-exists@5dd916d08c03cb5f9a97304f4f174820421bb946 # v2.3.11
with:
repository: chainlink
tag: ${{ inputs.git_commit_sha }}${{ inputs.tag_suffix }}
AWS_REGION: ${{ inputs.AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ inputs.AWS_ROLE_TO_ASSUME }}
- name: Build Image
if: steps.check-image.outputs.exists != 'true'
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/build-image@519851800779323566b7b7c22cc21bff95dbb639 # v2.3.14
with:
cl_repo: smartcontractkit/chainlink
cl_ref: ${{ inputs.git_commit_sha }}
cl_dockerfile: ${{ inputs.dockerfile }}
push_tag: ${{ env.CHAINLINK_IMAGE }}:${{ inputs.git_commit_sha }}${{ inputs.tag_suffix }}
QA_AWS_REGION: ${{ inputs.AWS_REGION }}
QA_AWS_ROLE_TO_ASSUME: ${{ inputs.AWS_ROLE_TO_ASSUME }}
GO_COVER_FLAG: true
dep_evm_sha: ${{ inputs.dep_evm_sha }}
- name: Print Chainlink Image Built
shell: sh
run: |
echo "### Chainlink node image tag used for this test run :link:" >>$GITHUB_STEP_SUMMARY
echo "\`${GITHUB_SHA}\`" >>$GITHUB_STEP_SUMMARY
Loading

0 comments on commit 60019a4

Please sign in to comment.