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: develop/smart-contracts/libraries/ethers-js.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,13 +107,13 @@ The `revive` compiler transforms Solidity smart contracts into [PolkaVM](/develo
107
107
108
108
### Install the Revive Library
109
109
110
-
The [`@parity/revive`](https://www.npmjs.com/package/@parity/revive){target=\_blank} library will compile your Solidity code for deployment on Polkadot Hub. Run the following command in your terminal to install the library:
110
+
The [`@parity/resolc`](https://www.npmjs.com/package/@parity/resolc){target=\_blank} library will compile your Solidity code for deployment on Polkadot Hub. Run the following command in your terminal to install the library:
111
111
112
112
```bash
113
-
npm install --save-dev @parity/revive
113
+
npm install --save-dev @parity/resolc
114
114
```
115
115
116
-
This guide uses `@parity/revive` version `{{ dependencies.javascript_packages.revive.version }}`.
116
+
This guide uses `@parity/resolc` version `{{ dependencies.javascript_packages.resolc.version }}`.
Copy file name to clipboardExpand all lines: develop/smart-contracts/libraries/viem.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,11 +53,11 @@ npm init -y
53
53
54
54
## Install Dependencies
55
55
56
-
Install viem along with other necessary dependencies, including [@parity/revive](https://www.npmjs.com/package/@parity/revive){target=\_blank}, which enables to compile smart contracts to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/#polkavm){target=\_blank} bytecode:
56
+
Install viem along with other necessary dependencies, including [@parity/resolc](https://www.npmjs.com/package/@parity/resolc){target=\_blank}, which enables to compile smart contracts to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/#polkavm){target=\_blank} bytecode:
Copy file name to clipboardExpand all lines: develop/smart-contracts/libraries/web3-js.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,13 +97,13 @@ For instance, to fetch the latest block number of the chain, you can use the fol
97
97
98
98
--8<-- 'text/smart-contracts/code-size.md'
99
99
100
-
Polkadot Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/){target=\_blank} bytecode. This is achieved using the [`revive`](https://github.com/paritytech/revive){target=\_blank} compiler. Install the [`@parity/revive`](https://github.com/paritytech/js-revive){target=\_blank} library as a development dependency:
100
+
Polkadot Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/){target=\_blank} bytecode. This is achieved using the [`revive`](https://github.com/paritytech/revive/tree/v0.2.0/js/resolc){target=\_blank} compiler. Install the [`@parity/resolc`](https://github.com/paritytech/revive){target=\_blank} library as a development dependency:
101
101
102
102
```bash
103
-
npm install --save-dev @parity/revive
103
+
npm install --save-dev @parity/resolc
104
104
```
105
105
106
-
This guide uses `@parity/revive` version `{{ dependencies.javascript_packages.revive.version }}`.
106
+
This guide uses `@parity/resolc` version `{{ dependencies.javascript_packages.resolc.version }}`.
107
107
108
108
Here's a simple storage contract that you can use to follow the process:
Copy file name to clipboardExpand all lines: llms.txt
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9357,13 +9357,13 @@ The `revive` compiler transforms Solidity smart contracts into [PolkaVM](/develo
9357
9357
9358
9358
### Install the Revive Library
9359
9359
9360
-
The [`@parity/revive`](https://www.npmjs.com/package/@parity/revive){target=\_blank} library will compile your Solidity code for deployment on Polkadot Hub. Run the following command in your terminal to install the library:
9360
+
The [`@parity/resolc`](https://www.npmjs.com/package/@parity/resolc){target=\_blank} library will compile your Solidity code for deployment on Polkadot Hub. Run the following command in your terminal to install the library:
9361
9361
9362
9362
```bash
9363
-
npm install --save-dev @parity/revive
9363
+
npm install --save-dev @parity/resolc
9364
9364
```
9365
9365
9366
-
This guide uses `@parity/revive` version `{{ dependencies.javascript_packages.revive.version }}`.
9366
+
This guide uses `@parity/resolc` version `{{ dependencies.javascript_packages.resolc.version }}`.
9367
9367
9368
9368
### Sample Storage Smart Contract
9369
9369
@@ -9398,7 +9398,7 @@ contract Storage {
9398
9398
To compile this contract, use the following script:
Install viem along with other necessary dependencies, including [@parity/revive](https://www.npmjs.com/package/@parity/revive){target=\_blank}, which enables to compile smart contracts to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/#polkavm){target=\_blank} bytecode:
9887
+
Install viem along with other necessary dependencies, including [@parity/resolc](https://www.npmjs.com/package/@parity/resolc){target=\_blank}, which enables to compile smart contracts to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/#polkavm){target=\_blank} bytecode:
Create a new file at `src/compile.ts` for handling contract compilation:
10116
10116
10117
10117
```typescript title="src/compile.ts"
10118
-
import { compile } from '@parity/revive';
10118
+
import { compile } from '@parity/resolc';
10119
10119
import { readFileSync, writeFileSync } from 'fs';
10120
10120
import { basename, join } from 'path';
10121
10121
@@ -10945,13 +10945,13 @@ main();
10945
10945
10946
10946
For detailed comparisons and migration guidelines, see the [EVM vs. PolkaVM](/polkadot-protocol/smart-contract-basics/evm-vs-polkavm/#current-memory-limits){target=\_blank} documentation page.
10947
10947
10948
-
Polkadot Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/){target=\_blank} bytecode. This is achieved using the [`revive`](https://github.com/paritytech/revive){target=\_blank} compiler. Install the [`@parity/revive`](https://github.com/paritytech/js-revive){target=\_blank} library as a development dependency:
10948
+
Polkadot Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/){target=\_blank} bytecode. This is achieved using the [`revive`](https://github.com/paritytech/revive/tree/v0.2.0/js/resolc){target=\_blank} compiler. Install the [`@parity/resolc`](https://github.com/paritytech/revive){target=\_blank} library as a development dependency:
10949
10949
10950
10950
```bash
10951
-
npm install --save-dev @parity/revive
10951
+
npm install --save-dev @parity/resolc
10952
10952
```
10953
10953
10954
-
This guide uses `@parity/revive` version `{{ dependencies.javascript_packages.revive.version }}`.
10954
+
This guide uses `@parity/resolc` version `{{ dependencies.javascript_packages.resolc.version }}`.
10955
10955
10956
10956
Here's a simple storage contract that you can use to follow the process:
10957
10957
@@ -10979,7 +10979,7 @@ contract Storage {
10979
10979
With that, you can now create a `compile.js` snippet that transforms your solidity code into PolkaVM bytecode:
0 commit comments