ecosystem
ecosystem copied to clipboard
feat(dapp-console-api): use gelato transaction sender for faucet drip
- creates TransactionSender interface
- create a gelato relay based tx sender
- use pseudorandom nonce rather than one based on account nonce
- TODO: update faucet route
Notes on faucet route API:
- this will cause a breaking change for the FaucetRoute API, since the async nature of TransactionSender means the endpoint will not be be able to synchronously return a tx hash
- instead of a breaking change, we should
- return an empty tx hash for the existing route
/offchainClaims
/onChainClaims
, and etherscanUrl can just be to the etherscan website. Alternatively, we can use the createWalletTransactionSender so we can immediately return hash temporarily. - create new routes
/triggerOffchainClaim
/getOffchainClaimStatus
,/triggerOnChainClaim
/getOnChainClaimStatus
- update front end to use new routes
- a week later, deprecate
/offchainClaims
/onChainClaims
- the only consumer of the API is the web app so it shouldn't be too problematic
- return an empty tx hash for the existing route