update sth
This commit is contained in:
parent
99eb6fed92
commit
ed7db1a082
@ -67,6 +67,8 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||||||
se::AutoHandleScope hs;
|
se::AutoHandleScope hs;
|
||||||
jsb_run_script("js/jsb-adapter/jsb-builtin.js");
|
jsb_run_script("js/jsb-adapter/jsb-builtin.js");
|
||||||
jsb_run_script("js/main.js");
|
jsb_run_script("js/main.js");
|
||||||
|
se::Value rval;
|
||||||
|
jsb_run_code("JSON.stringify(wallet[0])", &rval);
|
||||||
|
|
||||||
se->addAfterCleanupHook([]() {
|
se->addAfterCleanupHook([]() {
|
||||||
JSBClassType::destroy();
|
JSBClassType::destroy();
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<VariablesViewState
|
||||||
|
version = "1.0">
|
||||||
|
<ContextStates>
|
||||||
|
<ContextState
|
||||||
|
contextName = "AppDelegate::applicationDidFinishLaunching():AppDelegate.cpp">
|
||||||
|
<PersistentStrings>
|
||||||
|
<PersistentString
|
||||||
|
value = "rval.toString()">
|
||||||
|
</PersistentString>
|
||||||
|
</PersistentStrings>
|
||||||
|
</ContextState>
|
||||||
|
</ContextStates>
|
||||||
|
</VariablesViewState>
|
@ -20,5 +20,85 @@
|
|||||||
landmarkType = "7">
|
landmarkType = "7">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "EDBD344A-A074-407C-A01B-BB7B4112AEEA"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Classes/AppDelegate.cpp"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "73"
|
||||||
|
endingLineNumber = "73"
|
||||||
|
landmarkName = "AppDelegate::applicationDidFinishLaunching()"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "6890C35C-A44B-4627-AE4E-9012BD80A300"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "../../cocos/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "291"
|
||||||
|
endingLineNumber = "291"
|
||||||
|
landmarkName = "require(s)"
|
||||||
|
landmarkType = "9">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "F91A0853-F848-4337-9AA8-08841BCBB24E"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "../../cocos/cocos2d-x/cocos/scripting/js-bindings/jswrapper/jsc/ScriptEngine.mm"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "660"
|
||||||
|
endingLineNumber = "660"
|
||||||
|
landmarkName = "ScriptEngine::runScript(path, ret)"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "5A95CF98-B5A5-49AE-BEA2-A081E0CF0E98"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "../../cocos/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "361"
|
||||||
|
endingLineNumber = "361"
|
||||||
|
landmarkName = "doModuleRequire(path, ret, prevScriptFileDir)"
|
||||||
|
landmarkType = "9">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "9B9DBB65-9F23-4933-9CD6-C7F31AF38900"
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "../../cocos/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "386"
|
||||||
|
endingLineNumber = "386"
|
||||||
|
landmarkName = "doModuleRequire(path, ret, prevScriptFileDir)"
|
||||||
|
landmarkType = "9">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
</Breakpoints>
|
</Breakpoints>
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
require('js/jsb-adapter/web3.min.js');
|
require('js/jsb-adapter/web3.min.js');
|
||||||
console.log('hi tiny cocos')
|
console.log('hi tiny cocos')
|
||||||
var web3 = new Web3('https://rpc-testnet.kcc.network')
|
var web3 = new Web3('https://rpc-testnet.kcc.network')
|
||||||
// let key = '0xa6c4354fb93a55fb67117969a12465209395ec31089fea9e6e061f873b87a473'
|
let key = '0xa6c4354fb93a55fb67117969a12465209395ec31089fea9e6e061f873b87a473'
|
||||||
// web3.eth.accounts.wallet.add(key);
|
web3.eth.accounts.wallet.add(key);
|
||||||
// web3.eth.accounts.wallet.save('111111')
|
web3.eth.accounts.wallet.save('111111')
|
||||||
window.wallet = web3.eth.accounts.wallet.load('111111')
|
window.wallet = web3.eth.accounts.wallet.load('111111')
|
||||||
console.log(web3.eth.accounts.wallet[0].address);
|
console.log(web3.eth.accounts.wallet[0].address);
|
||||||
console.log(web3.eth.accounts.wallet[0].privateKey);
|
console.log(web3.eth.accounts.wallet[0].privateKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user