Skip to content

Conversation

@sneakzttv
Copy link
Contributor

Moved IPFS & marketplace core functionality into a package to modularize it's use and left a placeholder for a use case implementation for 3.0.

To Test:

Run setup.sh
Check that the sdk functions as usual without the marketplace package.
Install the marketplace package locally and check that the marketplace/ipfs functions work there too.
The marketplace calls will enable in the sample scene similar to how ramp does once the package is present.

@sneakzttv sneakzttv added the ready-to-merge Ready to Merge PR - this'll trigger required checks label May 29, 2024
@@ -1,2 +1,2 @@
m_EditorVersion: 2022.3.26f1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't change this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should all be on .22f1 right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we updated to 2022.3.26 here #938

Copy link
Contributor Author

@sneakzttv sneakzttv May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating, I removed all my versions today to avoid this lol

Copy link
Contributor

@juans-chainsafe juans-chainsafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I don't import the marketplace package into the project, I see this build errors:

Assets/Samples/web3.unity SDK/2.5.5/Web3.Unity Samples/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs(4,7): error CS0246: The type or namespace name 'Web3Unity' could not be found (are you missing a using directive or an assembly reference?)

Assets/Samples/web3.unity SDK/2.5.5/Web3.Unity Samples/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs(1,19): error CS0234: The type or namespace name 'Marketplace' does not exist in the namespace 'Scripts.EVM' (are you missing an assembly reference?)

@sneakzttv
Copy link
Contributor Author

if I don't import the marketplace package into the project, I see this build errors:

Assets/Samples/web3.unity SDK/2.5.5/Web3.Unity Samples/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs(4,7): error CS0246: The type or namespace name 'Web3Unity' could not be found (are you missing a using directive or an assembly reference?)

Assets/Samples/web3.unity SDK/2.5.5/Web3.Unity Samples/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs(1,19): error CS0234: The type or namespace name 'Marketplace' does not exist in the namespace 'Scripts.EVM' (are you missing an assembly reference?)

Compilation conditional define is being placed in there at the start, i'll need to make it remove itself on deletion. BRB.

Fixes
@sneakzttv sneakzttv requested a review from juans-chainsafe May 29, 2024 17:53
@sneakzttv sneakzttv removed the ready-to-merge Ready to Merge PR - this'll trigger required checks label May 29, 2024
@sneakzttv sneakzttv added the ready-to-merge Ready to Merge PR - this'll trigger required checks label May 29, 2024
@sneakzttv sneakzttv added ready-to-merge Ready to Merge PR - this'll trigger required checks and removed ready-to-merge Ready to Merge PR - this'll trigger required checks labels May 29, 2024
Fix
"url": "https://gaming.chainsafe.io/"
},
"samples": [
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be an empty array

@sneakzttv sneakzttv removed the ready-to-merge Ready to Merge PR - this'll trigger required checks label May 30, 2024
@sneakzttv sneakzttv merged commit 578598d into dev May 30, 2024
@sneakzttv sneakzttv deleted the Sneakz/marketplace-package branch May 30, 2024 14:41
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Marketplace package

Marketplace package

* Compilation conditionals added to sample scripts

Compilation conditionals added to sample scripts

* Cleanup

Cleanup

* Almost there

Almost there

* Update DisableGameObjectIfServiceNotActive.cs

* assembly defs

assembly defs

* Package json

Package json

* testing

testing

* Update io.chainsafe.web3-unity.marketplace.runtime.asmdef

* Defines via asmdef

Defines via asmdef

* Adding MARKETPLACE_AVAILABLE "on demand"

* Adding csc.rsp file because for our project in general should be gucci.

* Login fix

Login fix

* Update SampleMain.unity

* Update SampleMain.unity

* Update CscImporter.cs

* Update CscImporter.cs

* Fixes

Fixes

* Remove debug

* Fixes

Fixes

* Fixes

* Fix

Fix

* Update package.json

* Fix for csc.rsp

* Meta file changed?

* Celanup

* Moving IPFS back to samples

Moving IPFS back to samples & fixing package duplicates.

* Update .gitignore

* Update .gitignore

* samples

samples

* Update .gitignore

* Update

Update

* Fixes

Fixes

* Remove deadfiles

Remove deadfiles

---------

Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Marketplace package

Marketplace package

* Compilation conditionals added to sample scripts

Compilation conditionals added to sample scripts

* Cleanup

Cleanup

* Almost there

Almost there

* Update DisableGameObjectIfServiceNotActive.cs

* assembly defs

assembly defs

* Package json

Package json

* testing

testing

* Update io.chainsafe.web3-unity.marketplace.runtime.asmdef

* Defines via asmdef

Defines via asmdef

* Adding MARKETPLACE_AVAILABLE "on demand"

* Adding csc.rsp file because for our project in general should be gucci.

* Login fix

Login fix

* Update SampleMain.unity

* Update SampleMain.unity

* Update CscImporter.cs

* Update CscImporter.cs

* Fixes

Fixes

* Remove debug

* Fixes

Fixes

* Fixes

* Fix

Fix

* Update package.json

* Fix for csc.rsp

* Meta file changed?

* Celanup

* Moving IPFS back to samples

Moving IPFS back to samples & fixing package duplicates.

* Update .gitignore

* Update .gitignore

* samples

samples

* Update .gitignore

* Update

Update

* Fixes

Fixes

* Remove deadfiles

Remove deadfiles

---------

Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants