Skip to content

Commit b91e81a

Browse files
Merge pull request holographxyz#283 from holographxyz/feature/HOLO-1480-countdown-erc721
Feature/holo 1480 countdown erc721 (WIP)
2 parents 28cfdee + 74f4c86 commit b91e81a

File tree

128 files changed

+16624
-976
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+16624
-976
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
## Describe Changes
22

3-
I made this more better by doing ...
4-
5-
- Change A
6-
- Change B
3+
-
74

85
## Checklist before requesting a review
96

107
- [ ] I have performed a self-review of my code
118
- [ ] Code styles have been enforced
12-
- [ ] All Hardhat tests are passing
139
- [ ] All Foundry tests are passing

.github/workflows/foudry_tests.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
name: Foundry tests
2-
on:
3-
push:
4-
branches:
5-
- develop
6-
pull_request:
7-
8-
env:
9-
FOUNDRY_PROFILE: ci
10-
SKIP_DEPLOY_CONFIRMATION: true
11-
HOLOGRAPH_ENVIRONMENT: develop
12-
LOCALHOST_DEPLOYER_SECRET: something
13-
DEPLOYER: ff22437ccbedfffafa93a9f1da2e8c19c1711052799acf3b58ae5bebb5c6bd7b
14-
HARDWARE_WALLET_DEPLOYER: 0x0
15-
LOCALHOST_RPC_URL: http://localhost:8545
16-
LOCALHOST2_RPC_URL: http://localhost:9545
17-
MAINNET_DEPLOYMENT_SALT: 0
18-
TESTNET_DEPLOYMENT_SALT: 0
19-
DEVELOP_DEPLOYMENT_SALT: 1000
20-
EXPERIMENTAL_DEPLOYMENT_SALT: 1000000
21-
TENDERLY_ENABLED: false
22-
DRY_RUN: false
23-
MNEMONIC: "deputy annual debris outer baby prefer mammal scene insect obtain parrot length zero detail average nation address depart stem tuition fork rocket topple kidney"
24-
25-
jobs:
26-
run-foundry-tests:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v4
30-
with:
31-
submodules: recursive
32-
33-
- name: Install Foundry
34-
uses: foundry-rs/foundry-toolchain@v1
35-
with:
36-
version: nightly
37-
38-
- name: Install tools from asdf config
39-
uses: ai/asdf-cache-action@v1
40-
41-
- name: Install deps
42-
run: pnpm install && forge install
43-
44-
- name: Run the protocol
45-
run: bash scripts/start-protocol.sh
46-
47-
- name: Run tests
48-
run: forge test -vv --no-match-test "(FFI|Fork)" --no-match-contract Fork
49-
50-
- name: Kill the anvil nodes
51-
run: bash scripts/stop-protocol.sh
1+
# name: Foundry tests
2+
# on:
3+
# push:
4+
# branches:
5+
# - develop
6+
# pull_request:
7+
8+
# env:
9+
# FOUNDRY_PROFILE: ci
10+
# SKIP_DEPLOY_CONFIRMATION: true
11+
# HOLOGRAPH_ENVIRONMENT: develop
12+
# LOCALHOST_DEPLOYER_SECRET: something
13+
# DEPLOYER: ff22437ccbedfffafa93a9f1da2e8c19c1711052799acf3b58ae5bebb5c6bd7b
14+
# HARDWARE_WALLET_DEPLOYER: 0x0
15+
# LOCALHOST_RPC_URL: http://localhost:8545
16+
# LOCALHOST2_RPC_URL: http://localhost:9545
17+
# MAINNET_DEPLOYMENT_SALT: 0
18+
# TESTNET_DEPLOYMENT_SALT: 0
19+
# DEVELOP_DEPLOYMENT_SALT: 1000
20+
# EXPERIMENTAL_DEPLOYMENT_SALT: 1000000
21+
# TENDERLY_ENABLED: false
22+
# DRY_RUN: false
23+
# MNEMONIC: "deputy annual debris outer baby prefer mammal scene insect obtain parrot length zero detail average nation address depart stem tuition fork rocket topple kidney"
24+
25+
# jobs:
26+
# run-foundry-tests:
27+
# runs-on: ubuntu-latest
28+
# steps:
29+
# - uses: actions/checkout@v4
30+
# with:
31+
# submodules: recursive
32+
33+
# - name: Install Foundry
34+
# uses: foundry-rs/foundry-toolchain@v1
35+
# with:
36+
# version: nightly
37+
38+
# - name: Install tools from asdf config
39+
# uses: ai/asdf-cache-action@v1
40+
41+
# - name: Install deps
42+
# run: pnpm install && forge install
43+
44+
# - name: Run the protocol
45+
# run: bash scripts/start-protocol.sh
46+
47+
# - name: Run tests
48+
# run: forge test -vv --no-match-test "(FFI|Fork)" --no-match-contract Fork
49+
50+
# - name: Kill the anvil nodes
51+
# run: bash scripts/stop-protocol.sh

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ lib-cov
146146
# Coverage directory used by tools like istanbul
147147
coverage
148148
*.lcov
149+
lcov.info
150+
coverage/
149151

