Add Chainlink Functions example
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, solidity
- Ambito
- blockchain, testing
Direzione di ricerca
Start with the Chainlink Functions ABI decoding tutorial linked in the issue and review how its contract and JavaScript example map into this Foundry starter kit. Then investigate the pending Chainlink Local test and the optional Foundry ffi path. Done means the contract and JavaScript examples are added and the available execution paths are tested.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Let's add an example for Chainlink Functions as well. Because Functions Foundry Starter kit is not live yet, let's showcase how easy is to use Functions with Foundry. Also I suggest example with multiple responses, because it shows how to:
- Return complex Solidity data types (they usually return complex structures)
- Use JavaScript imports for more powerful computation
- Perform HTTP GET/POST requests using Functions library
Tasks:
- Add this contract example https://docs.chain.link/chainlink-functions/tutorials/abi-decoding
- Add this JavaScript file https://docs.chain.link/chainlink-functions/tutorials/abi-decoding
- Test it with Chainlink Local (pending)
- Optionally test it with pure Foundry using
ffiflag
- Lingua principale
- Solidity
- Stelle
- 364
- Fork
- 107
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di smartcontractkit/foundry-starter-kit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
-
FCT Init Does Not WorkAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
smartcontractkit/foundry-starter-kit#36 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
smartcontractkit/foundry-starter-kit#35 · 1 commento ·
Tutte le issue di smartcontractkit/foundry-starter-kit
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
icon-project/sodax-sdks#696 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
th30d4y/OpenLearnX#737 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btclib-org/btclib-node#2656 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hiero-ledger/hiero-sdk-js#4832 ·
I maintainer di solito rispondono entro 1 giorno
-
Bigint RPC params are sent as strings when the application defines BigInt.prototype.toJSONForse già presa @andreisilviudragnea l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno