https://github.com/planetarium/immutable-erc1155-contract
https://github.com/planetarium/immutable-erc1155-contract
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/planetarium/immutable-erc1155-contract
- Owner: planetarium
- Created: 2024-11-04T05:49:45.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-13T01:19:41.000Z (3 months ago)
- Last Synced: 2025-02-13T02:25:55.000Z (3 months ago)
- Language: JavaScript
- Size: 241 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codecov.io/gh/planetarium/single-staking-contract)
# Immutable zkEvm ERC-1155 Contract
Try running some of the following tasks:
- How to set up Immutable Contract Guide : https://docs.immutable.com/tutorials/zkEVM/deploy-contracts/setup
- ERC1155 Example: https://docs.immutable.com/tutorials/zkevm/deploy-contracts/setup/?sample-contracts-with-oal=erc1155How to setup dev environment
```
$ node --version
v20.4.0# solidity version
v0.8.19
```1. Create `.env` file with these keys
```shell
ETHERSCAN_API_KEY=
PRIVATE_KEY_IMMUTABLEZKEVMTESTNET=
PRIVATE_KEY_IMMUTABLEZKEVMMAINNET=
```2. Clean Cache & Install npm packages
```shell
# If these are already exist, Clean cache
rm -rf node_modules;
rm -f package-lock.json;
npm cache clean --force;# Install npm packages
npm i
```3. Compile contracts
```shell
# Compile
npx hardhat compile
```4. deploy
```shell
npx hardhat run scripts/deploy_IR2SBT1155.js --network immutableZkevmMainnet
```5. run test & coverage
```shell
npx hardhat test
npx hardhat coverage
```Additional Information
- NFT ( ERC-721 & ERC-1155) Contract should implement OAL ( Operator Allowlist ) - Link(https://docs.immutable.com/tutorials/zkEVM/deploy-contracts/operator-allowlist)
- Have to override some functions for OAL - Link ( https://docs.immutable.com/tutorials/zkEVM/deploy-contracts/setup#immutable-zkevm-collection-requirements )
- Have to Request Verification at Immutable hub ( https://hub.immutable.com/ )