Skip to content

Commit

Permalink
Update BUILD.md (immutable#217)
Browse files Browse the repository at this point in the history
Added deploy step example
  • Loading branch information
Arturski authored Jun 27, 2024
1 parent e89dc64 commit bc758c3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,34 @@ To check the test coverage based on Foundry tests use:
```
forge coverage
```

## Deploy

To deploy the contract with foundry use the following command:

Additional Links:

[Operator Allowlist Address](https://docs.immutable.com/docs/zkevm/products/minting/royalties/allowlist-spec/#operator-allowlist-values)
```
forge create --rpc-url <RPC_URL> --constructor-args <CONSTRUCTOR_ARGUMENTS> --private-key <DEPLOYER_PRIVATE_KEY> <PATH_TO_CONTRACT:CONTRACT> --gas-price <GAS_PRICE> --priority-gas-price <PRIORITY_GAS_PRICE>
```

An example for deploying an Immutable ERC721 preset on testnet:

```
forge create \
--rpc-url "https://rpc.testnet.immutable.com" \
--constructor-args "0xD509..." \
"Imaginary Immutable Iguanas" \
"III" \
"https://example-base-uri.com/" \
"https://example-contract-uri.com/" \
"0x6b969FD89dE634d8DE3271EbE97734FEFfcd58eE" \
"0xD509..." \
"2000" \
--private-key "7e03....." \
contracts/token/erc721/preset/ImmutableERC721.sol:ImmutableERC721 \
--gas-price 20000000000 \
--priority-gas-price 20000000000
```

0 comments on commit bc758c3

Please sign in to comment.