You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: static/llms.txt
+87-87Lines changed: 87 additions & 87 deletions
Original file line number
Diff line number
Diff line change
@@ -11416,7 +11416,7 @@ pop --help
11416
11416
11417
11417
Start a new project quickly using Pop CLI `pop new contract` command:
11418
11418
11419
-

11419
+
<img src="/img/popnewcontract.gif" alt="pop new contract"/>
11420
11420
Once the project is generated, move into the new directory and build your parachain:
11421
11421
11422
11422
```
@@ -11426,11 +11426,11 @@ pop build --release
11426
11426
11427
11427
Pop CLI integrates the [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) enabling you to easily spin up a local network for smart contract development and testing. This local environment is automatically launched when deploying your contract using the `pop up` command or running your e2e tests using the `pop test --e2e` command.
11428
11428
11429
-

11429
+
<img src="/img/popupcontract.gif" alt="pop up contract"/>
11430
11430
After deployment, you can easily interact with your smart contract using the `pop call contract` command:
For a comprehensive guide to all Pop CLI features and advanced usage, see the official [Pop CLI](https://learn.onpop.io/contracts) documentation.
11436
11436
@@ -11604,6 +11604,90 @@ mod base_erc20 {
11604
11604
```
11605
11605
````
11606
11606
11607
+
## File: docs/getting-started/setup.md
11608
+
````markdown
11609
+
---
11610
+
title: Setup
11611
+
slug: /getting-started/setup
11612
+
hide_title: true
11613
+
---
11614
+
11615
+

