Skip to content

Commit

Permalink
Deprecation Notices (#313)
Browse files Browse the repository at this point in the history
Adds changesets which contain deprecation notices to the wallet-rpc
package and the reserve command in the cli

<!-- start pr-codex -->

---

## PR-Codex overview
This PR deprecates the reserve commands and `@celo/wallet-rpc`. 

### Detailed summary
- Deprecated reserve commands with forum links
- Deprecated `@celo/wallet-rpc` with forum links
- Updated deprecation warnings in code and documentation

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
aaronmgdr and github-actions[bot] authored Jul 29, 2024
1 parent 053d2b1 commit 7715590
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .changeset/nasty-clocks-hear.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@celo/celocli': patch
---

network:whitelist now oututs as a table, typical table formatting flags are now accepted such as --csv
network:whitelist now outputs as a table accepting typical table formatting flags such as --csv
5 changes: 5 additions & 0 deletions .changeset/tricky-months-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/celocli': patch
---

Deprecate reserve commands see https://forum.celo.org/t/sunset-of-reserve-commands/8454
5 changes: 5 additions & 0 deletions .changeset/twelve-cups-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-rpc': patch
---

Deprecate @celo/wallet-rpc see https://forum.celo.org/t/deprecation-of-celo-wallet-rpc/8452
26 changes: 15 additions & 11 deletions docs/sdk/wallet-rpc/classes/rpc_signer.RpcSigner.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

Implements the signer interface on top of the JSON-RPC interface.

**`Deprecated`**

https://forum.celo.org/t/deprecation-of-celo-wallet-rpc/8452

## Implements

- `Signer`
Expand Down Expand Up @@ -53,7 +57,7 @@ Construct a new instance of the RPC signer

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L64)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L65)

## Methods

Expand All @@ -77,7 +81,7 @@ Signer.computeSharedSecret

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:173](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L173)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:174](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L174)

___

Expand All @@ -101,7 +105,7 @@ Signer.decrypt

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:164](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L164)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:165](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L165)

___

Expand All @@ -119,7 +123,7 @@ Signer.getNativeKey

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:122](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L122)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L123)

___

Expand All @@ -140,7 +144,7 @@ ___

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L72)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L73)

___

Expand All @@ -154,7 +158,7 @@ ___

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:146](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L146)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:147](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L147)

___

Expand All @@ -178,7 +182,7 @@ Signer.signPersonalMessage

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L114)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:115](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L115)

___

Expand All @@ -198,7 +202,7 @@ ___

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L78)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L79)

___

Expand All @@ -216,7 +220,7 @@ Signer.signTransaction

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L101)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L102)

___

Expand All @@ -240,7 +244,7 @@ Signer.signTypedData

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:105](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L105)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L106)

___

Expand All @@ -261,4 +265,4 @@ ___

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-signer.ts:124](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L124)
[sdk/wallets/wallet-rpc/src/rpc-signer.ts:125](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L125)
19 changes: 13 additions & 6 deletions docs/sdk/wallet-rpc/classes/rpc_wallet.RpcWallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

[rpc-wallet](../modules/rpc_wallet.md).RpcWallet

WARNING: This class should only be used with well-permissioned providers (ie IPC)
to avoid sensitive user 'privateKey' and 'passphrase' information being exposed

**`Deprecated`**

https://forum.celo.org/t/deprecation-of-celo-wallet-rpc/8452

## Hierarchy

- `RemoteWallet`\<[`RpcSigner`](rpc_signer.RpcSigner.md)\>
Expand Down Expand Up @@ -62,7 +69,7 @@ RemoteWallet\&lt;RpcSigner\&gt;.constructor

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L20)
[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L22)

## Properties

Expand Down Expand Up @@ -109,7 +116,7 @@ UnlockableWallet.addAccount

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L38)
[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L40)

___

Expand Down Expand Up @@ -268,7 +275,7 @@ UnlockableWallet.isAccountUnlocked

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:54](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L54)
[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L56)

___

Expand All @@ -286,7 +293,7 @@ RemoteWallet.loadAccountSigners

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L25)
[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L27)

___

Expand Down Expand Up @@ -381,7 +388,7 @@ RemoteWallet.signTransaction

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L64)
[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L66)

___

Expand Down Expand Up @@ -438,4 +445,4 @@ UnlockableWallet.unlockAccount

#### Defined in

[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L49)
[sdk/wallets/wallet-rpc/src/rpc-wallet.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts#L51)
3 changes: 3 additions & 0 deletions packages/cli/src/commands/reserve/status.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { BaseCommand } from '../../base'
import { printValueMapRecursive } from '../../utils/cli'

/**
* @deprecated https://forum.celo.org/t/sunset-of-reserve-commands/8454
*/
export default class ReserveStatus extends BaseCommand {
static description = 'Shows information about reserve'

Expand Down
3 changes: 3 additions & 0 deletions packages/cli/src/commands/reserve/transfergold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { newCheckBuilder } from '../../utils/checks'
import { displaySendTx } from '../../utils/cli'
import { CustomFlags } from '../../utils/command'

/**
@deprecated https://forum.celo.org/t/sunset-of-reserve-commands/8454
*/
export default class TransferGold extends BaseCommand {
static description = 'Transfers reserve celo to other reserve address'

Expand Down
1 change: 1 addition & 0 deletions packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type RpcSignerEndpointResult = {

/**
* Implements the signer interface on top of the JSON-RPC interface.
* @deprecated https://forum.celo.org/t/deprecation-of-celo-wallet-rpc/8452
*/
export class RpcSigner implements Signer {
/**
Expand Down
4 changes: 3 additions & 1 deletion packages/sdk/wallets/wallet-rpc/src/rpc-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export enum RpcWalletErrors {
AccountAlreadyExists = 'RpcWallet: account already exists',
}

/*
/**
* WARNING: This class should only be used with well-permissioned providers (ie IPC)
* to avoid sensitive user 'privateKey' and 'passphrase' information being exposed
*
* @deprecated https://forum.celo.org/t/deprecation-of-celo-wallet-rpc/8452
*/
export class RpcWallet extends RemoteWallet<RpcSigner> implements UnlockableWallet {
protected readonly rpc: RpcCaller
Expand Down

0 comments on commit 7715590

Please sign in to comment.