Staking $DIMO for a Manufacturer License
Before acquiring a valid DIMO Manufacturer License, manufacturers need to stake $DIMO tokens in order to receive a manufacturing license. Below is a guide on how to do this.
This part of the documentation has been deprecated and moved to https://docs.dimo.zone/developer-platform/dimo-hardware/dimo-manufacturing-license/staking-usddimo
Archived Content
Relevant Documents:
https://docs.dimo.zone/docs/identity-protocol/nodes-and-nfts/license DIMO CLI:
https://github.com/DIMO-Network/dimo-cli
Wallet needed:
Crypto wallet that is able to connect to the Polygon network. Metamask is recommended: https://metamask.io/download/
Process Overview
A manufacturer that has been approved by the DIMO foundation to manufacture DIMO platform compatible devices (Application, MOU, and a signed Manufacturing License Agreement) needs acquire a DIMO Manufacturer License.
This ‘Root’ license enables a manufacturer to ‘mint’ new devices on chain to the DIMO network.
The Manufacturer license is an NFT, and requires staking $DIMO tokens to DIMO.
STEPS
a ‘Node’ must be created by the DIMO team. Please see the link below for a description of a node, and how a node fits into DIMO’s Identity Protocol. https://docs.dimo.zone/docs/identity-protocol/overview
Contact the DIMO team to create your node.
Install the DIMO-CLI
Install Metamask, and take note of your wallet address.. Switch your network to the Polygon Network, and ensure that you have some MATIC tokens in your wallet. 0.3 MATIC sould ensure that your wallet has enough for the gas fees required for the staking transaction.
Copy your private key from your Metamask wallet. You can do this by pressing the ‘three-dot” menu, and selecting ‘Account details’ and ‘Export private key’. You will need this for step 6).
Run the commands:
npm install
npm run build
sudo npm link
Next, set up your environment with the following commands:
export PROVIDER=https://polygon-mainnet.g.alchemy.com/v2/Y2j9gCadWPnVj8IFExsPwyeu-SfHV7zk
export PRIVATE_KEY=<your_private_key>
Check if you currently have a valid license, and if you have any staked $DIMO. The response from the CLI should be that you have an INVALID license and that you have staked 0 $DIMO.
dimo-cli is-valid-license --address <your_wallet_address> --network polygon
dimo-cli staked-balance --address <your_wallet_address> --network polygon
Stake 100,000 $DIMO tokens. To do this, write the following command. The multiple zeros are due to the decimal formatting of the CLI:
dimo-cli stake-dimo 100000000000000000000000 --network polygon
Once staked, you can confirm your staked $DIMO:
dimo-cli staked-balance --address <your_wallet_address> --network polygon
And you should get the response:
"The account <your_wallet_address> has 100000000000000000000000 DIMO tokens staked"
Once staked, your DIMO manufacturing license should be transferred to your wallet, and you can use the following command to ensure that it is valid:
dimo-cli is-valid-license --address <your_wallet_address> --network polygon
Thats it! Now you have the required ROOT manufacturing license to begin minting new devices.
Last updated