11616
+
11617
+
# Setup
11618
+
11619
+
In case you are looking for a guided tutorial directed
11620
+
towards beginners please check out our [Guided Tutorial](https://docs.substrate.io/tutorials/smart-contracts/).
11621
+
11622
+
## Rust & Cargo
11623
+
11624
+
A pre-requisite for compiling smart contracts is to have a stable Rust version and Cargo installed. Here's [an installation guide](https://doc.rust-lang.org/cargo/getting-started/installation.html).
11625
+
11626
+
## ink! CLI
11627
+
11628
+
The first tool we will be installing is [`cargo-contract`](https://github.com/use-ink/cargo-contract),
11629
+
a CLI tool for helping setting up and managing WebAssembly smart contracts written with ink!.
11630
+
11631
+
You can find it [here on GitHub](https://github.com/use-ink/cargo-contract)
11632
+
and [here on crates.io](https://crates.io/crates/cargo-contract).
11633
+
11634
+
The tool has a number of handy capabilities:
11635
+
11636
+
```
11637
+
$ cargo contract
11638
+
Utilities to develop Wasm smart contracts
11639
+
11640
+
Usage: cargo contract <COMMAND>
11641
+
11642
+
Commands:
11643
+
new Setup and create a new smart contract project
11644
+
build Compiles the contract, generates metadata, bundles both together in a `<name>.contract` file
11645
+
check Check that the code builds as Wasm; does not output any `<name>.contract` artifact to the `target/` directory
11646
+
test Test the smart contract off-chain
11647
+
upload Upload contract code
11648
+
instantiate Instantiate a contract
11649
+
call Call a contract
11650
+
decode Decodes a contracts input or output data (supplied in hex-encoding)
11651
+
help Print this message or the help of the given subcommand(s)
11652
+
11653
+
Options:
11654
+
-h, --help Print help information
11655
+
-V, --version Print version information
11656
+
```
11657
+
11658
+
:::tip Alternative
11659
+
If you're looking for a more guided, all-in-one developer experience—including project scaffolding with multiple templates, local network setup, and contract interaction, you can also try [Pop CLI](../third-party-tools/pop-cli.md)
11660
+
:::
11661
+
### Installation
11662
+
11663
+
Please see the installation instructions in the `cargo-contract` repository [here](https://github.com/use-ink/cargo-contract#installation).
11664
+
11665
+
If everything worked, `cargo contract --help` should show you the above list of available commands.
11666
+
11667
+
## Installing `substrate-contracts-node`
11668
+
11669
+
The [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) is
11670
+
a simple Substrate blockchain which is configured to include the Substrate module for
11671
+
smart contract functionality – the `contracts` pallet (see [How it Works](../intro/how-it-works.md) for more).
11672
+
It's a comfortable option if you want to get a quickstart.
11673
+
11674
+
There are two ways of installing the node:
11675
+
11676
+
### (1) Download the Binary
11677
+
This is the recommended method, you can
11678
+
[download a binary from our releases page](https://github.com/paritytech/substrate-contracts-node/releases)
11679
+
(Linux and Mac).
11680
+
11681
+
### (2) Build it yourself
11682
+
11683
+
Alternatively you can build the node by yourself.
11684
+
This can take quite a while though!
11685
+
11686
+
```bash
11687
+
cargo install contracts-node
11688
+
```
11689
+
````
11690
+
11607
11691
## File: docs/third-party-tools/typink.md
11608
11692
````markdown
11609
11693
---
@@ -11717,90 +11801,6 @@ The following is a list of libraries which could be used to craft smart-contract
11717
11801
- [polkascan/py-substrate-interface](https://github.com/polkascan/py-substrate-interface/blob/master/docs/usage/ink-contract-interfacing.md): Python library to interface with Substrate nodes.
11718
11802
````
11719
11803
11720
-
## File: docs/getting-started/setup.md
11721
-
````markdown
11722
-
---
11723
-
title: Setup
11724
-
slug: /getting-started/setup
11725
-
hide_title: true
11726
-
---
11727
-
11728
-

11729
-
11730
-
# Setup
11731
-
11732
-
In case you are looking for a guided tutorial directed
11733
-
towards beginners please check out our [Guided Tutorial](https://docs.substrate.io/tutorials/smart-contracts/).
11734
-
11735
-
## Rust & Cargo
11736
-
11737
-
A pre-requisite for compiling smart contracts is to have a stable Rust version and Cargo installed. Here's [an installation guide](https://doc.rust-lang.org/cargo/getting-started/installation.html).
11738
-
11739
-
## ink! CLI
11740
-
11741
-
The first tool we will be installing is [`cargo-contract`](https://github.com/use-ink/cargo-contract),
11742
-
a CLI tool for helping setting up and managing WebAssembly smart contracts written with ink!.
11743
-
11744
-
You can find it [here on GitHub](https://github.com/use-ink/cargo-contract)
11745
-
and [here on crates.io](https://crates.io/crates/cargo-contract).
11746
-
11747
-
The tool has a number of handy capabilities:
11748
-
11749
-
```
11750
-
$ cargo contract
11751
-
Utilities to develop Wasm smart contracts
11752
-
11753
-
Usage: cargo contract <COMMAND>
11754
-
11755
-
Commands:
11756
-
new Setup and create a new smart contract project
11757
-
build Compiles the contract, generates metadata, bundles both together in a `<name>.contract` file
11758
-
check Check that the code builds as Wasm; does not output any `<name>.contract` artifact to the `target/` directory
11759
-
test Test the smart contract off-chain
11760
-
upload Upload contract code
11761
-
instantiate Instantiate a contract
11762
-
call Call a contract
11763
-
decode Decodes a contracts input or output data (supplied in hex-encoding)
11764
-
help Print this message or the help of the given subcommand(s)
11765
-
11766
-
Options:
11767
-
-h, --help Print help information
11768
-
-V, --version Print version information
11769
-
```
11770
-
11771
-
:::tip Alternative
11772
-
If you're looking for a more guided, all-in-one developer experience—including project scaffolding with multiple templates, local network setup, and contract interaction, you can also try [Pop CLI](../third-party-tools/pop-cli.md)
11773
-
:::
11774
-
### Installation
11775
-
11776
-
Please see the installation instructions in the `cargo-contract` repository [here](https://github.com/use-ink/cargo-contract#installation).
11777
-
11778
-
If everything worked, `cargo contract --help` should show you the above list of available commands.
11779
-
11780
-
## Installing `substrate-contracts-node`
11781
-
11782
-
The [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) is
11783
-
a simple Substrate blockchain which is configured to include the Substrate module for
11784
-
smart contract functionality – the `contracts` pallet (see [How it Works](../intro/how-it-works.md) for more).
11785
-
It's a comfortable option if you want to get a quickstart.
11786
-
11787
-
There are two ways of installing the node:
11788
-
11789
-
### (1) Download the Binary
11790
-
This is the recommended method, you can
11791
-
[download a binary from our releases page](https://github.com/paritytech/substrate-contracts-node/releases)
0 commit comments