Skip to content

Commit

Permalink
Merge pull request #38 from TreasureProject/develop
Browse files Browse the repository at this point in the history
v0.2.7
  • Loading branch information
aphexyuri authored Apr 19, 2024
2 parents 14691d6 + 3836413 commit 0f2aff1
Show file tree
Hide file tree
Showing 87 changed files with 303,971 additions and 433,923 deletions.
22 changes: 22 additions & 0 deletions Assets/Thirdweb/Core/Plugin/thirdweb.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var plugin = {
chainId,
password,
email,
phoneNumber,
personalWallet,
authOptions,
smartWalletAccountOverride,
Expand All @@ -74,6 +75,7 @@ var plugin = {
UTF8ToString(chainId),
UTF8ToString(password),
UTF8ToString(email),
UTF8ToString(phoneNumber),
UTF8ToString(personalWallet),
UTF8ToString(authOptions),
UTF8ToString(smartWalletAccountOverride)
Expand Down Expand Up @@ -505,6 +507,26 @@ var plugin = {
dynCall_viii(cb, idPtr, null, buffer);
});
},
ThirdwebCopyBuffer: async function (taskId, text, cb) {
// convert taskId from pointer to str and allocate it to keep in memory
var id = UTF8ToString(taskId);
var idSize = lengthBytesUTF8(id) + 1;
var idPtr = _malloc(idSize);
stringToUTF8(id, idPtr, idSize);
// execute bridge call
window.bridge
.copyBuffer(UTF8ToString(text))
.then(() => {
dynCall_viii(cb, idPtr, idPtr, null);
})
.catch((err) => {
var msg = err.message;
var bufferSize = lengthBytesUTF8(msg) + 1;
var buffer = _malloc(bufferSize);
stringToUTF8(msg, buffer, bufferSize);
dynCall_viii(cb, idPtr, null, buffer);
});
},
};

mergeInto(LibraryManager.library, plugin);
Binary file not shown.

This file was deleted.

Binary file not shown.
33 changes: 33 additions & 0 deletions Assets/Thirdweb/Core/Plugins/InAppWallet/embedded-wallet.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

224 changes: 115 additions & 109 deletions Assets/Thirdweb/Core/Prefabs/ThirdwebManager.prefab
Original file line number Diff line number Diff line change
@@ -1,109 +1,115 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4404896360829706407
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4404896360829706405}
- component: {fileID: 4404896360829706404}
m_Layer: 0
m_Name: ThirdwebManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4404896360829706405
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4404896360829706407}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4404896360829706404
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4404896360829706407}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56d9559a79e304f44b5ac4d726f1ee68, type: 3}
m_Name:
m_EditorClassIdentifier:
activeChain: arbitrum-sepolia
supportedChains:
- identifier: ethereum
chainId: 1
rpcOverride:
- identifier: sepolia
chainId: 11155111
rpcOverride:
- identifier: polygon
chainId: 137
rpcOverride:
- identifier: mumbai
chainId: 80001
rpcOverride:
- identifier: fantom
chainId: 250
rpcOverride:
- identifier: fantom-testnet
chainId: 4002
rpcOverride:
- identifier: avalanche
chainId: 43114
rpcOverride:
- identifier: avalanche-fuji
chainId: 43113
rpcOverride:
- identifier: arbitrum
chainId: 42161
rpcOverride:
- identifier: arbitrum-sepolia
chainId: 421614
rpcOverride:
- identifier: binance
chainId: 56
rpcOverride:
- identifier: binance-testnet
chainId: 97
rpcOverride:
clientId:
initializeOnAwake: 1
showDebugLogs: 1
bundleIdOverride:
thirdwebConfig: {fileID: 0}
appName:
appDescription:
appIcons: []
appUrl:
storageIpfsGatewayUrl:
relayerUrl:
forwarderAddress:
forwarderDomainOverride:
forwaderVersionOverride:
walletConnectProjectId:
walletConnectExplorerRecommendedWalletIds: []
factoryAddress:
gasless: 0
deployOnSign: 0
bundlerUrl:
paymasterUrl:
entryPointAddress:
WalletConnectPrefab: {fileID: 3202619366221042887, guid: c8c0099339b6ef54f87b1f049c5eb74f, type: 3}
MetamaskPrefab: {fileID: 3503421935870801903, guid: f09c6d17b08bed346bec9906a7f17092, type: 3}
EmbeddedWalletPrefab: {fileID: 3202619366221042887, guid: bef3cf6334b95f14883fb1b8095a0960, type: 3}
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4404896360829706407
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4404896360829706405}
- component: {fileID: 4404896360829706404}
m_Layer: 0
m_Name: ThirdwebManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4404896360829706405
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4404896360829706407}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4404896360829706404
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4404896360829706407}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56d9559a79e304f44b5ac4d726f1ee68, type: 3}
m_Name:
m_EditorClassIdentifier:
activeChain: arbitrum-sepolia
supportedChains:
- identifier: ethereum
chainId: 1
rpcOverride:
- identifier: sepolia
chainId: 11155111
rpcOverride:
- identifier: polygon
chainId: 137
rpcOverride:
- identifier: mumbai
chainId: 80001
rpcOverride:
- identifier: fantom
chainId: 250
rpcOverride:
- identifier: fantom-testnet
chainId: 4002
rpcOverride:
- identifier: avalanche
chainId: 43114
rpcOverride:
- identifier: avalanche-fuji
chainId: 43113
rpcOverride:
- identifier: arbitrum
chainId: 42161
rpcOverride:
- identifier: arbitrum-sepolia
chainId: 421614
rpcOverride:
- identifier: binance
chainId: 56
rpcOverride:
- identifier: binance-testnet
chainId: 97
rpcOverride:
clientId:
initializeOnAwake: 1
showDebugLogs: 1
bundleIdOverride:
thirdwebConfig: {fileID: 0}
appName:
appDescription:
appIcons: []
appUrl:
storageIpfsGatewayUrl:
relayerUrl:
forwarderAddress:
forwarderDomainOverride:
forwaderVersionOverride:
walletConnectProjectId:
walletConnectEnableExplorer: 0
walletConnectExplorerRecommendedWalletIds: []
walletConnectWalletImages: []
walletConnectDesktopWallets: []
walletConnectMobileWallets: []
walletConnectThemeMode:
factoryAddress:
gasless: 0
erc20PaymasterAddress:
erc20TokenAddress:
bundlerUrl:
paymasterUrl:
entryPointAddress:
WalletConnectPrefab: {fileID: 3202619366221042887, guid: c8c0099339b6ef54f87b1f049c5eb74f, type: 3}
MetamaskPrefab: {fileID: 3503421935870801903, guid: f09c6d17b08bed346bec9906a7f17092, type: 3}
InAppWalletPrefab: {fileID: 3202619366221042887, guid: bef3cf6334b95f14883fb1b8095a0960, type: 3}
Loading

0 comments on commit 0f2aff1

Please sign in to comment.