Skip to content

Commit

Permalink
chore: Clean up some unused deps with cargo machete (#704)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: sa-github-api <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikola Milosavljevic <[email protected]>
Co-authored-by: Luka Skugor <[email protected]>
Co-authored-by: pietrodimarco-dfinity <[email protected]>
  • Loading branch information
7 people authored Aug 13, 2024
1 parent 5d4f8f2 commit bcf931a
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 139 deletions.
58 changes: 1 addition & 57 deletions Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "5ec4fcee4c14e7594d0a1fb9642aa461e4bf174f5045552c66d4a39051d2de00",
"checksum": "64e6dc9e67c573ea7e49c06d6ee0fb13851d923bf289d307ae05c451a55a3cdb",
"crates": {
"actix-codec 0.5.2": {
"name": "actix-codec",
Expand Down Expand Up @@ -9103,10 +9103,6 @@
"id": "serde_json 1.0.124",
"target": "serde_json"
},
{
"id": "strum 0.26.3",
"target": "strum"
},
{
"id": "tabular 0.2.0",
"target": "tabular"
Expand Down Expand Up @@ -10620,10 +10616,6 @@
],
"deps": {
"common": [
{
"id": "actix-web 4.9.0",
"target": "actix_web"
},
{
"id": "anyhow 1.0.86",
"target": "anyhow"
Expand Down Expand Up @@ -10728,10 +10720,6 @@
"id": "ic-canister-client-sender 0.9.0",
"target": "ic_canister_client_sender"
},
{
"id": "ic-interfaces-registry 0.9.0",
"target": "ic_interfaces_registry"
},
{
"id": "ic-nervous-system-clients 0.0.1",
"target": "ic_nervous_system_clients"
Expand Down Expand Up @@ -10832,10 +10820,6 @@
"id": "shlex 1.3.0",
"target": "shlex"
},
{
"id": "socket2 0.5.7",
"target": "socket2"
},
{
"id": "spinners 4.1.1",
"target": "spinners"
Expand Down Expand Up @@ -10882,10 +10866,6 @@
{
"id": "async-recursion 1.1.1",
"target": "async_recursion"
},
{
"id": "async-trait 0.1.81",
"target": "async_trait"
}
],
"selects": {}
Expand Down Expand Up @@ -20655,10 +20635,6 @@
"id": "backon 0.4.4",
"target": "backon"
},
{
"id": "base64 0.22.1",
"target": "base64"
},
{
"id": "candid 0.10.10",
"target": "candid"
Expand All @@ -20671,10 +20647,6 @@
"id": "clap 4.5.15",
"target": "clap"
},
{
"id": "csv 1.3.0",
"target": "csv"
},
{
"id": "custom_error 1.9.2",
"target": "custom_error"
Expand Down Expand Up @@ -20703,10 +20675,6 @@
"id": "futures-util 0.3.30",
"target": "futures_util"
},
{
"id": "hyper 1.4.1",
"target": "hyper"
},
{
"id": "ic-agent 0.37.1",
"target": "ic_agent"
Expand Down Expand Up @@ -20842,10 +20810,6 @@
"edition": "2021",
"proc_macro_deps": {
"common": [
{
"id": "async-trait 0.1.81",
"target": "async_trait"
},
{
"id": "strum_macros 0.26.4",
"target": "strum_macros"
Expand Down Expand Up @@ -40664,10 +40628,6 @@
"id": "ic-async-utils 0.9.0",
"target": "ic_async_utils"
},
{
"id": "regex 1.10.6",
"target": "regex"
},
{
"id": "reqwest 0.12.5",
"target": "reqwest"
Expand Down Expand Up @@ -44350,18 +44310,10 @@
"id": "ic-nns-common 0.9.0",
"target": "ic_nns_common"
},
{
"id": "ic-nns-constants 0.9.0",
"target": "ic_nns_constants"
},
{
"id": "ic-protobuf 0.9.0",
"target": "ic_protobuf"
},
{
"id": "ic-registry-transport 0.9.0",
"target": "ic_registry_transport"
},
{
"id": "ic-stable-structures 0.6.5",
"target": "ic_stable_structures"
Expand All @@ -44370,17 +44322,9 @@
"id": "itertools 0.13.0",
"target": "itertools"
},
{
"id": "prost 0.12.6",
"target": "prost"
},
{
"id": "serde 1.0.206",
"target": "serde"
},
{
"id": "serde_json 1.0.124",
"target": "serde_json"
}
],
"selects": {}
Expand Down
65 changes: 0 additions & 65 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ hex = "0.4.3"
humantime = "2.1.0"
humantime-serde = "1.1.1"
hyper = { version = "1.4.1" }
hyper-tls = "0.6.0"
ic-agent = "0.37.1"
octocrab = "0.39.0"
self_update = { version = "0.41.0", features = ["archive-tar"] }
Expand Down
48 changes: 48 additions & 0 deletions docs/create-a-neuron.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Instructions for Creating a New Neuron for Proposal Submission

Follow these steps to create a new neuron for proposal submission.

## Requirements

*   11 ICP (10 of which are to be staked for the NNS proposal deposit)
*   Basic understanding of [neurons, staking, and governance proposals](https://internetcomputer.org/docs/current/tokenomics/nns/nns-staking-voting-rewards).
*   Optional [Hardware wallet](https://www.ledger.com/)

## Install the Required Tools

Install dfx
```bash
sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"
```

```bash
export PATH=$HOME/bin:$PATH
```

If you already had `dfx` installed, make sure it's updated to the latest version
```bash
dfx upgrade
dfx --version
```

## Create a neuron Hotkey

The neuron in the NNS UI (https://nns.ic0.app) needs to be managed with a locally generated private key. This is done though a so called Hotkey.
```bash
dfx identity new --storage-mode=plaintext neuron-hotkey
```

```bash
dfx --identity neuron-hotkey identity get-principal
```
Example output: `wuyst-x5tpn-g5wri-mp3ps-vjtba-de3xs-w5xgb-crvek-tucbe-o5rqi-mae`

**Note:** This hotkey is used for NNS proposal submissions only.

### Create and Manage Neuron via NNS Frontend Dapp and Internet Identity

1. Send at least 11 ICPs to your hardware wallet address.
2. Navigate to the Neurons tab and create a Neuron by staking at least 10 ICP from your hardware wallet. Confirm the transaction on your hardware wallet.
3. After the Neuron is created, confirm to "Add NNS Dapp as hotkey" in the dialogue and on your hardware wallet.
4. Set the dissolve delay to at least 6 months and confirm the choice.
5. Copy the Neuron ID from the Web UI, for use in the next steps.
4 changes: 0 additions & 4 deletions rs/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ documentation.workspace = true

[dependencies]
backon = { workspace = true }
actix-web = { workspace = true }
anyhow = { workspace = true }
async-recursion = { workspace = true }
async-trait = { workspace = true }
candid = { workspace = true }
chrono = { workspace = true }
clap = { workspace = true }
Expand All @@ -35,7 +33,6 @@ ic-base-types = { workspace = true }
ic-canister-client = { workspace = true }
ic-canister-client-sender = { workspace = true }
ic-canisters = { workspace = true }
ic-interfaces-registry = { workspace = true }
ic-management-backend = { workspace = true }
ic-management-types = { workspace = true }
ic-nervous-system-clients = { workspace = true }
Expand All @@ -61,7 +58,6 @@ self_update = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
socket2 = { workspace = true }
spinners = { workspace = true }
strum = { workspace = true }
tabled = { workspace = true }
Expand Down
Loading

0 comments on commit bcf931a

Please sign in to comment.