-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12b6253
commit 1ee29ce
Showing
4 changed files
with
61 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
59 changes: 59 additions & 0 deletions
59
pop-cli-for-smart-contracts/guides/deploy-on-pop-testnet.md
This file contains 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
description: Learn how to deploy an ink! smart contract to Pop | ||
--- | ||
|
||
# Deploy on Pop | ||
|
||
Once you have battle-tested your smart contract using unit and e2e tests, you are ready to test your smart contract on the [Pop Testnet](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc2.paseo.popnetwork.xyz). | ||
|
||
Before you deploy, make sure you have bridged some tokens from the Polkadot Relay chain to your Pop account. To learn how to do this, go here: | ||
|
||
* [https://learn.onpop.io/contracts/guides/get-tokens-on-pop](https://learn.onpop.io/contracts/guides/get-tokens-on-pop) | ||
|
||
### Deploy | ||
|
||
Now that your account is funded on Pop, you can deploy your contract. | ||
|
||
Go to [contracts.onpop.io](https://contracts.onpop.io) and deploy your contract. | ||
|
||
<figure><img src="../.gitbook/assets/Screenshot 2024-11-12 at 11.21.58 AM.png" alt=""><figcaption></figcaption></figure> | ||
|
||
You can now interact with your contract. | ||
|
||
<figure><img src="../.gitbook/assets/Screenshot 2024-11-12 at 11.47.56 AM.png" alt=""><figcaption></figcaption></figure> | ||
|
||
|
||
|
||
## Use PolkadotJs Apps (Optional) | ||
|
||
Another UI option to interact with your ink! smart contract is to use PolkadotJS Apps. | ||
|
||
Take the contract address and check the [chain state](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc2.paseo.popnetwork.xyz#/chainstate) to confirm that the contract exists.  | ||
|
||
![](https://hackmd.io/\_uploads/H1j56cMl0.png) | ||
|
||
You can add the contract to the [Contracts](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc2.paseo.popnetwork.xyz#/contracts) UI in PolkadotJS Apps. Click on "+ Add an existing contract". | ||
|
||
![](https://hackmd.io/\_uploads/HJ3h1sGg0.png) | ||
|
||
Add the contract address along with the `flipper.contract` file found inside `flipper/target/ink/flipper.contract` | ||
|
||
![Screenshot 2024-04-09 at 8.01.17 PM](https://hackmd.io/\_uploads/Bys-lozl0.png) | ||
|
||
You can now see your newly uploaded contract: | ||
|
||
![](https://hackmd.io/\_uploads/Bkh3lsfxA.png) | ||
|
||
Done! | ||
|
||
|
||
|
||
#### Resources | ||
|
||
* [https://use.ink](https://use.ink) | ||
|
||
**Technical Support** | ||
|
||
* [Polkadot Stack Exchange](https://polkadot.stackexchange.com/) | ||
* Create a question and tag it with "[`pop`](https://substrate.stackexchange.com/tags/pop/info)" | ||
* Share the StackExchange question in our [Pop Support Telegram channel](https://t.me/pop\_support) |
This file was deleted.
Oops, something went wrong.