@harmony-js/staking
Advanced tools
Comparing version 0.1.56 to 0.1.58
{ | ||
"name": "@harmony-js/staking", | ||
"version": "0.1.56", | ||
"version": "0.1.58", | ||
"description": "staking transaction package for harmony", | ||
@@ -21,9 +21,9 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/crypto": "0.1.56", | ||
"@harmony-js/network": "0.1.56", | ||
"@harmony-js/transaction": "0.1.56", | ||
"@harmony-js/utils": "0.1.56", | ||
"@harmony-js/crypto": "0.1.58", | ||
"@harmony-js/network": "0.1.58", | ||
"@harmony-js/transaction": "0.1.58", | ||
"@harmony-js/utils": "0.1.58", | ||
"text-encoding": "^0.7.0" | ||
}, | ||
"gitHead": "8f8e17fdaed394af1c28cd133d6018bf48915a81" | ||
"gitHead": "5eddd0feb2bfe92c36b194fe0a9ffe40f8173d6c" | ||
} |
@@ -321,12 +321,8 @@ /** | ||
const testTx: any = testTransactions[0]; | ||
const responses = [ | ||
{ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
}, | ||
].map((res) => [JSON.stringify(res)] as [string]); | ||
fetch.mockResponse(JSON.stringify({ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
})); | ||
fetch.mockResponses(...responses); | ||
const desc: Description = new Description( | ||
@@ -367,12 +363,8 @@ testTx.description.name, | ||
const testTx: any = testTransactions[1]; | ||
const responses = [ | ||
{ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
}, | ||
].map((res) => [JSON.stringify(res)] as [string]); | ||
fetch.mockResponse(JSON.stringify({ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
})); | ||
fetch.mockResponses(...responses); | ||
const desc: Description = new Description( | ||
@@ -408,12 +400,8 @@ testTx.description.name, | ||
const testTx: any = testTransactions[2]; | ||
const responses = [ | ||
{ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
}, | ||
].map((res) => [JSON.stringify(res)] as [string]); | ||
fetch.mockResponse(JSON.stringify({ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
})); | ||
fetch.mockResponses(...responses); | ||
const stakeMsg: Delegate = new Delegate( | ||
@@ -440,11 +428,7 @@ testTx.delegatorAddress, | ||
const responses = [ | ||
{ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
}, | ||
].map((res) => [JSON.stringify(res)] as [string]); | ||
fetch.mockResponses(...responses); | ||
fetch.mockResponse(JSON.stringify({ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
})); | ||
const stakeMsg: Undelegate = new Undelegate( | ||
@@ -473,12 +457,8 @@ testTx.delegatorAddress, | ||
const testTx: any = testTransactions[4]; | ||
const responses = [ | ||
{ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
}, | ||
].map((res) => [JSON.stringify(res)] as [string]); | ||
fetch.mockResponse(JSON.stringify({ | ||
jsonrpc: '2.0', | ||
id: 1, | ||
result: testTx.nonce, | ||
})); | ||
fetch.mockResponses(...responses); | ||
const stakeMsg: CollectRewards = new CollectRewards(testTx.delegatorAddress); | ||
@@ -485,0 +465,0 @@ |
351456
29
3929
+ 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.56(transitive)
- Removed@harmony-js/network@0.1.56(transitive)
- Removed@harmony-js/transaction@0.1.56(transitive)
- Removed@harmony-js/utils@0.1.56(transitive)
Updated@harmony-js/crypto@0.1.58
Updated@harmony-js/network@0.1.58
Updated@harmony-js/utils@0.1.58