diff --git a/BUILD.md b/BUILD.md index d0cd156b..e69124cb 100644 --- a/BUILD.md +++ b/BUILD.md @@ -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 --constructor-args --private-key --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 + +```