gotchi-battler-game-logic 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotchi-battler-game-logic",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -20,7 +20,7 @@
20
20
  "axios": "^1.7.4",
21
21
  "axios-retry": "^4.5.0",
22
22
  "dotenv": "^16.4.5",
23
- "ethers": "^5.7.0",
23
+ "ethers": "^6.13.4",
24
24
  "json-csv": "^4.0.18"
25
25
  }
26
26
  }
package/schemas/team.json CHANGED
@@ -158,37 +158,37 @@
158
158
  "type": "integer"
159
159
  },
160
160
  "hauntId": {
161
- "type": "integer"
161
+ "type": ["integer", "null"]
162
162
  },
163
163
  "collateralType": {
164
- "type": "string"
164
+ "type": ["string", "null"]
165
165
  },
166
166
  "eyeShape": {
167
- "type": "string"
167
+ "type": ["string", "null"]
168
168
  },
169
169
  "eyeColor": {
170
- "type": "string"
170
+ "type": ["string", "null"]
171
171
  },
172
172
  "wearableBody": {
173
- "type": "integer"
173
+ "type": ["integer", "null"]
174
174
  },
175
175
  "wearableFace": {
176
- "type": "integer"
176
+ "type": ["integer", "null"]
177
177
  },
178
178
  "wearableEyes": {
179
- "type": "integer"
179
+ "type": ["integer", "null"]
180
180
  },
181
181
  "wearableHead": {
182
- "type": "integer"
182
+ "type": ["integer", "null"]
183
183
  },
184
184
  "wearableHandLeft": {
185
- "type": "integer"
185
+ "type": ["integer", "null"]
186
186
  },
187
187
  "wearableHandRight": {
188
- "type": "integer"
188
+ "type": ["integer", "null"]
189
189
  },
190
190
  "wearablePet": {
191
- "type": "integer"
191
+ "type": ["integer", "null"]
192
192
  },
193
193
  "special": {
194
194
  "type": "object",
@@ -2,7 +2,7 @@ const { ethers } = require('ethers')
2
2
  const tournamentAbi = require('../constants/tournamentManagerAbi.json')
3
3
 
4
4
  const getTournamentContract = (address) => {
5
- const provider = new ethers.providers.JsonRpcProvider('https://polygon-rpc.com')
5
+ const provider = new ethers.JsonRpcProvider('https://polygon-rpc.com')
6
6
  const contract = new ethers.Contract(address, tournamentAbi, provider)
7
7
 
8
8
  return contract