How to Use Our DSP Package by MinerGate

MinerGate, a group of multi-services mainly focused on mining, created in 2014 by a team of blockchain enthusiasts, has become a dApp Service Provider on the DAPP Network. MinerGate DSP aims to bring EOS dApp developers solutions and provide stable and scalable services. This is an up-to-date technology, and the MinerGate team is glad to introduce Service Packages into our platform. Here are step-by-step instructions on how to obtain the MinerGate DSP.

The first thing you will need is an account for a dApp smart contract your_dapp_contract. Then, set up the contract and the account approval to your_dapp_contract. Please note that to achieve access to data storage, the DApp smart contracts must include the vRAM library.

cleos set contract your_dapp_contract /path/to/contract/coldtoken

cleos set account permission your_dapp_contract active ‘{“threshold”: 1,”keys”: [{“key”: “your_dapp_contract_active_public_key”,”weight”: 1}],”accounts”: [{“permission”:{“actor”:”your_dapp_contract”,”permission”:”eosio.code”},”weight”:1}]}’ owner -p your_dapp_contract@owner

Secondly, select the ‘package’ package [https://minergate.com] provided by the MinerGate account: EOS MinerGate.

cleos push action dappservices selectpkg ‘[“your_dapp_contract”,”eosminergate”,”ipfsservice1",”package”]}’ -p your_dapp_contract

Details you should know about Service Packages, and its conditions:

provider: eosminergate

model:

model:

commit_model_field:

cost_per_action: 1

cleanup_model_field:

cost_per_action: 1

warmup_model_field:

cost_per_action: 1

package_id: package

The implementations for cleanup, warmup, and commit are worth 1 dApp token. Please be advised that has not been established yet and might be changed since the economic system hasn’t been tested yet.

The third step is staking DAPP tokens from your smart contract to the MinerGate DSP data storage. The number of tokens should correlate to the number of service operations.

cleos push action dappservices stake ‘[“your_dapp_contract”,”eosminergate”,”ipfsservice1",”10.000 DAPP”]}’ -p your_dapp_contract

cleos set account permission your_dapp_contract dsp ‘{“threshold”:1,”keys”:[],”accounts”:[{“permission”:{“actor”:”eosminergate”,”permission”:”active”},”weight”:1}]}’ owner -p your_dapp_contract

Now you can use your contract actions on your Client App via the MinerGate DSP API.

cleos -u https://dsp.eos.minergate.com push action your_dapp_contract some_action ‘[“some_parameter”,”some_parameter1"]}’ -p your_dapp_contract

This piece was inspired by AtticLab BPs’s tutorial on ‘How to use DSP Package.

Follow us!

Twitter: https://twitter.com/MinerGate

Facebook: https://www.facebook.com/minergate/

Reddit: https://www.reddit.com/r/MinerGateOfficial/

Steemit: https://steemit.com/@minergateeosbp

Telegram: https://t.me/minergateminingpool

A group of multi-services mainly focused on mining, created in 2014 by a team of blockchain enthusiasts. www.minergate.com

A group of multi-services mainly focused on mining, created in 2014 by a team of blockchain enthusiasts. www.minergate.com