Lilypad-Tech / lilypad

Run AI workloads easily in a decentralized GPU network. https://www.youtube.com/watch?v=yQnB2Yxia4Y
https://lilypad.tech
Apache License 2.0
52 stars 16 forks source link

feat: ability to target rp from smart contract #442

Open arsen3d opened 14 hours ago

arsen3d commented 14 hours ago

Summary

This is a proposal to target an RP from smart contract example for reference:

function runCowsay(
    string memory message
  ) public {
    string[] memory inputs = new string[](2);
    inputs[0] = string(abi.encodePacked("Message=", message));
    inputs[1] = string(abi.encodePacked("target=", "0x90ed1AC9c74B9340468134F8c669BA1169A11c58"));
    uint256 id = jobManagerContract.runJob(
      "cowsay:v0.0.4",
      inputs,
      msg.sender
    );

    emit JobCreated(
      id,
      message
    );
  }