Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/release testnet to mainnet 2024 08 26 #356

Closed
wants to merge 389 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
389 commits
Select commit Hold shift + click to select a range
791e8e9
add script to encrypt custom contract batch ranges
BravoNatalie Apr 17, 2024
2d1a01e
add new customErc721 changes
BravoNatalie Apr 30, 2024
5d76b2d
separate script files
BravoNatalie Apr 30, 2024
79e3801
First pass at logic for setting the metadata params
alexanderattar Apr 30, 2024
d92da6f
Clean up metadata storage params and add setMetadataParams test
alexanderattar Apr 30, 2024
45bfd20
Minor cleanup
alexanderattar Apr 30, 2024
f5df9f2
add CountdownERC721 deploy script
BravoNatalie Apr 30, 2024
8373bf3
Add latest deployments and updates to deploy scripts
alexanderattar Apr 30, 2024
17b1fb6
add new scripts to interact with the CountdownERC721
BravoNatalie Apr 30, 2024
76a9c10
changed README.md copy. moved files
sogoiii May 2, 2024
e01ba6f
add script to encrypt custom contract batch ranges
BravoNatalie Apr 17, 2024
848ee7a
add new customErc721 changes
BravoNatalie Apr 30, 2024
dd0a961
separate script files
BravoNatalie Apr 30, 2024
5c31c19
add CountdownERC721 deploy script
BravoNatalie Apr 30, 2024
6b57c31
Add latest deployments and updates to deploy scripts
alexanderattar Apr 30, 2024
c4a2150
add new scripts to interact with the CountdownERC721
BravoNatalie Apr 30, 2024
af9783e
changed README.md copy. moved files
sogoiii May 2, 2024
5631c8e
add setMetadataParams script
BravoNatalie May 2, 2024
6316897
fix imports
BravoNatalie May 2, 2024
59aca69
feat: improve start protocol script
Yashiru May 2, 2024
f0324cd
Merge pull request #272 from holographxyz/feature/holo-1495-customcon…
alexanderattar May 2, 2024
d1c9ba8
Merge pull request #293 from holographxyz/feature/1480-set-metadata-p…
alexanderattar May 2, 2024
6d9309e
Merge branch 'feature/HOLO-1480-countdown-erc721' into feature/holo-1…
alexanderattar May 2, 2024
ed4f7c6
Merge pull request #296 from holographxyz/feature/holo-1480-countdown…
alexanderattar May 2, 2024
76d5558
Add latest deployment of CountdownERC721
alexanderattar May 2, 2024
e07fe25
feat: added coverage generation script (WIP)
Yashiru May 2, 2024
055c916
feat: PoC getOwner fix
Yashiru May 2, 2024
e92d81b
feat: removed price oracle features
Yashiru May 3, 2024
895ab0e
Fix: mintEthPrice
Yashiru May 3, 2024
9a177ef
feat: ICountdownERC721 interface
Yashiru May 3, 2024
a6f3dc8
test: initial values
Yashiru May 6, 2024
0a2e42d
test: new view tests
Yashiru May 6, 2024
f43f1cc
Merge branch 'feature/HOLO-1480-countdown-erc721' into feature/HOLO-1…
Yashiru May 6, 2024
78dce39
Revert "feat: PoC getOwner fix"
Yashiru May 7, 2024
23c0321
feat: removed get owner PoC
Yashiru May 7, 2024
ca579dc
Merge pull request #297 from holographxyz/feature/HOLO-1480-countdown…
Yashiru May 7, 2024
1dcddae
Hotfix to make the test data consistent for tokenURI
alexanderattar May 7, 2024
69d2923
Merge branch 'feature/HOLO-1480-countdown-erc721' into feature/HOLO-1…
alexanderattar May 7, 2024
e80e1bb
Replace totalCost with mintEthPrice in purchase tests
alexanderattar May 7, 2024
5c98514
Merge pull request #299 from holographxyz/feature/HOLO-1480-remove-or…
alexanderattar May 7, 2024
5653082
add safe sdk to setMetadataParams script
BravoNatalie May 3, 2024
2c17a92
remove price oracle call from purchase script
BravoNatalie May 4, 2024
7aca93c
fix: tokenUrI test
Yashiru May 8, 2024
7f9c567
Merge branch 'develop' into feature/HOLO-1480-countdown-erc721
alexanderattar May 13, 2024
dc6e729
Fix issues with package.json
alexanderattar May 13, 2024
a656597
Sync foundry.toml to be the same as develop and regenerate pnpm lockfile
alexanderattar May 14, 2024
4356bc3
test: check the decoded token uri
Yashiru May 14, 2024
6683aae
Prettier
alexanderattar May 14, 2024
f09b04b
Merge pull request #305 from holographxyz/feature/HOLO-1480-token-uri…
alexanderattar May 14, 2024
8ddc21d
modify the mocks addresses by deployment
fgregoribattista May 14, 2024
74f4c86
Fix onlyMinter tests in CustomERC721
alexanderattar May 15, 2024
b91e81a
Merge pull request #283 from holographxyz/feature/HOLO-1480-countdown…
alexanderattar May 15, 2024
87353fa
Add HolographLegacyERC721, register the template, and update mock add…
alexanderattar May 15, 2024
b55670d
Make suggested changes and add natspec comments to the functions miss…
alexanderattar May 15, 2024
3f8a84a
Update logs to reflect the HolographLegacyERC721 name
alexanderattar May 15, 2024
7bc5637
Update another log in the 05_erc721 deploy script
alexanderattar May 15, 2024
4d738c5
Add HolographLegacyERC721 deployments for develop env
alexanderattar May 16, 2024
b4545f9
rewrite faucet test
fgregoribattista May 16, 2024
1a547bc
Add latest base sepolia deployment for HolographLegacyERC721
alexanderattar May 16, 2024
afbc415
Create /10_holograph_tests.t.sol
mmvazzano May 16, 2024
beed364
Update 10_holograph_tests.t.sol
mmvazzano May 16, 2024
52d75e8
Reenable the faucet deploy script
alexanderattar May 16, 2024
5ef245c
Add sample erc20 back to the dependencies
alexanderattar May 16, 2024
548e349
Move faucet deploy script to the end of the pipeline
alexanderattar May 16, 2024
b20b00e
uncomment test in git workflow
fgregoribattista May 16, 2024
139d131
Merge pull request #310 from holographxyz/hotfix/reenable-faucet-depl…
alexanderattar May 17, 2024
ac7c8b4
Add comments to 10_holograph_tests.t.sol
mmvazzano May 17, 2024
faf3f33
Add origin address
mmvazzano May 20, 2024
59cb2f4
Merge pull request #309 from Think-and-Dev/rewrite/faucetTest
sogoiii May 21, 2024
dfab545
Merge pull request #312 from Think-and-Dev/rewrite_10_holograph_tests
sogoiii May 21, 2024
1b4675d
Add HolographLegacyERC721, register the template, and update mock add…
alexanderattar May 15, 2024
87d6f8f
Make suggested changes and add natspec comments to the functions miss…
alexanderattar May 15, 2024
393d3eb
Update logs to reflect the HolographLegacyERC721 name
alexanderattar May 15, 2024
493db4a
Update another log in the 05_erc721 deploy script
alexanderattar May 15, 2024
8ada892
Add HolographLegacyERC721 deployments for develop env
alexanderattar May 16, 2024
0e8a946
Add latest base sepolia deployment for HolographLegacyERC721
alexanderattar May 16, 2024
3c20072
Merge branch 'feature/HOLO-1491-sunset-cxip-erc721' of github.com:hol…
alexanderattar May 21, 2024
4575cc7
Reenable typechain-types in deploy scripts
alexanderattar May 21, 2024
8fc8860
Add 15_holograph_registry_tests.t.sol
mmvazzano May 21, 2024
12e25b6
Add back the hardhat typechain import in the hardhat config
alexanderattar May 21, 2024
e8752ed
Merge pull request #308 from holographxyz/feature/HOLO-1491-sunset-cx…
sogoiii May 21, 2024
75323e0
Add NatSpect comments to 15_holograph_registry_tests.t.sol
mmvazzano May 22, 2024
9e826f2
Remove constants out of the tests
mmvazzano May 22, 2024
099a140
Add NatSpect comments to auxiliary functions
mmvazzano May 22, 2024
7b4f6cd
wi
fgregoribattista May 22, 2024
e602ced
Add library RandomAddress to Utils.sol
mmvazzano May 23, 2024
7ef59b6
Add getZeroAddress to Constants.sol
mmvazzano May 23, 2024
7aaf99a
Include suggested changes in the review in 15_holograph_registry_test…
mmvazzano May 23, 2024
f92cfa0
Update comment in setUp() function
mmvazzano May 23, 2024
552a2f6
Merge remote-tracking branch 'origin/develop' into rewrite_15_hologra…
mmvazzano May 24, 2024
a777f7c
Fix: Update expectedHolographableContractsCount value
mmvazzano May 24, 2024
b960fc7
update helper to library
fgregoribattista May 27, 2024
0a98886
wi
fgregoribattista May 27, 2024
8b3a2dd
fix: prettier
mmvazzano May 28, 2024
a98a84f
Create 12_holograph_genesis_tests.t.sol
mmvazzano May 28, 2024
36ffa0a
Merge pull request #314 from Think-and-Dev/rewrite_15_holograph_regis…
alexanderattar May 28, 2024
e2bbdf2
Update 12_holograph_genesis_tests.t.sol
mmvazzano May 29, 2024
d64dcc4
update helper to deployment config
fgregoribattista May 29, 2024
8e33316
update test
fgregoribattista May 29, 2024
72411cf
fix prettier
fgregoribattista May 29, 2024
2761b17
Merge branch 'develop' of github.com:Think-and-Dev/holograph-protocol…
fgregoribattista May 29, 2024
68f7170
refact sign uses
fgregoribattista May 29, 2024
0e4ce24
add sign helper
fgregoribattista May 29, 2024
51ab57b
Update Constants.sol
mmvazzano May 29, 2024
67e76c8
Create 16_holograph_treasury_tests.t.sol
mmvazzano May 29, 2024
b78759c
Update comments
mmvazzano May 29, 2024
fb41797
update comment.
fgregoribattista May 29, 2024
b901a67
change name and add natspec
fgregoribattista May 29, 2024
a8a6039
fix: typos
mmvazzano May 30, 2024
bd26cee
fix: update function names
mmvazzano May 30, 2024
2454616
fix review
fgregoribattista May 30, 2024
56ca3a0
Add FUNDING.json
alexanderattar May 31, 2024
960c62c
Merge pull request #323 from holographxyz/feature/FUNDING.json
alexanderattar May 31, 2024
b836ccb
fix skip test
fgregoribattista May 31, 2024
bb1171f
Update LICENSE to set global license type to MIT
alexanderattar May 31, 2024
d986ac3
Merge pull request #324 from holographxyz/feature/update-license
alexanderattar May 31, 2024
0cc12bc
add netspec to helpers functions
fgregoribattista May 31, 2024
e7a11cb
test/foundry/deploy/17_holographer_tests.t.sol
mmvazzano Jun 3, 2024
8337d81
Merge pull request #320 from Think-and-Dev/migration/holographFactory…
alexanderattar Jun 3, 2024
d984076
Merge pull request #321 from Think-and-Dev/rewrite_16_holograph_treas…
alexanderattar Jun 3, 2024
f5a5ff1
fix name function
fgregoribattista Jun 4, 2024
fb6f01d
Update deploy/17_holographer_tests.t.sol
mmvazzano Jun 4, 2024
ca7ba5c
Merge pull request #319 from Think-and-Dev/rewrite_12_holograph_genes…
alexanderattar Jun 4, 2024
53ac7a6
Merge branch 'develop' of github.com:Think-and-Dev/holograph-protocol…
fgregoribattista Jun 4, 2024
32f82c3
Add 19_ERC721H_tests.t.sol
mmvazzano Jun 5, 2024
dede6ce
Update comments
mmvazzano Jun 5, 2024
cb8367b
restore files from branch:rewrite_05_cross-chain_configuration_tests_…
fgregoribattista Jun 6, 2024
4ed6213
Update Constants.sol
mmvazzano Jun 10, 2024
fa4be8e
Create 20_royalities_tests.t.sol
mmvazzano Jun 10, 2024
fbcf453
Merge pull request #325 from Think-and-Dev/rewrite_17_holographer_tests
sogoiii Jun 10, 2024
22d1dc3
add supportsInterface mising test
djaciel Jun 10, 2024
8d50770
add the test to internals functions
fgregoribattista Jun 11, 2024
b048275
Update comments 20_royalities_tests.t.sol
mmvazzano Jun 11, 2024
baf5904
Merge pull request #327 from Think-and-Dev/rewrite_19_ERC721H_tests
sogoiii Jun 11, 2024
de94ccd
fix error deploying MockLZEndpoint for localhost
djaciel May 30, 2024
d6ae506
add MockLZEndpoint and LayerZeroModuleProxy address to constants
djaciel May 30, 2024
35f13e0
refactor HelperDeploymentConfig to include getERC20 function
djaciel May 30, 2024
67fa368
add cross chain minting test
djaciel May 30, 2024
76c031b
add deploy chain2 equivalent on chain1 for SampleERC20
djaciel May 30, 2024
1682db9
add test SampleERC721 deploy chain1 equivalent on chain2
djaciel May 30, 2024
1d687c8
add test SampleERC721 deploy chain2 equivalent on chain1
djaciel May 30, 2024
c6891f8
start migration of CxipERC721 test
djaciel May 30, 2024
05716c4
add CxipERC721 migration test
djaciel Jun 2, 2024
5c08a4d
add Htoken migration test
djaciel Jun 2, 2024
2d434ad
migrate SampleERC721 - check current state 06 test
djaciel Jun 2, 2024
469ba54
fix SampleERC721 - check current state test
djaciel Jun 4, 2024
87c15f4
add validate mint functionality tests2
djaciel Jun 4, 2024
616b3de
add cross chain minting test
djaciel Jun 5, 2024
8c02e67
add beaming from chain2 to chain1 should succeed test
djaciel Jun 5, 2024
33bdc77
add token uri validation
djaciel Jun 5, 2024
7c010e6
add gas calculations and hToken balance tests
djaciel Jun 6, 2024
12ee9fd
add token beaming from chain1 to chain2 should fail and recover test
djaciel Jun 6, 2024
b5589f4
add operator to call executeJob method
djaciel Jun 6, 2024
21811ba
code improvements test cross chain minting test
djaciel Jun 7, 2024
f4fab2c
fix htoken test
djaciel Jun 8, 2024
867a3f1
add netscape comments
djaciel Jun 8, 2024
992373a
fix on 17 holographer test
djaciel Jun 10, 2024
7d1c26d
format code
djaciel Jun 11, 2024
4e5f236
Run prettier
mmvazzano Jun 12, 2024
4b3ad04
Refactor 10_holograph_tests.t.sol and update comments
mmvazzano Jun 12, 2024
d2218e3
update ERC20Mock and MockERC721Receiver address on Constants
djaciel Jun 12, 2024
63a7150
Merge pull request #329 from Think-and-Dev/migration/05_cross-chain_c…
sogoiii Jun 12, 2024
65dd4f6
Merge branch 'develop' into migration/crossChainMintingTest
djaciel Jun 13, 2024
7de6247
fix: Add argument to getDeployConfigERC721 function call
mmvazzano Jun 14, 2024
7073430
Refactor 15_holograph_registry_tests.t.sol
mmvazzano Jun 14, 2024
1775a80
Update Constants.sol
mmvazzano Jun 14, 2024
6a6c10c
fix: update zeroAddress
mmvazzano Jun 14, 2024
1a735fa
Refactor /12_holograph_genesis_tests.t.sol
mmvazzano Jun 14, 2024
7512940
Merge pull request #322 from Think-and-Dev/migration/crossChainMintin…
sogoiii Jun 16, 2024
b176b93
Merge pull request #330 from holographxyz/rewrite_20_royalities_tests
sogoiii Jun 16, 2024
7b23033
Merge pull request #331 from holographxyz/migration/addErc721Enforcer…
sogoiii Jun 16, 2024
296b056
Update Constants.sol
mmvazzano Jun 18, 2024
ae2adeb
Update constant names
mmvazzano Jun 18, 2024
76c2f6b
Remove snake case
mmvazzano Jun 18, 2024
30c161a
Validate correct settings by calling get
mmvazzano Jun 18, 2024
7ad9d68
Update commnet
mmvazzano Jun 18, 2024
217d7d5
Improve description in comments
mmvazzano Jun 18, 2024
e415961
Merge pull request #334 from holographxyz/refactor_10_holograph_tests
sogoiii Jun 18, 2024
6290701
fix: fix prettier git action based on linter one
lucas-marc Jun 18, 2024
376c74d
Merge remote-tracking branch 'upstream/develop' into comment_tests_Na…
lucas-marc Jun 19, 2024
230e229
fix: set node version on prettier gh action
lucas-marc Jun 19, 2024
81fd5ed
fix: used prettier script instead of custom prettier action
lucas-marc Jun 19, 2024
a69c32d
Update Constants.sol
mmvazzano Jun 19, 2024
610b885
Replace zeros by Constant.Empy_BYTES
mmvazzano Jun 19, 2024
db133a7
Fix 17_holographer_tests.t.sol
mmvazzano Jun 19, 2024
c4bbecd
Fix Constants.sol
mmvazzano Jun 19, 2024
df57ed0
Merge branch 'develop' into refector_12_holograph_genesis_tests
mmvazzano Jun 19, 2024
21c87d0
Modify section headings using Comment Divider
mmvazzano Jun 19, 2024
aabb90f
Take PKDeployer value from Constants.sol
mmvazzano Jun 19, 2024
4a9fc46
Merge pull request #333 from Think-and-Dev/comment_tests_NatSpec_Format
sogoiii Jun 21, 2024
a821f1c
Improve comments
mmvazzano Jun 24, 2024
81dad4c
Improve comments
mmvazzano Jun 24, 2024
567958d
Update Constants.sol
mmvazzano Jun 24, 2024
76ecd93
Update constant values from Conatants.sol
mmvazzano Jun 24, 2024
04817a3
Modify section headings using Comment Divider
mmvazzano Jun 24, 2024
5886e41
Replace values with constants in Constants.sol
mmvazzano Jun 25, 2024
b23a658
Update comments to skipped tests
mmvazzano Jun 25, 2024
cdbef20
Update Constants.sol
mmvazzano Jun 25, 2024
e7255c3
Add test testInitSampleERC20EnforcerRevert
mmvazzano Jun 25, 2024
7f77779
Add view modifier to some tests
mmvazzano Jun 25, 2024
23a4b2b
Fix function testCheckDomainSeparator
mmvazzano Jun 25, 2024
0a2682f
Fix function testERC20SaferInterface
mmvazzano Jun 25, 2024
90c8cc5
Fix getERC20Mock
mmvazzano Jun 25, 2024
f11c58b
Merge pull request #340 from holographxyz/refactor_11_holographFactory
sogoiii Jun 26, 2024
a1c6e34
Merge branch 'develop' into refector_12_holograph_genesis_tests
mmvazzano Jun 26, 2024
1005f2a
Merge pull request #336 from holographxyz/refector_12_holograph_genes…
fgregoribattista Jun 26, 2024
de3caf2
Merge branch 'develop' into refactor_15_holograph_registry_tests
mmvazzano Jun 26, 2024
29280c2
Merge pull request #335 from holographxyz/refactor_15_holograph_regis…
fgregoribattista Jun 26, 2024
d62b714
Merge branch 'develop' into refactor_03_Erc20Enforcer
mmvazzano Jun 26, 2024
a755d07
Replace eventConfig constant in several tests
mmvazzano Jun 26, 2024
524624b
Update Constants.sol
mmvazzano Jun 26, 2024
964a17a
Replace hTokenHash and EMPTY_BYTES32 constants in several tests
mmvazzano Jun 26, 2024
b2866f4
Add holographERC721Hash to Constants.sol and to use it in 17_holograp…
mmvazzano Jun 26, 2024
ca3afac
Add constants to HelperDeploymentConfig.sol from Constants.sol
mmvazzano Jun 26, 2024
fd6f59e
Use ErrorConstants in 19_ERC721H_tests.t.sol
mmvazzano Jun 26, 2024
72869ad
Update Constants.sol and use contants in HelperDeploymentConfig.sol
mmvazzano Jun 26, 2024
3b55f31
Modify section headings using Comment Divider
mmvazzano Jun 27, 2024
c4f86da
update start date
fgregoribattista Jun 27, 2024
09678ca
Merge pull request #341 from holographxyz/refactor_08_faucet
sogoiii Jun 27, 2024
7ea6ce4
Merge pull request #342 from holographxyz/refactor_03_Erc20Enforcer
sogoiii Jun 27, 2024
1131284
Merge pull request #345 from holographxyz/fix/testERC721
sogoiii Jun 27, 2024
913f36b
Refactor tests
mmvazzano Jun 28, 2024
84e1ca9
Fix test
mmvazzano Jun 28, 2024
7b72d60
Merge branch 'develop' into refactor_tests
mmvazzano Jun 28, 2024
c58925e
Fix hTokenHash
mmvazzano Jun 28, 2024
75f43c5
Merge pull request #344 from holographxyz/refactor_tests
sogoiii Jun 28, 2024
7f32385
Merge branch 'develop' into refactor_05_cross-chain_configuration_tests
mmvazzano Jul 1, 2024
be0ccb3
Merge pull request #346 from holographxyz/refactor_05_cross-chain_con…
sogoiii Jul 2, 2024
d95b4ea
Merge changes from updates to reenable bridging and operator changes
alexanderattar Jul 2, 2024
29da9b8
Revert accidental change to the LICENSE section of the README
alexanderattar Jul 2, 2024
91eb422
Update constant address for HolographOperator
alexanderattar Jul 2, 2024
c279e69
Update the constant for HolographOperator to match CI/CD
alexanderattar Jul 2, 2024
4585c25
Undo change to drops price oracle base testnet sepolia
alexanderattar Jul 2, 2024
75ac2a7
Revert changes to file to match the version on develop
alexanderattar Jul 2, 2024
dcd33fa
Revert HolographBridge.json files to match the version on develop
alexanderattar Jul 2, 2024
acd68fa
Disable broken test in crosschain minting tests
alexanderattar Jul 3, 2024
724122d
Merge pull request #350 from holographxyz/feature/reenable-bridging-2…
alexanderattar Jul 3, 2024
a6e9d0f
fix: HAL-07 SafeErc20 (WIP)
Yashiru Aug 7, 2024
3f92a8a
fix: test's operator constant address
Yashiru Aug 8, 2024
7babd73
Merge pull request #353 from holographxyz/fix/HAL-07-IERC20-transfers
sogoiii Aug 20, 2024
4bcaa84
fix: recoverJobs delete job before execute it
Yashiru Aug 7, 2024
66394bd
fix: test's operator constant address
Yashiru Aug 8, 2024
3c5fddc
Merge pull request #352 from holographxyz/fix/HAL-03-recover-jobs-checks
sogoiii Aug 20, 2024
eca3fb9
Add warning to HolographOperator for setUtilityToken
alexanderattar Aug 20, 2024
05141f8
Update HolographOperator constant address for localhost tests
alexanderattar Aug 20, 2024
341d1e3
Merge pull request #354 from holographxyz/feature/add-warning-on-set-…
sogoiii Aug 20, 2024
007d51b
Merge pull request #355 from holographxyz/develop
sogoiii Aug 26, 2024
5d979b9
Deploy to testnet env
alexanderattar Aug 27, 2024
31d3419
Merge pull request #357 from holographxyz/release/testnet-2024-08-26
alexanderattar Aug 27, 2024
8bd03fb
Merge branch 'mainnet' into testnet
alexanderattar Aug 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
## Describe Changes

