Skip to content

Commit

Permalink
Merge pull request #865 from multiversx/cleanup-04-05
Browse files Browse the repository at this point in the history
Cleanup - old cookbook regeneration tools (render includes)
  • Loading branch information
andreibancioiu authored Apr 5, 2024
2 parents 3987ad8 + 481aa7a commit 7f480bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 121 deletions.
36 changes: 0 additions & 36 deletions docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ This page will guide you through the process of handling common tasks using **sd
This cookbook makes use of `sdk-js v12`. In order to migrate from `sdk-js v11.x` to `sdk-js v12`, please follow [the migration guide](/sdk-and-tools/sdk-js/sdk-js-migration-guides).
:::

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/basic.md" } -->

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

## Creating network providers
Expand Down Expand Up @@ -222,10 +220,6 @@ await Promise.all([watcher.awaitCompleted(tx1), watcher.awaitCompleted(tx2), wat

For a different awaiting strategy, also see [extending sdk-js](https://docs.multiversx.com/sdk-and-tools/sdk-js/extending-sdk-js).

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/transfers.md" } -->

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

## Token transfers
Expand Down Expand Up @@ -304,10 +298,6 @@ const tx4 = factory.createMultiESDTNFTTransfer({
});
```

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/contracts_01_deployments.md" } -->

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

## Contract deployments
Expand Down Expand Up @@ -414,10 +404,6 @@ let { returnCode } = new ResultsParser().parseUntypedOutcome(transactionOnNetwor
console.log("Return code:", returnCode);
```

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/contracts_02_abi.md" } -->

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

## ABI
Expand Down Expand Up @@ -449,10 +435,6 @@ abiRegistry = AbiRegistry.create(response.data);
existingContract = new SmartContract({ address: existingContractAddress, abi: abiRegistry });
```

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/contracts_03_queries.md" } -->

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

## Contract queries
Expand Down Expand Up @@ -565,10 +547,6 @@ Depending on the context, reinterpret (cast) the results:
let firstValueAsStruct = <Struct>firstValue;
```

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/contracts_04_interactions.md" } -->

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

## Contract interactions
Expand Down Expand Up @@ -788,10 +766,6 @@ let endpointDefinition = smartContract.getEndpoint("myFunction");

For customizing the default parser, also see [extending sdk-js](/sdk-and-tools/sdk-js/extending-sdk-js).

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/contracts_05_events.md" } -->

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

## Contract events
Expand All @@ -816,10 +790,6 @@ const outcome = resultsParser.parseEvent(event, eventDefinition);
console.log(JSON.stringify(outcome, null, 4));
```

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/codec.md" } -->

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

## Explicit decoding / encoding of values
Expand Down Expand Up @@ -857,10 +827,6 @@ decodedValue = decoded.valueOf();
console.log(JSON.stringify(decodedValue, null, 4));
```

<!-- END_INCLUDE_FILE -->

<!-- BEGIN_INCLUDE_FILE { "url": "https://raw.githubusercontent.com/multiversx/mx-sdk-js-examples/v0.6.0/cookbook/generated/signing.md" } -->

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

## Signing objects
Expand Down Expand Up @@ -974,8 +940,6 @@ console.log("Is signature of Bob?", bobVerifier.verify(serializedTx, txSignature
console.log("Is signature of Bob?", bobVerifier.verify(serializedMessage, messageSignature));
```

<!-- END_INCLUDE_FILE -->

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

## Decoding transaction metadata
Expand Down
85 changes: 0 additions & 85 deletions scripts/render_includes.py

This file was deleted.

0 comments on commit 7f480bc

Please sign in to comment.