Skip to content

Commit ccbc87a

Browse files
committed
added infinity stones
1 parent 75fd971 commit ccbc87a

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
venv
22
.DS_Store
33
.env
4+
08_Getting_MoralisData

07_Infinity_stones/.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sol linguist-language=Solidity
2+
*.vy linguist-language=Python

07_Infinity_stones/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__pycache__
2+
.history
3+
.hypothesis/
4+
build/
5+
reports/
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
networks:
2+
default: local
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.0;
3+
4+
import "OpenZeppelin/[email protected]/contracts/token/ERC1155/ERC1155.sol";
5+
6+
contract infinityGems is ERC1155 {
7+
uint256 public constant SPACE = 0;
8+
uint256 public constant TIME = 1;
9+
uint256 public constant SOUL = 2;
10+
uint256 public constant REALITY = 3;
11+
uint256 public constant MIND = 4;
12+
uint256 public constant POWER = 5;
13+
14+
constructor() ERC1155("https://to6yj724p7wc.moralis.io:2053/server/classes/InfinityStones") {
15+
_mint(msg.sender, SPACE, 1, "");
16+
_mint(msg.sender, MIND, 1, "");
17+
_mint(msg.sender, TIME, 1, "");
18+
_mint(msg.sender, POWER, 1, "");
19+
_mint(msg.sender, REALITY, 1, "");
20+
_mint(msg.sender, SOUL, 1, "");
21+
}
22+
}

07_Infinity_stones/scripts/curl.bash

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
curl -X GET \
2+
-H "X-Parse-Application-Id: 01tbtOLWoEKRTfpVeqhQE6seQEINqjzJ8jQRiFvt" \
3+
-H "X-Parse-REST-API-Key: undefined" \
4+
-G \
5+
--data-urlencode "where={\"Id\":1}" \
6+
https://to6yj724p7wc.moralis.io:2053/server/classes/InfinityStones

0 commit comments

Comments
 (0)