conseiljs
Advanced tools
Comparing version 0.3.4-beta to 0.3.5-beta
<!-- markdownlint-disable MD024 --> | ||
# ConseilJS Change Log | ||
## 0.3.4-beta | ||
## 0.3.5-beta | ||
### Breaking Changes | ||
- `EntryPoint.generateParameter` became `EntryPoint.generateInvocationString` | ||
### Fixes | ||
- basic big_map query support | ||
- Improved entry point parser, this functionality is still experimental. | ||
- Added `EntryPoint.generateInvocationPair` to produce Protocol 005 style invocation parameters. | ||
- `ConseilPredicate` gained a `group` attribute for `or` queries. | ||
- removed `base-n` dependency. | ||
## 0.3.4-beta | ||
### Fixes | ||
- basic big_map query support. | ||
- nodejs 10.17.x is now the minimum requirement. | ||
@@ -10,0 +23,0 @@ - all dependencies are now referenced with explicit versions. |
@@ -13,4 +13,4 @@ "use strict"; | ||
pair: 'pair', | ||
data: ['bytes', 'int', 'nat', 'bool', 'string', 'timestamp', 'signature', 'key', 'key_hash', 'mutez', 'address', 'unit', 'operation'], | ||
singleArgData: ['option', 'list', 'contract'], | ||
data: ['bytes', 'int', 'nat', 'bool', 'string', 'timestamp', 'signature', 'key', 'key_hash', 'mutez', 'address', 'unit', 'operation', 'chain_id'], | ||
singleArgData: ['option', 'list', 'contract', 'set'], | ||
doubleArgData: ['lambda', 'map', 'big_map'], | ||
@@ -27,3 +27,2 @@ semicolon: ';' | ||
const branchedEntryPoints = []; | ||
console.log(`branchOrWithTwoAnnot found ${annotA}, ${annotB}`); | ||
for (const leftEntryPoint of leftEntryPoints) { | ||
@@ -34,3 +33,4 @@ const branchedEntryPoint = { | ||
structure: '(Left ' + leftEntryPoint.structure + ')', | ||
generateParameter: leftEntryPoint.generateParameter | ||
generateInvocationString: leftEntryPoint.generateInvocationString, | ||
generateInvocationPair: leftEntryPoint.generateInvocationPair | ||
}; | ||
@@ -44,3 +44,4 @@ branchedEntryPoints.push(branchedEntryPoint); | ||
structure: '(Right ' + rightEntryPoint.structure + ')', | ||
generateParameter: rightEntryPoint.generateParameter | ||
generateInvocationString: rightEntryPoint.generateInvocationString, | ||
generateInvocationPair: rightEntryPoint.generateInvocationPair | ||
}; | ||
@@ -56,3 +57,2 @@ branchedEntryPoints.push(branchedEntryPoint); | ||
const branchedEntryPoints = []; | ||
console.log(`branchOrWithAnnot found ${annot}`); | ||
for (const leftEntryPoint of leftEntryPoints) { | ||
@@ -63,3 +63,4 @@ const branchedEntryPoint = { | ||
structure: '(Left ' + leftEntryPoint.structure + ')', | ||
generateParameter: leftEntryPoint.generateParameter | ||
generateInvocationString: leftEntryPoint.generateInvocationString, | ||
generateInvocationPair: leftEntryPoint.generateInvocationPair | ||
}; | ||
@@ -73,3 +74,4 @@ branchedEntryPoints.push(branchedEntryPoint); | ||
structure: '(Right ' + rightEntryPoint.structure + ')', | ||
generateParameter: rightEntryPoint.generateParameter | ||
generateInvocationString: rightEntryPoint.generateInvocationString, | ||
generateInvocationPair: rightEntryPoint.generateInvocationPair | ||
}; | ||
@@ -85,2 +87,5 @@ branchedEntryPoints.push(branchedEntryPoint); | ||
for (const leftEntryPoint of leftEntryPoints) { | ||
if (leftEntryPoint.parameters.length === 1 && leftEntryPoint.parameters[0].name === leftEntryPoint.name) { | ||
leftEntryPoint.parameters[0].name = undefined; | ||
} | ||
const branchedEntryPoint = { | ||
@@ -90,3 +95,4 @@ name: leftEntryPoint.name, | ||
structure: '(Left ' + leftEntryPoint.structure + ')', | ||
generateParameter: leftEntryPoint.generateParameter | ||
generateInvocationString: leftEntryPoint.generateInvocationString, | ||
generateInvocationPair: leftEntryPoint.generateInvocationPair | ||
}; | ||
@@ -96,2 +102,5 @@ branchedEntryPoints.push(branchedEntryPoint); | ||
for (const rightEntryPoint of rightEntryPoints) { | ||
if (rightEntryPoint.parameters.length === 1 && rightEntryPoint.parameters[0].name === rightEntryPoint.name) { | ||
rightEntryPoint.parameters[0].name = undefined; | ||
} | ||
const branchedEntryPoint = { | ||
@@ -101,3 +110,4 @@ name: rightEntryPoint.name, | ||
structure: '(Right ' + rightEntryPoint.structure + ')', | ||
generateParameter: rightEntryPoint.generateParameter | ||
generateInvocationString: rightEntryPoint.generateInvocationString, | ||
generateInvocationPair: rightEntryPoint.generateInvocationPair | ||
}; | ||
@@ -114,3 +124,2 @@ branchedEntryPoints.push(branchedEntryPoint); | ||
const pairedEntryPoints = []; | ||
console.log(`mergePairWithTwoAnnot found ${annotA}, ${annotB}`); | ||
for (const firstEntryPoint of firstEntryPoints) { | ||
@@ -122,3 +131,4 @@ for (const secondEntryPoint of secondEntryPoints) { | ||
structure: `(Pair ${firstEntryPoint.structure} ${secondEntryPoint.structure})`, | ||
generateParameter: firstEntryPoint.generateParameter | ||
generateInvocationString: firstEntryPoint.generateInvocationString, | ||
generateInvocationPair: firstEntryPoint.generateInvocationPair | ||
}; | ||
@@ -135,10 +145,11 @@ pairedEntryPoints.push(pairedEntryPoint); | ||
const pairedEntryPoints = []; | ||
console.log(`mergePairWithAnnot found ${annot}`); | ||
for (const firstEntryPoint of firstEntryPoints) { | ||
for (const secondEntryPoint of secondEntryPoints) { | ||
const name = getFieldAnnotation(annot.toString()); | ||
const pairedEntryPoint = { | ||
name: annot.toString(), | ||
name: name || undefined, | ||
parameters: firstEntryPoint.parameters.concat(secondEntryPoint.parameters), | ||
structure: `(Pair ${firstEntryPoint.structure} ${secondEntryPoint.structure})`, | ||
generateParameter: firstEntryPoint.generateParameter | ||
generateInvocationString: firstEntryPoint.generateInvocationString, | ||
generateInvocationPair: firstEntryPoint.generateInvocationPair | ||
}; | ||
@@ -156,14 +167,8 @@ pairedEntryPoints.push(pairedEntryPoint); | ||
for (const secondEntryPoint of secondEntryPoints) { | ||
let pairedEntryPointName = undefined; | ||
if (firstEntryPoint.name != undefined) { | ||
pairedEntryPointName = firstEntryPoint.name; | ||
} | ||
else if (secondEntryPoint.name != undefined) { | ||
pairedEntryPointName = secondEntryPoint.name; | ||
} | ||
const pairedEntryPoint = { | ||
name: pairedEntryPointName, | ||
name: undefined, | ||
parameters: firstEntryPoint.parameters.concat(secondEntryPoint.parameters), | ||
structure: `(Pair ${firstEntryPoint.structure} ${secondEntryPoint.structure})`, | ||
generateParameter: firstEntryPoint.generateParameter | ||
generateInvocationString: firstEntryPoint.generateInvocationString, | ||
generateInvocationPair: firstEntryPoint.generateInvocationPair | ||
}; | ||
@@ -180,3 +185,3 @@ pairedEntryPoints.push(pairedEntryPoint); | ||
const entryPoints = d[6]; | ||
console.log(`recordSingleArgDataWithTwoAnnot found ${annotA}, ${annotB}`); | ||
entryPoints[0].name = getFieldAnnotation(annotA, annotB); | ||
entryPoints[0].parameters[0].type = `${singleArgData} (${entryPoints[0].parameters[0].type})`; | ||
@@ -190,4 +195,3 @@ entryPoints[0].structure = `(${entryPoints[0].structure})`; | ||
const entryPoints = d[4]; | ||
console.log(`recordSingleArgDataWithAnnot found ${annot}`); | ||
entryPoints[0].parameters[0].name = annot; | ||
entryPoints[0].name = getFieldAnnotation(annot); | ||
entryPoints[0].parameters[0].type = `${singleArgData} (${entryPoints[0].parameters[0].type})`; | ||
@@ -210,3 +214,3 @@ entryPoints[0].structure = `(${entryPoints[0].structure})`; | ||
const secondEntryPoints = d[8]; | ||
console.log(`recordDoubleArgDataWithTwoAnnot found ${annotA}, ${annotB}`); | ||
firstEntryPoints[0].name = getFieldAnnotation(annotA, annotB); | ||
firstEntryPoints[0].parameters[0].type = `${doubleArgData} (${firstEntryPoints[0].parameters[0].type}) (${secondEntryPoints[0].parameters[0].type})`; | ||
@@ -221,4 +225,3 @@ firstEntryPoints[0].structure = `(${firstEntryPoints[0].structure})`; | ||
const secondEntryPoints = d[6]; | ||
console.log(`recordDoubleArgDataWithAnnot found ${annot}`); | ||
firstEntryPoints[0].parameters[0].name = annot; | ||
firstEntryPoints[0].name = getFieldAnnotation(annot); | ||
firstEntryPoints[0].parameters[0].type = `${doubleArgData} (${firstEntryPoints[0].parameters[0].type}) (${secondEntryPoints[0].parameters[0].type})`; | ||
@@ -258,3 +261,3 @@ firstEntryPoints[0].structure = `(${firstEntryPoints[0].structure})`; | ||
const parameter = { | ||
name: parameterName, | ||
name: parameterName || entryPointName, | ||
type: d[0].toString() | ||
@@ -266,3 +269,3 @@ }; | ||
structure: '$PARAM', | ||
generateParameter(...vars) { | ||
generateInvocationString(...vars) { | ||
if (this.parameters.length !== vars.length) { | ||
@@ -276,2 +279,14 @@ throw new Error(`Incorrect number of parameters provided; expected ${this.parameters.length}, got ${vars.length}`); | ||
return invocationParameter; | ||
}, | ||
generateInvocationPair(...vars) { | ||
let param = this.generateInvocationString(...vars); | ||
while (param.startsWith('(Left ') || param.startsWith('(Right ')) { | ||
if (param.startsWith('(Left ')) { | ||
param = param.slice(6, -1); | ||
} | ||
if (param.startsWith('(Right ')) { | ||
param = param.slice(7, -1); | ||
} | ||
} | ||
return { entrypoint: this.name, value: param }; | ||
} | ||
@@ -278,0 +293,0 @@ }; |
@@ -339,24 +339,34 @@ "use strict"; | ||
const result = TezosLanguageUtil_1.TezosLanguageUtil.translateMichelineToHex(code); | ||
hex += 'ff'; | ||
if (composite.entrypoint === 'default') { | ||
if ((composite.entrypoint === 'default' || composite.entrypoint === '') && result === '030b') { | ||
hex += '00'; | ||
} | ||
else if (composite.entrypoint === 'root') { | ||
hex += '01'; | ||
} | ||
else if (composite.entrypoint === 'do') { | ||
hex += '02'; | ||
} | ||
else if (composite.entrypoint === 'set_delegate') { | ||
hex += '03'; | ||
} | ||
else if (composite.entrypoint === 'remove_delegate') { | ||
hex += '04'; | ||
} | ||
else { | ||
hex += 'ff' | ||
+ ('0' + composite.entrypoint.length.toString(16)).slice(-2) | ||
+ composite.entrypoint.split('').map(c => c.charCodeAt(0).toString(16)).join(''); | ||
hex += 'ff'; | ||
if (composite.entrypoint === 'default' || composite.entrypoint === '') { | ||
hex += '00'; | ||
} | ||
else if (composite.entrypoint === 'root') { | ||
hex += '01'; | ||
} | ||
else if (composite.entrypoint === 'do') { | ||
hex += '02'; | ||
} | ||
else if (composite.entrypoint === 'set_delegate') { | ||
hex += '03'; | ||
} | ||
else if (composite.entrypoint === 'remove_delegate') { | ||
hex += '04'; | ||
} | ||
else { | ||
hex += 'ff' | ||
+ ('0' + composite.entrypoint.length.toString(16)).slice(-2) | ||
+ composite.entrypoint.split('').map(c => c.charCodeAt(0).toString(16)).join(''); | ||
} | ||
if (result === '030b') { | ||
hex += '00'; | ||
} | ||
else { | ||
hex += ('0000000' + (result.length / 2).toString(16)).slice(-8) + result; | ||
} | ||
} | ||
hex += ('0000000' + (result.length / 2).toString(16)).slice(-8) + result; | ||
} | ||
@@ -363,0 +373,0 @@ else { |
@@ -7,8 +7,4 @@ "use strict"; | ||
const bs58check_1 = __importDefault(require("bs58check")); | ||
const base_n_1 = __importDefault(require("base-n")); | ||
const big_integer_1 = __importDefault(require("big-integer")); | ||
const CryptoUtils_1 = require("../../utils/CryptoUtils"); | ||
const base128 = base_n_1.default.create({ | ||
characters: [...Array(128).keys()].map(k => ('0' + k.toString(16)).slice(-2)) | ||
}); | ||
var TezosMessageUtils; | ||
@@ -28,3 +24,3 @@ (function (TezosMessageUtils) { | ||
} | ||
return Buffer.from(Buffer.from(base128.encode(value), 'hex').map((v, i) => { return i === 0 ? v : v ^ 0x80; }).reverse()).toString('hex'); | ||
return Buffer.from(Buffer.from(CryptoUtils_1.CryptoUtils.twoByteHex(value), 'hex').map((v, i) => { return i === 0 ? v : v ^ 0x80; }).reverse()).toString('hex'); | ||
} | ||
@@ -66,3 +62,4 @@ TezosMessageUtils.writeInt = writeInt; | ||
function readInt(hex) { | ||
return base128.decode(Buffer.from(Buffer.from(hex, 'hex').reverse().map((v, i) => { return i === 0 ? v : v & 0x7f; })).toString('hex')); | ||
const h = Buffer.from(Buffer.from(hex, 'hex').reverse().map((v, i) => { return i === 0 ? v : v & 0x7f; })).toString('hex'); | ||
return CryptoUtils_1.CryptoUtils.fromByteHex(h); | ||
} | ||
@@ -69,0 +66,0 @@ TezosMessageUtils.readInt = readInt; |
@@ -68,3 +68,3 @@ "use strict"; | ||
return performGetRequest(server, `chains/${chainid}/blocks/${blockHash}/context/contracts/${accountHash}/manager_key`) | ||
.then(result => result ? result.toString() : ''); | ||
.then(result => (result && result.toString() !== 'null') ? result.toString() : ''); | ||
} | ||
@@ -71,0 +71,0 @@ TezosNodeReader.getAccountManagerForBlock = getAccountManagerForBlock; |
import { KeyStore } from '../../types/wallet/KeyStore'; | ||
import * as TezosTypes from '../../types/tezos/TezosChainTypes'; | ||
export declare namespace TezosProtocolHelper { | ||
function verifyDestination(server: string, address: string): Promise<boolean>; | ||
function setDelegate(server: string, keyStore: KeyStore, contract: string, delegate: string, fee: number, derivationPath?: string): Promise<TezosTypes.OperationResult>; | ||
@@ -5,0 +6,0 @@ function unSetDelegate(server: string, keyStore: KeyStore, contract: string, fee: number, derivationPath?: string): Promise<TezosTypes.OperationResult>; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
@@ -10,7 +18,23 @@ if (mod && mod.__esModule) return mod; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const blakejs = __importStar(require("blakejs")); | ||
const TezosTypes = __importStar(require("../../types/tezos/TezosChainTypes")); | ||
const TezosConstants_1 = require("../../types/tezos/TezosConstants"); | ||
const TezosNodeWriter_1 = require("./TezosNodeWriter"); | ||
const TezosNodeReader_1 = require("./TezosNodeReader"); | ||
var TezosProtocolHelper; | ||
(function (TezosProtocolHelper) { | ||
function verifyDestination(server, address) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const contract = yield TezosNodeReader_1.TezosNodeReader.getAccountForBlock(server, 'head', address); | ||
if (!!!contract.script) { | ||
throw new Error(`No code found at ${address}`); | ||
} | ||
const k = Buffer.from(blakejs.blake2s(contract['script'].toString(), null, 16)).toString('hex'); | ||
if (k !== '023fc21b332d338212185c817801f288') { | ||
throw new Error(`Contract at ${address} does not match the expected code hash`); | ||
} | ||
return true; | ||
}); | ||
} | ||
TezosProtocolHelper.verifyDestination = verifyDestination; | ||
function setDelegate(server, keyStore, contract, delegate, fee, derivationPath = '') { | ||
@@ -49,3 +73,3 @@ if (contract.startsWith('KT1')) { | ||
{ "prim": "CONS" } ]`; | ||
return TezosNodeWriter_1.TezosNodeWriter.sendContractInvocationOperation(server, keyStore, contract, 0, fee, derivationPath, 0, TezosConstants_1.TezosConstants.P005ManagerContractWithdrawalGasLimit, 'do', parameters, TezosTypes.TezosParameterFormat.Micheline); | ||
return TezosNodeWriter_1.TezosNodeWriter.sendContractInvocationOperation(server, keyStore, contract, 0, fee, derivationPath, TezosConstants_1.TezosConstants.P005ManagerContractWithdrawalStorageLimit, TezosConstants_1.TezosConstants.P005ManagerContractWithdrawalGasLimit, 'do', parameters, TezosTypes.TezosParameterFormat.Micheline); | ||
} | ||
@@ -52,0 +76,0 @@ TezosProtocolHelper.sendDelegatedFunds = sendDelegatedFunds; |
@@ -5,3 +5,3 @@ import { ConseilQuery, ConseilOperator, ConseilSortDirection, ConseilFunction, ConseilOutput } from "../types/conseil/QueryTypes"; | ||
function addFields(query: ConseilQuery, ...fields: string[]): ConseilQuery; | ||
function addPredicate(query: ConseilQuery, field: string, operation: ConseilOperator, values: any[], invert?: boolean): ConseilQuery; | ||
function addPredicate(query: ConseilQuery, field: string, operation: ConseilOperator, values: any[], invert?: boolean, group?: string | undefined): ConseilQuery; | ||
function addOrdering(query: ConseilQuery, field: string, direction?: ConseilSortDirection): ConseilQuery; | ||
@@ -8,0 +8,0 @@ function setLimit(query: ConseilQuery, limit: number): ConseilQuery; |
@@ -24,3 +24,3 @@ "use strict"; | ||
ConseilQueryBuilder.addFields = addFields; | ||
function addPredicate(query, field, operation, values, invert = false) { | ||
function addPredicate(query, field, operation, values, invert = false, group = undefined) { | ||
if (operation === QueryTypes_1.ConseilOperator.BETWEEN && values.length !== 2) { | ||
@@ -36,3 +36,3 @@ throw new Error('BETWEEN operation requires a list of two values.'); | ||
let q = Object.assign({}, query); | ||
q.predicates.push({ field, operation, set: values, inverse: invert }); | ||
q.predicates.push({ field, operation, set: values, inverse: invert, group }); | ||
return q; | ||
@@ -39,0 +39,0 @@ } |
@@ -43,2 +43,3 @@ export interface ConseilServerInfo { | ||
inverse: boolean; | ||
group?: string; | ||
} | ||
@@ -45,0 +46,0 @@ export interface ConseilQuery { |
@@ -9,3 +9,7 @@ export interface Parameter { | ||
structure: string; | ||
generateParameter(...vars: any[]): string; | ||
generateInvocationString(...vars: any[]): string; | ||
generateInvocationPair(...vars: any[]): { | ||
entrypoint: string; | ||
value: any; | ||
}; | ||
} |
@@ -14,4 +14,5 @@ export declare namespace TezosConstants { | ||
const P005ManagerContractDepositGasLimit = 15285; | ||
const P005ManagerContractWithdrawalStorageLimit = 300; | ||
const DefaultBatchDelay: number; | ||
const DefaultBlockTime: number; | ||
} |
@@ -17,2 +17,3 @@ "use strict"; | ||
TezosConstants.P005ManagerContractDepositGasLimit = 15285; | ||
TezosConstants.P005ManagerContractWithdrawalStorageLimit = 300; | ||
TezosConstants.DefaultBatchDelay = 25; | ||
@@ -19,0 +20,0 @@ TezosConstants.DefaultBlockTime = 60; |
@@ -17,2 +17,4 @@ /// <reference types="node" /> | ||
function signDetached(payload: Buffer, secretKey: Buffer): Promise<Buffer>; | ||
function twoByteHex(n: number): string; | ||
function fromByteHex(s: string): number; | ||
} |
@@ -87,3 +87,27 @@ "use strict"; | ||
CryptoUtils.signDetached = signDetached; | ||
function twoByteHex(n) { | ||
if (n < 128) { | ||
return ('0' + n.toString(16)).slice(-2); | ||
} | ||
let r = n; | ||
let h = ''; | ||
while (r > 128) { | ||
h = ('0' + (r % 128).toString(16)).slice(-2) + h; | ||
r = r >> 7; | ||
} | ||
h = ('0' + r.toString(16)).slice(-2) + h; | ||
return h; | ||
} | ||
CryptoUtils.twoByteHex = twoByteHex; | ||
function fromByteHex(s) { | ||
let n = parseInt(s.slice(-2), 16); | ||
let h = s.substring(0, s.length - 2); | ||
for (let i = 2; i < s.length; i += 2) { | ||
n = n | (parseInt(h.slice(-2), 16) << (7 * (i / 2))); | ||
h = s.substring(0, h.length - 2); | ||
} | ||
return n; | ||
} | ||
CryptoUtils.fromByteHex = fromByteHex; | ||
})(CryptoUtils = exports.CryptoUtils || (exports.CryptoUtils = {})); | ||
//# sourceMappingURL=CryptoUtils.js.map |
{ | ||
"name": "conseiljs", | ||
"version": "0.3.4-beta", | ||
"version": "0.3.5-beta", | ||
"description": "Client-side library for dApp development.", | ||
@@ -15,9 +15,9 @@ "browser": "dist/index-web.js", | ||
"format": "eslint --fix-dry-run src/*/*.ts", | ||
"package": "rm -rf ./dist && tsc && copyfiles -u 1 \"./src/**/*.js\" dist/", | ||
"package-web": "webpack && rm -rf ./dist-web/dist && openssl dgst -sha384 -binary ./dist-web/conseiljs.min.js | openssl base64 -A", | ||
"coverage": "nyc mocha \"test/**/*.spec.ts\" && nyc report | coveralls", | ||
"integration-coverage": "nyc mocha -r source-map-support/register -r ts-node/register --full-trace -t 600000 -b false \"integration_test/**/*.spec.ts\" && nyc report | coveralls", | ||
"release-check": "npm run test && npm audit && npm outdated", | ||
"doc": "rm -rf ./tsdoc && typedoc --readme none --excludeNotExported --mode file --theme markdown --out ./tsdoc ./src", | ||
"compile-tezos-parsers": "nearleyc grammar/tezos/Micheline.ne -o src/chain/tezos/lexer/Micheline.ts && nearleyc grammar/tezos/Michelson.ne -o src/chain/tezos/lexer/Michelson.ts && nearleyc grammar/tezos/MichelsonParameters.ne -o src/chain/tezos/lexer/MichelsonParameters.ts && nearleyc grammar/tezos/EntryPointTemplate.ne -o src/chain/tezos/lexer/EntryPointTemplate.ts", | ||
"release-check": "npm run test && npm audit && npm outdated" | ||
"package": "rm -rf ./dist && npm run compile-tezos-parsers && tsc && copyfiles -u 1 \"./src/**/*.js\" dist/", | ||
"package-web": "webpack && rm -rf ./dist-web/dist && openssl dgst -sha384 -binary ./dist-web/conseiljs.min.js | openssl base64 -A" | ||
}, | ||
@@ -73,3 +73,2 @@ "repository": { | ||
"aws-sdk": "2.533.0", | ||
"base-n": "git+https://github.com/yourcodesucks/base-n.git", | ||
"big-integer": "1.6.48", | ||
@@ -113,3 +112,3 @@ "bip32-path": "0.4.2", | ||
"source-map-support": "0.5.13", | ||
"terser-webpack-plugin": "1.4.1", | ||
"terser-webpack-plugin": "2.3.0", | ||
"ts-loader": "6.1.0", | ||
@@ -126,4 +125,4 @@ "ts-node": "8.3.0", | ||
"engines": { | ||
"node": "10.17.x", | ||
"npm": "6.11.x" | ||
"node": ">=10.17.x", | ||
"npm": ">=6.11.x" | ||
}, | ||
@@ -139,2 +138,12 @@ "eslintConfig": { | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"**/**/*.ts" | ||
], | ||
"excludedFiles": [ | ||
"lexer/*.ts" | ||
] | ||
} | ||
], | ||
"extends": "airbnb-base", | ||
@@ -141,0 +150,0 @@ "rules": { |
@@ -35,3 +35,3 @@ # ConseilJS | ||
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js" | ||
integrity="sha384-UpNNRKV+SBzhy/RZr52XlwEbV7wnEb8qHU1d2rZo4ABskJ5Ly0teL1oBaOcybDJV" | ||
integrity="sha384-0fSxix10Vw0pbNyZYx7wZFNSKtXVRc5AoVhl1zuSPlilDPidkDmjKIlMY1QIqlVh" | ||
crossorigin="anonymous"></script> | ||
@@ -38,0 +38,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
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
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
532260
15
5390
0
1