Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(faucet): add faucet service #1517

Merged
merged 7 commits into from
Sep 16, 2023
Merged

feat(faucet): add faucet service #1517

merged 7 commits into from
Sep 16, 2023

Conversation

holic
Copy link
Member

@holic holic commented Sep 16, 2023

This is the last thing left in services package before we can 🔥

@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2023

🦋 Changeset detected

Latest commit: fbdb500

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 29 packages
Name Type
@latticexyz/faucet Major
@latticexyz/abi-ts Major
@latticexyz/block-logs-stream Major
@latticexyz/cli Major
@latticexyz/common Major
@latticexyz/config Major
create-mud Major
@latticexyz/dev-tools Major
@latticexyz/ecs-browser Major
@latticexyz/gas-report Major
@latticexyz/network Major
@latticexyz/noise Major
@latticexyz/phaserx Major
@latticexyz/protocol-parser Major
@latticexyz/react Major
@latticexyz/recs Major
@latticexyz/schema-type Major
@latticexyz/services Major
@latticexyz/solecs Major
solhint-config-mud Major
solhint-plugin-mud Major
@latticexyz/std-client Major
@latticexyz/std-contracts Major
@latticexyz/store-cache Major
@latticexyz/store-indexer Major
@latticexyz/store-sync Major
@latticexyz/store Major
@latticexyz/utils Major
@latticexyz/world Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

alvrs
alvrs previously approved these changes Sep 16, 2023
@alvrs
Copy link
Member

alvrs commented Sep 16, 2023

amazing!

@alvrs
Copy link
Member

alvrs commented Sep 16, 2023

(let's add a changeset with minimal usage instructions before merging)

@holic holic marked this pull request as ready for review September 16, 2023 22:19
Comment on lines +52 to +55
const drip = async () => {
console.log("dripping");
const tx = await faucet.drip.mutate({ address: burnerAccount.address });
console.log("got drip", tx);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we still only do this if the balance is below a certain threshold?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just the example app, but yes the templates should once we get this wired up to k8s

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or better yet, consider putting the threshold in the faucet itself? so folks don't try to load up

@holic holic merged commit 9940fdb into main Sep 16, 2023
@holic holic deleted the holic/ts-faucet branch September 16, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants