@harmony-js/staking
Advanced tools
Comparing version 0.1.36 to 0.1.41-alpha.1
@@ -44,6 +44,7 @@ /** | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
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); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -50,0 +51,0 @@ }); |
@@ -40,6 +40,7 @@ /** | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
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); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -46,0 +47,0 @@ }); |
@@ -41,6 +41,7 @@ /** | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
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); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -47,0 +48,0 @@ }); |
{ | ||
"name": "@harmony-js/staking", | ||
"version": "0.1.36", | ||
"version": "0.1.41-alpha.1+3c7e080", | ||
"description": "staking transaction package for harmony", | ||
@@ -21,9 +21,9 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/crypto": "0.1.35", | ||
"@harmony-js/network": "0.1.35", | ||
"@harmony-js/transaction": "0.1.35", | ||
"@harmony-js/utils": "0.1.35", | ||
"@harmony-js/crypto": "^0.1.41-alpha.1+3c7e080", | ||
"@harmony-js/network": "^0.1.41-alpha.1+3c7e080", | ||
"@harmony-js/transaction": "^0.1.41-alpha.1+3c7e080", | ||
"@harmony-js/utils": "^0.1.41-alpha.1+3c7e080", | ||
"text-encoding": "^0.7.0" | ||
}, | ||
"gitHead": "9e05298fe7fd60996d81392f921f24a211c1ae0d" | ||
"gitHead": "3c7e080a7dad4f2636f307347132a992a2f76cca" | ||
} |
@@ -174,23 +174,23 @@ // tslint:disable-next-line: no-implicit-dependencies | ||
// it('should test sign delegate staking transaction', () => { | ||
// const testTx: any = testTransactions[2]; | ||
// const address = getAddressFromPrivateKey(testTx.privateKey); | ||
// expect(isValidAddress(address)).toEqual(true); | ||
// const stakeMsg: Delegate = new Delegate( | ||
// testTx.delegatorAddress, | ||
// testTx.validatorAddress, | ||
// testTx.amount, | ||
// ); | ||
it('should test sign delegate staking transaction', () => { | ||
const testTx: any = testTransactions[2]; | ||
const address = getAddressFromPrivateKey(testTx.privateKey); | ||
expect(isValidAddress(address)).toEqual(true); | ||
const stakeMsg: Delegate = new Delegate( | ||
testTx.delegatorAddress, | ||
testTx.validatorAddress, | ||
testTx.amount, | ||
); | ||
// const stakingTx: StakingTransaction = new StakingTransaction( | ||
// Directive.DirectiveDelegate, | ||
// stakeMsg, | ||
// testTx.nonce, | ||
// testTx.gasPrice, | ||
// testTx.gasLimit, | ||
// testTx.ChainID, | ||
// ); | ||
// const signed = stakingTx.rlpSign(testTx.privateKey); | ||
// expect(signed[1]).toEqual(testTx.encoded); | ||
// }); | ||
const stakingTx: StakingTransaction = new StakingTransaction( | ||
Directive.DirectiveDelegate, | ||
stakeMsg, | ||
testTx.nonce, | ||
testTx.gasPrice, | ||
testTx.gasLimit, | ||
testTx.chainID, | ||
); | ||
const signed = stakingTx.rlpSign(testTx.privateKey); | ||
expect(signed[1]).toEqual(testTx.encoded); | ||
}); | ||
@@ -197,0 +197,0 @@ it('should test sign delegate staking transaction using factory', () => { |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
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
452182
30
3408
2
+ Added@harmony-js/crypto@0.1.58(transitive)
+ Added@harmony-js/network@0.1.58(transitive)
+ Added@harmony-js/transaction@0.1.58(transitive)
+ Added@harmony-js/utils@0.1.58(transitive)
+ Addedscrypt@6.0.3(transitive)
+ Addedscrypt.js@0.3.0(transitive)
+ Addedscryptsy@1.2.1(transitive)
- Removed@harmony-js/crypto@0.1.35(transitive)
- Removed@harmony-js/network@0.1.35(transitive)
- Removed@harmony-js/transaction@0.1.35(transitive)
- Removed@harmony-js/utils@0.1.35(transitive)