Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
bcd4476
tests
sneakzttv Nov 12, 2023
1d192d0
almost all passing
sneakzttv Nov 12, 2023
a0a82d6
Duplicates removed
sneakzttv Nov 12, 2023
af423b2
organizing
sneakzttv Nov 12, 2023
89db85b
Cleanup
sneakzttv Nov 12, 2023
6000cf0
cleanup
sneakzttv Nov 12, 2023
2002fcc
Cleanup
sneakzttv Nov 12, 2023
a3e80e2
ecdsa
sneakzttv Nov 12, 2023
1deed80
Update SampleBehaviour.cs
sneakzttv Nov 12, 2023
75285e3
Cleanup
sneakzttv Nov 12, 2023
168e2ec
cleanup
sneakzttv Nov 12, 2023
9e25d78
cleanup
sneakzttv Nov 12, 2023
da919be
Update SampleMain.unity
sneakzttv Nov 12, 2023
ddef964
Auto-duplicate Packages Samples
sneakzttv Nov 12, 2023
796dd43
Update ChainlinkLootboxSampleLauncher.cs
sneakzttv Nov 12, 2023
8a118d1
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 12, 2023
5430810
Auto-duplicate Packages Samples
sneakzttv Nov 12, 2023
22e4aa0
Update Erc721Tests.cs
sneakzttv Nov 12, 2023
85cda95
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 12, 2023
442350b
Update Chains.cs
sneakzttv Nov 12, 2023
5d8ae67
Published Solution Dependencies to Package Libraries as DLLs
sneakzttv Nov 12, 2023
3f2b9ef
Update Erc721Tests.cs
sneakzttv Nov 12, 2023
7ab4181
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 12, 2023
47b217f
Update EvmTests.cs
sneakzttv Nov 12, 2023
31572b2
Update Erc721.cs
sneakzttv Nov 12, 2023
ecd7620
update templates
sneakzttv Nov 12, 2023
14743e1
gas limit fixed
sneakzttv Nov 13, 2023
378dc82
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
a2c055b
update
sneakzttv Nov 13, 2023
1aeef7e
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 13, 2023
b61d2c0
ownerOf
sneakzttv Nov 13, 2023
7ff6461
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
eb1d39c
owner of batch working
sneakzttv Nov 13, 2023
1333197
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 13, 2023
cf8d345
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
7112e80
tests
sneakzttv Nov 13, 2023
8176281
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 13, 2023
b027f1c
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
816cfd5
Update Erc1155Tests.cs
sneakzttv Nov 13, 2023
7b20ccd
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 13, 2023
15b8304
tests fixed
sneakzttv Nov 13, 2023
4e275a5
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
6f6e8ec
Update SampleMain.unity
sneakzttv Nov 13, 2023
82b53e4
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
a3c9b36
Remove tests
sneakzttv Nov 13, 2023
a0e1cc3
Gelato fix
sneakzttv Nov 13, 2023
f4cbd2b
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
1cce5a0
Update SampleLogin.unity
sneakzttv Nov 13, 2023
c73db66
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
32634bd
allerc prep
sneakzttv Nov 13, 2023
60f31b4
Merge branch 'sneakz/sepolia-take-2' of https://github.com/ChainSafe/…
sneakzttv Nov 13, 2023
bb45821
Auto-duplicate Packages Samples
sneakzttv Nov 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using Scripts.EVM.Token;
using UnityEngine;
using UnityEngine.Networking;