150152
# nyc test coverage
151153
.nyc_output

.husky/pre-commit

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ echo "✅ Solidity hashes precomputed.\n\n"
2626
# ---------------------------------------------------------------------------- #
2727

2828
# ------------------------------ Natspec smells ------------------------------ #
29+
# echo "👉 Checking for missing natspecs..."
30+
# natspecSmellsOutput=$(npx @defi-wonderland/natspec-smells 2>&1)
31+
32+
# # Compare the trimmed output to "No issues found"
33+
# if [ "$natspecSmellsOutput" != "No issues found" ]; then
34+
# echo "⛔️ Missing documentation or errors have been found:"
35+
# echo "$natspecSmellsOutput"
36+
# exit 1
37+
# else
38+
# echo "✅ No missing natspecs detected.\n"
39+
# fi
40+
41+
# ------------------------------- Gas snapshot ------------------------------- #
2942
## check for env feature flag for natspec-smells. Default to true
3043
# if [ "$SKIP_NATSPEC_SMELLS" = "true" ]; then
3144
# echo "👉 Skipping natspec-smells check..."
@@ -50,4 +63,3 @@ echo "✅ Solidity hashes precomputed.\n\n"
5063
# echo "👉 Checking gas snapshots..."
5164
# npm run snapshot:check
5265
# echo "✅ Gas snapshots are up to date.\n\n"
53-

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"solidity.compileUsingRemoteVersion": "v0.8.13+commit.abaa5c0e"
3+
}

abi/develop/BatchMintMetadata.json

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "uint256",
6+
"name": "index",
7+
"type": "uint256"
8+
}
9+
],
10+
"name": "BatchMintInvalidBatchId",
11+
"type": "error"
12+
},
13+
{
14+
"inputs": [
15+
{
16+
"internalType": "uint256",
17+
"name": "tokenId",
18+
"type": "uint256"
19+
}
20+
],
21+
"name": "BatchMintInvalidTokenId",
22+
"type": "error"
23+
},
24+
{
25+
"inputs": [
26+
{
27+
"internalType": "uint256",
28+
"name": "batchId",
29+
"type": "uint256"
30+
}
31+
],
32+
"name": "BatchMintMetadataFrozen",
33+
"type": "error"
34+
},
35+
{
36+
"anonymous": false,
37+
"inputs": [
38+
{
39+
"indexed": false,
40+
"internalType": "uint256",
41+
"name": "_fromTokenId",
42+
"type": "uint256"
43+
},
44+
{
45+
"indexed": false,
46+
"internalType": "uint256",
47+
"name": "_toTokenId",
48+
"type": "uint256"
49+
}
50+
],
51+
"name": "BatchMetadataUpdate",
52+
"type": "event"
53+
},
54+
{
55+
"anonymous": false,
56+
"inputs": [],
57+
"name": "MetadataFrozen",
58+
"type": "event"
59+
},
60+
{
61+
"inputs": [
62+
{
63+
"internalType": "uint256",
64+
"name": "",
65+
"type": "uint256"
66+
}
67+
],
68+
"name": "batchFrozen",
69+
"outputs": [
70+
{
71+
"internalType": "bool",
72+
"name": "",
73+
"type": "bool"
74+
}
75+
],
76+
"stateMutability": "view",
77+
"type": "function"
78+
},
79+
{
80+
"inputs": [],
81+
"name": "getBaseURICount",
82+
"outputs": [
83+
{
84+
"internalType": "uint256",
85+
"name": "",
86+
"type": "uint256"
87+
}
88+
],
89+
"stateMutability": "view",
90+
"type": "function"
91+
},
92+
{
93+
"inputs": [
94+
{
95+
"internalType": "uint256",
96+
"name": "_index",
97+
"type": "uint256"
98+
}
99+
],
100+
"name": "getBatchIdAtIndex",
101+
"outputs": [
102+
{
103+
"internalType": "uint256",
104+
"name": "",
105+
"type": "uint256"
106+
}
107+
],
108+
"stateMutability": "view",
109+
"type": "function"
110+
}
111+
]

abi/develop/ContractMetadata.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[
2+
{
3+
"anonymous": false,
4+
"inputs": [
5+
{
6+
"indexed": false,
7+
"internalType": "string",
8+
"name": "prevURI",
9+
"type": "string"
10+
},
11+
{
12+
"indexed": false,
13+
"internalType": "string",
14+
"name": "newURI",
15+
"type": "string"
16+
}
17+
],
18+
"name": "ContractURIUpdated",
19+
"type": "event"
20+
},
21+
{
22+
"inputs": [],
23+
"name": "contractURI",
24+
"outputs": [
25+
{
26+
"internalType": "string",
27+
"name": "",
28+
"type": "string"
29+
}
30+
],
31+
"stateMutability": "view",
32+
"type": "function"
33+
},
34+
{
35+
"inputs": [
36+
{
37+
"internalType": "string",
38+
"name": "_uri",
39+
"type": "string"
40+
}
41+
],
42+
"name": "setContractURI",
43+
"outputs": [],
44+
"stateMutability": "nonpayable",
45+
"type": "function"
46+
}
47+
]

0 commit comments

Comments
 (0)