Skip to content

Commit

Permalink
Remove the Keystore API (#3657)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Jan 18, 2025
1 parent 5c8c655 commit 0e994f6
Show file tree
Hide file tree
Showing 52 changed files with 500 additions and 7,538 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buf-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
- uses: bufbuild/buf-action@v1
with:
input: "proto"
# Breaking changes are managed by the rpcchainvm protocol version.
breaking: false
token: ${{ secrets.BUF_TOKEN }}
version: 1.35.0
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ jobs:
with:
input: "proto"
pr_comment: false
# Breaking changes are managed by the rpcchainvm protocol version.
breaking: false
# buf-action defaults to pushing on non-fork branch pushes
# which is never desirable for this job. The buf-push job is
# responsible for pushes.
Expand Down
26 changes: 26 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,35 @@ This version is backwards compatible to [v1.12.0](https://github.com/ava-labs/av

The plugin version is unchanged at `38` and is compatible with versions `v1.12.0-v1.12.1`.

**This release removes the support for the long deprecated Keystore API. Any users still relying on the keystore API will not be able to update to this version, or any later versions, of Avalanchego until their dependency on the keystore API has been removed.**

### APIs

- Deprecated:
- `info.GetTxFee`
- `keystore.createUser`
- `keystore.deleteUser`
- `keystore.listUsers`
- `keystore.importUser`
- `keystore.exportUser`
- `avm.createAddress`
- `avm.createFixedCapAsset`
- `avm.createNFTAsset`
- `avm.createVariableCapAsset`
- `avm.export`
- `avm.exportKey`
- `avm.import`
- `avm.importKey`
- `avm.listAddresses`
- `avm.mint`
- `avm.mintNFT`
- `avm.send`
- `avm.sendMultiple`
- `avm.sendNFT`
- `wallet.send`
- `wallet.sendMultiple`
- `platform.exportKey`
- `platform.listAddresses`
- Added:
- `avm.GetTxFee`
- `platform.getValidatorFeeConfig`
Expand All @@ -25,6 +50,7 @@ The plugin version is unchanged at `38` and is compatible with versions `v1.12.0
- `--add-primary-network-delegator-fee`
- `--add-subnet-validator-fee`
- `--add-subnet-delegator-fee`
- Removed `--api-keystore-enabled`

### What's Changed

Expand Down
32 changes: 0 additions & 32 deletions api/common_args_responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ type JSONTxID struct {
TxID ids.ID `json:"txID"`
}

// UserPass contains a username and a password
type UserPass struct {
Username string `json:"username"`
Password string `json:"password"`
}

// JSONAddress contains an address
type JSONAddress struct {
Address string `json:"address"`
Expand All @@ -38,32 +32,6 @@ type JSONAddresses struct {
Addresses []string `json:"addresses"`
}

// JSONChangeAddr is the address change is sent to, if any
type JSONChangeAddr struct {
ChangeAddr string `json:"changeAddr"`
}

// JSONTxIDChangeAddr is a tx ID and change address
type JSONTxIDChangeAddr struct {
JSONTxID
JSONChangeAddr
}

// JSONFromAddrs is a list of addresses to send funds from
type JSONFromAddrs struct {
From []string `json:"from"`
}

// JSONSpendHeader is 3 arguments to a method that spends (including those with tx fees)
// 1) The username/password
// 2) The addresses used in the method
// 3) The address to send change to
type JSONSpendHeader struct {
UserPass
JSONFromAddrs
JSONChangeAddr
}

// GetBlockArgs is the parameters supplied to the GetBlock API
type GetBlockArgs struct {
BlockID ids.ID `json:"blockID"`
Expand Down
51 changes: 0 additions & 51 deletions api/keystore/blockchain_keystore.go

This file was deleted.

81 changes: 0 additions & 81 deletions api/keystore/client.go

This file was deleted.

26 changes: 0 additions & 26 deletions api/keystore/codec.go

This file was deleted.

57 changes: 0 additions & 57 deletions api/keystore/gkeystore/keystore_client.go

This file was deleted.

68 changes: 0 additions & 68 deletions api/keystore/gkeystore/keystore_server.go

This file was deleted.

Loading

0 comments on commit 0e994f6

Please sign in to comment.