update dhive library7

This commit is contained in:
feruz 2020-07-18 22:20:33 +03:00
parent c9070c3b8f
commit 6ba5e7cc52
7 changed files with 25 additions and 26 deletions

View File

@ -24,13 +24,13 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.5.5", "@babel/runtime": "^7.5.5",
"@esteemapp/dhive": "^0.14.7",
"@esteemapp/esteem-render-helpers": "^1.3.8", "@esteemapp/esteem-render-helpers": "^1.3.8",
"@esteemapp/react-native-autocomplete-input": "^4.2.1", "@esteemapp/react-native-autocomplete-input": "^4.2.1",
"@esteemapp/react-native-modal-popover": "^0.0.15", "@esteemapp/react-native-modal-popover": "^0.0.15",
"@esteemapp/react-native-multi-slider": "^1.1.0", "@esteemapp/react-native-multi-slider": "^1.1.0",
"@esteemapp/react-native-render-html": "^4.1.5", "@esteemapp/react-native-render-html": "^4.1.5",
"@esteemapp/react-native-slider": "^0.12.0", "@esteemapp/react-native-slider": "^0.12.0",
"@hiveio/dhive": "^0.14.1",
"@react-native-community/async-storage": "^1.7.1", "@react-native-community/async-storage": "^1.7.1",
"@react-native-community/cameraroll": "^1.3.0", "@react-native-community/cameraroll": "^1.3.0",
"@react-native-community/cli-platform-ios": "^4.10.1", "@react-native-community/cli-platform-ios": "^4.10.1",

View File

@ -89,12 +89,7 @@ class UpvoteView extends Component {
); );
const weight = sliderValue ? (sliderValue * 100).toFixed(0) * 100 : 0; const weight = sliderValue ? (sliderValue * 100).toFixed(0) * 100 : 0;
Alert.alert(
intl.formatMessage({
id: 'alert.fail',
}),
JSON.stringify({ pinCode, author, permlink, weight }),
);
vote(currentAccount, pinCode, author, permlink, weight) vote(currentAccount, pinCode, author, permlink, weight)
.then(() => { .then(() => {
this.setState( this.setState(

View File

@ -1,4 +1,4 @@
import * as dsteem from '@hiveio/dhive'; import * as dsteem from '@esteemapp/dhive';
import sha256 from 'crypto-js/sha256'; import sha256 from 'crypto-js/sha256';
import Config from 'react-native-config'; import Config from 'react-native-config';
import get from 'lodash/get'; import get from 'lodash/get';

View File

@ -2,7 +2,7 @@
// import '../../../shim'; // import '../../../shim';
// import * as bitcoin from 'bitcoinjs-lib'; // import * as bitcoin from 'bitcoinjs-lib';
import { Client, PrivateKey, cryptoUtils } from '@hiveio/dhive'; import { Client, PrivateKey, cryptoUtils } from '@esteemapp/dhive';
import hivesigner from 'hivesigner'; import hivesigner from 'hivesigner';
import Config from 'react-native-config'; import Config from 'react-native-config';
import { get, has } from 'lodash'; import { get, has } from 'lodash';

View File

@ -1,7 +1,7 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Platform } from 'react-native'; import { Platform } from 'react-native';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { Client } from '@hiveio/dhive'; import { Client } from '@esteemapp/dhive';
import VersionNumber from 'react-native-version-number'; import VersionNumber from 'react-native-version-number';
import Config from 'react-native-config'; import Config from 'react-native-config';
import { injectIntl } from 'react-intl'; import { injectIntl } from 'react-intl';

View File

@ -1,5 +1,5 @@
import CryptoJS from 'crypto-js'; import CryptoJS from 'crypto-js';
import * as dsteem from '@hiveio/dhive'; import * as dsteem from '@esteemapp/dhive';
import { Buffer } from 'buffer'; import { Buffer } from 'buffer';
import { proxifyImageSrc } from '@esteemapp/esteem-render-helpers'; import { proxifyImageSrc } from '@esteemapp/esteem-render-helpers';

View File

@ -696,6 +696,19 @@
dependencies: dependencies:
"@types/hammerjs" "^2.0.36" "@types/hammerjs" "^2.0.36"
"@esteemapp/dhive@^0.14.7":
version "0.14.7"
resolved "https://registry.yarnpkg.com/@esteemapp/dhive/-/dhive-0.14.7.tgz#56dff882e8e8a95e3b9a21ab66932baa4dca20e7"
integrity sha512-NMEVyeh0B40qNmTpjuWR5c3vMAhe39GzB/zssIR7S7XVYClGOeAeI1eS+aqAMhXwyL0yGSKpYUEJJhU1oDvvzw==
dependencies:
bs58 "^4.0.1"
bytebuffer "^5.0.1"
core-js "^3.6.4"
node-fetch "^2.6.0"
secp256k1 "^3.8.0"
verror "^1.10.0"
whatwg-fetch "^2.0.3"
"@esteemapp/esteem-render-helpers@^1.3.8": "@esteemapp/esteem-render-helpers@^1.3.8":
version "1.4.4" version "1.4.4"
resolved "https://registry.yarnpkg.com/@esteemapp/esteem-render-helpers/-/esteem-render-helpers-1.4.4.tgz#02360a8be20188009e4157d4956a7b74d473933f" resolved "https://registry.yarnpkg.com/@esteemapp/esteem-render-helpers/-/esteem-render-helpers-1.4.4.tgz#02360a8be20188009e4157d4956a7b74d473933f"
@ -813,20 +826,6 @@
dependencies: dependencies:
"@hapi/hoek" "^8.3.0" "@hapi/hoek" "^8.3.0"
"@hiveio/dhive@^0.14.1":
version "0.14.1"
resolved "https://registry.yarnpkg.com/@hiveio/dhive/-/dhive-0.14.1.tgz#1a6273d1544bd97bf2a047baa85a6afb4cecae78"
integrity sha512-80I1alxQW5Cnt61KvAuSa+dPH6V+JNrE/0vR+DgQGH9y8l3xmn+pr4TXNLtSvx37pI8Zt1UEPsgvren/R02WeQ==
dependencies:
bs58 "^4.0.1"
bytebuffer "^5.0.1"
core-js "^3.6.4"
cross-fetch "^3.0.4"
node-fetch "^2.6.0"
secp256k1 "^3.8.0"
verror "^1.10.0"
whatwg-fetch "^3.0.0"
"@jest/console@^24.7.1", "@jest/console@^24.9.0": "@jest/console@^24.7.1", "@jest/console@^24.9.0":
version "24.9.0" version "24.9.0"
resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0"
@ -2677,7 +2676,7 @@ create-react-class@*, create-react-class@^15.6.2, create-react-class@^15.6.3:
loose-envify "^1.3.1" loose-envify "^1.3.1"
object-assign "^4.1.1" object-assign "^4.1.1"
cross-fetch@^3.0.1, cross-fetch@^3.0.4: cross-fetch@^3.0.1:
version "3.0.5" version "3.0.5"
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.5.tgz#2739d2981892e7ab488a7ad03b92df2816e03f4c" resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.5.tgz#2739d2981892e7ab488a7ad03b92df2816e03f4c"
integrity sha512-FFLcLtraisj5eteosnX1gf01qYDCOc4fDy0+euOt8Kn9YBY2NtXL/pCoYPavw24NIQkQqm5ZOLsGD5Zzj0gyew== integrity sha512-FFLcLtraisj5eteosnX1gf01qYDCOc4fDy0+euOt8Kn9YBY2NtXL/pCoYPavw24NIQkQqm5ZOLsGD5Zzj0gyew==
@ -9348,6 +9347,11 @@ whatwg-fetch@>=0.10.0, whatwg-fetch@^3.0.0:
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.2.0.tgz#8e134f701f0a4ab5fda82626f113e2b647fd16dc" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.2.0.tgz#8e134f701f0a4ab5fda82626f113e2b647fd16dc"
integrity sha512-SdGPoQMMnzVYThUbSrEvqTlkvC1Ux27NehaJ/GUHBfNrh5Mjg+1/uRyFMwVnxO2MrikMWvWAqUGgQOfVU4hT7w== integrity sha512-SdGPoQMMnzVYThUbSrEvqTlkvC1Ux27NehaJ/GUHBfNrh5Mjg+1/uRyFMwVnxO2MrikMWvWAqUGgQOfVU4hT7w==
whatwg-fetch@^2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f"
integrity sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==
whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0: whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0:
version "2.3.0" version "2.3.0"
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"