pull/43/head v0.1.48
Ganesha Upadhyaya 4 years ago
parent 2d6d151f36
commit 4ebe736137
  1. 5
      examples/index.html
  2. 43
      examples/mathwallet.js
  3. 2
      lerna.json
  4. 14
      packages/harmony-account/package.json
  5. 10
      packages/harmony-contract/package.json
  6. 16
      packages/harmony-core/package.json
  7. 4
      packages/harmony-crypto/package.json
  8. 4
      packages/harmony-network/package.json
  9. 10
      packages/harmony-staking/package.json
  10. 8
      packages/harmony-transaction/package.json
  11. 2
      packages/harmony-utils/package.json

@ -0,0 +1,5 @@
<html>
<head>
<script>console.log(window.harmony);</script>
</head>
</html>;

@ -0,0 +1,43 @@
// Step 0: set up MathWallet extension on Chrome
// Step 1: Create a harmonyExtension instance
// import { HarmonyExtension } from '@harmony-js/core';
async function foo() {
// let hmyEx = await new HarmonyExtension(window.harmony);
if (window.harmony && window.harmony.isMathWallet) {
console.log(window.harmony);
} else {
console.log('no mathwallet!!!');
console.log(window.harmony);
}
// exContract = hmyEx.contracts.createContract(abi, address);
// return exContract;
}
foo();
// const initEx = async () => {
// hmyEx = new HarmonyExtension(window.harmony);
// console.log(hmyEx);
// };
// initEx();
// Step 2: interact with hmyEx instance
// wait for hmy inject into window
// async function componentDidMount() {
// await waitForInjected()
// }
// // Example: methods.myMethod.send()
// onSubmit = async event => {
// const exContract = await initExtension()
// await exContract.methods.Mymethod().send({
// value: new hmy.utils.Unit('1').asOne().toWei(),
// })
// }
// // wait for injected
// export const waitForInjected = () => new Promise((resolve) => {
// const check = () => {
// if (!window.harmony) setTimeout(check, 250);
// else resolve(window.harmony);
// }
// check();
// });

@ -2,5 +2,5 @@
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "0.1.47"
"version": "0.1.48"
}

@ -1,6 +1,6 @@
{
"name": "@harmony-js/account",
"version": "0.1.47",
"version": "0.1.48",
"description": "account and wallet for harmony",
"main": "dist/index.js",
"node": "dist/index.js",
@ -18,12 +18,12 @@
"author": "neeboo@firestack.one",
"license": "MIT",
"dependencies": {
"@harmony-js/core": "0.1.47",
"@harmony-js/crypto": "^0.1.45",
"@harmony-js/network": "^0.1.45",
"@harmony-js/staking": "^0.1.45",
"@harmony-js/transaction": "^0.1.45",
"@harmony-js/utils": "^0.1.45"
"@harmony-js/core": "0.1.48",
"@harmony-js/crypto": "0.1.48",
"@harmony-js/network": "0.1.48",
"@harmony-js/staking": "0.1.48",
"@harmony-js/transaction": "0.1.48",
"@harmony-js/utils": "0.1.48"
},
"gitHead": "56606e9365721729a490c27d6a294e0daf90fbdf"
}

@ -1,6 +1,6 @@
{
"name": "@harmony-js/contract",
"version": "0.1.46",
"version": "0.1.48",
"description": "contract libraries for harmony",
"main": "dist/index.js",
"node": "dist/index.js",
@ -19,10 +19,10 @@
"license": "MIT",
"dependencies": {
"@harmony-js/account": "0.1.46",
"@harmony-js/crypto": "^0.1.45",
"@harmony-js/network": "^0.1.45",
"@harmony-js/transaction": "^0.1.45",
"@harmony-js/utils": "^0.1.45"
"@harmony-js/crypto": "0.1.48",
"@harmony-js/network": "0.1.48",
"@harmony-js/transaction": "0.1.48",
"@harmony-js/utils": "0.1.48"
},
"gitHead": "56606e9365721729a490c27d6a294e0daf90fbdf"
}

