gelatodigital / automate Goto Github PK
View Code? Open in Web Editor NEWAutomate arbitrary smart contracts with Gelato Automate
Home Page: https://app.gelato.network/
Automate arbitrary smart contracts with Gelato Automate
Home Page: https://app.gelato.network/
Create an Ops Task Treasury that is congruent with the new gas savings diamond PrepaidExecFacet
: https://github.com/gelatodigital/gelato-vanilla/issues/155
new event
LogDeductFees(address indexed user, address indexed executor, address indexed token, uint256 fees, address service)
new useFunds
function (maybe call it deductFees
) which simply deducts fees
from users balance and emits event LogDeductFees
Task treasury names on fantom and matic are TaskTreasuryFantom
& TaskTreasuryMatic
Hi everybody,
I am trying to write a resolver contract which can also a contract creator for several bots. I looked into your examples and noticed
that I need to inherit OpsTaskCreator.sol
So I tried to install your public gelatodigital/ops as node-modul via yarn add https://github.com/gelatodigital/ops.git
and I am getting this error:
error C:\Github\EasyPI-Contract\node_modules\gelato-ops: Command failed.
Exit code: 1
Command: yarn husky install
Arguments:
Directory: C:\Github\EasyPI-Contract\node_modules\gelato-ops
Output:
my yarn version is 1.22.19
when I try the same with npm install https://github.com/gelatodigital/ops.git
I get the error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `yarn husky install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
my npn version is: 6.14.15
Is there a lib for the npm registry? If not, should I just dl the contracts and includ them manually?
Thanks for your help!
Deploy PokeMe smart contracts and verify them on:
Instead of using signatures for task names consider the following:
Add a new parameter here:
https://github.com/gelatodigital/ops/blob/dd0d214bf59376ed771b5da036411f3cf6853081/contracts/Ops.sol#L50
string calldata name
And emit the name here:
https://github.com/gelatodigital/ops/blob/dd0d214bf59376ed771b5da036411f3cf6853081/contracts/Ops.sol#L206
then you can cheaply get all names for tasks, either by quickly querying events or by getting them through a subgraph
If a function within a smart contract that a user wants to automate contains an onlyEOA
modifier, Gelato wont work with it.
Lets try to scan a selected contracts source code that we receive from Etherscan for the respective function to see if there is a onlyEOA
modifier present. If yes, we need to display a warning saying: "Please remove the onlyEOA
modifier from your smart contracts to make it compatible with Gelato
What if I use proxy contracts for the contract to Poke/Automate?
I have a proxy contract that does delegate calls to an implementation/logic contract, if I use the address of the proxy contract in the Gelato Ops page it will therefore give me the functions for that proxy (the proxy is verified on etherscan so it gets its abi from there).
Is there a way to use a proxy contract on Gelato Ops?
For example:
struct Flags {
bool isTimedTask,
bool isFlashbots,
...
)
hello there, heroes of defi.
i would like to automate the staking of my staking rewards (compounding) on moonbeam/GLMR.
here is the link to the staking contract: https://moonbeam.moonscan.io/address/0x0000000000000000000000000000000000000800#writeContract
(function 8: delegator_bond_more)
maybe make it possible to split the rewards up in 3 portions (20 tokens / 3) and stake 33% of the rewards on collator/node #1, 33% on collator/node #2, and 33% on collator/node #3. (i have spread my staked tokens over 3 collators/nodes for more stable returns/less randomness in rewards)
the problem is that im too n00b to figure out how to do it myself, and you guys have not yet gotten to the task of writing the code to do so.
i actually only write this to tell you that i think that everybody on moonbeam would appreciate it greatly if this function/service got added to the Gelato UI (https://app.gelato.network/) service/function list in a not so distant future :)
have a great summer frens ๐ฅ
To Do:
NETWORK_TOKEN
to be deposited to the TaskTreasury.sol
by a simple transfer using a receive() external payable
fallback functionfunction isTestnet()
function getOrCreatePaymentToken()
IS_TESTNET
To address Parent / Child payment model, we could allow sponsorship on the TaskTreasury contract.
Workflow would be:
TaskTreasury.sponsorUser(child)
On a technical level, this would require changes only on the TaskTreasuryUpgradable
contract:
sponsoredUsers
= sponsor address => list of sponsored users addressuserSponsor
= user address => sponsor addresssponsorUser()
/ removeSponsoredUser()
to add / remove sponsored users for the current msg.sender
useFunds
method, check if the current _user
(ie the task creator) has a sponsor and if so, use the sponsor balance instead of the user balanceQuestions:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.