I made this more better by doing ...

- Change A
- Change B
-

## Checklist before requesting a review

- [ ] I have performed a self-review of my code
- [ ] Code styles have been enforced
- [ ] All Hardhat tests are passing
- [ ] All Foundry tests are passing
23 changes: 12 additions & 11 deletions .github/workflows/enforce_prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false

- name: Prettify code
uses: creyD/[email protected]
node-version: '20.12.2'
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
prettier_options: --check deploy/**/*.ts test/**/*.ts scripts/**/*.ts
dry: True
version: 8
- name: Install dependencies
run: pnpm install
- name: Prettier Check
run: pnpm prettier:check
2 changes: 1 addition & 1 deletion .github/workflows/foudry_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
run: forge test -vv --no-match-test "(FFI|Fork)" --no-match-contract Fork

- name: Kill the anvil nodes
run: bash scripts/stop-protocol.sh
run: bash scripts/stop-protocol.sh
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
lcov.info
coverage/

# nyc test coverage
.nyc_output
Expand Down
14 changes: 13 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ echo "✅ Solidity hashes precomputed.\n\n"
# ---------------------------------------------------------------------------- #

# ------------------------------ Natspec smells ------------------------------ #
# echo "👉 Checking for missing natspecs..."
# natspecSmellsOutput=$(npx @defi-wonderland/natspec-smells 2>&1)

