dfinity / grant-rfps

Grant RFPs and Bounties
Apache License 2.0
52 stars 11 forks source link

BNT-3: Sample App - ICRC-1 Compliant Payment Flow #7

Closed domwoe closed 9 months ago

domwoe commented 1 year ago

Sample App: ICRC-1 Compliant Payment Flow

Overview

Description

One of the advantages to deploy a service on a blockchain platform is to be able to receive payments without the usage of a 3rd party service provider which can be a huge cost factor. In this bounty, you'll implement a sample application that showcases the implementation of the ICRC-1 payment flow to buy some digital good.

The base ICRC-1 standard supports the client-orchestrated transfer/notify flow, i.e. the client (payer) transfers the token to the service-designated subaccount and notifies the service (payee) about the transfer.

High-level flow diagram

Payment flow diagram

Notes

Acceptance Criteria

Further Information

The eventual goal is to make it as easy as possible for developers to integrate a payment flow into their applications. Hence, we see the development of sample applications as a first step to implementing ready-to-use client and canister libraries which could be funded by a follow-up bounty or grant.

The ICRC-1 token standard is in its early days and many details and extensions have not been fully fleshed out. It would be great if you'd provide your implementer's feedback to the Ledger & Tokenization Working Group.

How to apply?

Add a comment to this issue or respond to the forum thread. Please provide some background on your experience and give an outline of your project plan.

References

gitcoinbot commented 1 year ago

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


This issue now has a funding of 1000.0 USD attached to it as part of the dfinity fund.

gitcoinbot commented 1 year 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 264 years from now. Please review their action plans below:

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

I would love to build this payment flow in react with typescript 2) ssamireiart has applied to start work _(Funders only: approve worker | reject worker)_.

We have experience in creation payment flows, and we are interested in your project. 3) s1dc0des has applied to start work _(Funders only: approve worker | reject worker)_.

hmm i can probably do this. been working with IC from a year 4) pranav-upd has applied to start work _(Funders only: approve worker | reject worker)_.

I will initially developed an instant invoice generation system that generates an invoice as soon as the amount is transferred to the subaccount. Once it is transferred from the subaccount to the main account, the user gets notified of the verified transaction.

I can start by building a proof of concept before it can be implemented in real time.

Learn more on the Gitcoin Issue Details page.

domwoe commented 1 year ago

@developerfred is taking on this bounty

developerfred commented 1 year ago

@domwoe I'm going to build with react and typescript, I believe that this reduces the learning curve for new Dapps developers.

domwoe commented 1 year ago

@developerfred Do you already know what language you'll be using for the canister (Service canister)? Motoko or Rust?

developerfred commented 1 year ago

Rust 🔥

domwoe commented 1 year ago

@developerfred Just noticed that I missed the "confirm payment" arrow after "show invoice" due to removing a part of the flow. I'll update the flow diagram tomorrow.

domwoe commented 1 year ago

@developerfred any updates?

developerfred commented 1 year ago

@domwoe https://github.com/developerfred/icrc-one-payment-flow

Ra0R commented 1 year ago

What is the state of the issue?

domwoe commented 1 year ago

Hey @Ra0R,

it's open for application. If you'd like to tackle this issue, please provide some relevant background/experience and how you'd approach solving this bounty.

atengberg commented 1 year ago

Hello, I'm applying for this bounty and will contact you to figure out the details.

domwoe commented 11 months ago

Completed, see https://forum.dfinity.org/t/dfinity-bounty-3-sample-app-icrc-1-compliant-payment-flow/15508

atengberg commented 11 months ago

Thanks for letting me know, I'll update the posting with the rest of the features after this weekend.

Have a good weekend, Ashton Engberg

On Fri, Jul 28, 2023 at 4:24 AM Dominic Wörner @.***> wrote:

Completed, see https://forum.dfinity.org/t/dfinity-bounty-3-sample-app-icrc-1-compliant-payment-flow/15508

— Reply to this email directly, view it on GitHub https://github.com/dfinity/grant-rfps/issues/7#issuecomment-1655263082, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZT4U43US5IT3KUCHEP56TXSNZLPANCNFSM6AAAAAAQQDITGA . You are receiving this because you commented.Message ID: @.***>