Skip to content

Commit

Permalink
Update sdk (#43)
Browse files Browse the repository at this point in the history
* updated client auto generated code

* Update ValidatorAPI -> StakeAPI
  • Loading branch information
drohit-cb authored Nov 21, 2024
1 parent 83d8d94 commit 43e5bfb
Show file tree
Hide file tree
Showing 51 changed files with 6,792 additions and 369 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## [0.0.13] - 2024-11-21

### Added

- Update SDK with latest generated client code.

## [0.0.12] - 2024-09-30

### Added
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ test-coverage:
mocks:
mockery --disable-version-string --name AssetsAPI --keeptree --dir gen/client --output pkg/mocks
mockery --disable-version-string --name StakeAPI --keeptree --dir gen/client --output pkg/mocks
mockery --disable-version-string --name ValidatorsAPI --keeptree --dir gen/client --output pkg/mocks
mockery --disable-version-string --name Signable --keeptree --dir pkg/coinbase --output pkg/mocks

.PHONY: docs
Expand Down
2 changes: 1 addition & 1 deletion examples/ethereum/shared-eth-stake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

/*
* This example code stakes ETH on the Holesky network via Shared ETH Staking.
* Run the code with 'go run examples/ethereum/stake/main.go <api_key_file_path> <wallet_address> <wallet_private_key>'
* Run the code with 'go run examples/ethereum/shared-eth-stake/main.go <api_key_file_path> <wallet_address> <wallet_private_key>'
*/

func main() {
Expand Down
43 changes: 36 additions & 7 deletions gen/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 0.0.1-alpha
- Package version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -95,10 +95,20 @@ Class | Method | HTTP request | Description
*ContractInvocationsAPI* | [**GetContractInvocation**](docs/ContractInvocationsAPI.md#getcontractinvocation) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/contract_invocations/{contract_invocation_id} | Get a contract invocation by ID.
*ContractInvocationsAPI* | [**ListContractInvocations**](docs/ContractInvocationsAPI.md#listcontractinvocations) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/contract_invocations | List contract invocations for an address.
*ExternalAddressesAPI* | [**GetExternalAddressBalance**](docs/ExternalAddressesAPI.md#getexternaladdressbalance) | **Get** /v1/networks/{network_id}/addresses/{address_id}/balances/{asset_id} | Get the balance of an asset in an external address
*ExternalAddressesAPI* | [**ListAddressTransactions**](docs/ExternalAddressesAPI.md#listaddresstransactions) | **Get** /v1/networks/{network_id}/addresses/{address_id}/transactions | List transactions for an address.
*ExternalAddressesAPI* | [**GetFaucetTransaction**](docs/ExternalAddressesAPI.md#getfaucettransaction) | **Get** /v1/networks/{network_id}/addresses/{address_id}/faucet/{tx_hash} | Get the status of a faucet transaction
*ExternalAddressesAPI* | [**ListExternalAddressBalances**](docs/ExternalAddressesAPI.md#listexternaladdressbalances) | **Get** /v1/networks/{network_id}/addresses/{address_id}/balances | Get the balances of an external address
*ExternalAddressesAPI* | [**RequestExternalFaucetFunds**](docs/ExternalAddressesAPI.md#requestexternalfaucetfunds) | **Post** /v1/networks/{network_id}/addresses/{address_id}/faucet | Request faucet funds for external address.
*FundAPI* | [**CreateFundOperation**](docs/FundAPI.md#createfundoperation) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/fund_operations | Create a new fund operation.
*FundAPI* | [**CreateFundQuote**](docs/FundAPI.md#createfundquote) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/fund_operations/quote | Create a Fund Operation quote.
*FundAPI* | [**GetFundOperation**](docs/FundAPI.md#getfundoperation) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/fund_operations/{fund_operation_id} | Get fund operation.
*FundAPI* | [**ListFundOperations**](docs/FundAPI.md#listfundoperations) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/fund_operations | List fund operations for an address.
*MPCWalletStakeAPI* | [**BroadcastStakingOperation**](docs/MPCWalletStakeAPI.md#broadcaststakingoperation) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations/{staking_operation_id}/broadcast | Broadcast a staking operation
*MPCWalletStakeAPI* | [**CreateStakingOperation**](docs/MPCWalletStakeAPI.md#createstakingoperation) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations | Create a new staking operation for an address
*MPCWalletStakeAPI* | [**GetStakingOperation**](docs/MPCWalletStakeAPI.md#getstakingoperation) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations/{staking_operation_id} | Get the latest state of a staking operation
*NetworksAPI* | [**GetNetwork**](docs/NetworksAPI.md#getnetwork) | **Get** /v1/networks/{network_id} | Get network by ID
*OnchainIdentityAPI* | [**ResolveIdentityByAddress**](docs/OnchainIdentityAPI.md#resolveidentitybyaddress) | **Get** /v1/networks/{network_id}/addresses/{address_id}/identity | Obtains onchain identity for an address on a specific network
*ReputationAPI* | [**GetAddressReputation**](docs/ReputationAPI.md#getaddressreputation) | **Get** /v1/networks/{network_id}/addresses/{address_id}/reputation | Get the onchain reputation of an external address
*ReputationAPI* | [**GetAddressRisk**](docs/ReputationAPI.md#getaddressrisk) | **Get** /v1/networks/{network_id}/addresses/{address_id}/risk | Get the risk of an address
*ServerSignersAPI* | [**CreateServerSigner**](docs/ServerSignersAPI.md#createserversigner) | **Post** /v1/server_signers | Create a new Server-Signer
*ServerSignersAPI* | [**GetServerSigner**](docs/ServerSignersAPI.md#getserversigner) | **Get** /v1/server_signers/{server_signer_id} | Get a server signer by ID
*ServerSignersAPI* | [**ListServerSignerEvents**](docs/ServerSignersAPI.md#listserversignerevents) | **Get** /v1/server_signers/{server_signer_id}/events | List events for a server signer
Expand All @@ -109,30 +119,30 @@ Class | Method | HTTP request | Description
*SmartContractsAPI* | [**DeploySmartContract**](docs/SmartContractsAPI.md#deploysmartcontract) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/smart_contracts/{smart_contract_id}/deploy | Deploy a smart contract
*SmartContractsAPI* | [**GetSmartContract**](docs/SmartContractsAPI.md#getsmartcontract) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/smart_contracts/{smart_contract_id} | Get a specific smart contract deployed by address
*SmartContractsAPI* | [**ListSmartContracts**](docs/SmartContractsAPI.md#listsmartcontracts) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/smart_contracts | List smart contracts deployed by address
*SmartContractsAPI* | [**ReadContract**](docs/SmartContractsAPI.md#readcontract) | **Post** /v1/networks/{network_id}/smart_contracts/{contract_address}/read | Read data from a smart contract
*StakeAPI* | [**BuildStakingOperation**](docs/StakeAPI.md#buildstakingoperation) | **Post** /v1/stake/build | Build a new staking operation
*StakeAPI* | [**FetchHistoricalStakingBalances**](docs/StakeAPI.md#fetchhistoricalstakingbalances) | **Get** /v1/networks/{network_id}/addresses/{address_id}/stake/balances | Fetch historical staking balances
*StakeAPI* | [**FetchStakingRewards**](docs/StakeAPI.md#fetchstakingrewards) | **Post** /v1/stake/rewards/search | Fetch staking rewards
*StakeAPI* | [**GetExternalStakingOperation**](docs/StakeAPI.md#getexternalstakingoperation) | **Get** /v1/networks/{network_id}/addresses/{address_id}/staking_operations/{staking_operation_id} | Get the latest state of a staking operation
*StakeAPI* | [**GetStakingContext**](docs/StakeAPI.md#getstakingcontext) | **Post** /v1/stake/context | Get staking context
*StakeAPI* | [**GetValidator**](docs/StakeAPI.md#getvalidator) | **Get** /v1/networks/{network_id}/assets/{asset_id}/validators/{validator_id} | Get a validator belonging to the CDP project
*StakeAPI* | [**ListValidators**](docs/StakeAPI.md#listvalidators) | **Get** /v1/networks/{network_id}/assets/{asset_id}/validators | List validators belonging to the CDP project
*TradesAPI* | [**BroadcastTrade**](docs/TradesAPI.md#broadcasttrade) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/trades/{trade_id}/broadcast | Broadcast a trade
*TradesAPI* | [**CreateTrade**](docs/TradesAPI.md#createtrade) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/trades | Create a new trade for an address
*TradesAPI* | [**GetTrade**](docs/TradesAPI.md#gettrade) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/trades/{trade_id} | Get a trade by ID
*TradesAPI* | [**ListTrades**](docs/TradesAPI.md#listtrades) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/trades | List trades for an address.
*TransactionHistoryAPI* | [**ListAddressTransactions**](docs/TransactionHistoryAPI.md#listaddresstransactions) | **Get** /v1/networks/{network_id}/addresses/{address_id}/transactions | List transactions for an address.
*TransfersAPI* | [**BroadcastTransfer**](docs/TransfersAPI.md#broadcasttransfer) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/transfers/{transfer_id}/broadcast | Broadcast a transfer
*TransfersAPI* | [**CreateTransfer**](docs/TransfersAPI.md#createtransfer) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/transfers | Create a new transfer for an address
*TransfersAPI* | [**GetTransfer**](docs/TransfersAPI.md#gettransfer) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/transfers/{transfer_id} | Get a transfer by ID
*TransfersAPI* | [**ListTransfers**](docs/TransfersAPI.md#listtransfers) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/transfers | List transfers for an address.
*UsersAPI* | [**GetCurrentUser**](docs/UsersAPI.md#getcurrentuser) | **Get** /v1/users/me | Get current user
*ValidatorsAPI* | [**GetValidator**](docs/ValidatorsAPI.md#getvalidator) | **Get** /v1/networks/{network_id}/assets/{asset_id}/validators/{validator_id} | Get a validator belonging to the CDP project
*ValidatorsAPI* | [**ListValidators**](docs/ValidatorsAPI.md#listvalidators) | **Get** /v1/networks/{network_id}/assets/{asset_id}/validators | List validators belonging to the CDP project
*WalletStakeAPI* | [**BroadcastStakingOperation**](docs/WalletStakeAPI.md#broadcaststakingoperation) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations/{staking_operation_id}/broadcast | Broadcast a staking operation
*WalletStakeAPI* | [**CreateStakingOperation**](docs/WalletStakeAPI.md#createstakingoperation) | **Post** /v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations | Create a new staking operation for an address
*WalletStakeAPI* | [**GetStakingOperation**](docs/WalletStakeAPI.md#getstakingoperation) | **Get** /v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations/{staking_operation_id} | Get the latest state of a staking operation
*WalletsAPI* | [**CreateWallet**](docs/WalletsAPI.md#createwallet) | **Post** /v1/wallets | Create a new wallet
*WalletsAPI* | [**GetWallet**](docs/WalletsAPI.md#getwallet) | **Get** /v1/wallets/{wallet_id} | Get wallet by ID
*WalletsAPI* | [**GetWalletBalance**](docs/WalletsAPI.md#getwalletbalance) | **Get** /v1/wallets/{wallet_id}/balances/{asset_id} | Get the balance of an asset in the wallet
*WalletsAPI* | [**ListWalletBalances**](docs/WalletsAPI.md#listwalletbalances) | **Get** /v1/wallets/{wallet_id}/balances | List wallet balances
*WalletsAPI* | [**ListWallets**](docs/WalletsAPI.md#listwallets) | **Get** /v1/wallets | List wallets
*WebhooksAPI* | [**CreateWalletWebhook**](docs/WebhooksAPI.md#createwalletwebhook) | **Post** /v1/wallets/{wallet_id}/webhooks | Create a new webhook scoped to a wallet
*WebhooksAPI* | [**CreateWebhook**](docs/WebhooksAPI.md#createwebhook) | **Post** /v1/webhooks | Create a new webhook
*WebhooksAPI* | [**DeleteWebhook**](docs/WebhooksAPI.md#deletewebhook) | **Delete** /v1/webhooks/{webhook_id} | Delete a webhook
*WebhooksAPI* | [**ListWebhooks**](docs/WebhooksAPI.md#listwebhooks) | **Get** /v1/webhooks | List webhooks
Expand All @@ -145,6 +155,9 @@ Class | Method | HTTP request | Description
- [AddressBalanceList](docs/AddressBalanceList.md)
- [AddressHistoricalBalanceList](docs/AddressHistoricalBalanceList.md)
- [AddressList](docs/AddressList.md)
- [AddressReputation](docs/AddressReputation.md)
- [AddressReputationMetadata](docs/AddressReputationMetadata.md)
- [AddressRisk](docs/AddressRisk.md)
- [AddressTransactionList](docs/AddressTransactionList.md)
- [Asset](docs/Asset.md)
- [Balance](docs/Balance.md)
Expand All @@ -159,6 +172,8 @@ Class | Method | HTTP request | Description
- [ContractInvocationList](docs/ContractInvocationList.md)
- [CreateAddressRequest](docs/CreateAddressRequest.md)
- [CreateContractInvocationRequest](docs/CreateContractInvocationRequest.md)
- [CreateFundOperationRequest](docs/CreateFundOperationRequest.md)
- [CreateFundQuoteRequest](docs/CreateFundQuoteRequest.md)
- [CreatePayloadSignatureRequest](docs/CreatePayloadSignatureRequest.md)
- [CreateServerSignerRequest](docs/CreateServerSignerRequest.md)
- [CreateSmartContractRequest](docs/CreateSmartContractRequest.md)
Expand All @@ -167,11 +182,14 @@ Class | Method | HTTP request | Description
- [CreateTransferRequest](docs/CreateTransferRequest.md)
- [CreateWalletRequest](docs/CreateWalletRequest.md)
- [CreateWalletRequestWallet](docs/CreateWalletRequestWallet.md)
- [CreateWalletWebhookRequest](docs/CreateWalletWebhookRequest.md)
- [CreateWebhookRequest](docs/CreateWebhookRequest.md)
- [CryptoAmount](docs/CryptoAmount.md)
- [DeploySmartContractRequest](docs/DeploySmartContractRequest.md)
- [ERC20TransferEvent](docs/ERC20TransferEvent.md)
- [ERC721TransferEvent](docs/ERC721TransferEvent.md)
- [Error](docs/Error.md)
- [EthereumTokenTransfer](docs/EthereumTokenTransfer.md)
- [EthereumTransaction](docs/EthereumTransaction.md)
- [EthereumTransactionAccess](docs/EthereumTransactionAccess.md)
- [EthereumTransactionAccessList](docs/EthereumTransactionAccessList.md)
Expand All @@ -182,13 +200,22 @@ Class | Method | HTTP request | Description
- [FetchHistoricalStakingBalances200Response](docs/FetchHistoricalStakingBalances200Response.md)
- [FetchStakingRewards200Response](docs/FetchStakingRewards200Response.md)
- [FetchStakingRewardsRequest](docs/FetchStakingRewardsRequest.md)
- [FiatAmount](docs/FiatAmount.md)
- [FundOperation](docs/FundOperation.md)
- [FundOperationFees](docs/FundOperationFees.md)
- [FundOperationList](docs/FundOperationList.md)
- [FundQuote](docs/FundQuote.md)
- [GetStakingContextRequest](docs/GetStakingContextRequest.md)
- [HistoricalBalance](docs/HistoricalBalance.md)
- [MultiTokenContractOptions](docs/MultiTokenContractOptions.md)
- [NFTContractOptions](docs/NFTContractOptions.md)
- [Network](docs/Network.md)
- [NetworkIdentifier](docs/NetworkIdentifier.md)
- [OnchainName](docs/OnchainName.md)
- [OnchainNameList](docs/OnchainNameList.md)
- [PayloadSignature](docs/PayloadSignature.md)
- [PayloadSignatureList](docs/PayloadSignatureList.md)
- [ReadContractRequest](docs/ReadContractRequest.md)
- [SeedCreationEvent](docs/SeedCreationEvent.md)
- [SeedCreationEventResult](docs/SeedCreationEventResult.md)
- [ServerSigner](docs/ServerSigner.md)
Expand All @@ -203,6 +230,7 @@ Class | Method | HTTP request | Description
- [SmartContractList](docs/SmartContractList.md)
- [SmartContractOptions](docs/SmartContractOptions.md)
- [SmartContractType](docs/SmartContractType.md)
- [SolidityValue](docs/SolidityValue.md)
- [SponsoredSend](docs/SponsoredSend.md)
- [StakingBalance](docs/StakingBalance.md)
- [StakingContext](docs/StakingContext.md)
Expand All @@ -213,6 +241,7 @@ Class | Method | HTTP request | Description
- [StakingRewardFormat](docs/StakingRewardFormat.md)
- [StakingRewardUSDValue](docs/StakingRewardUSDValue.md)
- [TokenContractOptions](docs/TokenContractOptions.md)
- [TokenTransferType](docs/TokenTransferType.md)
- [Trade](docs/Trade.md)
- [TradeList](docs/TradeList.md)
- [Transaction](docs/Transaction.md)
Expand Down
6 changes: 6 additions & 0 deletions gen/client/api_addresses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 43e5bfb

Please sign in to comment.