Skip to content

Commit 920008a

Browse files
committed
Fix broken links/anchors
1 parent 9f49635 commit 920008a

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

website/docs/basics/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To write CashScript smart contracts locally you use a code editor. For the best
3636
:::
3737

3838
:::tip
39-
To set up your CashScript developer environment, see the [Syntax Highlighting](/docs/guides/syntax-highlighting) guide.
39+
To set up your CashScript developer environment, see the [Syntax Highlighting](/docs/language/syntax-highlighting) guide.
4040
:::
4141

4242
### Installing the CashScript compiler

website/docs/guides/adversarial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ If DEXes don't cleverly aggregate their prices across blocks, then it can be eco
6161
Because having a more advantageous (older) price state or ratio might be very profitable, it is worth it for the adversarial actor to pay the high fee "miner bribe" to attempt this double spend transaction.
6262

6363
:::tip
64-
We list some possible mitigations which smart contract systems can implement in the section on ['Avoiding MEV'](#avoiding-mev)
64+
We list some possible mitigations which smart contract systems can implement in the section on ['Avoiding MEV'](#mev-avoidance-strategies)
6565
:::
6666

6767

website/docs/guides/cashtokens.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ While CashTokens might seem overwhelming at first, realize that in contracts you
5656

5757
and their equivalent for outputs:
5858

59-
- **`bytes tx.outputs[i].tokenCategory`** - `tokenCategory` + `tokenCapability` of a specific output. (see [below](#1-tokencategory-contains-the-nft-capability)).
59+
- **`bytes tx.outputs[i].tokenCategory`** - `tokenCategory` + `tokenCapability` of a specific output. (see [below](#tokencategory-contains-the-nft-capability)).
6060
- **`bytes tx.outputs[i].nftCommitment`** - NFT commitment data of a specific output
6161
- **`int tx.outputs[i].tokenAmount`** - Amount of fungible tokens of a specific output.
6262

@@ -70,7 +70,7 @@ The [Jedex demo](https://github.com/bitjson/jedex) also introduces very advanced
7070

7171
Below we'll create a short list of the use cases which will be the most important to know about:
7272

73-
- **Covenant tracking tokens** - this is what enables unique authentication of contract deployments
73+
- **Covenant tracking tokens** - this is what enables unique authentication of contract deployments
7474
- **Commitment-based state management** - this is what `mutable` nfts are extremely useful for
7575
- **Depository covenants/token pools** - which we would call token sidecars
7676
- **Role tokens** - these are authentication tokens for admins
@@ -171,7 +171,7 @@ const contract = new Contract(artifact, [reverseHex(tokenId)], { provider })
171171
Most end-user CashTokens wallets expect CashTokens UTXOs to only hold a tiny amount of BCH like 1000 sats. Deviating from the expectation might cause unforeseen problems with user's wallets.
172172

173173
:::tip
174-
You can hard code in your contract that any user token output should have exactly `1000` sats, this avoids possible complicating freedom during transaction building.
174+
You can hard code in your contract that any user token output should have exactly `1000` sats, this avoids possible complicating freedom during transaction building.
175175
:::
176176

177177
However when constructing a transaction with user owned UTXOs, you should always make sure to check whether you handle the edge case of users with combined BCH + CashTokens UTXOs correctly in change output handling both for BCH and the tokens.

website/docs/guides/covenants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,6 @@ With contracts holding minting NFTs, all outputs need to be carefully controlled
325325
## Conclusion
326326
We have discussed the main uses for covenants as they exist on Bitcoin Cash today. We've seen how we can achieve different use cases by combining transaction output restrictions to `P2SH` and `P2PKH` outputs. We also touched on more advanced subjects such as keeping local state in NFTs. Covenants and CashTokens are the **main differentiating factor** for BCH smart contracts when compared to BTC, while keeping the same **efficient, atomic verification**.
327327

328-
Keeping local state in NFTs and issuing NFTs as receipts are two strategies which can be used to create much more sophisticated decentralized applications. You can read more of these advanced CashTokens use cases in our [dedicated guide](/docs/guides/cashtokens#cashtokens-usecases)!
328+
Keeping local state in NFTs and issuing NFTs as receipts are two strategies which can be used to create much more sophisticated decentralized applications. You can read more of these advanced CashTokens use cases in our [dedicated guide](/docs/guides/cashtokens#cashtokens-use-cases)!
329329

330330
[bitcoin-covenants]: https://fc16.ifca.ai/bitcoin/papers/MES16.pdf

website/docs/releases/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ CashScript used to be very tightly coupled with BITBOX. This proved to be proble
386386
- :boom: Remove `Sig` alias for `SignatureTemplate` that was deprecated in v0.4.1.
387387
- :boom: **BREAKING**: Refactor contract instantiation flow
388388
- A contract is now instantiated by providing a compiled artifact, constructor arguments and an optional network provider.
389-
- Anyone can implement the NetworkProvider interface to create a custom provider. The CashScript SDK offers three providers out of the box: one based on electrum-cash (default), one based on FullStack.cash' infrastructure, and one based on BITBOX. See the [NetworkProvider docs](/docs/sdk/instantiation#networkprovider) for details.
389+
- Anyone can implement the NetworkProvider interface to create a custom provider. The CashScript SDK offers three providers out of the box: one based on electrum-cash (default), one based on FullStack.cash' infrastructure, and one based on BITBOX. See the [NetworkProvider docs](/docs/sdk/network-provider) for details.
390390
- See the [migration notes](/docs/releases/migration-notes#v04-to-v05) for details on migrating from the old contract instantiation flow.
391391
- :boom: **BREAKING**: Remove the artifacts `'networks'` field and `.deployed()` functionality, This proved to be confusing and is better suited to be handled outside of the CashScript SDK.
392392
- :boom: **BREAKING**: `.send()` now returns a libauth Transaction instead of a BITBOX Transaction object. Alternatively a `raw` flag can be passed into the function to return a raw hex string.

website/docs/sdk/instantiation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ contract.address: string
6464
A contract's regular address (without token-support) can be retrieved through the `address` member field.
6565

6666
:::note
67-
Wallets will not allow you to send CashTokens to this address. For that you must use the [tokenAddress](#tokenAddress) below. Wallets which have not upgraded might not recognize this new address type.
67+
Wallets will not allow you to send CashTokens to this address. For that you must use the [tokenAddress](#tokenaddress) below. Wallets which have not upgraded might not recognize this new address type.
6868
:::
6969

7070
#### Example

0 commit comments

Comments
 (0)