Skip to content

Commit 0eaf298

Browse files
feat: Updated Gelato docs Content (#657)
1 parent ab12516 commit 0eaf298

File tree

7 files changed

+18
-25
lines changed

7 files changed

+18
-25
lines changed
102 KB
Loading

images/guides/gelato/deposit-usdc.png

-20.9 KB
Loading
-86.7 KB
Loading
-99.4 KB
Binary file not shown.
-18.2 KB
Loading
-84.2 KB
Loading

pages/price-feeds/schedule-price-updates/using-gelato.mdx

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@ update the on-chain price after either a fixed time interval or if the price has
77

88
[Gelato](https://www.gelato.network/) is web3’s decentralized backend empowering developers to create augmented smart contracts that are automated,
99
gasless and off-chain aware on all major EVM-compatible blockchains. Gelato offers Web3 Functions (W3F) that connect your
10-
smart contracts to off-chain data and computation by running decentralized cloud functions
10+
smart contracts to off-chain data and computation by running decentralized cloud functions.
1111

1212
### Gelato W3F Pyth Task
1313

1414
The Gelato W3F Pyth Task is a Gelato task that updates Pyth price feeds on a schedule.
1515
The task is deployed to IPFS and can be used by anyone to schedule price updates for any Pyth price feed.
16-
The task is configured via a yaml file that is hosted on GitHub gist which contains various parameters such as the price
17-
feeds to update, the update frequency, price deviation threshold. Once the task is deployed, these configuration
18-
parameters can be updated by editing the GitHub gist and without needing to redeploy the task.
16+
The task is configured via file called `config.yaml` which contains various parameters such as the price
17+
feeds to update, the update frequency, price deviation threshold.
1918

2019
## Steps
2120

2221
#### 1. Join Gelato Web3 Functions whitelist
2322

24-
Web3 Functions are currently in private beta. In order to use them, you must be added to the whitelist. Apply to the
25-
whitelist by reaching out to the Gelato team [here](https://form.typeform.com/to/RrEiARiI).
23+
Web3 functions like Solidity functions and automated transactions can be used directly. However, to use TypeScript-based Web3 Functions, you must be added to the whitelist.
24+
To apply, please reach out to the Gelato team for access [here](https://discord.com/invite/ApbA39BKyJ).
2625

2726
#### 2. Configure your task
2827

@@ -40,32 +39,27 @@ already been deployed. The task will automatically pick up these configuration c
4039

4140
Use the link below to auto-populate the task parameters with the Pyth web3 function code:
4241

43-
https://beta.app.gelato.network/new-task?cid=QmTFQHpiThqkVKvuW2KU8cETNBdyXHB9uP34woL6Vc5w6g
42+
https://app.gelato.network/new-task?cid=QmTFQHpiThqkVKvuW2KU8cETNBdyXHB9uP34woL6Vc5w6g
4443

4544
The pyth web3 function code is deployed to IPFS, so you can use it via the cid/link above.
4645
You can find a copy of the web3 function code [here](https://github.com/pyth-network/w3f-pyth-poc-v2/tree/master/web3-functions/pyth-oracle-w3f-priceIds)
4746

4847
Choose network, and then in the "Task secrets" section, set `GIST_ID` to the gistId of the gist you created in step 2.
4948
![](../../../images/guides/gelato/task-creation-gist-id.png)
5049

51-
**Note that the beta currently only supports triggering the task every minute. Once other time intervals are available,
52-
you will need to ensure that your current subscription plan with Gelato supports the desired number of monthly runs.
53-
See [Subscription Plans](https://beta.app.gelato.network/subscriptions)**.
50+
**Note that the free tier have certain limits, Checkout all subscription plans and choose the one that best fits your needs [here](https://app.gelato.network/1balance/subscriptions/functions?networkGroup=mainnets&type=monthly)**.
5451

5552
#### 4. Fund the task
5653

57-
There are two sets of fees that must be paid before the task can execute successfully
54+
There are two sets of fees that must be paid before the task can execute successfully :
5855

5956
**Gelato Fees**
6057

61-
Gelato's fees are paid through [1Balance](https://docs.gelato.network/developer-services/1balance). Once you are
62-
whitelisted, visit the [1Balance app](https://beta.app.gelato.network/balance) and deposit USDC on Polygon to top up
58+
Gelato's fees are paid through [1Balance](https://docs.gelato.network/web3-services/1balance). Once you are
59+
whitelisted, visit the 1Balance section on [Gelato app](https://app.gelato.network/1balance) and deposit USDC on Polygon to top up
6360
your Gelato balance which will be used to pay the Gelato fees on all supported chains. These include computational costs
64-
and transaction gas fees. Testnet executions are subsidized by Gelato and free. Make sure to create your 1Balance account
65-
using the same wallet address that you used to create the Gelato task.
66-
67-
Switch network to Polygon
68-
![](../../../images/guides/gelato/switch-to-polygon.png)
61+
and transaction gas fees. Testnet executions are subsidized by Gelato and free.
62+
Note : You can deposit USDC from any chain supported by Circle CCTP.
6963

7064
Deposit USDC
7165
![](../../../images/guides/gelato/deposit-usdc.png)
@@ -82,8 +76,7 @@ and will be deployed the first time a task is created for a given wallet address
8276

8377
Pyth fees are paid by the `dedicatedMsgSender` and transaction fees as well as computational costs by 1Balance.
8478
You will need to transfer over the native tokens to `dedicatedMsgSender` on every chain where you want to run
85-
the task using a standard transfer. The `dedicatedMsgSender` address can be found in the Gelato task details
86-
under `Target smart contract` as the `Your msg.sender` field
79+
the task using a standard transfer. The `dedicatedMsgSender` address can be found in the Gelato App settings and on the Task dashboard as well.
8780

8881
![](../../../images/guides/gelato/dedicated-msg-sender.png)
8982

@@ -92,8 +85,8 @@ task.
9285

9386
#### 5. Check task execution
9487

95-
Once your task has been successfully created, you can check the task execution details in the Gelato app.
96-
[Example Pyth Web3 Function on Mumbai](https://beta.app.gelato.network/task/0x2c64539daaeb86addd6f556b68251a2fdf0df5c09ec07b8a30a2fbf76f4fe907?chainId=80001)
88+
Once your task has been successfully created, you can check the task execution details on the Task dashboard in the Gelato app.
89+
9790
![](../../../images/guides/gelato/task-execution.png)
9891

9992
## Managing your Gelato Task
@@ -107,8 +100,8 @@ Telegram or Discord.
107100

108101
See the following links for more information:
109102

110-
- [1Balance Alerts](https://docs.gelato.network/developer-services/1balance/1balance-alerts)
111-
- [Balance Alerts](https://docs.gelato.network/developer-services/automate/execution-and-balance-alerts)
103+
- [1Balance Alerts](https://docs.gelato.network/web3-services/1balance/1balance-alerts)
104+
- [Balance Alerts](https://docs.gelato.network/web3-services/web3-functions/analytics-and-monitoring)
112105

113106
#### Updating configuration
114107

@@ -126,4 +119,4 @@ rate-limited by GitHub. To verify that your most recent task execution used the
126119
If you want to customize the behavior of the web3 function beyond what is supported by updating the config.yaml, you can
127120
clone this [repo](https://github.com/pyth-network/w3f-pyth-poc-v2) and deploy your own version of the web3 function.
128121
You can then use the cid of your deployed web3 function to create a new task. See [README.md](https://github.com/pyth-network/w3f-pyth-poc-v2/tree/master/web3-functions/pyth-oracle-w3f-priceIds/README.md) and
129-
[Gelato Web3 Function Documentation](https://docs.gelato.network/developer-services/web3-functions) for more details.
122+
[Gelato Web3 Function Documentation](https://docs.gelato.network/web3-services/web3-functions) for more details.

0 commit comments

Comments
 (0)