Skip to content

Commit

Permalink
nft metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinPlatt committed Aug 22, 2024
1 parent ed2d094 commit d80fa07
Show file tree
Hide file tree
Showing 230 changed files with 66,554 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "contracts/lib/openzeppelin-contracts"]
path = contracts/lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "contracts/lib/Solady"]
path = contracts/lib/Solady
url = https://github.com/Vectorized/Solady
1,322 changes: 1,322 additions & 0 deletions contracts/lib/Solady/.gas-snapshot

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions contracts/lib/Solady/.github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- Emoji Table: -->
<!-- readme/docs 📝 -->
<!-- new feature ✨ -->
<!-- refactor/cleanup ♻️ -->
<!-- nit 🥢 -->
<!-- security fix 🔒 -->
<!-- optimization ⚡️ -->
<!-- configuration 👷‍♂️ -->
<!-- events 🔊 -->
<!-- bug fix 🐞 -->
24 changes: 24 additions & 0 deletions contracts/lib/Solady/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Description

Describe the changes made in your pull request here.

## Checklist

Ensure you completed **all of the steps** below before submitting your pull request:

- [ ] Ran `forge fmt`?
- [ ] Ran `forge snapshot`?
- [ ] Ran `forge test`?

_Pull requests with an incomplete checklist will be thrown out._

<!-- Emoji Table: -->
<!-- readme/docs 📝 -->
<!-- new feature ✨ -->
<!-- refactor/cleanup ♻️ -->
<!-- nit 🥢 -->
<!-- security fix 🔒 -->
<!-- optimization ⚡️ -->
<!-- configuration 👷‍♂️ -->
<!-- events 🔊 -->
<!-- bug fix 🐞 -->
58 changes: 58 additions & 0 deletions contracts/lib/Solady/.github/workflows/ci-all-via-ir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ci-all-via-ir

on:
workflow_dispatch:

jobs:
tests:
name: Forge Testing all via-ir
runs-on: ubuntu-latest

strategy:
matrix:
profile: [via-ir-0,via-ir-1,via-ir-2,via-ir-3]

steps:
- uses: actions/checkout@v4

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

- name: Install Dependencies
run: forge install

- name: Run Tests with ${{ matrix.profile }}
run: >
( [ "${{ matrix.profile }}" = "via-ir-0" ] &&
forge test --use 0.8.4 --via-ir &&
forge test --use 0.8.5 --via-ir &&
forge test --use 0.8.6 --via-ir &&
forge test --use 0.8.7 --via-ir &&
forge test --use 0.8.8 --via-ir &&
forge test --use 0.8.9 --via-ir
) ||
( [ "${{ matrix.profile }}" = "via-ir-1" ] &&
forge test --use 0.8.13 --via-ir &&
forge test --use 0.8.12 --via-ir &&
forge test --use 0.8.11 --via-ir &&
forge test --use 0.8.10 --via-ir
) ||
( [ "${{ matrix.profile }}" = "via-ir-2" ] &&
forge test --use 0.8.14 --via-ir &&
forge test --use 0.8.15 --via-ir &&
forge test --use 0.8.16 --via-ir &&
forge test --use 0.8.17 --via-ir
) ||
( [ "${{ matrix.profile }}" = "via-ir-3" ] &&
forge test --use 0.8.26 --via-ir &&
forge test --use 0.8.25 --via-ir &&
forge test --use 0.8.24 --via-ir &&
forge test --use 0.8.23 --via-ir &&
forge test --use 0.8.22 --via-ir &&
forge test --use 0.8.21 --via-ir &&
forge test --use 0.8.20 --via-ir &&
forge test --use 0.8.19 --via-ir &&
forge test --use 0.8.18 --via-ir
)
27 changes: 27 additions & 0 deletions contracts/lib/Solady/.github/workflows/ci-invariant-intense.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci-invariant-intense

on:
workflow_dispatch:

jobs:
tests:
name: Forge Testing invariant intense
runs-on: ubuntu-latest

strategy:
matrix:
profile: [invariant-intense-0,invariant-intense-1,invariant-intense-2,invariant-intense-3]

steps:
- uses: actions/checkout@v4

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

- name: Install Dependencies
run: forge install

- name: Run Tests with ${{ matrix.profile }}
run: FOUNDRY_INVARIANT_RUNS=500 FOUNDRY_INVARIANT_DEPTH=500 forge test
33 changes: 33 additions & 0 deletions contracts/lib/Solady/.github/workflows/ci-super-intense.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci-super-intense

on:
workflow_dispatch:

jobs:
tests:
name: Forge Testing super intense
runs-on: ubuntu-latest

strategy:
matrix:
profile: [super-intense-0,super-intense-1]

steps:
- uses: actions/checkout@v4

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

- name: Install Dependencies
run: forge install

