Skip to content

Commit 486b6c2

Browse files
committed
Migrate example scene to arbitrum-sepolia
1 parent 59390ea commit 486b6c2

File tree

8 files changed

+84
-84
lines changed

8 files changed

+84
-84
lines changed

Assets/Thirdweb/Core/Prefabs/ThirdwebManager.prefab

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ MonoBehaviour:
4444
m_Script: {fileID: 11500000, guid: 56d9559a79e304f44b5ac4d726f1ee68, type: 3}
4545
m_Name:
4646
m_EditorClassIdentifier:
47-
activeChain: goerli
47+
activeChain: arbitrum-sepolia
4848
supportedChains:
4949
- identifier: ethereum
5050
chainId: 1
5151
rpcOverride:
52-
- identifier: goerli
53-
chainId: 5
52+
- identifier: sepolia
53+
chainId: 11155111
5454
rpcOverride:
5555
- identifier: polygon
5656
chainId: 137
@@ -70,30 +70,23 @@ MonoBehaviour:
7070
- identifier: avalanche-fuji
7171
chainId: 43113
7272
rpcOverride:
73-
- identifier: optimism
74-
chainId: 10
75-
rpcOverride:
76-
- identifier: optimism-goerli
77-
chainId: 420
78-
rpcOverride:
7973
- identifier: arbitrum
8074
chainId: 42161
8175
rpcOverride:
82-
- identifier: arbitrum-goerli
83-
chainId: 421613
76+
- identifier: arbitrum-sepolia
77+
chainId: 421614
8478
rpcOverride:
8579
- identifier: binance
8680
chainId: 56
8781
rpcOverride:
8882
- identifier: binance-testnet
8983
chainId: 97
9084
rpcOverride:
91-
- identifier: sepolia
92-
chainId: 11155111
93-
rpcOverride:
9485
clientId:
9586
initializeOnAwake: 1
9687
showDebugLogs: 1
88+
bundleIdOverride:
89+
thirdwebConfig: {fileID: 0}
9790
appName:
9891
appDescription:
9992
appIcons: []
@@ -103,16 +96,14 @@ MonoBehaviour:
10396
forwarderAddress:
10497
forwarderDomainOverride:
10598
forwaderVersionOverride:
106-
magicLinkApiKey:
10799
walletConnectProjectId:
108100
walletConnectExplorerRecommendedWalletIds: []
109-
paperClientId:
110101
factoryAddress:
111102
gasless: 0
103+
deployOnSign: 0
112104
bundlerUrl:
113105
paymasterUrl:
114106
entryPointAddress:
115107
WalletConnectPrefab: {fileID: 3202619366221042887, guid: c8c0099339b6ef54f87b1f049c5eb74f, type: 3}
116108
MetamaskPrefab: {fileID: 3503421935870801903, guid: f09c6d17b08bed346bec9906a7f17092, type: 3}
117-
PaperPrefab: {fileID: 3202619366221042887, guid: e7531d4af8ba7a246bfd6b63c9a1e2a3, type: 3}
118109
EmbeddedWalletPrefab: {fileID: 3202619366221042887, guid: bef3cf6334b95f14883fb1b8095a0960, type: 3}

Assets/Thirdweb/Core/Scripts/Pack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public async Task<TransactionResult> AddPackContents(string packId, PackRewards
337337
/// <summary>
338338
/// Open a pack and transfer the rewards to the connected wallet
339339
/// </summary>
340-
public async Task<PackRewards> Open(string packId, string amount = "1", int gasLimit = 500000)
340+
public async Task<PackRewards> Open(string packId, string amount = "1", int gasLimit = 1000000)
341341
{
342342
if (Utils.IsWebGLBuild())
343343
{

Assets/Thirdweb/Examples/Prefabs/Prefab_NFTLoader.prefab

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -383,25 +383,13 @@ MonoBehaviour:
383383
m_Name:
384384
m_EditorClassIdentifier:
385385
query:
386-
loadOneNft:
387-
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7
388-
tokenID: 2
389-
type: 0
390-
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7
391-
tokenID: 1
392-
type: 0
393-
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7
394-
tokenID: 0
395-
type: 0
386+
loadOneNft: []
396387
loadMultipleNfts:
397-
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7
388+
- contractAddress: 0x94894F65d93eb124839C667Fc04F97723e5C4544
398389
startID: 0
399-
count: 3
400-
type: 0
401-
loadOwnedNfts:
402-
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7
403-
owner: 0xa3841994009B4fEabb01ebcC62062F9E56F701CD
404-
type: 0
390+
count: 12
391+
type: 1
392+
loadOwnedNfts: []
405393
contentParent: {fileID: 7702873693523111848}
406394
nftPrefab: {fileID: 7568917608122384971, guid: 41381d62941a9e74c92c44c6ff55ad50, type: 3}
407395
loadingPanel: {fileID: 1500719425}
@@ -1177,7 +1165,7 @@ MonoBehaviour:
11771165
m_TargetGraphic: {fileID: 6901059056735359879}
11781166
m_HandleRect: {fileID: 7216536800389251089}
11791167
m_Direction: 2
1180-
m_Value: 0
1168+
m_Value: 1
11811169
m_Size: 1
11821170
m_NumberOfSteps: 0
11831171
m_OnValueChanged:

Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Events.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public async void GetEvents()
4747
{
4848
try
4949
{
50-
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x2e01763fA0e15e07294D74B63cE4b526B321E389");
50+
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x345E7B4CCA26725197f1Bed802A05691D8EF7770");
5151

5252
if (Utils.IsWebGLBuild())
5353
{
5454
// Optional event query options
55-
Dictionary<string, object> filters = new Dictionary<string, object> { { "tokenId", 20 } };
55+
Dictionary<string, object> filters = new Dictionary<string, object> { { "tokenId", 0 } };
5656
EventQueryOptions options = new EventQueryOptions(filters);
5757

5858
List<ContractEvent<TransferEvent>> allEvents = await contract.events.Get<TransferEvent>("Transfer", options);
@@ -80,7 +80,7 @@ public async void GetAllEvents()
8080
{
8181
try
8282
{
83-
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x2e01763fA0e15e07294D74B63cE4b526B321E389");
83+
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x345E7B4CCA26725197f1Bed802A05691D8EF7770");
8484

8585
// Optional event query options
8686
EventQueryOptions options = new EventQueryOptions(null, 0, 16500000, "desc");
@@ -100,7 +100,7 @@ public void ListenToAllEvents()
100100
{
101101
try
102102
{
103-
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x2e01763fA0e15e07294D74B63cE4b526B321E389");
103+
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x345E7B4CCA26725197f1Bed802A05691D8EF7770");
104104
contract.events.ListenToAll((ContractEvent<object> anyEvent) => OnEventTriggered(anyEvent));
105105
Debugger.Instance.Log("Listening to all events!", "Try to trigger an event on the specified contract to get a callback.");
106106
}
@@ -114,7 +114,7 @@ public async void RemoveAllEventListeners()
114114
{
115115
try
116116
{
117-
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x2e01763fA0e15e07294D74B63cE4b526B321E389");
117+
Contract contract = ThirdwebManager.Instance.SDK.GetContract("0x345E7B4CCA26725197f1Bed802A05691D8EF7770");
118118
await contract.events.RemoveAllListeners();
119119
Debugger.Instance.Log("Removed all event listeners!", "Events emitted will not trigger callbacks anymore.");
120120
}

Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Marketplace.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ namespace Thirdweb.Examples
66
{
77
public class Prefab_Marketplace : MonoBehaviour
88
{
9-
private const string TOKEN_ERC20_CONTRACT = "0x76Ec89310842DBD9d0AcA3B2E27858E85cdE595A";
10-
private const string DROP_ERC20_CONTRACT = "0x450b943729Ddba196Ab58b589Cea545551DF71CC";
11-
private const string TOKEN_ERC721_CONTRACT = "0x45c498Dfc0b4126605DD91eB1850fd6b5BCe9efC";
12-
private const string DROP_ERC721_CONTRACT = "0x8ED1C3618d70785d23E5fdE767058FA6cA6D9E43";
13-
private const string TOKEN_ERC1155_CONTRACT = "0x82c488a1BC64ab3b91B927380cca9Db7bF347879";
14-
private const string DROP_ERC1155_CONTRACT = "0x408308c85D7073192deEAcC1703E234A783fFfF1";
15-
private const string MARKETPLACE_CONTRACT = "0x60b97Bf8C7b6dF9Ff6ebCE8536fB359A1985D8fe";
16-
private const string PACK_CONTRACT = "0xC04104DE55dEC5d63542f7ADCf8171278942048E";
9+
private const string TOKEN_ERC20_CONTRACT = "0x81ebd23aA79bCcF5AaFb9c9c5B0Db4223c39102e";
10+
private const string DROP_ERC20_CONTRACT = "0xEBB8a39D865465F289fa349A67B3391d8f910da9";
11+
private const string TOKEN_ERC721_CONTRACT = "0x345E7B4CCA26725197f1Bed802A05691D8EF7770";
12+
private const string DROP_ERC721_CONTRACT = "0xD811CB13169C175b64bf8897e2Fd6a69C6343f5C";
13+
private const string TOKEN_ERC1155_CONTRACT = "0x83b5851134DAA0E28d855E7fBbdB6B412b46d26B";
14+
private const string DROP_ERC1155_CONTRACT = "0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3";
15+
private const string MARKETPLACE_CONTRACT = "0xc9671F631E8313D53ec0b5358e1a499c574fCe6A";
16+
private const string PACK_CONTRACT = "0xE33653ce510Ee767d8824b5EcDeD27125D49889D";
1717

1818
// Fetching
1919

0 commit comments

Comments
 (0)