-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support requesting faucet funds for address #24
Conversation
@@ -123,6 +123,10 @@ def to_s | |||
address_id | |||
end | |||
|
|||
def faucet |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
d0c0155
to
bf2c8d1
Compare
lib/coinbase.rb
Outdated
@@ -1,11 +1,14 @@ | |||
# frozen_string_literal: true | |||
|
|||
module Coinbase; end | |||
|
|||
require_relative 'coinbase/client' |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
# frozen_string_literal: true | ||
|
||
module Coinbase | ||
class FaucetTransaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be follow-ups but:
- Yardocs
- Can we add
wait!
andstatus
functions as we do with Transfer. Possibly an opportunity to factor out an class or module that has those methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added docs fro this class.
The wait!
and status
functions could be added, but this transaction is only returned after it lands on-chain.
This adds support for requesting faucet funds for a given address. This will be rate limited by the address via the smart contract that backs the faucet and via the API key (1 request every 24 hours). This may be able to be loosened for base-sepolia via the Platform API, but those are the current rate limit parameters.
bf2c8d1
to
e80053d
Compare
What changed? Why?
This adds support for requesting faucet funds for a given address. This will be rate limited by the address via the smart contract that backs the faucet and via the API key (1 request every 24 hours).
This may be able to be loosened for base-sepolia via the Platform API, but those are the current rate limit parameters.
Qualified Impact
This adds a new functionality to an unreleased version. This only impacts the address model.