Skip to content

Commit

Permalink
GITBOOK-215: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopgalvao authored and gitbook-bot committed Nov 12, 2024
1 parent 12b6253 commit 1ee29ce
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 94 deletions.
4 changes: 2 additions & 2 deletions pop-cli-for-smart-contracts/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

## GUIDES

* [Get tokens on Pop](guides/get-tokens-on-pop.md)
* [Get tokens on Pop](guides/bridge-tokens-to-pop-network.md)
* [Set up your development environment](guides/set-up-your-development-environment.md)
* [Create a new contract](guides/create-a-new-contract.md)
* [Build your contract](guides/build-your-contract.md)
* [Run your unit tests](guides/run-your-unit-tests.md)
* [Deploying your contract locally](guides/deploying-your-contract-locally.md)
* [Calling your contract](guides/calling-your-contract.md)
* [Running E2E tests](guides/running-e2e-tests.md)
* [Deploy on Pop](guides/deploy-on-pop.md)
* [Deploy on Pop](guides/deploy-on-pop-testnet.md)

## TUTORIALS

Expand Down
59 changes: 59 additions & 0 deletions pop-cli-for-smart-contracts/guides/deploy-on-pop-testnet.md
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.&#x20;

![](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)
92 changes: 0 additions & 92 deletions pop-cli-for-smart-contracts/guides/deploy-on-pop.md

This file was deleted.

0 comments on commit 1ee29ce

Please sign in to comment.