1.6.1 • Published 4 years ago

@gelatonetwork/core v1.6.1

Weekly downloads
319
License
ISC
Repository
github
Last release
4 years ago

Overview

Installation

$ npm install @gelatonetwork/core

Dependencies

This project is build on Buidler & Ethers.js

Usage

Once installed, you can use the contracts in the library by importing them:

pragma solidity ^0.6.10;

import {Condition, Action, Task, Operation, DataFlow} from "@gelatonetwork/core/contracts/gelato_core/IGelatoCore.sol";

contract AutomatedDapp {

    address public immutable gelatoCore;

    constructor(address _gelatoCore) public {
        gelatoCore = _gelatoCore
    }

    function createGelatoTask() public returns(Task memory) {
        Condition memory condition = Condition({
            inst: conditionAddress,
            data: abi.encodePacked(block.number + _blockNumberDelta);
        });

        Action memory condition = Action({
            addr: actionAddress,
            data: abi.encodeWithSignature("doAction(uint256)", actioninput);
            operation: Operation.Call,
            dataFlow: DataFlow.None,
            value: 0,
            termsOkCheck: false
        });

        Task memory task = Task({
            conditions: [condition],
            actions: [action],
            0,
            0
        }):

        return task;
    }

}

Resources

  • 🍦 Read our Gelato-V1 release announcement on our blog
  • 🍦 Try out our demo tutorial here
  • 🍦 Try out our advanced demo here
  • 🍦 Soon we will publish Developer Documentation. Bare with us!
  • 🍦 Read the Gelato Audit report
1.6.1

4 years ago

1.6.0

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.6.0

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.0

5 years ago

0.5.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.4

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago