Skip to content
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

Removed config proxy and config from deprecated example commands. #754

Merged
merged 33 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
149af26
Merge pull request #663 from multiversx/development
schimih Jul 14, 2023
87b860b
Merge pull request #666 from multiversx/development
popenta Jul 18, 2023
8bec9f8
Merge pull request #672 from multiversx/development
bogdan-rosianu Aug 4, 2023
94e31e5
Merge pull request #674 from multiversx/development
andreibancioiu Aug 4, 2023
5b6448c
Merge pull request #676 from multiversx/development
popenta Aug 11, 2023
8ec8e4b
Merge pull request #678 from multiversx/development
bogdan-rosianu Aug 16, 2023
58799de
Merge pull request #680 from multiversx/development
danielailie Aug 17, 2023
3fe1b81
Merge pull request #682 from multiversx/development
bogdan-rosianu Aug 18, 2023
95c0900
Merge pull request #686 from multiversx/development
bogdan-rosianu Aug 24, 2023
2711871
Merge pull request #688 from multiversx/development
iulianpascalau Aug 25, 2023
c91c417
Merge pull request #691 from multiversx/development
bogdan-rosianu Aug 30, 2023
9a47d82
Merge pull request #696 from multiversx/development
popenta Sep 4, 2023
fed573b
Merge pull request #697 from multiversx/development
andrei-marinica Sep 7, 2023
867e446
Merge pull request #705 from multiversx/development
andreibancioiu Sep 22, 2023
bc66678
Merge pull request #707 from multiversx/development
andreibancioiu Sep 25, 2023
9d813a8
Merge pull request #709 from multiversx/development
andreibancioiu Sep 26, 2023
caf78b2
Fix URLs.
andreibancioiu Sep 29, 2023
eb96dab
Merge pull request #711 from multiversx/fix-urls-29
andreibancioiu Sep 29, 2023
4712191
Mention xSuite as an alternative of the now-deprecated erdjs-snippets.
andreibancioiu Sep 29, 2023
cf42444
Merge pull request #712 from multiversx/mention-xsuite-29
andreibancioiu Sep 29, 2023
dfbd5e7
Merge pull request #713 from multiversx/development
andrei-marinica Oct 2, 2023
0327ede
Merge pull request #717 from multiversx/development
bogdan-rosianu Oct 4, 2023
4f3fab1
Merge pull request #718 from multiversx/development
bogdan-rosianu Oct 10, 2023
2c02223
Merge pull request #720 from multiversx/development
radumojic Oct 13, 2023
581d15b
Merge pull request #726 from multiversx/development
andreibancioiu Oct 24, 2023
b2cb493
Merge pull request #728 from multiversx/development
popenta Oct 31, 2023
8c10638
Merge pull request #731 from multiversx/development
popenta Oct 31, 2023
506bb9e
Merge pull request #738 from multiversx/development
popenta Nov 7, 2023
06a2330
Merge pull request #746 from multiversx/development
andreibancioiu Nov 15, 2023
3800953
Merge pull request #748 from multiversx/development
popenta Nov 16, 2023
17ac64a
Merge pull request #751 from multiversx/development
andrei-marinica Nov 20, 2023
928aa8a
Removed config proxy and config from deprecated example commands.
cristure Nov 21, 2023
5f2ff4d
Removed txVersion field from configuring-mxpy.md.
cristure Nov 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions docs/developers/setup-local-testnet-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,6 @@ Given the request above, extract and save the fields `erd_chain_id` and `erd_min

[comment]: # (mx-context-auto)

## **Configuring mxpy**

You can configure mxpy to point to your local Testnet by default:

```bash
$ mxpy config set chainID 15...
$ mxpy config set txVersion 123
$ mxpy config set proxy http://localhost:7950
```

[comment]: # (mx-context-auto)

## **Sending transactions**

Let's send a simple transaction using **mxpy:**
Expand All @@ -190,6 +178,7 @@ Let's send a simple transaction using **mxpy:**
$ mxpy tx new --recall-nonce --data="Hello, World" --gas-limit=70000 \
--receiver=erd1... \
--pem=./sandbox/node/config/walletKey.pem --pem-index=0 \
--proxy=http://localhost:7950 \
--send
```

