@vostokplatform/signature-generator
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -546,2 +546,16 @@ "use strict"; | ||
exports.DockerCreateParamsEntries = DockerCreateParamsEntries; | ||
var ArrayOfStringsWithLength = /** @class */ (function (_super) { | ||
__extends(ArrayOfStringsWithLength, _super); | ||
function ArrayOfStringsWithLength() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
ArrayOfStringsWithLength.prototype.process = function (values, byteLength) { | ||
if (byteLength === void 0) { byteLength = 2; } | ||
var value = values.reduce(function (acc, e) { return acc + e; }, ''); | ||
var bytesWithLength = convert_1.default.stringToByteArrayWithSize(value, byteLength); | ||
return Promise.resolve(Uint8Array.from(bytesWithLength)); | ||
}; | ||
return ArrayOfStringsWithLength; | ||
}(ByteProcessor)); | ||
exports.ArrayOfStringsWithLength = ArrayOfStringsWithLength; | ||
//# sourceMappingURL=ByteProcessor.js.map |
@@ -348,4 +348,4 @@ "use strict"; | ||
new __1.StringWithLength('description'), | ||
new __1.StringWithLength('recipients'), | ||
new __1.StringWithLength('owners'), | ||
new __1.ArrayOfStringsWithLength('recipients'), | ||
new __1.ArrayOfStringsWithLength('owners'), | ||
new __1.Long('timestamp'), | ||
@@ -361,4 +361,4 @@ new __1.Long('fee'), | ||
new __1.StringWithLength('policyId'), | ||
new __1.StringWithLength('recipients'), | ||
new __1.StringWithLength('owners'), | ||
new __1.ArrayOfStringsWithLength('recipients'), | ||
new __1.ArrayOfStringsWithLength('owners'), | ||
new __1.PermissionOpType('opType'), | ||
@@ -365,0 +365,0 @@ new __1.Long('timestamp'), |
{ | ||
"name": "@vostokplatform/signature-generator", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -393,1 +393,9 @@ "use strict"; | ||
exports.DockerCreateParamsEntries = DockerCreateParamsEntries; | ||
class ArrayOfStringsWithLength extends ByteProcessor { | ||
process(values, byteLength = 2) { | ||
const value = values.reduce((acc, e) => acc + e, ''); | ||
const bytesWithLength = convert_1.default.stringToByteArrayWithSize(value, byteLength); | ||
return Promise.resolve(Uint8Array.from(bytesWithLength)); | ||
} | ||
} | ||
exports.ArrayOfStringsWithLength = ArrayOfStringsWithLength; |
@@ -410,2 +410,10 @@ import {BigNumber} from '@waves/data-entities'; | ||
} | ||
} | ||
export class ArrayOfStringsWithLength extends ByteProcessor { | ||
public process(values: string[], byteLength: number = 2) { | ||
const value = values.reduce((acc, e) => acc + e, ''); | ||
const bytesWithLength = convert.stringToByteArrayWithSize(value, byteLength); | ||
return Promise.resolve(Uint8Array.from(bytesWithLength)); | ||
} | ||
} |
@@ -343,4 +343,4 @@ "use strict"; | ||
new __1.StringWithLength('description'), | ||
new __1.StringWithLength('recipients'), | ||
new __1.StringWithLength('owners'), | ||
new __1.ArrayOfStringsWithLength('recipients'), | ||
new __1.ArrayOfStringsWithLength('owners'), | ||
new __1.Long('timestamp'), | ||
@@ -356,4 +356,4 @@ new __1.Long('fee'), | ||
new __1.StringWithLength('policyId'), | ||
new __1.StringWithLength('recipients'), | ||
new __1.StringWithLength('owners'), | ||
new __1.ArrayOfStringsWithLength('recipients'), | ||
new __1.ArrayOfStringsWithLength('owners'), | ||
new __1.PermissionOpType('opType'), | ||
@@ -360,0 +360,0 @@ new __1.Long('timestamp'), |
@@ -22,2 +22,3 @@ import { | ||
StringWithLength, | ||
ArrayOfStringsWithLength, | ||
Transfers, | ||
@@ -442,4 +443,4 @@ PermissionTarget, | ||
new StringWithLength('description'), | ||
new StringWithLength('recipients'), // todo | ||
new StringWithLength('owners'), // todo | ||
new ArrayOfStringsWithLength('recipients'), // todo | ||
new ArrayOfStringsWithLength('owners'), // todo | ||
new Long('timestamp'), | ||
@@ -457,4 +458,4 @@ new Long('fee'), | ||
new StringWithLength('policyId'), | ||
new StringWithLength('recipients'), // todo | ||
new StringWithLength('owners'), // todo | ||
new ArrayOfStringsWithLength('recipients'), // todo | ||
new ArrayOfStringsWithLength('owners'), // todo | ||
new PermissionOpType('opType'), | ||
@@ -461,0 +462,0 @@ new Long('timestamp'), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6290308
110216