@ -1,6 +1,6 @@
{
"name": "@harmony-js/core",
"version": "0.1.47",
"version": "0.1.48",
"description": "harmony core package",
"main": "dist/index.js",
"node": "dist/index.js",
@ -18,13 +18,13 @@
"author": "neeboo@firestack.one",
"license": "MIT",
"dependencies": {
"@harmony-js/account": "0.1.47",
"@harmony-js/contract": "0.1.46",
"@harmony-js/crypto": "^0.1.45",
"@harmony-js/network": "^0.1.45",
"@harmony-js/staking": "^0.1.45",
"@harmony-js/transaction": "^0.1.45",
"@harmony-js/utils": "^0.1.45"
"@harmony-js/account": "0.1.48",
"@harmony-js/contract": "0.1.48",
"@harmony-js/crypto": "0.1.48",
"@harmony-js/network": "0.1.48",
"@harmony-js/staking": "0.1.48",
"@harmony-js/transaction": "0.1.48",
"@harmony-js/utils": "0.1.48"
},
"gitHead": "56606e9365721729a490c27d6a294e0daf90fbdf"
}

@ -1,6 +1,6 @@
{
"name": "@harmony-js/crypto",
"version": "0.1.45",
"version": "0.1.48",
"description": "crypto libraries for harmony",
"main": "dist/index.js",
"node": "dist/index.js",
@ -18,7 +18,7 @@
},
"license": "MIT",
"dependencies": {
"@harmony-js/utils": "^0.1.45",
"@harmony-js/utils": "0.1.48",
"aes-js": "^3.1.2",
"bip39": "^2.5.0",
"bn.js": "^4.11.8",

@ -1,6 +1,6 @@
{
"name": "@harmony-js/network",
"version": "0.1.45",
"version": "0.1.48",
"description": "network suites for harmony",
"main": "dist/index.js",
"node": "dist/index.js",
@ -18,7 +18,7 @@
"author": "neeboo@firestack.one",
"license": "MIT",
"dependencies": {
"@harmony-js/utils": "^0.1.45",
"@harmony-js/utils": "0.1.48",
"cross-fetch": "^3.0.2",
"mitt": "^1.2.0",
"websocket": "^1.0.28"

@ -1,6 +1,6 @@
{
"name": "@harmony-js/staking",
"version": "0.1.45",
"version": "0.1.48",
"description": "staking transaction package for harmony",
"main": "dist/index.js",
"node": "dist/index.js",
@ -18,10 +18,10 @@
"author": "",
"license": "MIT",
"dependencies": {
"@harmony-js/crypto": "^0.1.45",
"@harmony-js/network": "^0.1.45",
"@harmony-js/transaction": "^0.1.45",
"@harmony-js/utils": "^0.1.45",
"@harmony-js/crypto": "0.1.48",
"@harmony-js/network": "0.1.48",
"@harmony-js/transaction": "0.1.48",
"@harmony-js/utils": "0.1.48",
"text-encoding": "^0.7.0"
},
"gitHead": "56606e9365721729a490c27d6a294e0daf90fbdf"

@ -1,6 +1,6 @@
{
"name": "@harmony-js/transaction",
"version": "0.1.45",
"version": "0.1.48",
"description": "transaction package for harmony",
"main": "dist/index.js",
"node": "dist/index.js",
@ -18,9 +18,9 @@
"author": "neeboo@firestack.one",
"license": "MIT",
"dependencies": {
"@harmony-js/crypto": "^0.1.45",
"@harmony-js/network": "^0.1.45",
"@harmony-js/utils": "^0.1.45"
"@harmony-js/crypto": "0.1.48",
"@harmony-js/network": "0.1.48",
"@harmony-js/utils": "0.1.48"
},
"gitHead": "56606e9365721729a490c27d6a294e0daf90fbdf"
}

@ -1,6 +1,6 @@
{
"name": "@harmony-js/utils",
"version": "0.1.45",
"version": "0.1.48",
"description": "utils for harmony",
"main": "dist/index.js",
"node": "dist/index.js",

Loading…
Cancel
Save