-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support registering and updating external smart contracts (#220)
### 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... -->
- Loading branch information
1 parent
99d6197
commit 8bb7c70
Showing
146 changed files
with
1,844 additions
and
525 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.