# # Compare the trimmed output to "No issues found"
# if [ "$natspecSmellsOutput" != "No issues found" ]; then
# echo "⛔️ Missing documentation or errors have been found:"
# echo "$natspecSmellsOutput"
# exit 1
# else
# echo "✅ No missing natspecs detected.\n"
# fi

# ------------------------------- Gas snapshot ------------------------------- #
## check for env feature flag for natspec-smells. Default to true
# if [ "$SKIP_NATSPEC_SMELLS" = "true" ]; then
# echo "👉 Skipping natspec-smells check..."
Expand All @@ -50,4 +63,3 @@ echo "✅ Solidity hashes precomputed.\n\n"
# echo "👉 Checking gas snapshots..."
# npm run snapshot:check
# echo "✅ Gas snapshots are up to date.\n\n"

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"solidity.compileUsingRemoteVersion": "v0.8.13+commit.abaa5c0e"
}
5 changes: 5 additions & 0 deletions FUNDING.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"opRetro": {
"projectId": "0x1a6ff49fed19e164fd6b39f668f391cfc7fc493906e942c74997aacee91be632"
}
}
46 changes: 22 additions & 24 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# Holograph Limited Public License (H-LPL) 1.0.0

<https://holograph.xyz/licenses/h-lpl/1.0.0>

This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, you are not permitted to use the software.

**1. Definitions**

The terms "_reproduce,_" "_reproduction,_" "_derivative works,_" and "_distribution_" have the same meaning here as under U.S. copyright law. A "_contribution_" is the original software, or any additions or changes to the software. A "_contributor_" is any person that distributes its contribution under this license. "_Licensed patents_" are a contributor's patent claims that read directly on its contribution.

**2. Grant of Rights**

**A)** Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in sections **3** and **4**, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
**B)** Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.

**3. Conditions and Limitations**

**A)** No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
**B)** If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor is terminated with immediate effect.
**C)** If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
**D)** If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
**E)** The software is licensed "as-is." You bear all risks of using it. The contributors give no express warranties, guarantees, or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude all implied warranties, including those of merchantability, fitness for a particular purpose and non-infringement.

**4. (F)** Platform Limitation- The licenses granted in sections **2.A** & **2.B** extend only to the software or derivative works that you create that run on a **Holograph system product**.
(The MIT License)

Copyright 2021-2024 Holograph

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.
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<h1>Holograph Protocol V2</h1>
</div>


## Table of Contents

- [Description](#description)
Expand Down Expand Up @@ -347,6 +346,42 @@ Then you can run the Foundry tests with:

Please make use of the `pnpm run prettier:fix` command to format the codebase into a universal style.

## Foundry scripts

### Generate SAFE transaction json

Step to run the foundry script to generate a SAFE transaction json file.

#### Required nvironment Variables

```shell
HOLOGRAPH=
HOLOGRAPH_OPERATOR=
JOBS_BATCH_SIZE=1000
SAFE_WALLET=
```

#### 1. Run `get-job-info-from-available-operator-job.ts`

```shell
ts-node ./scripts/get-job-info-from-available-operator-job.ts --file ./incomplete-jobs.json
```

#### 2. Import the csv file generated from the indexer in the `./scripts/incomplete_jobs_processing` directory

> [!WARNING]
> The file should be structured with 4 columns: `jobHash`,`txHash`,`payload`,`chainId`
> The end of file shouln't have a new line.

> [!TIP]
> The `txHash`,`payload` columns are not used in the script, so you can just fill them with bytes32(0x00) 0x0000000000000000000000000000000000000000000000000000000000000000

#### 3. Generate safe json files

```shell
pnpm generateSafeTx
```

## Directory Structure

<pre>
Expand Down Expand Up @@ -430,4 +465,4 @@ Read through [CONTRIBUTING.md](./CONTRIBUTING.md) for a general overview of our

## License

Files under this repository are licensed under [Holograph Limited Public License](https://github.com/holographxyz/holograph-protocol/blob/testnet/LICENSE.md) (H-LPL) 1.0.0 unless otherwise stated.
All files within this repository are licensed under the [MIT License](https://github.com/holographxyz/holograph-protocol/blob/develop/LICENSE.md) unless stated otherwise.
111 changes: 111 additions & 0 deletions abi/develop/BatchMintMetadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
[
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "BatchMintInvalidBatchId",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "BatchMintInvalidTokenId",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "batchId",
"type": "uint256"
}
],
"name": "BatchMintMetadataFrozen",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "_fromTokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_toTokenId",
"type": "uint256"
}
],
"name": "BatchMetadataUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "MetadataFrozen",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "batchFrozen",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getBaseURICount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "getBatchIdAtIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
47 changes: 47 additions & 0 deletions abi/develop/ContractMetadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "prevURI",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "newURI",
"type": "string"
}
],
"name": "ContractURIUpdated",
"type": "event"
},
{
"inputs": [],
"name": "contractURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_uri",
"type": "string"
}
],
"name": "setContractURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading
Loading