- name: Run Tests with ${{ matrix.profile }}
run: >
( [ "${{ matrix.profile }}" = "super-intense-0" ] &&
forge test --fuzz-runs 20000
) ||
( [ "${{ matrix.profile }}" = "super-intense-1" ] &&
forge test --fuzz-runs 200000
)
36 changes: 36 additions & 0 deletions contracts/lib/Solady/.github/workflows/ci-wake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci - Wake

on:
workflow_dispatch:

jobs:
tests:
name: Wake Testing
runs-on: ubuntu-latest

strategy:
matrix:
profile: [via-ir-off, via-ir-on]

steps:
- uses: actions/checkout@v4

- name: Setup Wake
uses: Ackee-Blockchain/[email protected]

- name: Install Dependencies
run: forge install

- name: Move Wake test files
run: mv ext/wake tests && mv tests/wake.toml .

- name: Generate pytypes with via-ir-on
if: ${{ matrix.profile }} == 'via-ir-on'
run: wake init pytypes --via-ir

- name: Generate pytypes with via-ir-off
if: ${{ matrix.profile }} == 'via-ir-off'
run: wake init pytypes --no-via-ir

- name: Run tests
run: wake test
97 changes: 97 additions & 0 deletions contracts/lib/Solady/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: ci

on:
pull_request:
branches: [main]
paths:
- '**.sol'
- '**.yml'
push:
branches: [main]
paths:
- '**.sol'
- '**.yml'
jobs:
tests:
name: Forge Testing
runs-on: ubuntu-latest

strategy:
matrix:
profile: [post-cancun,post-cancun-via-ir,solc-past-versions-0,solc-past-versions-1,via-ir,min-solc,min-solc-via-ir,intense]

steps:
- uses: actions/checkout@v4

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

- name: Install Dependencies
run: forge install

- name: Run Tests with ${{ matrix.profile }}
run: >
( [ "${{ matrix.profile }}" = "post-cancun" ] &&
forge test --use 0.8.26 --evm-version "cancun"
) ||
( [ "${{ matrix.profile }}" = "post-cancun-via-ir" ] &&
forge test --use 0.8.26 --evm-version "cancun" --via-ir
) ||
( [ "${{ matrix.profile }}" = "solc-past-versions-0" ] &&
forge test --use 0.8.5 --fuzz-runs 16 &&
forge test --use 0.8.6 --fuzz-runs 16 &&
forge test --use 0.8.7 --fuzz-runs 16 &&
forge test --use 0.8.8 --fuzz-runs 16 &&
forge test --use 0.8.9 --fuzz-runs 16 &&
forge test --use 0.8.10 --fuzz-runs 16 &&
forge test --use 0.8.11 --fuzz-runs 16 &&
forge test --use 0.8.12 --fuzz-runs 16
) ||
( [ "${{ matrix.profile }}" = "solc-past-versions-1" ] &&
forge test --use 0.8.13 --fuzz-runs 16 &&
forge test --use 0.8.14 --fuzz-runs 16 &&
forge test --use 0.8.15 --fuzz-runs 16 &&
forge test --use 0.8.16 --fuzz-runs 16 &&
forge test --use 0.8.17 --fuzz-runs 16 &&
forge test --use 0.8.18 --fuzz-runs 16 &&
forge test --use 0.8.19 --fuzz-runs 16 &&
forge test --use 0.8.20 --fuzz-runs 16 &&
forge test --use 0.8.21 --fuzz-runs 16 &&
forge test --use 0.8.22 --fuzz-runs 16 &&
forge test --use 0.8.23 --fuzz-runs 16 &&
forge test --use 0.8.24 --fuzz-runs 16 &&
forge test --use 0.8.25 --fuzz-runs 16
) ||
( [ "${{ matrix.profile }}" = "via-ir" ] &&
forge test --via-ir
) ||
( [ "${{ matrix.profile }}" = "min-solc" ] &&
forge fmt --check &&
forge test --use 0.8.4
) ||
( [ "${{ matrix.profile }}" = "min-solc-via-ir" ] &&
forge test --use 0.8.4 --via-ir
) ||
( [ "${{ matrix.profile }}" = "intense" ] &&
forge test --fuzz-runs 5000
)
codespell:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run codespell
uses: codespell-project/[email protected]
with:
check_filenames: true
ignore_words_list: usera
skip: ./.git,package-lock.json,ackee-blockchain-solady-report.pdf,EIP712Mock.sol
41 changes: 41 additions & 0 deletions contracts/lib/Solady/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# NodeJS files
node_modules/
coverage
coverage.json
typechain

# Hardhat files
cache
artifacts

cache/
out/

# Ignore Environment Variables!
.env
.env.prod

# Ignore all vscode settings
.vscode/

# Ignore all jetbrain settings
.idea/

# Ignore all notes
notes/

# Ignore flattened files
flattened.txt

broadcast

# Coverage
lcov.info

# Woke testing
.wake
pytypes
__pycache__/
*.py[cod]
.hypothesis/
wake-coverage.cov
21 changes: 21 additions & 0 deletions contracts/lib/Solady/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Solady.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit d80fa07

Please sign in to comment.