-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added walletProviders; * Added WebGLFrontend; * kukai-embed rollback to 0.8.4 * Fix type window; * Fix imports * JS bundle to StreamingAssets * Removed unnecessary tsx resolve; * Added output directory with folders needed for WebGL build; * Update readme; drop unitypackage file; * Implemented InitWalletProvider and configuring network type for web wallet providers; * Changelog updated; * WebGLCopyAndPaste to unitypackage; Update readme; * Added WebGLCopyAndPaste.unitypackage * Improve readme; * Removed unnecessary WebGLCopyAndPaste.unitypackage --------- Co-authored-by: mismirnov <[email protected]>
- Loading branch information
Showing
40 changed files
with
7,374 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,29 @@ | ||
mergeInto(LibraryManager.library, { | ||
JsSetNetwork: function(network, rpc){ | ||
SetNetwork(UTF8ToString(network), UTF8ToString(rpc)); | ||
JsInitWallet: function(network, rpc, walletProvider){ | ||
InitWalletProvider(UTF8ToString(network), UTF8ToString(rpc), UTF8ToString(walletProvider)) | ||
}, | ||
|
||
JsConnectAccount: function(){ | ||
ConnectAccount(); | ||
WalletProvider.ConnectAccount(); | ||
}, | ||
|
||
JsGetActiveAccountAddress: function(){ | ||
var returnStr = GetActiveAccountAddress(); | ||
var returnStr = WalletProvider.GetActiveAccountAddress(); | ||
var bufferSize = lengthBytesUTF8(returnStr) + 1; | ||
var buffer = _malloc(bufferSize); | ||
stringToUTF8(returnStr, buffer, bufferSize); | ||
return buffer; | ||
}, | ||
|
||
JsSwitchAccounts: function (){ | ||
SwitchAccounts(); | ||
}, | ||
|
||
JsRemovePeer: function (){ | ||
RemovePeer(); | ||
}, | ||
|
||
JsSendMutezAsString: function (amount, address){ | ||
SendMutez(UTF8ToString(amount), UTF8ToString(address)); | ||
JsDisconnectAccount: function (){ | ||
WalletProvider.DisconnectAccount(); | ||
}, | ||
|
||
JsSendContractCall: function (destination, amount, entryPoint, parameter){ | ||
SendContract(UTF8ToString(destination), UTF8ToString(amount), UTF8ToString(entryPoint), UTF8ToString(parameter)); | ||
}, | ||
|
||
JsReset: function (){ | ||
Reset(); | ||
WalletProvider.SendContract(UTF8ToString(destination), UTF8ToString(amount), UTF8ToString(entryPoint), UTF8ToString(parameter)); | ||
}, | ||
|
||
JsSignPayload: function (signingType, payload){ | ||
SignPayload(signingType, UTF8ToString(payload)); | ||
WalletProvider.SignPayload(signingType, UTF8ToString(payload)); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.