Skip to content

Commit

Permalink
Merge pull request #1669 from nnsW3/Docs-improvements
Browse files Browse the repository at this point in the history
Docs typo fixes
  • Loading branch information
galleon8 authored Jun 28, 2024
2 parents 4386e5f + 15409d0 commit 1ab771a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pages/advanced-api/javascript-sdk.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ankr.js SDK

_Ankr.js SDK_ contains a compact JavaScript library to enable you interact with [Advanced API](/advanced-api/overview/).
_Ankr.js SDK_ contains a compact JavaScript library to enable you to interact with [Advanced API](/advanced-api/overview/).

## Get started

Expand Down
2 changes: 1 addition & 1 deletion pages/advanced-api/token-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Callout } from "components";

## Who Can Spend Your Tokens?

Interacting with DeFi apps, we usually approve token allowances to enable the dApp making transactions on our behalf. It's easy to forget about those allowances and the spending limits involved.
Interacting with DeFi apps, we usually approve token allowances to enable the dApp to make transactions on our behalf. It's easy to forget about those allowances and the spending limits involved.

Later on it can mean that an exploited project's contract has unlimited access to the tokens in your wallet. And malicious actors can spend those tokens even if you have withdrawn your funds from the smart contract back into your wallet.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ contract CrowdfundingProject {
string public projDescription;
uint256 public goalAmount;
uint256 public raisedAmount;
address ownerWallet; //address where amount to be transfered
address ownerWallet; //address where amount to be transferred

event Funded(
address indexed donar,
Expand Down
2 changes: 1 addition & 1 deletion pages/automation/create-compatible-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Contract that are compatible with the `IAutomateCompatible` Ankr interface allow

A compatible contract contains:
1. A checker, that repeatedly checks on an event.
2. A follow-up executor, that contains the custom logic and executes it when the checker returnss `true`.
2. A follow-up executor, that contains the custom logic and executes it when the checker returns `true`.

## `IAutomateCompatible` interface
The interface contains a checker `checkTask()` and an executor with the custom logic `performTask()`.
Expand Down
4 changes: 2 additions & 2 deletions pages/automation/custom-logic-automation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To create a custom logic automation task, you need to:

## Connect a wallet
<Callout type="info">
We recommend MetaMask as a most adopted and tested-out wallet and use it throughout our documentation.
We recommend MetaMask as the most adopted and tested-out wallet and use it throughout our documentation.
</Callout>

To connect a wallet:
Expand Down Expand Up @@ -52,4 +52,4 @@ To create a time-based Task:
* [Automation overview](/automation/overview/)
* [Time-based automation](/automation/time-based-automation/)
* [Manage automation tasks](/automation/manage-tasks)
* [Create compatible contracts](/automation/create-compatible-contracts/)
* [Create compatible contracts](/automation/create-compatible-contracts/)
2 changes: 1 addition & 1 deletion pages/automation/manage-tasks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Callout } from "components";
## Fund Tasks
<Callout type="tip">
Don't forget to fund your Ankr Automation account so your Tasks can keep running.
Remember that actions that write to blockchain and not only read information from need a gas fee to execute.
Remember that actions that write to blockchain and not only read information from needing a gas fee to execute.
</Callout>

To add funds:
Expand Down
4 changes: 2 additions & 2 deletions pages/automation/time-based-automation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To create a time-based automation task, you need to:

## Connect a wallet
<Callout type="info">
We recommend MetaMask as a most adopted and tested-out wallet and use it throughout our documentation.
We recommend MetaMask as the most adopted and tested-out wallet and use it throughout our documentation.
</Callout>

To connect a wallet:
Expand Down Expand Up @@ -53,4 +53,4 @@ To create a time-based Task:
* [Automation overview](/automation/overview/)
* [Custom logic automation](/automation/custom-logic-automation/)
* [Manage automation tasks](/automation/manage-tasks)
* [Create compatible contracts](/automation/create-compatible-contracts/)
* [Create compatible contracts](/automation/create-compatible-contracts/)
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ FILEBASE_REGION=us-east-1
FILE_SERVER_URL=http://localhost:5002
```

What we want to do is create a way so that when we’re running in `development` mode that the files upload to our local `bucket` folder, but when we’re in production mode, the files upload to IPFS with Filebase. To do this, we’re going to take advantage of our `NODE_ENV` and modify our `upload` middleware to use a different multer configuration when the `NODE_ENV` is set to production. More specifically, we’ll be using an extension of `multer` called `multer-s3` that handles requests regularly to AWS S3 but because Filebase is an AWS S3 compatible service, we’ll just configure it to point to Filebase.
What we want to do is create a way so that when we’re running in `development` mode the files upload to our local `bucket` folder, but when we’re in production mode, the files upload to IPFS with Filebase. To do this, we’re going to take advantage of our `NODE_ENV` and modify our `upload` middleware to use a different multer configuration when the `NODE_ENV` is set to production. More specifically, we’ll be using an extension of `multer` called `multer-s3` that handles requests regularly to AWS S3 but because Filebase is an AWS S3 compatible service, we’ll just configure it to point to Filebase.

File: `./src/app.ts`

Expand Down

0 comments on commit 1ab771a

Please sign in to comment.