Skip to content

Conversation

@alex-stone
Copy link
Contributor

What changed? Why?

Release v0.13.0
#221
#223
#220

Qualified Impact

alex-stone and others added 4 commits December 17, 2024 13:39
### 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... -->
@cb-heimdall
Copy link

cb-heimdall commented Dec 19, 2024

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@alex-stone alex-stone merged commit 2b88123 into master Dec 19, 2024
10 checks passed
@alex-stone alex-stone deleted the v0.13.0 branch December 19, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants