Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Refine ERC20, ERC721, ERC1155 utility classes - #952

Merged
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx
May 29, 2024
Merged

Refine ERC20, ERC721, ERC1155 utility classes#952
kantagara merged 21 commits into
devfrom
oleksandr/refine-erc-xx

Conversation

@oleksandrchainsafe

@oleksandrchainsafeoleksandrchainsafe commented May 13, 2024

Copy link
Copy Markdown
Contributor

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

Closes#937 , #966

…ripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
@oleksandrchainsafeoleksandrchainsafe self-assigned this May 13, 2024
@oleksandrchainsafeoleksandrchainsafe linked an issue May 13, 2024 that may be closed by this pull request

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

@juans-chainsafe

Copy link
Copy Markdown
Contributor

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context
Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
…eksandr/refine-erc-xx
# Conflicts:
#	src/UnitySampleProject/Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scenes/SampleMain.unity
@oleksandrchainsafe

oleksandrchainsafe commented May 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe Most of the samples are working, the only one failing is the "ImportNftTexture" with this error:

Web3Exception: Metadata request failure: Scripts.EVM.Token.Erc1155UnityExtensions.ImportTexture (ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc1155Contract contract, System.String tokenId) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs:24)
Erc1155Calls.ImportNftTexture1155 () (at Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs:137)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Is working in dev branch

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My mistake, I didnt want to approve the PR

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@oleksandrchainsafe

oleksandrchainsafe commented May 20, 2024

Copy link
Copy Markdown
ContributorAuthor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

@sneakzttv

Copy link
Copy Markdown
Contributor

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

@oleksandrchainsafe

Copy link
Copy Markdown
ContributorAuthor

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

@sneakzttv

Copy link
Copy Markdown
Contributor

@sneakzttv

Copy link
Copy Markdown
Contributor

we're going to have to majorly change the docs again xD

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, I wanted to request changes, not approve

@juans-chainsafe

Copy link
Copy Markdown
Contributor

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue #966

@CLAassistant

CLAassistant commented May 28, 2024

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ creeppak
✅ kantagara
✅ juans-chainsafe
❌ =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kantagara

kantagara commented May 28, 2024

Copy link
Copy Markdown
Contributor

@juans-chainsafe should be fixed. Closes #966

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For some reason the sample "CustomTokenBalance" is not logging anything in the console, I tried a development build as well but I dont see any logs. I remember this was working in the first version that I tested.

I checked with WebGL and editor.

Everything else is working as expected.

@juans-chainsafejuans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CustomTokenBalance was removed ✅

Screenshot 2024-05-28 at 12 05 56 PM

@juans-chainsafe

Copy link
Copy Markdown
Contributor

closes #952

@kantagara
kantagara enabled auto-merge (squash) May 29, 2024 04:44
@kantagara
kantagara disabled auto-merge May 29, 2024 04:44
@kantagara
kantagara merged commit 084e8bb into devMay 29, 2024
@kantagara
kantagara deleted the oleksandr/refine-erc-xx branch May 29, 2024 04:45
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.
Introduced IpfsHelper.
* Added contract caching for Erc20/721/1155 services.
Added shortcut methods to call smart-contract methods directly from a service without building a contract manually
Added Erc20/721/1155 services as default ones for Web3
* Updated Erc20/Erc721/Erc1155 usage samples
* Removed Custom Token Balance sample button
* Erc1155 ImportTexture fix
* Erc1155 ImportTexture fix
* Fixing merging error
* Fixing compiler errors
* Proper contract addresses
* Fixed issue with WebGL not recognizing embedded resources.
Added the ability to copy webgl templates directly trough our Chainsafe SDK menu.
* Removed Custom Token Balance
---------
Co-authored-by: oleksandr <59798783+creeppak@users.noreply.github.com>
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
Co-authored-by: = <=>
Co-authored-by: Nikola Garabandic <kantagara@gmail.com>
Sign up for freeto 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.

Refine and optimize Erc20, Erc721, Erc1155

7 participants

@oleksandrchainsafe@juans-chainsafe@sneakzttv@CLAassistant@kantagara@rob1997@creeppak