Merged
Conversation
### What changed? Why?
This adds support for fetching an address' reputation lazily.
Example:
```ruby
risky_address = Coinbase::ExternalAddress.new(:ethereum_mainnet, '0x12846c6Fd6baBFE4bC6F761eB871eFfFDEb26913')
# Returns the reputation of the address
risky_address.reputation
=> Coinbase::AddressReputation{score: '-90', total_transactions: '0', unique_days_active: '0', longest_active_streak: '0', current_active_streak: '0', activity_period_days: '0', token_swaps_performed: '0', bridge_transactions_performed: '0', lend_borrow_stake_transactions: '0', ens_contract_interactions: '0', smart_contract_deployments: '0'}
# Returns whether the address itself is deemed "risky"
risky_address.risky?
=> true
```
#### Qualified Impact
<!-- Please evaluate what components could be affected and what the
impact would be if there was an
error. How would this error be resolved, e.g. rollback a deploy, push a
new fix, disable a feature
flag, etc... -->
---------
Co-authored-by: arpit-srivastava <arpit.srivastava@coinbase.com>
### What changed? Why? This starts to add support for registering external smart contracts with CDP. This will enable developers to use these register smart contracts to invoke, read, and create webhooks associated with the contract! ### Testing ```ruby # Deploy a token and get an ERC20 ABI ref smart_contract = wallet.deploy_token(name: "Test Coin", symbol: "TEST", total_supply: 1000) smart_contract.wait! asset = Coinbase::Asset.fetch(:base_sepolia, :usdc) # Register an external contract w/ a known ABI external_contract = Coinbase::SmartContract.register( network: Coinbase::Network::BASE_SEPOLIA, contract_address: asset.address_id, name: "USDC YO", abi: smart_contract.abi ) external_contract.update(name: "Base Sepolia USDC Contract") ``` #### Qualified Impact <!-- Please evaluate what components could be affected and what the impact would be if there was an error. How would this error be resolved, e.g. rollback a deploy, push a new fix, disable a feature flag, etc... -->
### What changed? Why? Update changelog and bump version #### Qualified Impact <!-- Please evaluate what components could be affected and what the impact would be if there was an error. How would this error be resolved, e.g. rollback a deploy, push a new fix, disable a feature flag, etc... -->
✅ Heimdall Review Status
|
0xRAG
approved these changes
Dec 19, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed? Why?
Release v0.13.0
#221
#223
#220
Qualified Impact