Skip to content

Commit 1b7e450

Browse files
authored
Staking on mainnet (#1425)
* init * added mainnet addresses * minor nav change
1 parent 90182c4 commit 1b7e450

File tree

3 files changed

+50
-41
lines changed

3 files changed

+50
-41
lines changed

components/Starknet/modules/staking/pages/entering-staking.adoc

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,41 @@ Using the Starknet staking contract to stake STRK tokens requires interacting wi
1111

1212
Subsequently, the validator’s tokens will be locked in the staking contract, and the validator will begin earning rewards based on their stake.
1313

14-
For more information on what happens during the staking process, see xref:architecture.adoc#staking-contract[Staking Contract Architecture].
14+
For more information on what happens during the staking process, see xref:architecture.adoc#staking-contract[Staking Architecture].
1515

1616
.Prerequisites
1717

1818
* Validators are required to run full nodes in preparation for the following stages of the protocol. You can use any full node implementation you choose:
19-
** link:https://github.com/NethermindEth/juno[Juno] by Nethermind - link:https://juno.nethermind.io/hardware-requirements/#recommended-requirements[Spec].
20-
** link:https://github.com/eqlabs/pathfinder[Pathfinder] by EQLabs - https://github.com/eqlabs/pathfinder?tab=readme-ov-file#hardware-requirements[Spec].
21-
** link:https://github.com/madara-alliance/madara[Madara] by Madara Alliance - link:https://docs.madara.build/Installation/requirements[Spec].
19+
** https://github.com/NethermindEth/juno[Juno] by Nethermind: https://juno.nethermind.io/hardware-requirements[juno.nethermind.io/hardware-requirements]
20+
** https://github.com/eqlabs/pathfinder[Pathfinder] by Equilibrium: https://github.com/eqlabs/pathfinder?tab=readme-ov-file#hardware-requirements[github.com/eqlabs/pathfinder?tab=readme-ov-file#hardware-requirements]
21+
** https://github.com/madara-alliance/madara[Madara] by Madara Alliance: https://docs.madara.build/Installation/requirements[docs.madara.build/Installation/requirements]
2222
* A Starknet-compatible block explorer or CLI tool.
2323
* Sufficient STRK token balance in your wallet.
24+
+
25+
[TIP]
26+
====
27+
For validators who wish to use a secure hardware wallet, the https://www.ledger.com/[Ledger hardware wallet] is supported by both https://www.argent.xyz/blog/ledger-argent-integration/[Argent] and https://braavos.app/wallet-features/ledger-on-braavos/[Braavos] wallets.
28+
29+
====
2430

2531
.Procedure
2632

2733
. Pre-approve the STRK ERC20 contract for the transfer of tokens from your address to the staking contract:
2834
+
29-
.. Using a Starknet block explorer, navigate to the STRK ERC20 contract (On Sepolia: https://sepolia.starkscan.co/token/0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d[Starkscan], https://sepolia.voyager.online/contract/0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d[Voyager]).
35+
.. Using a Starknet block explorer such as https://starkscan.co[Starkscan] or https://voyager.online[Voyager], navigate to the STRK contract by searching for xref:tools:important-addresses.adoc#fee_tokens[its address].
3036
.. In the contract interface, locate and select the `approve` function.
3137
.. Enter the following parameters:
32-
* In *`spender`*, enter the Staking contract address (The contract addresses can be found xref:overview.adoc#contract-addresses[here]).
33-
* In *`amount`*, enter the number of STRK tokens you want to stake. Note: STRK has 18 decimals.
38+
* In *`spender`*, enter the xref:overview.adoc#staking_contract[staking contract's address].
39+
* In *`amount`*, enter the number of STRK tokens you want to stake (note that STRK has 18 decimals).
3440
.. Submit the transaction to execute the pre-approval.
35-
. Using a Starknet block explorer, navigate to the Staking contract (The contract addresses can be found xref:overview.adoc#contract-addresses[here]).
41+
. Using a Starknet block explorer such as https://starkscan.co[Starkscan] or https://voyager.online[Voyager], navigate to the staking contract by searching for xref:overview.adoc#staking_contract[its address].
3642
. In the contract interface, locate and select the `stake` function.
3743
. Enter the following parameters:
3844
+
3945
* In *`reward_address`*, enter the address where the rewards will be sent.
4046
* In *`operational_address`*, enter the operational address associated with this stake.
41-
* In *`amount`*, enter the number of STRK tokens you want to stake. Note: STRK has 18 decimals.
47+
* In *`amount`*, enter the number of STRK tokens you want to stake (note that STRK has 18 decimals).
4248
* In *`pooling_enabled`*, enter `true` if you wish to enable delegation pooling, otherwise enter `false`.
4349
* In *`commission`*, enter the commission rate for any delegated staking. The rate should be entered as a percentage with precision, where 10000 represents 100%. For example, to set a 5% commission, you would enter 500.
4450
. Submit the transaction to execute the staking operation.
4551
. Register your validator on link:https://forms.gle/BUMEZx9dpd3DcdaT8[Karnot's], link:https://stakingrewards.typeform.com/to/aZdO6pW7[Staking Rewards'], and link:https://forms.gle/WJqrRbUwxSyG7M9x7[Voyager's] dashboards.
46-
47-
.Secured hardware wallets:
48-
Ledger hardware wallet is supported through:
49-
50-
* link:https://braavos.app/wallet-features/ledger-on-braavos/[Braavos wallet]
51-
52-
* link:https://www.argent.xyz/blog/ledger-argent-integration/[Argent wallet]

components/Starknet/modules/staking/pages/overview.adoc

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Staking on Starknet involves locking STRK tokens in the staking protocol, contri
1313
[id="important-links"]
1414
=== Important links
1515

16-
* Staking on `starknet.io` (coming soon)
16+
* Staking on https://www.starknet.io/[starknet.io] (coming soon)
1717
* link:https://github.com/starkware-libs/starknet-staking[`starknet-staking` GitHub repository]
1818
* Staking dashboards:
1919
** link:https://voyager.online/staking-dashboard[Voyager]
@@ -96,44 +96,54 @@ Stake delegators can switch between validators without waiting for the full lock
9696
====
9797

9898
[id="contract-addresses"]
99-
== Sepolia addresses and parameters
99+
== Contract addresses
100100

101-
Below are the relevant contract addresses and economic parameters for interacting with the staking protocol on Sepolia testnet:
101+
The following are the relevant contract addresses for interacting with the staking protocol:
102102

103-
=== Contract addresses
103+
=== L1 addresses
104+
[horizontal, labelwidth="15"]
105+
106+
==== Reward supplier contract
107+
108+
[horizontal, labelwidth="15"]
109+
Mainnet:: 0xCa1406D57eD09947E68DE121316C87113fBE9ff5
110+
Sepolia:: 0xE58d25681B9d290D60e4d7f379a05d5BFD973fFB
111+
112+
==== Mint manager contract
104113

105-
==== L1 addresses
106114
[horizontal, labelwidth="15"]
115+
Mainnet:: 0xCa14076A3cec95448BaD179cc19B351A4204B88B
116+
Sepolia:: 0x648D1B35a932F5189e7ff97b2F795E03734DE4ce
107117

108-
* Reward supplier contract:
109-
+
110-
link:https://sepolia.etherscan.io/address/0xE58d25681B9d290D60e4d7f379a05d5BFD973fFB[`0xE58d25681B9d290D60e4d7f379a05d5BFD973fFB`]
118+
=== L2 addresses
111119

112-
* Mint manager contract:
113-
+
114-
link:https://sepolia.etherscan.io/address/0x648D1B35a932F5189e7ff97b2F795E03734DE4ce[`0x648D1B35a932F5189e7ff97b2F795E03734DE4ce`]
120+
==== Reward supplier contract
115121

116-
==== L2 addresses
122+
[horizontal, labelwidth="15"]
123+
Mainnet:: 0x009035556d1ee136e7722ae4e78f92828553a45eed3bc9b2aba90788ec2ca112
124+
Sepolia:: 0x02ebbebb8ceb2e07f30a5088f5849afd4f908f04f3f9c97c694e5d83d2a7cc61
125+
126+
==== Minting curve contract
117127

118-
* Reward supplier contract:
119-
+
120-
link:https://sepolia.voyager.online/contract/0x02ebbebb8ceb2e07f30a5088f5849afd4f908f04f3f9c97c694e5d83d2a7cc61[`0x02ebbebb8ceb2e07f30a5088f5849afd4f908f04f3f9c97c694e5d83d2a7cc61`]
128+
[horizontal, labelwidth="15"]
129+
Mainnet:: 0x00ca1705e74233131dbcdee7f1b8d2926bf262168c7df339004b3f46015b6984
130+
Sepolia:: 0x0351c67dc2d4653cbe457be59a035f80ff1e6f6939118dad1b7a94317a51a454
121131

122-
* Minting curve contract:
123-
+
124-
link:https://sepolia.voyager.online/contract/0x0351c67dc2d4653cbe457be59a035f80ff1e6f6939118dad1b7a94317a51a454[`0x0351c67dc2d4653cbe457be59a035f80ff1e6f6939118dad1b7a94317a51a454`]
132+
==== Staking contract
133+
134+
[horizontal, labelwidth="15"]
135+
Mainnet:: 0x00ca1702e64c81d9a07b86bd2c540188d92a2c73cf5cc0e508d949015e7e84a7
136+
Sepolia:: 0x03745ab04a431fc02871a139be6b93d9260b0ff3e779ad9c8b377183b23109f1
125137

126-
* Staking contract:
127-
+
128-
link:https://sepolia.voyager.online/contract/0x03745ab04a431fc02871a139be6b93d9260b0ff3e779ad9c8b377183b23109f1[`0x03745ab04a431fc02871a139be6b93d9260b0ff3e779ad9c8b377183b23109f1`]
138+
== Economic parameters on Sepolia
129139

130-
=== Economic parameters
140+
The following are the economic parameters used on Starknet Sepolia:
131141

132142
* Minimum STRK for Staking: 1 STRK
133143
* Withdrawal Security Lockup: 5 minutes
134144
* Minting Curve Yearly Inflation Cap (stem:[C]): 1.6
135145

136146
[NOTE]
137147
====
138-
For developers who want to deep dive, the index update interval parameter is also set to a minimum of 1 minute instead of a minimum of 24-hours which will be used in production.
148+
For developers who wish to deep dive, the index update interval parameter is also set to a minimum of 1 minute instead of a minimum of 24-hours which will be used in production.
139149
====

components/Starknet/modules/tools/nav.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
** xref:compatibility.adoc[Compatibility tables]
2626

27-
* StarkGate bridge guide
27+
* StarkGate guide
2828
** xref:starkgate:overview.adoc[Overview]
2929
** xref:starkgate:architecture.adoc[StarkGate architecture]
3030
** Procedures
@@ -37,7 +37,7 @@
3737
*** xref:dai-token-migration.adoc[Migrating DAI v0 to DAI]
3838
** xref:starkgate:function-reference.adoc[StarkGate function and event reference]
3939
40-
* Staking
40+
* Staking guide
4141
** xref:staking:overview.adoc[Overview]
4242
** xref:staking:architecture.adoc[Staking Architecture]
4343
** Procedures

0 commit comments

Comments
 (0)