Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion docs/developers/relayed-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ Here's an example of a relayed v3 transaction. Its intent is to call the `add` m
The SDKs have built-in support for relayed transactions. Please follow:
- [mxpy support](/sdk-and-tools/sdk-py/mxpy-cli/#relayed-transactions-v3)
- [sdk-py support](/sdk-and-tools/sdk-py/sdk-py-cookbook/#relayed-transactions)
- [sdk-js v14 support](/sdk-and-tools/sdk-js/sdk-js-cookbook-v14#relayed-transactions)
- [sdk-js v14 support](/sdk-and-tools/sdk-js/sdk-js-cookbook#relayed-transactions)
- [sdk-js v13 support (legacy)](/sdk-and-tools/sdk-js/sdk-js-cookbook-v13#preparing-a-relayed-transaction)
2 changes: 1 addition & 1 deletion docs/developers/sc-calls-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ There are multiple ways of formatting the data field:

- manually convert each argument, and then join the function name, alongside the argument via the `@` character.
- use a pre-defined arguments serializer, such as [the one found in sdk-js](https://github.com/multiversx/mx-sdk-js-core/blob/main/src/smartcontracts/argSerializer.ts).
- use sdk-js's [contract calls](/sdk-and-tools/sdk-js/sdk-js-cookbook-v14/#smart-contracts).
- use sdk-js's [contract calls](/sdk-and-tools/sdk-js/sdk-js-cookbook/#smart-contracts).
- use sdk-cpp's [contract calls](https://github.com/multiversx/mx-sdk-cpp/blob/main/src/smartcontracts/contract_call.cpp).
- and so on

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ title: Signing programmatically

In order to sign a transaction (or a message) using one of the SDKs, follow:

- [Signing objects using **sdk-js**](/sdk-and-tools/sdk-js/sdk-js-cookbook-v14#signing-objects)
- [Signing objects using **sdk-js**](/sdk-and-tools/sdk-js/sdk-js-cookbook#signing-objects)
- [Signing objects using **sdk-py**](/sdk-and-tools/sdk-py/sdk-py-cookbook#signing-objects)
2 changes: 1 addition & 1 deletion docs/sdk-and-tools/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Note that Rust is also the recommended programming language for writing Smart Co
| Name | Description |
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [sdk-js](/sdk-and-tools/sdk-js) | High level overview about sdk-js. |
| [sdk-js cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook-v14) | Learn how to handle common tasks by using sdk-js. |
| [sdk-js cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook) | Learn how to handle common tasks by using sdk-js. |
| [Extending sdk-js](/sdk-and-tools/sdk-js/extending-sdk-js) | How to extend and tailor certain modules of sdk-js. |
| [Writing and testing sdk-js interactions](/sdk-and-tools/sdk-js/writing-and-testing-sdk-js-interactions) | Write sdk-js interactions for Visual Studio Code |
| [sdk-js migration guides](/sdk-and-tools/sdk-js/sdk-js-migration-guides) | Migrate from sdk-js v9.x to v10+ |
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk-and-tools/sdk-js/migration-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: Migration guides
This page links to resources which are helpful in upgrading to newer versions of a **sdk-js** package.

:::important
Make sure you have a look over the [cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook-v14), in advance.
Make sure you have a look over the [cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook), in advance.
:::

## Migrate to a newer sdk-core
Expand Down
4 changes: 2 additions & 2 deletions docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v14.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: sdk-js-cookbook-v14
id: sdk-js-cookbook
title: Cookbook (v14)
pagination_prev: sdk-and-tools/sdk-js/sdk-js-cookbook-versions
pagination_prev: sdk-and-tools/sdk-js/sdk-js-cookbook-v13
pagination_next: null
---

Expand Down
17 changes: 0 additions & 17 deletions docs/sdk-and-tools/sdk-js/sdk-js-cookbook-versions.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ title: Writing and testing interactions

Generally speaking, we recommended to use [sc-meta CLI](/developers/meta/sc-meta-cli) to [generate the boilerplate code for your contract 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-v14). 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.
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 [**xSuite**](https://xsuite.dev), a toolkit to init, build, test, deploy contracts using JavaScript, made by the [Arda team](https://arda.run).
6 changes: 1 addition & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,9 @@ const config = {
from: "/sdk-and-tools/erdgo",
to: "/sdk-and-tools/sdk-go",
},
{
from: "/sdk-and-tools/erdjs/erdjs-cookbook",
to: "/sdk-and-tools/sdk-js/sdk-js-cookbook-versions",
},
{
from: "/sdk-and-tools/sdk-js/sdk-js-cookbook",
to: "/sdk-and-tools/sdk-js/sdk-js-cookbook-v14",
to: "/sdk-and-tools/sdk-js/sdk-js-cookbook",
},
{
from: "/sdk-and-tools/erdjs/writing-and-testing-erdjs-interactions",
Expand Down
9 changes: 2 additions & 7 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,21 +222,16 @@ const sidebars = {
label: "Javascript SDK",
items: [
"sdk-and-tools/sdk-js/sdk-js",
{
label: "Cookbook",
type: "doc",
id: "sdk-and-tools/sdk-js/sdk-js-cookbook-v14",
},
{
type: "category",
label: "Cookbook (versioned)",
link: {
type: "doc",
id: "sdk-and-tools/sdk-js/sdk-js-cookbook-versions"
id: "sdk-and-tools/sdk-js/sdk-js-cookbook"
},
items: [
"sdk-and-tools/sdk-js/sdk-js-cookbook-v13",
"sdk-and-tools/sdk-js/sdk-js-cookbook-v14",
"sdk-and-tools/sdk-js/sdk-js-cookbook",
]
},
"sdk-and-tools/sdk-js/extending-sdk-js",
Expand Down
Loading