-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
meta/0000000000000000000000000000000000000000000000000000000000000000.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "The mushroom company", | ||
"description": "This mushroom can create other mushrooms.", | ||
"image": "https://raw.githubusercontent.com/akcgjc007/erc1155-Mushroom/main/nfts/0.png" | ||
"name": "The Raccoon", | ||
"description": "The raccoon, sometimes called the common raccoon to distinguish it from other species, is a medium-sized mammal native to North America. It is the largest of the procyonid family, having a body length of 40 to 70 cm, and a body weight of 5 to 26 kg.", | ||
"image": "https://raw.githubusercontent.com/akcgjc007/erc1155-Mushroom/main/nfts/1.jpeg" | ||
} |
5 changes: 5 additions & 0 deletions
5
meta/0000000000000000000000000000000000000000000000000000000000000001.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "The Fox", | ||
"description": "Foxes are small to medium-sized, omnivorous mammals belonging to several genera of the family Canidae. Foxes have a flattened skull, upright triangular ears, a pointed, slightly upturned snout, and a long bushy tail. Twelve species belong to the monophyletic `true foxes` group of genus Vulpes.", | ||
"image": "https://raw.githubusercontent.com/akcgjc007/erc1155-Mushroom/main/nfts/0.jpeg" | ||
} |
5 changes: 5 additions & 0 deletions
5
meta/0000000000000000000000000000000000000000000000000000000000000002.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "The Dino", | ||
"description": "Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is the subject of active research.", | ||
"image": "https://raw.githubusercontent.com/akcgjc007/erc1155-Mushroom/main/nfts/2.jpeg" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
const Mushroom = artifacts.require("Mushroom"); | ||
const MushroomReceiver = artifacts.require("MushroomReceiver"); | ||
|
||
module.exports = function (deployer) { | ||
deployer.deploy(Mushroom); | ||
deployer.deploy(MushroomReceiver); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
const Mushroom = artifacts.require("Mushroom"); | ||
const MushroomReceiver = artifacts.require("MushroomReceiver"); | ||
|
||
module.exports = async function (deployer) { | ||
let mush = await Mushroom.deployed(); | ||
let mushR = await MushroomReceiver.deployed(); | ||
|
||
const account = (await web3.eth.getAccounts())[0]; | ||
const amount = 100; | ||
await mush.mint(mushR.address, amount); | ||
await mushR.sendToWinners(mush.address, account, 0, (20).toString()); | ||
const amount = 10; | ||
|
||
// await mush | ||
// .balanceOf(account, 0) | ||
// .then((d) => console.log("My balance: ", d.toString())); | ||
await mush.mint(account, amount); | ||
await mush.mint(account, amount); | ||
await mush.mint(account, amount); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.