-
Notifications
You must be signed in to change notification settings - Fork 76
Add Remix IDE (new IA) #1174
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
Merged
Merged
Add Remix IDE (new IA) #1174
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3a7a418
fix: get started ready
nhussein11 edcd596
fix: remix deploy
nhussein11 e630bb9
Update troubleshooting guide for Remix IDE and comment out 'Verify a β¦
nhussein11 2fb6744
fix: images and names
nhussein11 076b62d
fix: remove verify contract file
nhussein11 8261fc1
fix: llms
nhussein11 54a8024
Apply suggestions from code review
dawnkelly09 dda65db
fix: prerequisite
nhussein11 a8b8e66
fix: llms
nhussein11 a05af65
Grammarly things and reformat to FAQ style dropdowns for troubleshootβ¦
dawnkelly09 802a536
applies review feedback
dawnkelly09 50c0a83
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
dawnkelly09 930414a
Clean up formatting of titles and bullets
dawnkelly09 7323fd7
fix: feedback
nhussein11 5fc63e2
fix: llms
nhussein11 be0d460
fix: gifs lists wording
nhussein11 4cb6e96
fix: llms
nhussein11 0820fd3
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
nhussein11 dcfbc85
Remove outdated troubleshooting and verification guides for Remix IDEβ¦
nhussein11 63a543e
fix errant merge conflict syntax, description length
dawnkelly09 dff1c0b
applies review feedback
dawnkelly09 64e4383
grammarly pass
dawnkelly09 bb80152
minor fix and llms
eshaben f2bc2ca
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
eshaben 29c3c6f
Merge branch 'staging/product-ia' into nhussein11/add-remix-ide
eshaben File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
78 changes: 77 additions & 1 deletion
78
.ai/pages/smart-contracts-dev-environments-remix-deploy-a-contract.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,81 @@ | ||
| --- | ||
| title: Deploy and Interact with Smart Contracts Using Remix IDE | ||
| description: Learn how to deploy smart contracts to Polkadot Hub and interact with them using the Remix IDE and wallet providers. | ||
| categories: Smart Contracts, Tooling | ||
| url: https://docs.polkadot.com/smart-contracts/dev-environments/remix/deploy-a-contract/ | ||
| --- | ||
|
|
||
| TODO | ||
| # Deploy Smart Contracts Using Remix IDE | ||
|
|
||
| ## Overview | ||
|
|
||
| After compiling your smart contract in Remix IDE, the next step is to deploy it to the Polkadot Hub network. This guide will walk you through the deployment process using a wallet provider, and show you how to interact with your deployed contracts directly from the Remix interface. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Before deploying your contract, ensure you have: | ||
|
|
||
| - Completed the [Remix IDE setup](/smart-contracts/dev-environments/remix/get-started/){target=\_blank} and have a compiled contract ready | ||
| - A compatible wallet extension installed (e.g., [MetaMask](https://metamask.io/){target=\_blank} or [Talisman](https://www.talisman.xyz/){target=\_blank}) | ||
| - Your wallet connected to the Polkadot Hub network | ||
| - Test tokens in your wallet to cover deployment and transaction fees (available from the [Polkadot faucet](/smart-contracts/faucet/){target=\_blank}) | ||
|
|
||
| ## Deploying Contracts | ||
|
|
||
| 1. To deploy your contract, you need to: | ||
|
|
||
| 1. Navigate to the **Deploy & Run Transactions** tab (fourth icon in the left sidebar). | ||
| 2. Click the **Environment** dropdown. | ||
| 3. Select **Browser Extension**. | ||
| 3. Click on the **Injected Provider - MetaMask** option. | ||
|
|
||
| 2. Click the **Deploy** button and then click **Confirm** in the wallet popup. | ||
|
|
||
| 3. Once your contract is deployed successfully, you will see the deployment confirmation in the Remix terminal. | ||
|
|
||
|  | ||
|
|
||
| ## Interacting with Contracts | ||
|
|
||
| Once deployed, your contract appears in the **Deployed/Unpinned Contracts** section: | ||
|
|
||
| 1. Expand the contract to view available methods. | ||
|
|
||
| !!! tip | ||
| Pin your frequently used contracts to the **Pinned Contracts** section for easy access. | ||
|
|
||
| 2. To interact with the contract, you can select any of the exposed methods. | ||
|
|
||
| In this way, you can interact with your deployed contract by reading its state or writing to it. The button color indicates the type of interaction available: | ||
|
|
||
| - **Red**: Modifies state and is payable | ||
| - **Orange**: Modifies state only | ||
| - **Blue**: Reads state | ||
|
|
||
| 3. Click the **GetCount** button to read the current count value. | ||
|
|
||
| 4. Click the **Increment** button to increment the count value. | ||
|
|
||
| 5. Submit the transaction and click the **Confirm** button in the wallet popup. | ||
|
|
||
| 6. Once the transaction is confirmed, you will see the updated count value in the Remix terminal. | ||
|
|
||
|  | ||
|
|
||
| ## Where to Go Next | ||
|
|
||
| You've successfully deployed and interacted with your smart contract on Polkadot Hub using Remix IDE. Continue enhancing your development workflow with these resources: | ||
|
|
||
| <div class="grid cards" markdown> | ||
|
|
||
|
|
||
|
|
||
| - <span class="badge guide">Guide</span> __Troubleshooting__ | ||
|
|
||
| --- | ||
|
|
||
| Find solutions to common issues when working with Remix IDE. | ||
|
|
||
| [:octicons-arrow-right-24: Get Started](/smart-contracts/dev-environments/remix/troubleshooting) | ||
|
|
||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.