Expand All @@ -211,6 +200,7 @@ mxpy --verbose contract deploy --bytecode=./mycontract/output/contract.wasm \
--recall-nonce --gas-limit=5000000 \
--pem=./sandbox/node/config/walletKey.pem --pem-index=0 \
--outfile=contract.json \
--proxy=http://localhost:7950 \
--send
```

Expand All @@ -228,11 +218,14 @@ Call
mxpy --verbose contract call erd1qqqqqqqqqqqqqpgql... \
--recall-nonce --gas-limit=1000000 --function=increment \
--pem=./sandbox/node/config/walletKey.pem --pem-index=0 --outfile=myCall.json \
--proxy=http://localhost:7950 \
--send

```

```bash
Query
mxpy --verbose contract query erd1qqqqqqqqqqqqqpgqlq... --function=get
mxpy --verbose contract query erd1qqqqqqqqqqqqqpgqlq... \
--function=get \
--proxy=http://localhost:7950
```
4 changes: 2 additions & 2 deletions docs/sdk-and-tools/sdk-dapp/internal-processes/guardians.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ After formatting the transaction and applying the signature provided by the Ledg
```js
import { WalletProvider } from '@multiversx/sdk-web-wallet-provider';

const walletProvider = new WalletProvider('https://www.wallet.multiversx.com/dapp/init');
const walletProvider = new WalletProvider('https://wallet.multiversx.com/dapp/init');
walletProvider.guardTransactions(transactions, {
callbackUrl: encodeURIComponent('https://my-dapp.com'),
});
```
Once transactions are back from the web wallet, they can be retrieved as follows:

```js
const signedTransactions = new WalletProvider('https://www.wallet.multiversx.com/dapp/init').getTransactionsFromWalletUrl();
const signedTransactions = new WalletProvider('https://wallet.multiversx.com/dapp/init').getTransactionsFromWalletUrl();
```

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ In the past, this page was describing how to use the now-deprecated library [`sd

Instead, it's now recommended to use [sc-meta CLI](/developers/meta/sc-meta-cli) to [generate the boilerplate code for your interactions](/developers/meta/sc-meta-cli/#calling-snippets).

Though, for writing contract interaction snippets in **JavaScript** or **TypeScript**, please refer to the [`sdk-js` cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook). A choice would be to structure them as Mocha or Jest tests - take the `*.local.net.spec.ts` tests in [`mx-sdk-js-core`](https://github.com/multiversx/mx-sdk-js-core) as examples. For writing contract interaction snippets in **Python**, please refer to the [`sdk-py` cookbook](/sdk-and-tools/sdk-py/sdk-py-cookbook) - you can write interaction snippets as Python unit tests, or as Jupyter notebooks.
Though, for writing contract interaction snippets in **JavaScript** or **TypeScript**, please refer to the [`sdk-js` cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook). If you'd like these snippets to function as system tests of your contract, a choice would be to structure them as Mocha or Jest tests - take the `*.local.net.spec.ts` tests in [`mx-sdk-js-core`](https://github.com/multiversx/mx-sdk-js-core) as examples. For writing contract interaction snippets in **Python**, please refer to the [`sdk-py` cookbook](/sdk-and-tools/sdk-py/sdk-py-cookbook) - if desired, you can shape them as simple scripts, as Python unit tests, or as Jupyter notebooks.

You might also want to have a look over the [**xSuite**](https://xsuite.dev) toolkit, made by the [Arda team](https://arda.run).
16 changes: 2 additions & 14 deletions docs/sdk-and-tools/sdk-py/configuring-mxpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ In order to view the current configuration, one can issue the command `mxpy conf

```
{
"proxy": "https://gateway.multiversx.com",
"txVersion": "1",
"dependencies.llvm.tag": "v...",
"dependencies.vmtools.tag": "v...",
"chainID": "...",
"dependencies.rust.tag": ""
}
```
Expand All @@ -32,17 +29,8 @@ In order to view the current configuration, one can issue the command `mxpy conf

## Updating the `mxpy` configuration

One can alter the current configuration using the command `mxpy config set`. For example, in order to set the proxy URL or the chain ID, one would do the following:
One can alter the current configuration using the command `mxpy config set`. For example, in order to set the **_rust version_** to be used, one would do the following:

```
$ mxpy config set chainID 1...
$ mxpy config set proxy https://gateway.multiversx.com
$ mxpy config set dependencies.rust.tag nightly-2023-05-26
```

:::note
For `mainnet` use `proxy: https://gateway.multiversx.com` and `chainID: 1`.

For `devnet` use `proxy: https://devnet-gateway.multiversx.com` and `chainID: D`.

For `testnet` use `proxy: https://testnet-api.multiversx.com` and `chainID: T`.
:::
Loading