- Removed default values from floGlobals - Default values are now in their respective modules - The following properties of floGlobals can be use to override the default values of respective modules: apiURL, sendAmt, fee, tokenURL, currency, SNStorageID - Default/current values can be obtained from each module with getter properties - Some current values can be set with setter properties - The containers for appObjects, generalData, lastVC are now in floCloudAPI module. Also automatically adds get/set properties for them in floGlobals. Thus can be accessed from floGlobals as before
43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>FLO Standard Operators</title>
|
|
<script id="floGlobals">
|
|
/* Constants for FLO blockchain operations !!Make sure to add this at begining!! */
|
|
const floGlobals = {
|
|
blockchain: "FLO",
|
|
adminID: "FKAEdnPfjXLHSYwrXQu377ugN4tXU7VGdf",
|
|
fee: 0.01,
|
|
application: "TEST_MODE",
|
|
}
|
|
</script>
|
|
<script src="lib.js"></script>
|
|
<script src="floCrypto.js"></script>
|
|
<script src="floBlockchainAPI.js"></script>
|
|
<script src="floTokenAPI.js"></script>
|
|
<script src="compactIDB.js"></script>
|
|
<script src="floCloudAPI.js"></script>
|
|
<script src="floDapps.js"></script>
|
|
<script id="onLoadStartUp">
|
|
function onLoadStartUp() {
|
|
|
|
//floDapps.addStartUpFunction('Sample', Promised Function)
|
|
//floDapps.setAppObjectStores({sampleObs1:{}, sampleObs2:{options{autoIncrement:true, keyPath:'SampleKey'}, Indexes:{sampleIndex:{}}}})
|
|
//floDapps.setCustomPrivKeyInput( () => { FUNCTION BODY *must resolve private key* } )
|
|
|
|
floDapps.launchStartUp().then(result => {
|
|
console.log(result)
|
|
alert(`Welcome FLO_ID: ${myFloID}`)
|
|
//App functions....
|
|
}).catch(error => console.error(error))
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="onLoadStartUp()">
|
|
TEST_MODE
|
|
(use console)
|
|
</body>
|
|
|
|
</html> |