Expand Down Expand Up @@ -35,7 +35,7 @@ public async Task<StageItem> Create(Erc1155NftReward data)
{
var item = Instantiate(NftRewardItemPrefab);
var reward = (NftReward)item.Reward;
var contract = contractBuilder.Build(ABI.ERC_1155, data.ContractAddress);
var contract = contractBuilder.Build(ABI.Erc1155, data.ContractAddress);
var uri = (await contract.Call("uri", new object[] { data.TokenId }))[0].ToString();

Erc1155MetaData metadata;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using Scripts.EVM.Token;
using UnityEngine;

namespace LootBoxes.Chainlink.Scene
Expand Down Expand Up @@ -34,7 +34,7 @@ public async Task<StageItem> Create(Erc1155Reward data)
{
var item = Instantiate(CoinRewardItemPrefab);
var reward = (CoinReward)item.Reward;
var contract = contractBuilder.Build(ABI.ERC_1155, data.ContractAddress);
var contract = contractBuilder.Build(ABI.Erc1155, data.ContractAddress);
var uri = (await contract.Call("uri", new object[] { data.TokenId }))[0].ToString();
Erc1155MetaData metadata;
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using Scripts.EVM.Token;
using UnityEngine;

namespace LootBoxes.Chainlink.Scene
Expand Down Expand Up @@ -35,7 +35,7 @@ public async Task<StageItem> Create(Erc20Reward data)
{
var item = Instantiate(CoinRewardItemPrefab);
var reward = (CoinReward)item.Reward;
var contract = contractBuilder.Build(ABI.ERC_20, data.ContractAddress);
var contract = contractBuilder.Build(ABI.Erc20, data.ContractAddress);
var symbol = (await contract.Call("symbol"))[0].ToString();
var decimals = BigInteger.Parse((await contract.Call("decimals"))[0].ToString());
var humanizedAmount = HumanizeAmount(data.AmountRaw, decimals);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using Scripts.EVM.Token;
using UnityEngine;

namespace LootBoxes.Chainlink.Scene
Expand Down Expand Up @@ -32,7 +33,7 @@ public async Task<StageItem> Create(Erc721Reward data)
{
var item = Instantiate(NftRewardItemPrefab);
var reward = (NftReward)item.Reward;
var contract = contractBuilder.Build(ABI.ERC_721, data.ContractAddress);
var contract = contractBuilder.Build(ABI.Erc721, data.ContractAddress);
var uri = (await contract.Call("tokenURI", new object[] { data.TokenId.ToString() }))[0].ToString();
Debug.Log(uri);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7b6902e441950fa4bb5cefdd2263164a, type: 3}
m_Name:
m_EditorClassIdentifier:
gelatoApiKey: _UzPz_Yk_WTjWMfcl45fLvQNGQ9ISx5ZE8TnwnVKYrE_
gelatoApiKey: 7MFQqyGS1Iui_e_MgmFW1BfbFeJ06g8nnL2oUTlIJug_
errorPopup: {fileID: 337558421}
clientId: BCc0wTmuXureEzgawhUSZOWu4bgWo56sZPrxLiHQCpg5OHcNrfa44esdTS8Dm77VtmaIyjhbthdWfbLhSwf7jtU
redirectUri: torusapp://io.chainsafe.gamingsdk.sdkdemoscene/auth
Expand Down Expand Up @@ -1488,23 +1488,23 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -1536,11 +1536,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 150
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -190
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -1593,23 +1593,23 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -1641,11 +1641,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 150
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -80
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -1851,10 +1851,10 @@ RectTransform:
m_Father: {fileID: 221640018348301908}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 150, y: -337.825}
m_SizeDelta: {x: 300, y: 15.65}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &221640018720180777
GameObject:
Expand Down Expand Up @@ -1996,23 +1996,23 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -2044,11 +2044,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 150
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -135
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -2121,23 +2121,23 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -2169,11 +2169,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 150
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -25
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -2274,23 +2274,23 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -2322,11 +2322,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 150
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -2399,23 +2399,23 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 300
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -2447,11 +2447,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 150
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -245
objectReference: {fileID: 0}
- target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

window.networks = [
{
id: 5,
label: "Ethereum Goerli",
token: "goETH",
rpcUrl: `https://goerli.infura.io/v3/634371d724e34613bfc66e595b853cf0`,
id: 11155111,
label: "Ethereum Sepolia",
token: "Seth",
rpcUrl: `https://sepolia.infura.io/v3/287318045c6e455ab34b81d6bcd7a65f`,
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Used to set the network: https://chainlist.org/
338 Cronos Testnet
*/

window.web3ChainId = 5;
window.web3ChainId = 11155111;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading