conseiljs
Advanced tools
Comparing version 5.0.3 to 5.0.4-beta.0
@@ -49,3 +49,3 @@ "use strict"; | ||
} | ||
const nodeResult = yield TezosNodeWriter_1.TezosNodeWriter.sendContractInvocationOperation(server, signer, keystore, contract, 0, operationFee, 6000, 300000, 'commit', parameters, TezosTypes.TezosParameterFormat.Michelson); | ||
const nodeResult = yield TezosNodeWriter_1.TezosNodeWriter.sendContractInvocationOperation(server, signer, keystore, contract, 0, operationFee, freight, gas, 'commit', parameters, TezosTypes.TezosParameterFormat.Michelson); | ||
return TezosContractUtils_1.TezosContractUtils.clearRPCOperationGroupHash(nodeResult.operationGroupID); | ||
@@ -67,3 +67,3 @@ }); | ||
} | ||
const nodeResult = yield TezosNodeWriter_1.TezosNodeWriter.sendContractInvocationOperation(server, signer, keystore, contract, registrationFee, operationFee, 6000, 300000, 'registerName', parameters, TezosTypes.TezosParameterFormat.Michelson); | ||
const nodeResult = yield TezosNodeWriter_1.TezosNodeWriter.sendContractInvocationOperation(server, signer, keystore, contract, registrationFee, operationFee, freight, gas, 'registerName', parameters, TezosTypes.TezosParameterFormat.Michelson); | ||
return TezosContractUtils_1.TezosContractUtils.clearRPCOperationGroupHash(nodeResult.operationGroupID); | ||
@@ -70,0 +70,0 @@ }); |
@@ -293,3 +293,3 @@ "use strict"; | ||
.map(p => translateMichelineToHex(p)) | ||
.reduce((m, p) => { return m += ('0000000' + (p.length / 2).toString(16)).slice(-8) + p; }, ''); | ||
.reduce((m, p) => { return m + ('0000000' + (p.length / 2).toString(16)).slice(-8) + p; }, ''); | ||
} | ||
@@ -296,0 +296,0 @@ TezosLanguageUtil.translateMichelsonToHex = translateMichelsonToHex; |
@@ -502,3 +502,3 @@ "use strict"; | ||
.map(p => TezosLanguageUtil_1.TezosLanguageUtil.translateMichelineToHex(p)) | ||
.reduce((m, p) => { return m += ('0000000' + (p.length / 2).toString(16)).slice(-8) + p; }, ''); | ||
.reduce((m, p) => { return m + ('0000000' + (p.length / 2).toString(16)).slice(-8) + p; }, ''); | ||
} | ||
@@ -505,0 +505,0 @@ return hex; |
@@ -66,3 +66,3 @@ "use strict"; | ||
} | ||
return arr.map(v => ('0' + v.toString(16)).slice(-2)).join(''); | ||
return arr.map(w => ('0' + w.toString(16)).slice(-2)).join(''); | ||
} | ||
@@ -69,0 +69,0 @@ TezosMessageUtils.writeSignedInt = writeSignedInt; |
@@ -31,3 +31,3 @@ import { KeyStore, Signer } from '../../types/ExternalInterfaces'; | ||
}>; | ||
function estimateOperation(server: string, chainid: string, operation: TezosP2PMessageTypes.Operation): Promise<{ | ||
function estimateOperation(server: string, chainid: string, ...operations: TezosP2PMessageTypes.Operation[]): Promise<{ | ||
gas: number; | ||
@@ -34,0 +34,0 @@ storageCost: number; |
@@ -344,3 +344,3 @@ "use strict"; | ||
TezosNodeWriter.testContractDeployOperation = testContractDeployOperation; | ||
function estimateOperation(server, chainid, operation) { | ||
function estimateOperation(server, chainid, ...operations) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -350,3 +350,3 @@ const fake_signature = 'edsigu6xFLH2NpJ1VcYshpjW99Yc1TAL1m2XBqJyXrxcZQgBMo8sszw2zm626yjpA3pWMhjpsahLrWdmvX9cqhd4ZEUchuBuFYy'; | ||
const fake_branch = 'BL94i2ShahPx3BoNs6tJdXDdGeoJ9ukwujUA2P8WJwULYNdimmq'; | ||
const response = yield performPostRequest(server, `chains/${chainid}/blocks/head/helpers/scripts/run_operation`, { chain_id: fake_chainid, operation: { branch: fake_branch, contents: [operation], signature: fake_signature } }); | ||
const response = yield performPostRequest(server, `chains/${chainid}/blocks/head/helpers/scripts/run_operation`, { chain_id: fake_chainid, operation: { branch: fake_branch, contents: operations, signature: fake_signature } }); | ||
const responseText = yield response.text(); | ||
@@ -353,0 +353,0 @@ parseRPCError(responseText); |
{ | ||
"name": "conseiljs", | ||
"version": "5.0.3", | ||
"version": "5.0.4-beta.0", | ||
"description": "Client-side library for dApp development.", | ||
@@ -62,2 +62,3 @@ "browser": "dist/index-web.js", | ||
"reporter": [ | ||
"lcov", | ||
"text", | ||
@@ -78,40 +79,40 @@ "text-lcov" | ||
"devDependencies": { | ||
"@types/chai": "4.2.11", | ||
"@types/chai-as-promised": "7.1.2", | ||
"@types/mocha": "7.0.2", | ||
"@types/chai": "4.2.12", | ||
"@types/chai-as-promised": "7.1.3", | ||
"@types/mocha": "8.0.0", | ||
"@types/nock": "11.1.0", | ||
"@types/node": "14.0.13", | ||
"@types/node-fetch": "2.5.7", | ||
"@typescript-eslint/eslint-plugin": "3.2.0", | ||
"@typescript-eslint/parser": "3.2.0", | ||
"@typescript-eslint/eslint-plugin": "3.7.1", | ||
"@typescript-eslint/parser": "3.7.1", | ||
"awesome-typescript-loader": "5.2.1", | ||
"chai": "4.2.0", | ||
"chai-as-promised": "7.1.1", | ||
"conseiljs-softsigner": "5.0.3-beta.0", | ||
"conseiljs-softsigner": "5.0.3", | ||
"copyfiles": "2.3.0", | ||
"coveralls": "3.1.0", | ||
"eslint": "7.2.0", | ||
"eslint": "7.5.0", | ||
"eslint-config-airbnb-base": "14.2.0", | ||
"eslint-plugin-import": "2.21.2", | ||
"eslint-plugin-import": "2.22.0", | ||
"glob": "7.1.6", | ||
"loglevel": "1.6.8", | ||
"mocha": "7.2.0", | ||
"nock": "12.0.3", | ||
"mocha": "8.0.1", | ||
"nock": "13.0.3", | ||
"node-fetch": "2.6.0", | ||
"nyc": "15.1.0", | ||
"request-promise": "4.2.5", | ||
"terser-webpack-plugin": "3.0.3", | ||
"ts-loader": "7.0.5", | ||
"request-promise": "4.2.6", | ||
"terser-webpack-plugin": "3.0.8", | ||
"ts-loader": "8.0.1", | ||
"ts-node": "8.10.2", | ||
"tsconfig-paths-webpack-plugin": "3.2.0", | ||
"typedoc": "0.17.7", | ||
"typedoc": "0.17.8", | ||
"typedoc-plugin-markdown": "2.3.1", | ||
"typescript": "3.8.3", | ||
"webpack": "4.43.0", | ||
"webpack-cli": "3.3.11", | ||
"webpack-node-externals": "1.7.2" | ||
"webpack": "4.44.0", | ||
"webpack-cli": "3.3.12", | ||
"webpack-node-externals": "2.5.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.16.3", | ||
"npm": ">=6.14.4" | ||
"node": ">=12.18.3", | ||
"npm": ">=6.14.6" | ||
}, | ||
@@ -118,0 +119,0 @@ "eslintConfig": { |
@@ -7,2 +7,3 @@ # ConseilJS-core | ||
[![Coverage Status](https://coveralls.io/repos/github/Cryptonomic/ConseilJS/badge.svg?branch=master)](https://coveralls.io/github/Cryptonomic/ConseilJS?branch=master) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Cryptonomic_ConseilJS&metric=alert_status)](https://sonarcloud.io/dashboard?id=Cryptonomic_ConseilJS) | ||
[![dependencies](https://david-dm.org/Cryptonomic/ConseilJS/status.svg)](https://david-dm.org/Cryptonomic/ConseilJS) | ||
@@ -59,5 +60,18 @@ | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js" | ||
<html> | ||
<head> | ||
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js" | ||
integrity="sha384-IufW5flMmPmFPiUm4GlKLocLuEWZlGoCA5ukejQgI66LcXELSsraBP7dux+BE9Ds" | ||
crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js" | ||
integrity="sha384-V1iaajn0x/SMFcZ9Y/xNQmqQSKyll6Dzt27U6OWiv8NdbHTVaHOGHdQ8g0G68HPd" | ||
crossorigin="anonymous"></script> | ||
<script> | ||
//conseiljssoftsigner. | ||
</script> | ||
</head> | ||
<body> | ||
... | ||
</body> | ||
</html> | ||
``` | ||
@@ -64,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
696364
104
1
1