Skip to content

Commit

Permalink
Merge pull request #156 from ChainSafe/Sneakz/lootbox-updates
Browse files Browse the repository at this point in the history
Lootboxes
  • Loading branch information
JAlbertCode authored Dec 3, 2024
2 parents e03dd46 + b8115cd commit 6642584
Show file tree
Hide file tree
Showing 17 changed files with 250 additions and 132 deletions.
1 change: 1 addition & 0 deletions dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ KYB
Kwame
LazyMinter
Lootbox
lootboxService
lootbox
LootBoxes
Lootboxes
Expand Down
2 changes: 1 addition & 1 deletion docs/marketplace-api/spec/v1.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
version: 1.19.2
externalDocs:
description: Find out more about ChainSafe
url: "https://doc.chainsafe.io"
url: "https://gaming.chainsafe.io/"
servers:
- url: "https://game-api-stg.chainsafe.io"
description: STAGING
Expand Down
2 changes: 1 addition & 1 deletion docs/token-api/spec/v1.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
version: 1.19.2
externalDocs:
description: Find out more about ChainSafe
url: "https://doc.chainsafe.io"
url: "https://gaming.chainsafe.io/"
servers:
- url: "https://game-api-stg.chainsafe.io"
description: STAGING
Expand Down
16 changes: 13 additions & 3 deletions docs/v2.6/12_ramp.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,19 @@ Specify a Cross-Origin Resource Policy to prevent a resource from being blocked
```
This is a local/localhost specific error and doesn't happen on real domains during deployment. If you want to test ramp locally follow these steps
1. Make a WebGL build **NOT** Build And Run, Make sure `Player Settings > WebGL > Compression Format` isn't set to Brotli
2. Navigate to the build directory and setup a server on port 8000
Windows: Navigate to Build directory open terminal and run command `"[Unity Editor Directory]/Editor/Data/MonoBleedingEdge/bin/mono.exe" "[Unity Editor Directory]/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe" "[Build Directory]" 8000` [Unity Editor Directory] is usually `C:/Program Files/Unity/Hub/Editor/2022.3.../`
Mac/Linux: Install [Python](https://www.python.org/downloads/) and in the Build directory open terminal and run command `py -m http.server`
<br />
2. Navigate to the build directory and setup a server on port 8000, Windows: Navigate to Build directory open terminal
<br />
<br />
Run command `"[Unity Editor Directory]/Editor/Data/MonoBleedingEdge/bin/mono.exe" "[Unity Editor Directory]/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe" "[Build Directory]" 8000`
<br />
<br />
[Unity Editor Directory] is usually `C:/Program Files/Unity/Hub/Editor/2022.3.../`
<br /><br />
Mac/Linux: Install [Python](https://www.python.org/downloads/) and in the Build directory open terminal
<br />
Run command `py -m http.server`
<br /><br />
3. Run build using [https://localhost:8000](https://localhost:8000)

Now you should be able to test Ramp locally on WebGL!
Expand Down
338 changes: 211 additions & 127 deletions docs/v2.6/13_lootboxes.md

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/v2.6/18_faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,29 @@ Please join us in our [Discord](https://discord.gg/zxHUgGGTGk) ([#gaming-help](h

Yes, the SDK will remain free to use.

### Wallet address is being returned in all lower case, i need it in checksum format.

No problems you can simple run a checksum conversion on the wallet address like so:

```csharp
// Put this at the top of your script, it's a using directive to give you access to the helper method.
using Nethereum.Util;

// This is your checksum function, place it anywhere.
/// <summary>
/// Converts an address to checksum format.
/// </summary>
private string ConvertToChecksum(string address)
{
string checksumAddress = new AddressUtil().ConvertToChecksumAddress(address);
return checksumAddress;
}

// Call it like this.
var checksumAddress = ConvertToChecksum(Your Address Here);
```

## Common Error Messages

### I'm seeing the following error when I install the package. `The type or namespace name 'Newtonsoft' could not be found`
Expand Down
Binary file removed docs/v2.6/assets/lootboxes/claim-rewards.png
Binary file not shown.
Binary file added docs/v2.6/assets/lootboxes/inventory-lootbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/v2.6/assets/lootboxes/login-scene.png
Binary file not shown.
Binary file removed docs/v2.6/assets/lootboxes/lootboxes-npm-fulfill.png
Binary file not shown.
Binary file not shown.
Binary file removed docs/v2.6/assets/lootboxes/lootboxes-run-node.png
Binary file not shown.
Binary file removed docs/v2.6/assets/lootboxes/lootboxes-scene.png
Binary file not shown.
Binary file added docs/v2.6/assets/lootboxes/main-scene.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/v2.6/assets/lootboxes/opening-lootboxes.png
Binary file not shown.
Binary file removed docs/v2.6/assets/lootboxes/rewards-lootboxes.png
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.

0 comments on commit 6642584

Please sign in to comment.