Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
327 stars 208 forks source link

Port Chainlink Price Feed Contracts to Agoric #3200

Closed rowgraus closed 2 years ago

rowgraus commented 3 years ago

Description

This issue is to port the core Chainlink aggregation contract functions into Agoric:

Implementation must be written in JavaScript following Agoric's smart contract model. The contract must result in a PriceAuthority API that the Agoric Treasury can consume. The Agoric team will review the initial design and will be available for consultation on implementation questions.

Contracts should reflect best practices for the Agoric environment and unnecessary Solidity logic can be discarded (for example, EVM-specific choices such as certain gas optimizations should be ignored).

See below for references to the specific contracts and Agoric documentation for details.

Context

Agoric's treasury vaults require reliable price feeds for collateral. Chainlink price feeds may be used, particularly for collateral assets such as Ethereum which have robust reporting but may be less liquid at first on the Agoric chain.

A full integration with Chainlink requires several steps. Agoric has already completed the external adapter and external initiator which allow Chainlink nodes to talk to the Agoric chain.

The core remaining piece for price feeds is the on-chain contract which accepts data from nodes and aggregates it for delivery to the client (e.g., the Treasury Vault contracts).

Acceptance Criteria

Time Estimation

2 weeks

Reward

$6,400

Payment will be made in USD (fiat currency) via wire transfer. The developer is responsible for providing their completed tax documents (W9 for US based developers and/or W8 or W8-BEN-E for non-US based developers) and providing their banking details in order to receive payment.

Applicant Assessment Criteria

Important: Please provide a clear workplan for how you will approach this bounty. Use the work plan as an initial demonstration that you would be a good candidate. Bounties will require coordination with the Agoric team, so unfortunately only plans submitted in English will be considered.

Applicants will be assessed based on the following criteria:

Plan to have an introductory call with the Agoric team prior to being accepted.

References

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 6400.0 USD (6396.8 USD @ $1.0/USD) attached to it as part of the Agoric fund.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 265 years, 4 months from now. Please review their action plans below:

1) graomelo has applied to start work _(Funders only: approve worker | reject worker)_.

i know how to program in solidity, i also know how to program smart contracts in js and typescript. 2) yashpatel5400 has applied to start work _(Funders only: approve worker | reject worker)_.

Honestly nothing yet -- will be incrementally updating on the plan as I start hacking around on this. Have done some Solidity development in the past 3) quantum-guy7 has applied to start work _(Funders only: approve worker | reject worker)_.

I wan tot take it up. I hv good amount of experience in solidity and I am pretty confident to complete it within 2 weeks time. 4) ejlsh-dt has applied to start work _(Funders only: approve worker | reject worker)_.

I'm interested in starting this issue. I am available full-time until the end of next month so can focus on this project. I've worked in tech for > 7 years, 2 of which I've worked directly on a top-10 market cap coin. I am based in the UK but can make meetings on any timezone. Let me know if you'd like to schedule a call! 5) dodokim has applied to start work _(Funders only: approve worker | reject worker)_.

No concrete plans yet, have some Solidity development experience. Interested in working w/ yashpatel5400 6) tonymade8 has applied to start work _(Funders only: approve worker | reject worker)_.

will get started promptly on bounty

Learn more on the Gitcoin Issue Details page.

quantum-guy7 commented 3 years ago

@rowgraus when would u approve??

gitcoinbot commented 3 years ago

@yashpatel5400 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

yashpatel5400 commented 3 years ago

Yes, still working on the project -- ETA of completion is ~2 weeks

gitcoinbot commented 3 years ago

@yashpatel5400 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

@yashpatel5400 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@yashpatel5400 due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@yashpatel5400 due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

@yashpatel5400 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

@yashpatel5400 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

yashpatel5400 commented 3 years ago

Yep, nearly done! ETA ~4-5 days

yashpatel5400 commented 3 years ago

PR added: https://github.com/Agoric/agoric-sdk/pull/3594

gitcoinbot commented 3 years ago

@yashpatel5400 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@yashpatel5400 due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 6400.0 USD (6398.08 USD @ $1.0/USD) has been submitted by:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 6400.0 USD (6398.08 USD @ $1.0/USD) attached to this issue has been approved & issued to @yashpatel5400.

Tartuffo commented 2 years ago

Done.