This process is needed only for betatest and probably after crafting will be released that article will not make much sense, but before it happen there’s a lot of similar questions on a Discord channel and I hope this guide will help.
It is two step process, first one — approval, should be done only once per account, the second is actual crafting.
Approval
You should go to a https://www.myetherwallet.com/#contracts, and see something like this.
Contract Address should be set to a corn contract: 0xac21cccde31280257784f02f7201465754e96b0b
and ABI to a copy of that: https://raw.githubusercontent.com/district0x/district0x-network-token/master/resources/public/contracts/build/ERC20.abi.
[{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]
After this changes our browser window should look like this:
Push the Access! We should see a new panel below:
Selecting approve
function in a selectbox:
Now we should set arguments for approve
function call, spender
to a 0xabf9027e49ab11fbd9f749371386c44cf322f803
(crafting contract) and value
to 999999999000000000000000000
.
After we fill a form and we are not logged in to a MEW we will see a new panel:
We have to choose MetaMask and then we will see:
Clicking Connect to MetaMask and then WRITE! Our next step is:
After we press Generate Transcation we will see:
Yes, we are sure! After we confirm, MetaMask should appear.
After we submit we have to wait until our transaction is processed.
By pushing on this record we will go to etherscan.io, my looks like this:
Important part here is TxReceipt Status should be Success.
When it is done, we finally can start crafting!
Crafting
For a second step we are going to https://www.myetherwallet.com/#contracts again, but this time we enter 0xabf9027e49ab11fbd9f749371386c44cf322f803
to a Contract Address and
[
{
"constant": false,
"inputs": [
{
"name": "count",
"type": "uint256"
}
],
"name": "craftCraftable",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
to ABI.
Hit the Access.
- select
craftCraftable
in selectbox - put amount of corn helmets you wish to craft, remember each helmet takes 3 corns
- choose MetaMask
- press Connect To MetaMask
- press WRITE
- press Generate Transcation
- Yes, we are sure!
- Confirm transaction in MetaMask
We just have to wait when transaction is processes and we are done! For now helmet will not be visible on a website in inventory but we can check it on ethplorer.io, you just have to enter you wallet address there and it will show you all tokens you have:
We can clearly see that there were 3 corns withdraw and 1 helmet added.
If you found that guide helpful you can tip me some ETH: 0x78084D2e1999936e36344DFfCDe30457b5333eE8
.
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://medium.com/@dmitrymashina/ethercraft-your-own-corn-helmet-50a43055fef8
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @mashina! You received a personal award!
Click here to view your Board
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @mashina! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit