@helium/transactions
Advanced tools
Comparing version 4.11.1 to 4.12.0
@@ -48,13 +48,16 @@ "use strict"; | ||
const { addGateway } = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const owner = ((_a = addGateway === null || addGateway === void 0 ? void 0 : addGateway.owner) === null || _a === void 0 ? void 0 : _a.length) ? utils_1.toAddressable(addGateway === null || addGateway === void 0 ? void 0 : addGateway.owner) : undefined; | ||
const gateway = ((_b = addGateway === null || addGateway === void 0 ? void 0 : addGateway.gateway) === null || _b === void 0 ? void 0 : _b.length) ? utils_1.toAddressable(addGateway === null || addGateway === void 0 ? void 0 : addGateway.gateway) : undefined; | ||
const payer = ((_c = addGateway === null || addGateway === void 0 ? void 0 : addGateway.payer) === null || _c === void 0 ? void 0 : _c.length) ? utils_1.toAddressable(addGateway === null || addGateway === void 0 ? void 0 : addGateway.payer) : undefined; | ||
const ownerSignature = ((_d = addGateway === null || addGateway === void 0 ? void 0 : addGateway.ownerSignature) === null || _d === void 0 ? void 0 : _d.length) ? utils_1.toUint8Array(addGateway === null || addGateway === void 0 ? void 0 : addGateway.ownerSignature) | ||
const owner = ((_a = addGateway === null || addGateway === void 0 ? void 0 : addGateway.owner) === null || _a === void 0 ? void 0 : _a.length) ? (0, utils_1.toAddressable)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.owner) : undefined; | ||
const gateway = ((_b = addGateway === null || addGateway === void 0 ? void 0 : addGateway.gateway) === null || _b === void 0 ? void 0 : _b.length) ? (0, utils_1.toAddressable)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.gateway) : undefined; | ||
const payer = ((_c = addGateway === null || addGateway === void 0 ? void 0 : addGateway.payer) === null || _c === void 0 ? void 0 : _c.length) ? (0, utils_1.toAddressable)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.payer) : undefined; | ||
const ownerSignature = ((_d = addGateway === null || addGateway === void 0 ? void 0 : addGateway.ownerSignature) === null || _d === void 0 ? void 0 : _d.length) | ||
? (0, utils_1.toUint8Array)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.ownerSignature) | ||
: undefined; | ||
const gatewaySignature = ((_e = addGateway === null || addGateway === void 0 ? void 0 : addGateway.gatewaySignature) === null || _e === void 0 ? void 0 : _e.length) ? utils_1.toUint8Array(addGateway === null || addGateway === void 0 ? void 0 : addGateway.gatewaySignature) | ||
const gatewaySignature = ((_e = addGateway === null || addGateway === void 0 ? void 0 : addGateway.gatewaySignature) === null || _e === void 0 ? void 0 : _e.length) | ||
? (0, utils_1.toUint8Array)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.gatewaySignature) | ||
: undefined; | ||
const payerSignature = ((_f = addGateway === null || addGateway === void 0 ? void 0 : addGateway.payerSignature) === null || _f === void 0 ? void 0 : _f.length) ? utils_1.toUint8Array(addGateway === null || addGateway === void 0 ? void 0 : addGateway.payerSignature) | ||
const payerSignature = ((_f = addGateway === null || addGateway === void 0 ? void 0 : addGateway.payerSignature) === null || _f === void 0 ? void 0 : _f.length) | ||
? (0, utils_1.toUint8Array)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.payerSignature) | ||
: undefined; | ||
const fee = utils_1.toNumber(addGateway === null || addGateway === void 0 ? void 0 : addGateway.fee); | ||
const stakingFee = utils_1.toNumber(addGateway === null || addGateway === void 0 ? void 0 : addGateway.stakingFee); | ||
const fee = (0, utils_1.toNumber)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.fee); | ||
const stakingFee = (0, utils_1.toNumber)(addGateway === null || addGateway === void 0 ? void 0 : addGateway.stakingFee); | ||
return new AddGatewayV1({ | ||
@@ -92,8 +95,8 @@ owner, | ||
return AddGateway.create({ | ||
owner: this.owner ? utils_1.toUint8Array(this.owner.bin) : null, | ||
gateway: this.gateway ? utils_1.toUint8Array(this.gateway.bin) : null, | ||
payer: this.payer ? utils_1.toUint8Array(this.payer.bin) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? utils_1.toUint8Array(this.ownerSignature) : null, | ||
gatewaySignature: this.gatewaySignature && !forSigning ? utils_1.toUint8Array(this.gatewaySignature) : null, | ||
payerSignature: this.payerSignature && !forSigning ? utils_1.toUint8Array(this.payerSignature) : null, | ||
owner: this.owner ? (0, utils_1.toUint8Array)(this.owner.bin) : null, | ||
gateway: this.gateway ? (0, utils_1.toUint8Array)(this.gateway.bin) : null, | ||
payer: this.payer ? (0, utils_1.toUint8Array)(this.payer.bin) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.ownerSignature) : null, | ||
gatewaySignature: this.gatewaySignature && !forSigning ? (0, utils_1.toUint8Array)(this.gatewaySignature) : null, | ||
payerSignature: this.payerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.payerSignature) : null, | ||
stakingFee: this.stakingFee && this.stakingFee > 0 ? this.stakingFee : null, | ||
@@ -100,0 +103,0 @@ fee: this.fee && this.fee > 0 ? this.fee : null, |
@@ -50,16 +50,20 @@ "use strict"; | ||
const { assertLocation } = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const owner = ((_a = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.owner) === null || _a === void 0 ? void 0 : _a.length) ? utils_1.toAddressable(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.owner) : undefined; | ||
const gateway = ((_b = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gateway) === null || _b === void 0 ? void 0 : _b.length) ? utils_1.toAddressable(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gateway) | ||
const owner = ((_a = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.owner) === null || _a === void 0 ? void 0 : _a.length) ? (0, utils_1.toAddressable)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.owner) : undefined; | ||
const gateway = ((_b = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gateway) === null || _b === void 0 ? void 0 : _b.length) | ||
? (0, utils_1.toAddressable)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gateway) | ||
: undefined; | ||
const payer = ((_c = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payer) === null || _c === void 0 ? void 0 : _c.length) ? utils_1.toAddressable(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payer) : undefined; | ||
const payer = ((_c = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payer) === null || _c === void 0 ? void 0 : _c.length) ? (0, utils_1.toAddressable)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payer) : undefined; | ||
const location = (assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.location) || undefined; | ||
const nonce = utils_1.toNumber(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.nonce); | ||
const ownerSignature = ((_d = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.ownerSignature) === null || _d === void 0 ? void 0 : _d.length) ? utils_1.toUint8Array(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.ownerSignature) | ||
const nonce = (0, utils_1.toNumber)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.nonce); | ||
const ownerSignature = ((_d = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.ownerSignature) === null || _d === void 0 ? void 0 : _d.length) | ||
? (0, utils_1.toUint8Array)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.ownerSignature) | ||
: undefined; | ||
const gatewaySignature = ((_e = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gatewaySignature) === null || _e === void 0 ? void 0 : _e.length) ? utils_1.toUint8Array(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gatewaySignature) | ||
const gatewaySignature = ((_e = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gatewaySignature) === null || _e === void 0 ? void 0 : _e.length) | ||
? (0, utils_1.toUint8Array)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.gatewaySignature) | ||
: undefined; | ||
const payerSignature = ((_f = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payerSignature) === null || _f === void 0 ? void 0 : _f.length) ? utils_1.toUint8Array(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payerSignature) | ||
const payerSignature = ((_f = assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payerSignature) === null || _f === void 0 ? void 0 : _f.length) | ||
? (0, utils_1.toUint8Array)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.payerSignature) | ||
: undefined; | ||
const fee = utils_1.toNumber(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.fee); | ||
const stakingFee = utils_1.toNumber(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.stakingFee); | ||
const fee = (0, utils_1.toNumber)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.fee); | ||
const stakingFee = (0, utils_1.toNumber)(assertLocation === null || assertLocation === void 0 ? void 0 : assertLocation.stakingFee); | ||
return new AssertLocationV1({ | ||
@@ -99,8 +103,8 @@ owner, | ||
return AssertLocation.create({ | ||
owner: this.owner ? utils_1.toUint8Array(this.owner.bin) : null, | ||
gateway: this.gateway ? utils_1.toUint8Array(this.gateway.bin) : null, | ||
payer: this.payer ? utils_1.toUint8Array(this.payer.bin) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? utils_1.toUint8Array(this.ownerSignature) : null, | ||
gatewaySignature: this.gatewaySignature && !forSigning ? utils_1.toUint8Array(this.gatewaySignature) : null, | ||
payerSignature: this.payerSignature && !forSigning ? utils_1.toUint8Array(this.payerSignature) : null, | ||
owner: this.owner ? (0, utils_1.toUint8Array)(this.owner.bin) : null, | ||
gateway: this.gateway ? (0, utils_1.toUint8Array)(this.gateway.bin) : null, | ||
payer: this.payer ? (0, utils_1.toUint8Array)(this.payer.bin) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.ownerSignature) : null, | ||
gatewaySignature: this.gatewaySignature && !forSigning ? (0, utils_1.toUint8Array)(this.gatewaySignature) : null, | ||
payerSignature: this.payerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.payerSignature) : null, | ||
stakingFee: this.stakingFee && this.stakingFee > 0 ? this.stakingFee : null, | ||
@@ -107,0 +111,0 @@ fee: this.fee && this.fee > 0 ? this.fee : null, |
@@ -51,18 +51,23 @@ "use strict"; | ||
const { assertLocationV2 } = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const owner = ((_a = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.owner) === null || _a === void 0 ? void 0 : _a.length) ? utils_1.toAddressable(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.owner) | ||
const owner = ((_a = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.owner) === null || _a === void 0 ? void 0 : _a.length) | ||
? (0, utils_1.toAddressable)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.owner) | ||
: undefined; | ||
const gateway = ((_b = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.gateway) === null || _b === void 0 ? void 0 : _b.length) ? utils_1.toAddressable(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.gateway) | ||
const gateway = ((_b = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.gateway) === null || _b === void 0 ? void 0 : _b.length) | ||
? (0, utils_1.toAddressable)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.gateway) | ||
: undefined; | ||
const payer = ((_c = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payer) === null || _c === void 0 ? void 0 : _c.length) ? utils_1.toAddressable(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payer) | ||
const payer = ((_c = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payer) === null || _c === void 0 ? void 0 : _c.length) | ||
? (0, utils_1.toAddressable)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payer) | ||
: undefined; | ||
const location = (assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.location) || undefined; | ||
const nonce = utils_1.toNumber(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.nonce); | ||
const gain = utils_1.toNumber(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.gain); | ||
const elevation = utils_1.toNumber(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.elevation); | ||
const ownerSignature = ((_d = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.ownerSignature) === null || _d === void 0 ? void 0 : _d.length) ? utils_1.toUint8Array(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.ownerSignature) | ||
const nonce = (0, utils_1.toNumber)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.nonce); | ||
const gain = (0, utils_1.toNumber)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.gain); | ||
const elevation = (0, utils_1.toNumber)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.elevation); | ||
const ownerSignature = ((_d = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.ownerSignature) === null || _d === void 0 ? void 0 : _d.length) | ||
? (0, utils_1.toUint8Array)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.ownerSignature) | ||
: undefined; | ||
const payerSignature = ((_e = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payerSignature) === null || _e === void 0 ? void 0 : _e.length) ? utils_1.toUint8Array(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payerSignature) | ||
const payerSignature = ((_e = assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payerSignature) === null || _e === void 0 ? void 0 : _e.length) | ||
? (0, utils_1.toUint8Array)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.payerSignature) | ||
: undefined; | ||
const fee = utils_1.toNumber(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.fee); | ||
const stakingFee = utils_1.toNumber(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.stakingFee); | ||
const fee = (0, utils_1.toNumber)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.fee); | ||
const stakingFee = (0, utils_1.toNumber)(assertLocationV2 === null || assertLocationV2 === void 0 ? void 0 : assertLocationV2.stakingFee); | ||
return new AssertLocationV2({ | ||
@@ -99,5 +104,5 @@ owner, | ||
return AssertLocation.create({ | ||
owner: this.owner ? utils_1.toUint8Array(this.owner.bin) : null, | ||
gateway: this.gateway ? utils_1.toUint8Array(this.gateway.bin) : null, | ||
payer: this.payer ? utils_1.toUint8Array(this.payer.bin) : null, | ||
owner: this.owner ? (0, utils_1.toUint8Array)(this.owner.bin) : null, | ||
gateway: this.gateway ? (0, utils_1.toUint8Array)(this.gateway.bin) : null, | ||
payer: this.payer ? (0, utils_1.toUint8Array)(this.payer.bin) : null, | ||
location: this.location, | ||
@@ -109,4 +114,4 @@ nonce: this.nonce, | ||
stakingFee: this.stakingFee && this.stakingFee > 0 ? this.stakingFee : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? utils_1.toUint8Array(this.ownerSignature) : null, | ||
payerSignature: this.payerSignature && !forSigning ? utils_1.toUint8Array(this.payerSignature) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.ownerSignature) : null, | ||
payerSignature: this.payerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.payerSignature) : null, | ||
}); | ||
@@ -113,0 +118,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -42,8 +42,8 @@ "use strict"; | ||
return Payment.create({ | ||
payer: this.payer ? utils_1.toUint8Array(this.payer.bin) : null, | ||
payee: this.payee ? utils_1.toUint8Array(this.payee.bin) : null, | ||
payer: this.payer ? (0, utils_1.toUint8Array)(this.payer.bin) : null, | ||
payee: this.payee ? (0, utils_1.toUint8Array)(this.payee.bin) : null, | ||
amount: this.amount, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
nonce: this.nonce, | ||
signature: this.signature && !forSigning ? utils_1.toUint8Array(this.signature) : null, | ||
signature: this.signature && !forSigning ? (0, utils_1.toUint8Array)(this.signature) : null, | ||
}); | ||
@@ -50,0 +50,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -55,16 +59,16 @@ if (k2 === undefined) k2 = k; | ||
const decoded = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const payer = utils_1.toAddressable((_a = decoded.paymentV2) === null || _a === void 0 ? void 0 : _a.payer); | ||
const payer = (0, utils_1.toAddressable)((_a = decoded.paymentV2) === null || _a === void 0 ? void 0 : _a.payer); | ||
const payments = (((_b = decoded.paymentV2) === null || _b === void 0 ? void 0 : _b.payments) || []).map((p) => { | ||
var _a; | ||
return ({ | ||
payee: utils_1.toAddressable(p.payee), | ||
amount: utils_1.toNumber(p.amount), | ||
memo: utils_1.toString(p.memo), | ||
tokenType: utils_1.toTicker(utils_1.toNumber(p.tokenType)), | ||
payee: (0, utils_1.toAddressable)(p.payee), | ||
amount: (0, utils_1.toNumber)(p.amount), | ||
memo: (0, utils_1.toString)(p.memo), | ||
tokenType: (0, utils_1.toTicker)((0, utils_1.toNumber)(p.tokenType)), | ||
max: (_a = p.max) !== null && _a !== void 0 ? _a : undefined, | ||
}); | ||
}); | ||
const fee = utils_1.toNumber((_c = decoded.paymentV2) === null || _c === void 0 ? void 0 : _c.fee); | ||
const nonce = utils_1.toNumber((_d = decoded.paymentV2) === null || _d === void 0 ? void 0 : _d.nonce); | ||
const signature = utils_1.toUint8Array((_e = decoded.paymentV2) === null || _e === void 0 ? void 0 : _e.signature); | ||
const fee = (0, utils_1.toNumber)((_c = decoded.paymentV2) === null || _c === void 0 ? void 0 : _c.fee); | ||
const nonce = (0, utils_1.toNumber)((_d = decoded.paymentV2) === null || _d === void 0 ? void 0 : _d.nonce); | ||
const signature = (0, utils_1.toUint8Array)((_e = decoded.paymentV2) === null || _e === void 0 ? void 0 : _e.signature); | ||
return new PaymentV2({ | ||
@@ -91,5 +95,5 @@ payer, | ||
const payment = { | ||
payee: utils_1.toUint8Array(payee.bin), | ||
payee: (0, utils_1.toUint8Array)(payee.bin), | ||
memo: memoBuffer ? JSLong.fromBytes(Array.from(memoBuffer), true, true) : undefined, | ||
tokenType: utils_1.toTokenType({ ticker: tokenType, defaultToUndefined: true }), | ||
tokenType: (0, utils_1.toTokenType)({ ticker: tokenType, defaultToUndefined: true }), | ||
}; | ||
@@ -105,7 +109,7 @@ if (max) { | ||
return PaymentTxn.create({ | ||
payer: this.payer ? utils_1.toUint8Array(this.payer.bin) : null, | ||
payer: this.payer ? (0, utils_1.toUint8Array)(this.payer.bin) : null, | ||
payments, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
nonce: this.nonce, | ||
signature: this.signature && !forSigning ? utils_1.toUint8Array(this.signature) : null, | ||
signature: this.signature && !forSigning ? (0, utils_1.toUint8Array)(this.signature) : null, | ||
}); | ||
@@ -112,0 +116,0 @@ } |
@@ -42,8 +42,8 @@ "use strict"; | ||
return SecurityExchange.create({ | ||
payer: this.payer ? utils_1.toUint8Array(this.payer.bin) : null, | ||
payee: this.payee ? utils_1.toUint8Array(this.payee.bin) : null, | ||
payer: this.payer ? (0, utils_1.toUint8Array)(this.payer.bin) : null, | ||
payee: this.payee ? (0, utils_1.toUint8Array)(this.payee.bin) : null, | ||
amount: this.amount, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
nonce: this.nonce, | ||
signature: this.signature && !forSigning ? utils_1.toUint8Array(this.signature) : null, | ||
signature: this.signature && !forSigning ? (0, utils_1.toUint8Array)(this.signature) : null, | ||
}); | ||
@@ -50,0 +50,0 @@ } |
@@ -41,7 +41,7 @@ "use strict"; | ||
return StakeValidator.create({ | ||
address: this.address ? utils_1.toUint8Array(this.address.bin) : null, | ||
owner: this.owner ? utils_1.toUint8Array(this.owner.bin) : null, | ||
address: this.address ? (0, utils_1.toUint8Array)(this.address.bin) : null, | ||
owner: this.owner ? (0, utils_1.toUint8Array)(this.owner.bin) : null, | ||
stake: this.stake, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? utils_1.toUint8Array(this.ownerSignature) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.ownerSignature) : null, | ||
}); | ||
@@ -48,0 +48,0 @@ } |
@@ -39,10 +39,10 @@ "use strict"; | ||
const decoded = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const tokenType = utils_1.toTicker(utils_1.toNumber((_a = decoded.subnetworkRewards) === null || _a === void 0 ? void 0 : _a.tokenType)); | ||
const startEpoch = utils_1.toNumber((_b = decoded.subnetworkRewards) === null || _b === void 0 ? void 0 : _b.startEpoch) || 0; | ||
const endEpoch = utils_1.toNumber((_c = decoded.subnetworkRewards) === null || _c === void 0 ? void 0 : _c.endEpoch) || 0; | ||
const tokenType = (0, utils_1.toTicker)((0, utils_1.toNumber)((_a = decoded.subnetworkRewards) === null || _a === void 0 ? void 0 : _a.tokenType)); | ||
const startEpoch = (0, utils_1.toNumber)((_b = decoded.subnetworkRewards) === null || _b === void 0 ? void 0 : _b.startEpoch) || 0; | ||
const endEpoch = (0, utils_1.toNumber)((_c = decoded.subnetworkRewards) === null || _c === void 0 ? void 0 : _c.endEpoch) || 0; | ||
const rewards = (((_d = decoded.subnetworkRewards) === null || _d === void 0 ? void 0 : _d.rewards) || []).map((p) => ({ | ||
account: utils_1.toAddressable(p.account), | ||
amount: utils_1.toNumber(p.amount), | ||
account: (0, utils_1.toAddressable)(p.account), | ||
amount: (0, utils_1.toNumber)(p.amount), | ||
})); | ||
const rewardServerSignature = utils_1.toUint8Array((_e = decoded.subnetworkRewards) === null || _e === void 0 ? void 0 : _e.rewardServerSignature); | ||
const rewardServerSignature = (0, utils_1.toUint8Array)((_e = decoded.subnetworkRewards) === null || _e === void 0 ? void 0 : _e.rewardServerSignature); | ||
return new SubnetworkRewardsV1({ | ||
@@ -60,11 +60,11 @@ tokenType, | ||
const rewards = this.rewards.map(({ account, amount }) => SubnetworkReward.create({ | ||
account: utils_1.toUint8Array(account === null || account === void 0 ? void 0 : account.bin), | ||
account: (0, utils_1.toUint8Array)(account === null || account === void 0 ? void 0 : account.bin), | ||
amount, | ||
})); | ||
return SubnetworkRewards.create({ | ||
tokenType: utils_1.toTokenType({ ticker: this.tokenType }), | ||
tokenType: (0, utils_1.toTokenType)({ ticker: this.tokenType }), | ||
startEpoch: this.startEpoch, | ||
endEpoch: this.endEpoch, | ||
rewards, | ||
rewardServerSignature: this.rewardServerSignature && !forSigning ? utils_1.toUint8Array(this.rewardServerSignature) : null, | ||
rewardServerSignature: this.rewardServerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.rewardServerSignature) : null, | ||
}); | ||
@@ -71,0 +71,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -63,7 +67,7 @@ if (k2 === undefined) k2 = k; | ||
return TokenBurnTxn.create({ | ||
payer: utils_1.toUint8Array(this.payer.bin), | ||
payee: utils_1.toUint8Array(this.payee.bin), | ||
payer: (0, utils_1.toUint8Array)(this.payer.bin), | ||
payee: (0, utils_1.toUint8Array)(this.payee.bin), | ||
amount: this.amount, | ||
nonce: this.nonce, | ||
signature: this.signature && !forSigning ? utils_1.toUint8Array(this.signature) : null, | ||
signature: this.signature && !forSigning ? (0, utils_1.toUint8Array)(this.signature) : null, | ||
fee: this.fee, | ||
@@ -77,9 +81,10 @@ memo: !memoLong.isZero() ? memoLong : undefined, | ||
const { tokenBurn } = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const payer = utils_1.toAddressable(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.payer); | ||
const payee = utils_1.toAddressable(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.payee); | ||
const amount = utils_1.toNumber(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.amount) || 0; | ||
const nonce = utils_1.toNumber(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.nonce); | ||
const memo = utils_1.toString(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.memo) || ''; | ||
const fee = utils_1.toNumber(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.fee); | ||
const signature = ((_a = tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.signature) === null || _a === void 0 ? void 0 : _a.length) ? utils_1.toUint8Array(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.signature) | ||
const payer = (0, utils_1.toAddressable)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.payer); | ||
const payee = (0, utils_1.toAddressable)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.payee); | ||
const amount = (0, utils_1.toNumber)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.amount) || 0; | ||
const nonce = (0, utils_1.toNumber)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.nonce); | ||
const memo = (0, utils_1.toString)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.memo) || ''; | ||
const fee = (0, utils_1.toNumber)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.fee); | ||
const signature = ((_a = tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.signature) === null || _a === void 0 ? void 0 : _a.length) | ||
? (0, utils_1.toUint8Array)(tokenBurn === null || tokenBurn === void 0 ? void 0 : tokenBurn.signature) | ||
: undefined; | ||
@@ -86,0 +91,0 @@ if (!payee || !payer || !amount || nonce === undefined) |
@@ -45,8 +45,8 @@ "use strict"; | ||
return TokenRedeem.create({ | ||
account: this.account ? utils_1.toUint8Array(this.account.bin) : null, | ||
account: this.account ? (0, utils_1.toUint8Array)(this.account.bin) : null, | ||
amount: this.amount, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
nonce: this.nonce, | ||
tokenType: utils_1.toTokenType({ ticker: this.tokenType }), | ||
signature: this.signature && !forSigning ? utils_1.toUint8Array(this.signature) : null, | ||
tokenType: (0, utils_1.toTokenType)({ ticker: this.tokenType }), | ||
signature: this.signature && !forSigning ? (0, utils_1.toUint8Array)(this.signature) : null, | ||
}); | ||
@@ -58,8 +58,9 @@ } | ||
const { tokenRedeem } = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const account = utils_1.toAddressable(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.account); | ||
const amount = utils_1.toNumber(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.amount) || 0; | ||
const tokenType = utils_1.toTicker(utils_1.toNumber(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.tokenType)); | ||
const fee = utils_1.toNumber(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.fee); | ||
const nonce = utils_1.toNumber(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.nonce); | ||
const signature = ((_a = tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.signature) === null || _a === void 0 ? void 0 : _a.length) ? utils_1.toUint8Array(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.signature) | ||
const account = (0, utils_1.toAddressable)(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.account); | ||
const amount = (0, utils_1.toNumber)(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.amount) || 0; | ||
const tokenType = (0, utils_1.toTicker)((0, utils_1.toNumber)(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.tokenType)); | ||
const fee = (0, utils_1.toNumber)(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.fee); | ||
const nonce = (0, utils_1.toNumber)(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.nonce); | ||
const signature = ((_a = tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.signature) === null || _a === void 0 ? void 0 : _a.length) | ||
? (0, utils_1.toUint8Array)(tokenRedeem === null || tokenRedeem === void 0 ? void 0 : tokenRedeem.signature) | ||
: undefined; | ||
@@ -66,0 +67,0 @@ return new TokenRedeemV1({ |
@@ -40,3 +40,2 @@ "use strict"; | ||
} | ||
exports.default = Transaction; | ||
Transaction.txnFeeMultiplier = 0; | ||
@@ -46,2 +45,3 @@ Transaction.dcPayloadSize = 24; | ||
Transaction.stakingFeeTxnAddGatewayV1 = 1; | ||
exports.default = Transaction; | ||
//# sourceMappingURL=Transaction.js.map |
@@ -38,10 +38,10 @@ "use strict"; | ||
const decoded = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const gateway = utils_1.toAddressable((_a = decoded.transferHotspot) === null || _a === void 0 ? void 0 : _a.gateway); | ||
const seller = utils_1.toAddressable((_b = decoded.transferHotspot) === null || _b === void 0 ? void 0 : _b.seller); | ||
const buyer = utils_1.toAddressable((_c = decoded.transferHotspot) === null || _c === void 0 ? void 0 : _c.buyer); | ||
const sellerSignature = utils_1.toUint8Array((_d = decoded.transferHotspot) === null || _d === void 0 ? void 0 : _d.sellerSignature); | ||
const buyerSignature = utils_1.toUint8Array((_e = decoded.transferHotspot) === null || _e === void 0 ? void 0 : _e.buyerSignature); | ||
const buyerNonce = utils_1.toNumber((_f = decoded.transferHotspot) === null || _f === void 0 ? void 0 : _f.buyerNonce); | ||
const amountToSeller = utils_1.toNumber((_g = decoded.transferHotspot) === null || _g === void 0 ? void 0 : _g.amountToSeller); | ||
const fee = utils_1.toNumber((_h = decoded.transferHotspot) === null || _h === void 0 ? void 0 : _h.fee); | ||
const gateway = (0, utils_1.toAddressable)((_a = decoded.transferHotspot) === null || _a === void 0 ? void 0 : _a.gateway); | ||
const seller = (0, utils_1.toAddressable)((_b = decoded.transferHotspot) === null || _b === void 0 ? void 0 : _b.seller); | ||
const buyer = (0, utils_1.toAddressable)((_c = decoded.transferHotspot) === null || _c === void 0 ? void 0 : _c.buyer); | ||
const sellerSignature = (0, utils_1.toUint8Array)((_d = decoded.transferHotspot) === null || _d === void 0 ? void 0 : _d.sellerSignature); | ||
const buyerSignature = (0, utils_1.toUint8Array)((_e = decoded.transferHotspot) === null || _e === void 0 ? void 0 : _e.buyerSignature); | ||
const buyerNonce = (0, utils_1.toNumber)((_f = decoded.transferHotspot) === null || _f === void 0 ? void 0 : _f.buyerNonce); | ||
const amountToSeller = (0, utils_1.toNumber)((_g = decoded.transferHotspot) === null || _g === void 0 ? void 0 : _g.amountToSeller); | ||
const fee = (0, utils_1.toNumber)((_h = decoded.transferHotspot) === null || _h === void 0 ? void 0 : _h.fee); | ||
return new TransferHotspotV1({ | ||
@@ -73,9 +73,9 @@ gateway, | ||
return TransferHotspotTxn.create({ | ||
gateway: this.gateway ? utils_1.toUint8Array(this.gateway.bin) : null, | ||
seller: this.seller ? utils_1.toUint8Array(this.seller.bin) : null, | ||
buyer: this.buyer ? utils_1.toUint8Array(this.buyer.bin) : null, | ||
gateway: this.gateway ? (0, utils_1.toUint8Array)(this.gateway.bin) : null, | ||
seller: this.seller ? (0, utils_1.toUint8Array)(this.seller.bin) : null, | ||
buyer: this.buyer ? (0, utils_1.toUint8Array)(this.buyer.bin) : null, | ||
sellerSignature: this.sellerSignature && !forSigning | ||
? utils_1.toUint8Array(this.sellerSignature) : null, | ||
? (0, utils_1.toUint8Array)(this.sellerSignature) : null, | ||
buyerSignature: this.buyerSignature && !forSigning | ||
? utils_1.toUint8Array(this.buyerSignature) : null, | ||
? (0, utils_1.toUint8Array)(this.buyerSignature) : null, | ||
buyerNonce: this.buyerNonce, | ||
@@ -82,0 +82,0 @@ amountToSeller: this.amountToSeller ? this.amountToSeller : null, |
@@ -36,8 +36,8 @@ "use strict"; | ||
const decoded = proto_1.default.helium.blockchain_txn.decode(buf); | ||
const gateway = utils_1.toAddressable((_a = decoded.transferHotspotV2) === null || _a === void 0 ? void 0 : _a.gateway); | ||
const owner = utils_1.toAddressable((_b = decoded.transferHotspotV2) === null || _b === void 0 ? void 0 : _b.owner); | ||
const ownerSignature = utils_1.toUint8Array((_c = decoded.transferHotspotV2) === null || _c === void 0 ? void 0 : _c.ownerSignature); | ||
const newOwner = utils_1.toAddressable((_d = decoded.transferHotspotV2) === null || _d === void 0 ? void 0 : _d.newOwner); | ||
const fee = utils_1.toNumber((_e = decoded.transferHotspotV2) === null || _e === void 0 ? void 0 : _e.fee); | ||
const nonce = utils_1.toNumber((_f = decoded.transferHotspotV2) === null || _f === void 0 ? void 0 : _f.nonce); | ||
const gateway = (0, utils_1.toAddressable)((_a = decoded.transferHotspotV2) === null || _a === void 0 ? void 0 : _a.gateway); | ||
const owner = (0, utils_1.toAddressable)((_b = decoded.transferHotspotV2) === null || _b === void 0 ? void 0 : _b.owner); | ||
const ownerSignature = (0, utils_1.toUint8Array)((_c = decoded.transferHotspotV2) === null || _c === void 0 ? void 0 : _c.ownerSignature); | ||
const newOwner = (0, utils_1.toAddressable)((_d = decoded.transferHotspotV2) === null || _d === void 0 ? void 0 : _d.newOwner); | ||
const fee = (0, utils_1.toNumber)((_e = decoded.transferHotspotV2) === null || _e === void 0 ? void 0 : _e.fee); | ||
const nonce = (0, utils_1.toNumber)((_f = decoded.transferHotspotV2) === null || _f === void 0 ? void 0 : _f.nonce); | ||
return new TransferHotspotV2({ | ||
@@ -62,7 +62,7 @@ gateway, | ||
return TransferHotspotTxn.create({ | ||
gateway: this.gateway ? utils_1.toUint8Array(this.gateway.bin) : null, | ||
owner: this.owner ? utils_1.toUint8Array(this.owner.bin) : null, | ||
gateway: this.gateway ? (0, utils_1.toUint8Array)(this.gateway.bin) : null, | ||
owner: this.owner ? (0, utils_1.toUint8Array)(this.owner.bin) : null, | ||
ownerSignature: this.ownerSignature && !forSigning | ||
? utils_1.toUint8Array(this.ownerSignature) : null, | ||
newOwner: this.newOwner ? utils_1.toUint8Array(this.newOwner.bin) : null, | ||
? (0, utils_1.toUint8Array)(this.ownerSignature) : null, | ||
newOwner: this.newOwner ? (0, utils_1.toUint8Array)(this.newOwner.bin) : null, | ||
fee: this.fee ? this.fee : null, | ||
@@ -69,0 +69,0 @@ nonce: this.nonce, |
@@ -48,11 +48,11 @@ "use strict"; | ||
return TransferValStake.create({ | ||
oldAddress: this.oldAddress ? utils_1.toUint8Array(this.oldAddress.bin) : null, | ||
newAddress: this.newAddress ? utils_1.toUint8Array(this.newAddress.bin) : null, | ||
oldOwner: this.oldOwner ? utils_1.toUint8Array(this.oldOwner.bin) : null, | ||
newOwner: this.newOwner ? utils_1.toUint8Array(this.newOwner.bin) : null, | ||
oldAddress: this.oldAddress ? (0, utils_1.toUint8Array)(this.oldAddress.bin) : null, | ||
newAddress: this.newAddress ? (0, utils_1.toUint8Array)(this.newAddress.bin) : null, | ||
oldOwner: this.oldOwner ? (0, utils_1.toUint8Array)(this.oldOwner.bin) : null, | ||
newOwner: this.newOwner ? (0, utils_1.toUint8Array)(this.newOwner.bin) : null, | ||
stakeAmount: this.stakeAmount, | ||
paymentAmount: this.paymentAmount && this.paymentAmount > 0 ? this.paymentAmount : null, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
oldOwnerSignature: this.oldOwnerSignature && !forSigning ? utils_1.toUint8Array(this.oldOwnerSignature) : null, | ||
newOwnerSignature: this.newOwnerSignature && !forSigning ? utils_1.toUint8Array(this.newOwnerSignature) : null, | ||
oldOwnerSignature: this.oldOwnerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.oldOwnerSignature) : null, | ||
newOwnerSignature: this.newOwnerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.newOwnerSignature) : null, | ||
}); | ||
@@ -59,0 +59,0 @@ } |
@@ -9,3 +9,3 @@ export interface Addressable { | ||
} | ||
export declare type Base64Memo = string; | ||
export type Base64Memo = string; | ||
export declare enum TokenType { | ||
@@ -12,0 +12,0 @@ hnt = 0, |
@@ -10,3 +10,3 @@ "use strict"; | ||
TokenType[TokenType["iot"] = 3] = "iot"; | ||
})(TokenType = exports.TokenType || (exports.TokenType = {})); | ||
})(TokenType || (exports.TokenType = TokenType = {})); | ||
//# sourceMappingURL=types.js.map |
@@ -42,8 +42,8 @@ "use strict"; | ||
return UnstakeValidator.create({ | ||
address: this.address ? utils_1.toUint8Array(this.address.bin) : null, | ||
owner: this.owner ? utils_1.toUint8Array(this.owner.bin) : null, | ||
address: this.address ? (0, utils_1.toUint8Array)(this.address.bin) : null, | ||
owner: this.owner ? (0, utils_1.toUint8Array)(this.owner.bin) : null, | ||
stakeAmount: this.stakeAmount, | ||
stakeReleaseHeight: this.stakeReleaseHeight, | ||
fee: this.fee && this.fee > 0 ? this.fee : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? utils_1.toUint8Array(this.ownerSignature) : null, | ||
ownerSignature: this.ownerSignature && !forSigning ? (0, utils_1.toUint8Array)(this.ownerSignature) : null, | ||
}); | ||
@@ -50,0 +50,0 @@ } |
@@ -13,3 +13,3 @@ /// <reference types="node" /> | ||
}) => number | undefined; | ||
export declare const toTicker: (tokenType?: number | undefined) => string; | ||
export declare const toTicker: (tokenType?: number) => string; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@helium/transactions", | ||
"version": "4.11.1", | ||
"version": "4.12.0", | ||
"description": "Construct and serialize Helium blockchain transaction primatives", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@helium/address": "^4.11.1", | ||
"@helium/address": "^4.12.0", | ||
"@helium/proto": "^1.6.0", | ||
@@ -38,5 +38,6 @@ "@types/libsodium-wrappers": "^0.7.8", | ||
"devDependencies": { | ||
"@helium/crypto": "^4.11.1" | ||
"@helium/crypto": "^4.12.0", | ||
"@types/node": "^20.5.9" | ||
}, | ||
"gitHead": "f9abfceadb3e2b4574cf159c9af454a0aefe75cd" | ||
"gitHead": "77bcfdd97c8ffbb314e1965ac6eb96d00275db05" | ||
} |
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
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
161885
1879
0
2
Updated@helium/address@^4.12.0