Skip to content

Commit 9667930

Browse files
committed
feat: automatically check for simple typos
1 parent 722ffa3 commit 9667930

File tree

10 files changed

+39
-22
lines changed

10 files changed

+39
-22
lines changed

.github/workflows/typos.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Find Typos
2+
on: [push, pull_request]
3+
4+
jobs:
5+
check:
6+
strategy:
7+
fail-fast: false
8+
name: Spell Check with Typos
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Actions Repository
12+
uses: actions/checkout@v4
13+
14+
- name: Check spelling of source code
15+
uses: crate-ci/typos@master
16+
with:
17+
files: ./src

src/content/docs/generalised-incentives/build-bridge-agnostic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Build Bridge Agnostic"
3-
description: "Are you building a cross-chain application and are you tired of vendor lock-in? So are we! Generalised Incentives allows you to support a wide varity of messaging bridges while standarding the user interface."
3+
description: "Are you building a cross-chain application and are you tired of vendor lock-in? So are we! Generalised Incentives allows you to support a wide variety of messaging bridges while standarding the user interface."
44
sidebar:
55
order: 1
66
---

src/content/docs/generalised-incentives/integrate.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This will add Generalised Incentives to your repository and you are now ready to
2121

2222
Start by adding import statements to your smart contract file. We need to import 2 files:
2323

24-
- [ICrossChainReceiver](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/ICrossChainReceiver.sol): This will ensure you corretly implement the interfaces for the message callbacks
24+
- [ICrossChainReceiver](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/ICrossChainReceiver.sol): This will ensure you correctly implement the interfaces for the message callbacks
2525
- [IIncentivizedMessageEscrow](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/IIncentivizedMessageEscrow.sol): This will ensure you correctly call the message escrow correctly.
2626
- [Optionally] [IMessageEscrowStructs](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/IMessageEscrowStructs.sol): To simplify struct handling.
2727

@@ -44,7 +44,7 @@ contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
4444

4545
The integration is less opinionated than other cross-chain endpoint, as we need to define some boilercode. First, lets set our escrow endpoint. Below we present 2 options
4646

47-
1. Set the escrow explicity. This defines a single escrow which you may interact in. This may be desired to reduce complexity but also introduces some vendor lock-in.
47+
1. Set the escrow explicitly. This defines a single escrow which you may interact in. This may be desired to reduce complexity but also introduces some vendor lock-in.
4848
2. Define a list of escrow that are allowed. This allows you to pick and chose which AMB is best suited for a certain connection. This introduces some additional complexity but mitigates vendor lock-in.
4949

5050
```solidity
@@ -128,7 +128,7 @@ contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
128128
// That is because if the message fails for some reason,
129129
// an error code is prepended to the message.
130130
// By always sending back hex"00", we ensure that the first byte is unused.
131-
// Alternativly, use this byte as our own failure code.
131+
// Alternatively, use this byte as our own failure code.
132132
return bytes.concat(
133133
hex"00",
134134
keccak(message)
@@ -152,7 +152,7 @@ We havn't actually sent any messages yet. Lets do that. For simplicity, this sec
152152
```solidity
153153
154154
contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
155-
// If your contract didn't inheirt IMessageEscrowStructs, you may have to
155+
// If your contract didn't inherit IMessageEscrowStructs, you may have to
156156
// set the type of incentive to IIncentivizedMessageEscrow.IncentiveDescription.
157157
function sendMessage(bytes32 destinationIdentifier, bytes destinationAddress, bytes calldata message, IncentiveDescription calldata incentive, uint64 deadline) payable external {
158158
// Submit the message to the escrow. Remember to add associated value.

src/content/docs/introduction/how-it-works.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "How Does Catalyst Work?"
3-
description: "Catalyst uses the Unit Of Liquidity as a liquidity abstraction and that allows Catalyst to evaluate liquidity asyncronously."
3+
description: "Catalyst uses the Unit Of Liquidity as a liquidity abstraction and that allows Catalyst to evaluate liquidity asynchronously."
44
sidebar:
55
order: 2
66
---

src/content/docs/protocol/liquidity-pools.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Liquidity Pools"
3-
description: "Catalyst liquidity pools can relicate any type of AMM pool such as Curve stableswap, UNI v2, and Balancer all while being nativly cross-chain."
3+
description: "Catalyst liquidity pools can relicate any type of AMM pool such as Curve stableswap, UNI v2, and Balancer all while being natively cross-chain."
44
sidebar:
55
order: 3
66
---
@@ -173,4 +173,4 @@ scenarios: {
173173
```
174174

175175
Any asset within the pool can be exchanged into any other asset in the pool. This is facilitated by swapping into Units as an intermediary. Units are pricing using an internal price curve which defined a constant operation space.
176-
For local swaps within the same vaults, swap can be converted into and out of units in a single transaction allowing for full local utilisation of all liquidity contains the in vault. Using a cross-chain messaging layer, Units can be transfered to other connected vaults, where they can be converted into the desired output token.
176+
For local swaps within the same vaults, swap can be converted into and out of units in a single transaction allowing for full local utilisation of all liquidity contains the in vault. Using a cross-chain messaging layer, Units can be transferred to other connected vaults, where they can be converted into the desired output token.

src/content/docs/protocol/swaps-types.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Swaps Types"
3-
description: "Catalyst suports 4 different types of swaps: Local Swaps, Cross-Chain Swaps, Underwritten Cross-chain swaps, and Logic Dependent Swaps. This allows Catalyst to bring the forefront of cross-chain innovation anywhere."
3+
description: "Catalyst supports 4 different types of swaps: Local Swaps, Cross-Chain Swaps, Underwritten Cross-chain swaps, and Logic Dependent Swaps. This allows Catalyst to bring the forefront of cross-chain innovation anywhere."
44
sidebar:
55
order: 4
66
---
@@ -25,7 +25,7 @@ Underwriters underwriting their own swaps can get sub second swaps price finalit
2525

2626
## Logic Dependent Swaps
2727

28-
By only commiting to a swap if a certain logic returns true, Catalyst opens up for a host of new cross-chain applications. Developers can set any condition which can be programmed into a smart contract to determine whether or not to commit to the swap. If not, the swap reverts back to the sending chains.
28+
By only committing to a swap if a certain logic returns true, Catalyst opens up for a host of new cross-chain applications. Developers can set any condition which can be programmed into a smart contract to determine whether or not to commit to the swap. If not, the swap reverts back to the sending chains.
2929

3030
Examples of use cases for logic dependent swaps:
3131

@@ -34,8 +34,8 @@ Examples of use cases for logic dependent swaps:
3434
- Governance fee collection: Send fees from a chain and only commit to the transfer if it can be exchanged at favorable rates.
3535
- Rebalance WBTC between AAVE deployment: Only commit to the rebalance if the rate on the destination chain is higher than the sending chain.
3636

37-
Underwriting is conditional on the configured dependent logic. As a result, underwriter will continously try to underwriter swaps if the conditions may change over time.
37+
Underwriting is conditional on the configured dependent logic. As a result, underwriter will continuously try to underwriter swaps if the conditions may change over time.
3838

39-
## Liquidity boostrapping pools (LBPs)
39+
## Liquidity bootstrapping pools (LBPs)
4040

4141
Liquidity Bootstrapping Pools (LBPs) are pools that allow for dynamic changes in token weighting over time. The pool owner determines the starting and end weights and times, and has the ability to pause swaps. LBPs use a weighted math model that gradually adjusts the token price until it reaches market equilibrium.

src/content/docs/relayer/setup.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Setting up a Relayer"
3-
description: "Setting up the Generalised Relayer is easy for everyone. After installing Docker, the relayer can be installed by pulling the generalised-relayer repo and then configuring the appropiate settings. Fund the relayer and you are off to the races."
3+
description: "Setting up the Generalised Relayer is easy for everyone. After installing Docker, the relayer can be installed by pulling the generalised-relayer repo and then configuring the appropriate settings. Fund the relayer and you are off to the races."
44
sidebar:
55
order: 3
66
---
@@ -88,11 +88,11 @@ where `0xf2d04...23d9` is your privatekey.
8888

8989
:::tip[Private Key Format]
9090
A proper private key begins with **0x**. Metamask does not add 0x to the front of the privatekey and you may have to do that yourself.
91-
The privatekey should be 64 charactors long without 0x and 66 charactors long with 0x.
91+
The privatekey should be 64 characters long without 0x and 66 characters long with 0x.
9292
:::
9393

9494
:::caution
95-
Do not use this private key for other applications as it could interfear with the operation of the relayer wallet. Use a dedicated private key for the relayer to ensure proper operation.
95+
Do not use this private key for other applications as it could interfere with the operation of the relayer wallet. Use a dedicated private key for the relayer to ensure proper operation.
9696
:::
9797

9898
### RPCs

src/content/docs/resources/audit-whitepaper.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Audits & Whitepaper"
3-
description: "Catalyst contracts has been audited a total of 6 seperate times, with Generalised incentives and Catalyst both having been audited thrice. Catalyst has published 1 Whitepaper: Asynchronous Autonomous Market Making via a Unit of Liquidity"
3+
description: "Catalyst contracts has been audited a total of 6 separate times, with Generalised incentives and Catalyst both having been audited thrice. Catalyst has published 1 Whitepaper: Asynchronous Autonomous Market Making via a Unit of Liquidity"
44
sidebar:
55
order: 1
66
---

src/content/docs/underwriter/server-requirements.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: "Server Requirements"
3-
description: "Underwriting is dependent on running a relayer and requires slighly higher specifications."
3+
description: "Underwriting is dependent on running a relayer and requires slightly higher specifications."
44
sidebar:
55
order: 2
66
---
77

8-
Underwriting requres running a relayer:
8+
Underwriting requires running a relayer:
99

10-
1. The relayer acts as a data engine for the Underwriter. It collects everything related to relaying. It has both packages needed to get relevant underwrite infromation and the bounty which helps with evaluating if underwriting is worth it.
10+
1. The relayer acts as a data engine for the Underwriter. It collects everything related to relaying. It has both packages needed to get relevant underwrite information and the bounty which helps with evaluating if underwriting is worth it.
1111
2. The underwriter is very reliant on the underwritten swaps getting relayed. As a result, it needs to be able to force some packages to be relayed.
1212

1313
We recommend running the underwriter on the same VPS as the relayer. Underwriting requires a high degree of stability and as a result, the requirements are slightly higher:

src/content/docs/underwriter/underwriting-swaps.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The bought finality risk is the following:
2828
- If this happens the underwriter loses 100% of their fronted tokens.
2929
- The underwriter can recover part of their collateral if they expire their own underwrite.
3030
3. The underwriter also pays gas to execute the logic associated with the user’s swap. To underwrite a swap is conditional on executing the logic. There is not an associated gas payment included in the underwrite incentive and it will have to also cover the gas cost.
31-
- If the underwriter evaluator is unable to correctly asses the profitability of underwrites, it could underwrite swaps such that it is not truely profitable.
31+
- If the underwriter evaluator is unable to correctly asses the profitability of underwrites, it could underwrite swaps such that it is not truly profitable.
3232
4. The messaging bridge finalises the swap within the configured max time. If the message is not relayed within the configured max time, the underwrite may be expired.
3333
- If this happens the underwriter loses 100% of their fronted tokens.
3434
- The underwriter can recover part of their collateral if they expire their own underwrite.
@@ -76,10 +76,10 @@ With these information, it can both validate swaps by cross-examining the packag
7676
:::danger[Validate!]
7777
`underwrite(...)` is very unlikely to revert. It will generally accept any information and _underwrite_ whatever swap is proposed. But if there is not a messaging bridge hit on the underwrite the fronted tokens will not be refunded.
7878

79-
It is important to throughly verify that swaps before underwriting to ensure the fronted underwrite capital is refunded otherwise there may be a loss of funds.
79+
It is important to thoroughly verify that swaps before underwriting to ensure the fronted underwrite capital is refunded otherwise there may be a loss of funds.
8080
:::
8181

82-
### Risk Migration implementaitons
82+
### Risk Migration implementations
8383

8484
The [reference underwriter](/underwriter/setup/) has built-in risk migrations. Below is a list of the currently implemented risk management features:
8585

0 commit comments

Comments
 (0)